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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- sa
|
| 6 |
+
- pi
|
| 7 |
+
tags:
|
| 8 |
+
- knowledge-graph
|
| 9 |
+
- buddhism
|
| 10 |
+
- philosophy
|
| 11 |
+
- emptiness
|
| 12 |
+
- madhyamaka
|
| 13 |
+
- prajnaparamita
|
| 14 |
+
- theravada
|
| 15 |
+
- yogacara
|
| 16 |
+
- nagarjuna
|
| 17 |
+
- shantideva
|
| 18 |
+
- computational-humanities
|
| 19 |
+
- graph-dataset
|
| 20 |
+
pretty_name: Emptiness Graph
|
| 21 |
+
size_categories:
|
| 22 |
+
- 1K<n<10K
|
| 23 |
+
task_categories:
|
| 24 |
+
- graph-ml
|
| 25 |
+
- text-retrieval
|
| 26 |
+
dataset_info:
|
| 27 |
+
features:
|
| 28 |
+
- name: id
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: text
|
| 31 |
+
dtype: string
|
| 32 |
+
- name: text_id
|
| 33 |
+
dtype: string
|
| 34 |
+
- name: concepts_mentioned
|
| 35 |
+
sequence: string
|
| 36 |
+
splits:
|
| 37 |
+
- name: passages
|
| 38 |
+
num_examples: 1126
|
| 39 |
+
- name: concepts
|
| 40 |
+
num_examples: 25
|
| 41 |
+
- name: edges
|
| 42 |
+
num_examples: 38
|
| 43 |
+
- name: corpus_manifest
|
| 44 |
+
num_examples: 16
|
| 45 |
+
- name: passage_edges
|
| 46 |
+
num_examples: 416
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
# Emptiness Graph
|
| 50 |
+
|
| 51 |
+
**A typed philosophical knowledge graph of Buddhist emptiness teachings**
|
| 52 |
+
spanning Theravada, Prajnaparamita, Madhyamaka, and Yogacara
|
| 53 |
+
|
| 54 |
+
[GitHub](https://github.com/joyboseroy/emptiness-graph)
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
## What This Is
|
| 59 |
+
|
| 60 |
+
This is not a Buddhist chatbot dataset.
|
| 61 |
+
|
| 62 |
+
It is a **structured philosophical graph** encoding the conceptual architecture
|
| 63 |
+
of *sunyata* (emptiness) across the major Buddhist traditions — from the Pali
|
| 64 |
+
Canon's *anatta* through Nagarjuna's Madhyamaka, Shantideva's dialectics,
|
| 65 |
+
Yogacara's three-natures, and the Prajnaparamita sutras.
|
| 66 |
+
|
| 67 |
+
The core insight:
|
| 68 |
+
|
| 69 |
+
> Nagarjuna's arguments are essentially dependency analysis.
|
| 70 |
+
> A thing exists because of other things.
|
| 71 |
+
> Remove independent existence.
|
| 72 |
+
> What remains is a network.
|
| 73 |
+
|
| 74 |
+
Emptiness (*sunyata*) is not a fact to be retrieved. It is a **relational
|
| 75 |
+
structure** to be traversed. This graph makes that structure explicit and
|
| 76 |
+
queryable.
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## Quick Start
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from datasets import load_dataset
|
| 84 |
+
import networkx as nx
|
| 85 |
+
|
| 86 |
+
# load all splits
|
| 87 |
+
ds = load_dataset("joyboseroy/emptiness-graph")
|
| 88 |
+
|
| 89 |
+
# build the philosophical graph
|
| 90 |
+
G = nx.MultiDiGraph()
|
| 91 |
+
for c in ds["concepts"]:
|
| 92 |
+
G.add_node(c["id"], kind="concept", **c)
|
| 93 |
+
for t in ds["corpus_manifest"]:
|
| 94 |
+
G.add_node(t["id"], kind="text", **t)
|
| 95 |
+
for e in ds["edges"]:
|
| 96 |
+
G.add_edge(e["source"], e["target"], **e)
|
| 97 |
+
|
| 98 |
+
# what does the Heart Sutra refute?
|
| 99 |
+
for u, v, data in G.edges(data=True):
|
| 100 |
+
if u == "heart_sutra" and data["relation"] in ("refutes", "deconstructs"):
|
| 101 |
+
print(f" {G.nodes[v]['label']} [{data['relation']}]")
|
| 102 |
+
|
| 103 |
+
# what implies sunyata, from which tradition?
|
| 104 |
+
for u, v, data in G.edges(data=True):
|
| 105 |
+
if v == "sunyata" and data["relation"] in (
|
| 106 |
+
"is_identical_to", "is_precursor_of"):
|
| 107 |
+
print(f" {G.nodes[u]['label']} --[{data['relation']}] ({data['tradition']})")
|
| 108 |
+
|
| 109 |
+
# find passages that mention a concept
|
| 110 |
+
passages = list(ds["passages"])
|
| 111 |
+
pedges = list(ds["passage_edges"])
|
| 112 |
+
pids = {e["source"] for e in pedges if e["target"] == "emptiness_of_emptiness"}
|
| 113 |
+
for p in passages:
|
| 114 |
+
if p["id"] in pids:
|
| 115 |
+
print(f"[{p['text_id']}] {p['text'][:200]}\n")
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
## Dataset Splits
|
| 121 |
+
|
| 122 |
+
| Split | Records | Description |
|
| 123 |
+
|-------|---------|-------------|
|
| 124 |
+
| `concepts` | 25 | Philosophical concept nodes with Sanskrit/Pali/Tibetan terms |
|
| 125 |
+
| `edges` | 38 | Hand-authored typed philosophical relations |
|
| 126 |
+
| `corpus_manifest` | 16 | Source text metadata, translators, ingestion status |
|
| 127 |
+
| `passages` | 1,126 | Text passages from 10 ingested sources |
|
| 128 |
+
| `passage_edges` | 416 | Passage to concept mention links |
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## Two Layers
|
| 133 |
+
|
| 134 |
+
**Layer 1 — Philosophical graph (hand-authored)**
|
| 135 |
+
`concepts`, `edges`, `corpus_manifest` were written by hand one record at a
|
| 136 |
+
time. Every edge has a `notes` field with philosophical commentary explaining
|
| 137 |
+
why the relation exists. This is the primary scholarly contribution.
|
| 138 |
+
|
| 139 |
+
**Layer 2 — Passage index (automated)**
|
| 140 |
+
`passages` and `passage_edges` were produced by `build_passage_index.py`
|
| 141 |
+
from 10 source text files. Texts were split into passages and matched against
|
| 142 |
+
manually defined concept keyword lists.
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
## Edge Relation Types (17)
|
| 147 |
+
|
| 148 |
+
**Ontological:** `negates` · `presupposes` · `implies` · `is_identical_to` ·
|
| 149 |
+
`is_coextensive_with` · `depends_on` · `is_ground_of`
|
| 150 |
+
|
| 151 |
+
**Logical/Dialectical:** `refutes` · `extends` · `applies_method_of` · `deconstructs`
|
| 152 |
+
|
| 153 |
+
**Doctrinal:** `tensions_with` · `reframes_as` · `is_conventional_expression_of` ·
|
| 154 |
+
`is_ultimate_level_of` · `is_precursor_of`
|
| 155 |
+
|
| 156 |
+
**Practice:** `enables` · `is_obstacle_to` · `is_antidote_to`
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## Concept Nodes (25)
|
| 161 |
+
|
| 162 |
+
`svabhava` · `sunyata` · `anatta` · `anatta_of_persons` · `anatta_of_dharmas`
|
| 163 |
+
`pratityasamutpada` · `two_truths` · `two_truths_theravada` · `prasanga`
|
| 164 |
+
`dependent_designation` · `emptiness_of_emptiness` · `alayavijnana`
|
| 165 |
+
`three_natures` · `tathagatagarbha` · `five_aggregates` · `twelve_nidanas`
|
| 166 |
+
`dharmadhatu` · `nonduality` · `skillful_means` · `nihilism_extreme`
|
| 167 |
+
`eternalism_extreme` · `abhidharma_realism` · `cittamatra` · `bodhichitta`
|
| 168 |
+
`three_kayas`
|
| 169 |
+
|
| 170 |
+
---
|
| 171 |
+
|
| 172 |
+
## Sample Query Results
|
| 173 |
+
|
| 174 |
+
```
|
| 175 |
+
Heart Sutra deconstructs / refutes:
|
| 176 |
+
Five Aggregates [deconstructs]
|
| 177 |
+
Abhidharma Realism [refutes]
|
| 178 |
+
|
| 179 |
+
What implies Sunyata:
|
| 180 |
+
Pratityasamutpada --[is_identical_to] (madhyamaka)
|
| 181 |
+
Anatta --[is_precursor_of] (mahayana)
|
| 182 |
+
|
| 183 |
+
Doctrinal tensions:
|
| 184 |
+
Tathagatagarbha <--> Sunyata
|
| 185 |
+
Cittamatra <--> Sunyata
|
| 186 |
+
|
| 187 |
+
Tradition comparison on Sunyata:
|
| 188 |
+
Theravada : Anatta [is_precursor_of]
|
| 189 |
+
Madhyamaka : Pratityasamutpada [is_identical_to]
|
| 190 |
+
Yogacara : Three Natures [reframes_as]
|
| 191 |
+
Mahayana : Bodhichitta [enables]
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
---
|
| 195 |
+
|
| 196 |
+
## Texts Ingested (10 of 16 planned)
|
| 197 |
+
|
| 198 |
+
| Text | Translator | Passages |
|
| 199 |
+
|------|-----------|---------|
|
| 200 |
+
| Anattalakkhana Sutta | Bhikkhu Sujato | 20 |
|
| 201 |
+
| Milindapanha (Chariot Argument) | T.W. Rhys Davids | 23 |
|
| 202 |
+
| Heart Sutra | Nyingma Monlam / multiple | 90 |
|
| 203 |
+
| Diamond Sutra | Public domain | 30 |
|
| 204 |
+
| Ashtasahasrika Prajnaparamita | 84000 | 119 |
|
| 205 |
+
| Vimalakirti Sutra Ch.9 | Robert Thurman | 41 |
|
| 206 |
+
| Samdhinirmocana Sutra | 84000 | 570 |
|
| 207 |
+
| Mulamadhyamakakarika (Ch.1,18,22,23,24,26) | Geshe Kelsang Wangmo | 120 |
|
| 208 |
+
| Sunyatasaptati | Christian Lindtner | 73 |
|
| 209 |
+
| Bodhicharyavatara Ch.9 | Padmakara Translation Group | 40 |
|
| 210 |
+
|
| 211 |
+
All texts sourced from openly available web versions of public domain or
|
| 212 |
+
openly licensed translations.
|
| 213 |
+
|
| 214 |
+
---
|
| 215 |
+
|
| 216 |
+
## License
|
| 217 |
+
|
| 218 |
+
| Content | License |
|
| 219 |
+
|---------|---------|
|
| 220 |
+
| `concepts`, `edges`, `corpus_manifest` | CC BY 4.0 |
|
| 221 |
+
| `passages`, `passage_edges` | CC BY-NC 4.0 (includes 84000 material) |
|
| 222 |
+
|
| 223 |
+
## Citation
|
| 224 |
+
|
| 225 |
+
```bibtex
|
| 226 |
+
@dataset{bose2026emptiness,
|
| 227 |
+
title = {Emptiness Graph: A Typed Philosophical Knowledge Graph
|
| 228 |
+
of Buddhist Sunyata},
|
| 229 |
+
author = {Bose, Joy},
|
| 230 |
+
year = {2026},
|
| 231 |
+
url = {https://huggingface.co/datasets/joyboseroy/emptiness-graph},
|
| 232 |
+
note = {Hand-authored concept graph and automated passage index
|
| 233 |
+
spanning Theravada, Prajnaparamita, Madhyamaka, and Yogacara}
|
| 234 |
+
}
|
| 235 |
+
```
|