CodeGraph: Open-Taxonomy Knowledge Graph for Source Code with Wikidata Grounding
Researchers build CodeGraph, a 158-million-node open-taxonomy knowledge graph of source code grounded in Wikidata.
The paper presents a pipeline that uses a code-specialised LLM to annotate source code with an open taxonomy of algorithms, paradigms, design patterns, and application domains, then grounds those concepts in Wikidata. Linking combines deterministic SPARQL, a Deep Research Agent for the long tail, and a hierarchy rollup of parent categories. Run on 167 million Stack-Edu files across 14 languages, CodeGraph contains about 158 million nodes, roughly 63,000 concept entities, about 19,800 Wikidata entities, and approximately 1 billion typed edges. A calibrated QA protocol mixes a small human gold set with an LLM-as-a-judge filter.
- Pipeline extracts algorithms, paradigms, patterns, and domains with a code LLM.
- Wikidata linking uses SPARQL, a research agent, and parent-category rollup.
- Applied to 167 million Stack-Edu files across 14 languages.
- CodeGraph has about 158 million nodes and roughly 1 billion edges.
- Precision is checked with a human gold set and an LLM judge.
- Organizations
- WikidataGitHubSoftware Heritage
From the original article
1 min read at huggingface.coPublic software repositories, like GitHub and Software Heritage Archive, store billions of files, yet extracting their implicit engineering knowledge ---i. e. , the algorithms they implement, the paradigms they follow, the patterns they instantiate, and the application domains they serve--- remains challenging, as current tools are constrained to syntactic and token-level analysis.
By Federico Pennino, Andrea Gurioli, Stefano Zacchiroli · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.