Mo7art/Stack2Graph_KG_csharp
C# StackOverflow Knowledge Graph Summary This Hugging Face dataset repository contains the C# shard of the Stack2Graph StackOverflow Knowledge Graph. Hugging Face uses one dataset repository per programming language, so this repository is directly cloneable without an extra top-level archive wrapper. The artifact is optimized for graph-based retrieval, SPARQL analytics, and retrieval-augmented question answering over Stack Overflow content. Stack2Graph source:… See the full description on the dataset page: https://huggingface.co/datasets/Mo7art/Stack2Graph_KG_csharp.
0292
1---2tags:3 - knowledge-graph4 - rdf5 - n-triples6 - sparql7 - semantic-web8 - stackoverflow9 - question-answering10pretty_name: StackOverflow Knowledge Graph - C#11license: cc-by-sa-4.012size_categories:13 - 100M<n<1B14---15 16# C# StackOverflow Knowledge Graph17 18## Summary19 20This Hugging Face dataset repository contains the C# shard of the Stack2Graph StackOverflow Knowledge Graph.21Hugging Face uses one dataset repository per programming language, so this repository is directly cloneable without an extra top-level archive wrapper.22 23The artifact is optimized for graph-based retrieval, SPARQL analytics, and retrieval-augmented question answering over Stack Overflow content.24 25Stack2Graph source:26[https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)27 28## Hugging Face Repository Layout29 30```text31README.md32schema.nt33csharp/34 part0.nt35 part1.nt36 ...37```38 39- `README.md`: Hugging Face dataset card rendered from this template.40- `schema.nt`: shared ontology and schema triples.41- `csharp/part*.nt`: C# instance triples serialized as N-Triples.42 43 44## Data Model And Coverage45 46The graph links Stack Overflow entities and relations, including questions, answers, comments, tags, vote aggregates, and question-to-question links.47 48Coverage scope:49 50- records are retained when they match the Stack2Graph supported language-tag set51- this repository contains only the C# shard52- a question may appear in more than one language repository when it has multiple programming-language tags53 54## Recommended Use55 56Use this dataset for graph retrieval, SPARQL diagnostics, RAG experiments, and knowledge graph research for programming topics. It is not intended as row-wise tabular training input.57 58Load `schema.nt` and the files under `csharp/` into an RDF-capable store. Map language triples to named graph:59 60```text61http://stackoverflow.com/c#62```63 64Example language-scoped query:65 66```sparql67SELECT ?s ?p ?o68WHERE {69 GRAPH <http://stackoverflow.com/c#> {70 ?s ?p ?o71 }72}73LIMIT 10074```75 76## Restore With Stack2Graph77 78You do not need to rebuild triples from XML to use this dataset.79 80Typical workflow:81 821. Clone Stack2Graph and configure `.env` with service paths and an HF token.832. Start local services:84 85```bash86docker compose up -d87```88 893. Download and prepare the knowledge graph service state:90 91```bash92python -m experiment.sources.hf93```94 95## Quality Notes96 97- Vote information is represented as aggregates, not raw individual vote events.98- Not all moderation context or full revision history is represented.99- Community-generated Stack Overflow content may contain errors, outdated information, bias, or temporal drift.100 101## License And Attribution102 103This dataset is derived from Stack Overflow content and is distributed under `CC-BY-SA-4.0`.104Preserve required attribution and license notices when redistributing derived artifacts.105 106## Citation107 108If you use this dataset, cite the Stack2Graph project and preserve Stack Overflow attribution requirements:109 110- Kleybolte, L. A., Ventura, V., & Zarcone, A. (2026). Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering . In Proceedings of the Knowledge Graphs and Large Language Models Workshop (KG-LLM) @ LREC26 (pp. 120-133). European Language Resources Association (ELRA). https://doi.org/10.63317/583q4d3mwbdu.111 