Cited by 46Software Engineering ResearchSemantic Web and OntologiesModel-Driven Software Engineering Techniques

A Toolkit for Generating Code Knowledge Graphs

Open access
Abdelaziz, Ibrahim, Dolby, Julian, McCusker, Jamie, Srinivas, Kavitha·2021·Proceedings of the 11th Knowledge Capture Conference

Abstract

Knowledge graphs have been proven extremely useful in powering diverse applications in semantic search and natural language understanding. In this work, we present GraphGen4Code, a toolkit to build code knowledge graphs that can similarly power various applications such as program search, code understanding, bug detection, and code automation. GraphGen4Code uses generic techniques to capture code semantics with the key nodes in the graph representing classes, functions and methods. Edges indicate function usage (e.g., how data flows through function calls, as derived from program analysis of real code), and documentation about functions (e.g., code documentation, usage documentation, or forum discussions such as StackOverflow). Our toolkit uses named graphs in RDF to model graphs per program, or can output graphs as JSON. We show the scalability of the toolkit by applying it to 1.3 million Python files drawn from GitHub, 2,300 Python modules, and 47 million forum posts. This results in an integrated code graph with over 2 billion triples. We make the toolkit to build such graphs as well as the sample extraction of the 2 billion triples graph publicly available to the community for use.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3460210.3493578

Cites

2 of 2 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Authors
Abdelaziz, I., Dolby, J., McCusker, J., & Srinivas, K.
Affiliations
  • IBM (United States) (US)
  • Rensselaer Polytechnic Institute (US)
Venue
Proceedings of the 11th Knowledge Capture Conference
Publisher
ACM
Published
2021-12-02
Pages
137-144
OpenAlex
W3203324567
Cited by
46
References
2
Citations by year
2026: 9 · 2025: 11 · 2024: 8 · 2023: 6 · 2022: 9 · 2021: 3
FWCI
5.43
Type
conference paper
Language
en
Open access
Locations
  • International Conference on Knowledge Capture (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
  • TIB Data Manager
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Semantic Web and Ontologies
  • Physical Sciences › Computer Science › Software › Model-Driven Software Engineering Techniques
Keywords
program semantics, call graph, data flow, code documentation, program search, program comprehension, bug detection, Python code

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review