Dataset Card for StackOverflow Knowledge Graph
Summary
This dataset contains the knowledge-graph component of Stack2Graph as compressed TriG shards.
It is the structured counterpart to the Stack2Graph vector dataset and is intended for RDF stores such as GraphDB rather than row-wise tabular use.
Repository Layout
trig_files/
archive_manifest.json
part_0.tar.gz
part_1.tar.gz
part_2.tar.gz
...
The repository stores compressed TriG shard archives plus an archive_manifest.json file describing which .trig files are contained in each archive.
Content
The graph is generated from Stack Overflow data after SQL ingestion and keeps structural relations between questions, answers, comments, tags, vote aggregates, and question-to-question links.
Each TriG shard contains schema triples in the default graph and content triples in named graphs keyed by supported programming-language tags.
Questions are only retained when they match the supported language-tag set used by the project.
Schema Overview
Figure 1. High-level schema of Stack2Graph. Questions are the central entities and connect to answers, comments, tags, tag-wiki content, vote aggregates, and question-to-question links. Schema triples are stored in the default graph, while content triples are written into one named graph per supported programming-language tag.
Intended Use
This dataset is meant to be downloaded, extracted, and imported into an RDF-capable graph store for retrieval and analysis workflows.
It is primarily intended for system reconstruction and retrieval-based experiments.
Source
The dataset is built from the Stack Overflow dump through the Stack2Graph pipeline, including SQL import, graph construction, TriG serialization, and archive packaging.
Limitations
- The graph only covers questions matching the supported programming-language tags.
- A question may appear in more than one named graph when it has multiple language tags.
- Vote information is stored as aggregates rather than individual vote events.
- The dataset inherits the licensing constraints, biases, and temporal drift of Stack Overflow content.
License
This dataset is distributed under CC-BY-SA-4.0.
Citation
If you use this dataset, please cite the Stack2Graph paper:
- Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
- Downloads last month
- -