CodeGraph: Open-Taxonomy Knowledge Graph for Source Code with Wikidata Grounding
Not on the map. Why?
Abstract (arXiv)
Public 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. We present a pipeline for building an open-taxonomy semantic annotation of source code using a code-specialised Large Language Model. The extracted entities are grounded in Wikidata through a three-stage linking procedure: a deterministic SPARQL stage handles unambiguous entities, a Deep Research Agent resolves the residual long tail, and a hierarchy-rollup stage imports the parent-of closure of each resolved Wikidata identifier. The resulting annotations are materialised as a source-code-specific open-taxonomy knowledge graph. We further introduce a calibrated quality-assurance protocol that quantifies annotation precision by combining a small human gold set with an LLM-as-a-judge filter. We applied our pipeline to the 167 million files of the Stack-Edu corpus, creating the first known large-scale open-taxonomy knowledge graph for source code. Our graph, named CodeGraph, contains approximately 158 million nodes, which include around 145 million files, about 63,000 extracted concept entities (such as algorithms, paradigms, design patterns, and application domains), and roughly 19,800 grounded Wikidata entities. Furthermore, CodeGraph features approximately 1 billion typed edges that connect files to their respective concepts, link these concepts to their grounded Wikidata identifiers, and relate them to their parent categories, covering 14 programming languages.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 29 references that are in the map. First posted on arXiv 24 Sep 2026.
Builds on
10 of 29 references.
References · 10
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2020Knowledge Graphscited by 621
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 335
- 2018Automated Algorithm Selection: Survey and Perspectivescited by 114
- 2020Topic Recommendation for Software Repositories using Multi-label Classification Algorithmscited by 20
- 2020A Toolkit for Generating Code Knowledge Graphscited by 17
- 2023LEONARDO: A Pan-European Pre-Exascale Supercomputer for HPC and AI Applicationscited by 12
- 2021Algorithm Selection on a Meta Levelcited by 11
- 2022Revisiting Code Search in a Two-Stage Paradigmcited by 8
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrieval
- 2026ATLAS: Agentic Taxonomy of Large-Scale Software Ecosystems
- 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Tasks
- 2026OwlPath: Lossless Knowledge Compression for LLM Bug Repair
- 2025Enhancing repository-level software repair via repository-aware knowledge graphs
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databases
- 2025Uncovering Code Insights: Leveraging GitHub Artifacts for Deeper Code Understanding
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition