GPTKB_v2 / README.md
tuanphong's picture
Add dataset card: license, vocabulary, and what the RDF view drops
e3db03b verified
|
Raw
History Blame Contribute Delete
3.33 kB
---
license: cc-by-4.0
language:
- en
tags:
- knowledge-graph
- rdf
- n-triples
- llm-generated
pretty_name: GPTKB v2 (simplified RDF export)
size_categories:
- 10M<n<100M
---
# GPTKB v2 — simplified RDF export
Interim release. Browse, query or ask the full knowledge base at
**[gptkb.org](https://gptkb.org/)**.
| | |
| --- | --- |
| File | `gptkb_v2.0_rdf.nt.gz` |
| Format | N-Triples, gzipped (366 MB; 3.2 GB uncompressed) |
| Size | 33,364,378 lines → **32,794,801 distinct triples** once loaded |
| License | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
## What this is
The graph served by the SPARQL endpoint at
[gptkb.org/query](https://gptkb.org/query/). Entities, predicates and
concepts are ID-based IRIs:
```
<https://gptkb.org/entity/E0> a person, place, work, …
<https://gptkb.org/prop/P0> a predicate
<https://gptkb.org/concept/C0> a class
```
The vocabulary is deliberately three predicates and no more:
| Predicate | Meaning |
| --- | --- |
| `<https://gptkb.org/prop/P…>` | a disambiguated fact |
| `rdfs:label` | the canonical name of an entity, predicate or concept |
| `skos:altLabel` | **every surface form** observed for an entity |
Literals are plain RDF strings — typed literals (`xsd:date`,
`xsd:integer`) are deferred. Concepts carry no `rdfs:subClassOf`: the
source has no hierarchy to export.
## What this is not
It is not the whole of v2, and the gap is the point of the project.
A fact in GPTKB v2 has **six** terms, not three: alongside the
disambiguated subject, predicate and object, it records the *wording*
each was stated with, and the provenance of how that wording was
resolved. A triple has nowhere to put either.
The surface forms survive here — they are attached to the entity as
`skos:altLabel`, so `E14` (United States of America) carries 127 of
them: `US`, `U.S.A.`, `America`, `Estados Unidos de América`, and so on.
What does not survive is **which form was used on which fact**. You can
see the loss directly: `<E0> <P0> <C0>` appears five times in the file,
because five differently worded facts about Vannevar Bush resolve to
it, and RDF set semantics keep one. That collapse is the entire
difference between this file's 33,364,378 lines and the 32,794,801
triples a store loads from it.
Provenance is absent outright — no batch identifiers, no pipeline
status, no object descriptions.
A release carrying the full six-term record is in preparation. Until
then, every [entity](https://gptkb.org/browse/) and triple page on
gptkb.org shows it.
## Loading
```bash
# Virtuoso, QLever, Jena, rdflib — anything that reads N-Triples
gunzip -c gptkb_v2.0_rdf.nt.gz | head
```
Load into a named graph of `<https://gptkb.org/gptkb>` to match the IRIs
the file already carries.
## Earlier versions
The v1 line is archived separately and stays downloadable permanently:
[GPTKB_v1.5](https://huggingface.co/datasets/Knowledge-aware-AI/GPTKB_v1.5)
and [GPTKB_v1](https://huggingface.co/datasets/Knowledge-aware-AI/GPTKB_v1).
Note that v1 used label-based IRIs (`/entity/Vannevar_Bush`) where v2
uses ID-based ones (`/entity/E0`); the two are not interchangeable.
## Citation
A paper describing GPTKB v2 is in preparation. Please check
[gptkb.org/publications](https://gptkb.org/publications/) for the
current reference.