Skip to content
NewA calmer, faster ZeroHour

CodeGraph: Open-Taxonomy Knowledge Graph for Source Code with Wikidata Grounding

Hugging Face daily papersby Federico Pennino, Andrea Gurioli, Stefano Zacchiroli ()1 min read2 · 1 read
AI summary · grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at huggingface.co

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.

Hugging Face daily papers

By Federico Pennino, Andrea Gurioli, Stefano Zacchiroli · huggingface.co

Read the full article at Hugging Face daily papers

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.