subject stringlengths 22 73 | predicate stringclasses 17
values | object stringlengths 1 423 | object_type stringclasses 2
values | object_datatype stringclasses 2
values | object_language stringclasses 1
value |
|---|---|---|---|---|---|
http://yago-knowledge.org/schema#Creator_property_230 | http://www.w3.org/ns/shacl#class | http://schema.org/CreativeWork | uri | null | null |
http://yago-knowledge.org/schema#element_305 | http://www.w3.org/ns/shacl#datatype | http://www.w3.org/2001/XMLSchema#gYear | uri | null | null |
http://yago-knowledge.org/schema#startDateAnnotation | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://yago-knowledge.org/schema#AnnotationPropertyShape | uri | null | null |
http://yago-knowledge.org/schema#list_29 | http://www.w3.org/1999/02/22-rdf-syntax-ns#rest | http://yago-knowledge.org/schema#list_31 | uri | null | null |
http://yago-knowledge.org/schema#list_45 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_46 | uri | null | null |
http://yago-knowledge.org/schema#Thing_property_7 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P1053 | uri | null | null |
http://schema.org/PerformingGroup | http://yago-knowledge.org/schema#fromClass | http://www.wikidata.org/entity/Q105815710 | uri | null | null |
http://yago-knowledge.org/schema#Place_property_241 | http://www.w3.org/ns/shacl#path | http://yago-knowledge.org/resource/elevation | uri | null | null |
http://yago-knowledge.org/schema#list_169 | http://www.w3.org/1999/02/22-rdf-syntax-ns#rest | http://yago-knowledge.org/schema#list_171 | uri | null | null |
http://yago-knowledge.org/schema#AdministrativeArea_property_251 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P35 | uri | null | null |
http://yago-knowledge.org/schema#AnnotationPropertyShape | http://www.w3.org/2000/01/rdf-schema#subPropertyOf | http://www.w3.org/ns/shacl#PropertyShape | uri | null | null |
http://schema.org/Product | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Product_property_286 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_227 | http://www.w3.org/ns/shacl#path | http://schema.org/owns | uri | null | null |
http://schema.org/Product | http://yago-knowledge.org/schema#fromClass | http://www.wikidata.org/entity/Q2342494 | uri | null | null |
http://yago-knowledge.org/schema#AdministrativeArea_property_252 | http://www.w3.org/ns/shacl#path | http://yago-knowledge.org/resource/replaces | uri | null | null |
http://schema.org/Intangible | http://www.w3.org/2002/07/owl#disjointWith | http://schema.org/Taxon | uri | null | null |
http://yago-knowledge.org/schema#list_130 | http://www.w3.org/1999/02/22-rdf-syntax-ns#rest | http://www.w3.org/1999/02/22-rdf-syntax-ns#nil | uri | null | null |
http://yago-knowledge.org/schema#element_142 | http://www.w3.org/ns/shacl#class | http://schema.org/Organization | uri | null | null |
http://yago-knowledge.org/schema#element_219 | http://www.w3.org/ns/shacl#datatype | http://www.w3.org/2001/XMLSchema#gYear | uri | null | null |
http://schema.org/Thing | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Thing_property_4 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_225 | http://www.w3.org/ns/shacl#path | http://schema.org/memberOf | uri | null | null |
http://schema.org/CreativeWork | http://yago-knowledge.org/schema#fromClass | http://www.wikidata.org/entity/Q386724 | uri | null | null |
http://yago-knowledge.org/schema#Newspaper_property_55 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P859 | uri | null | null |
http://yago-knowledge.org/schema#Thing_property_4 | http://www.w3.org/ns/shacl#path | http://www.w3.org/2000/01/rdf-schema#label | uri | null | null |
http://yago-knowledge.org/schema#PerformingGroup_property_190 | http://www.w3.org/ns/shacl#path | http://yago-knowledge.org/resource/notableWork | uri | null | null |
http://yago-knowledge.org/schema#Movie_property_87 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P495 | uri | null | null |
http://yago-knowledge.org/schema#list_81 | http://www.w3.org/1999/02/22-rdf-syntax-ns#rest | http://yago-knowledge.org/schema#list_83 | uri | null | null |
http://yago-knowledge.org/schema#list_152 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_153 | uri | null | null |
http://schema.org/Movie | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Movie_property_86 | uri | null | null |
http://yago-knowledge.org/schema#list_204 | http://www.w3.org/1999/02/22-rdf-syntax-ns#rest | http://yago-knowledge.org/schema#list_206 | uri | null | null |
http://yago-knowledge.org/schema#list_114 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_115 | uri | null | null |
http://schema.org/Continent | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/shacl#NodeShape | uri | null | null |
http://yago-knowledge.org/schema#Organization_property_176 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P1278 | uri | null | null |
http://schema.org/Movie | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Movie_property_95 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_222 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P21 | uri | null | null |
http://yago-knowledge.org/schema#Event_property_133 | http://www.w3.org/ns/shacl#or | http://yago-knowledge.org/schema#list_134 | uri | null | null |
http://yago-knowledge.org/schema#Organization_property_149 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P131 | uri | null | null |
http://yago-knowledge.org/schema#list_277 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_278 | uri | null | null |
http://schema.org/MusicGroup | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#MusicGroup_property_191 | uri | null | null |
http://yago-knowledge.org/schema#AdministrativeArea_property_256 | http://www.w3.org/ns/shacl#class | http://schema.org/Organization | uri | null | null |
http://yago-knowledge.org/schema#list_291 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_292 | uri | null | null |
http://yago-knowledge.org/schema#HumanMadeGeographicalEntity_property_262 | http://www.w3.org/ns/shacl#or | http://yago-knowledge.org/schema#list_263 | uri | null | null |
http://yago-knowledge.org/schema#CreativeWork_property_21 | http://www.w3.org/ns/shacl#or | http://yago-knowledge.org/schema#list_22 | uri | null | null |
http://schema.org/MusicGroup | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#MusicGroup_property_192 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_197 | http://www.w3.org/ns/shacl#class | http://schema.org/Organization | uri | null | null |
http://yago-knowledge.org/schema#HumanMadeGeographicalEntity_property_268 | http://www.w3.org/ns/shacl#maxCount | 1 | literal | http://www.w3.org/2001/XMLSchema#integer | null |
http://yago-knowledge.org/schema#element_44 | http://www.w3.org/ns/shacl#class | http://schema.org/Organization | uri | null | null |
http://yago-knowledge.org/schema#element_32 | http://www.w3.org/ns/shacl#datatype | http://www.w3.org/2001/XMLSchema#date | uri | null | null |
http://schema.org/PerformingGroup | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#PerformingGroup_property_190 | uri | null | null |
http://yago-knowledge.org/schema#Product_property_276 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P577 | uri | null | null |
http://yago-knowledge.org/schema#Creator_property_229 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P941 | uri | null | null |
http://yago-knowledge.org/schema#list_110 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_111 | uri | null | null |
http://schema.org/Event | http://www.w3.org/2002/07/owl#disjointWith | http://schema.org/CreativeWork | uri | null | null |
http://yago-knowledge.org/schema#Class_property_8 | http://www.w3.org/ns/shacl#path | http://schema.org/alternateName | uri | null | null |
http://yago-knowledge.org/schema#CreativeWork_property_38 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P407 | uri | null | null |
http://yago-knowledge.org/schema#AdministrativeArea_property_253 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P1082 | uri | null | null |
http://yago-knowledge.org/schema#Book_property_41 | http://www.w3.org/ns/shacl#path | http://schema.org/editor | uri | null | null |
http://yago-knowledge.org/schema#Person_property_193 | http://www.w3.org/ns/shacl#path | http://yago-knowledge.org/resource/beliefSystem | uri | null | null |
http://yago-knowledge.org/schema#AdministrativeArea_property_256 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P463 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_193 | http://www.w3.org/ns/shacl#class | http://yago-knowledge.org/resource/BeliefSystem | uri | null | null |
http://yago-knowledge.org/schema#Book_property_41 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P98 | uri | null | null |
http://yago-knowledge.org/schema#AstronomicalObject_property_248 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P2583 | uri | null | null |
http://yago-knowledge.org/schema#Organization_property_166 | http://www.w3.org/ns/shacl#or | http://yago-knowledge.org/schema#list_167 | uri | null | null |
http://yago-knowledge.org/schema#CreativeWork_property_38 | http://www.w3.org/ns/shacl#class | http://schema.org/Language | uri | null | null |
http://yago-knowledge.org/schema#Person_property_194 | http://www.w3.org/ns/shacl#path | http://yago-knowledge.org/resource/academicDegree | uri | null | null |
http://yago-knowledge.org/schema#Class_property_9 | http://www.w3.org/ns/shacl#uniqueLang | true | literal | http://www.w3.org/2001/XMLSchema#boolean | null |
http://schema.org/Movie | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://schema.org/CreativeWork | uri | null | null |
http://yago-knowledge.org/schema#Person_property_195 | http://www.w3.org/ns/shacl#class | http://schema.org/Organization | uri | null | null |
http://yago-knowledge.org/resource/SportsPerson | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#SportsPerson_property_234 | uri | null | null |
http://yago-knowledge.org/schema#list_29 | http://www.w3.org/1999/02/22-rdf-syntax-ns#first | http://yago-knowledge.org/schema#element_30 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_209 | http://www.w3.org/ns/shacl#path | http://schema.org/birthPlace | uri | null | null |
http://yago-knowledge.org/schema#element_290 | http://www.w3.org/ns/shacl#datatype | http://www.w3.org/2001/XMLSchema#dateTime | uri | null | null |
http://yago-knowledge.org/resource/Way | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class | uri | null | null |
http://yago-knowledge.org/schema#CreativeWork_property_28 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P571 | uri | null | null |
http://yago-knowledge.org/schema#Class_property_9 | http://www.w3.org/ns/shacl#path | http://www.w3.org/2000/01/rdf-schema#comment | uri | null | null |
http://schema.org/Place | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Place_property_239 | uri | null | null |
http://schema.org/Event | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class | uri | null | null |
http://schema.org/Person | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Person_property_224 | uri | null | null |
http://yago-knowledge.org/schema#Person_property_228 | http://www.w3.org/ns/shacl#path | http://schema.org/spouse | uri | null | null |
http://yago-knowledge.org/resource/Award | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class | uri | null | null |
http://yago-knowledge.org/schema#EducationalOrganization_property_187 | http://www.w3.org/ns/shacl#datatype | http://www.w3.org/2001/XMLSchema#decimal | uri | null | null |
http://yago-knowledge.org/schema#element_282 | http://www.w3.org/ns/shacl#datatype | http://www.w3.org/2001/XMLSchema#gYearMonth | uri | null | null |
http://yago-knowledge.org/resource/AstronomicalObject | http://yago-knowledge.org/schema#fromClass | http://www.wikidata.org/entity/Q6999 | uri | null | null |
http://yago-knowledge.org/schema#AstronomicalObject_property_243 | http://www.w3.org/ns/shacl#path | http://yago-knowledge.org/resource/parentBody | uri | null | null |
http://yago-knowledge.org/resource/Gender | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class | uri | null | null |
http://yago-knowledge.org/schema#Academic_property_232 | http://www.w3.org/ns/shacl#class | http://schema.org/Person | uri | null | null |
http://yago-knowledge.org/schema#Person_property_221 | http://www.w3.org/ns/shacl#class | http://schema.org/Place | uri | null | null |
http://yago-knowledge.org/schema#FictionalEntity_property_97 | http://www.w3.org/ns/shacl#class | http://schema.org/CreativeWork | uri | null | null |
http://schema.org/BodyOfWater | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class | uri | null | null |
http://yago-knowledge.org/resource/AstronomicalObject | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/shacl#NodeShape | uri | null | null |
http://schema.org/Product | http://www.w3.org/2002/07/owl#disjointWith | http://schema.org/Taxon | uri | null | null |
http://yago-knowledge.org/resource/Way | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Way_property_270 | uri | null | null |
http://schema.org/Person | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/ns/shacl#NodeShape | uri | null | null |
http://schema.org/Person | http://www.w3.org/ns/shacl#property | http://yago-knowledge.org/schema#Person_property_226 | uri | null | null |
http://yago-knowledge.org/schema#AdministrativeArea_property_249 | http://www.w3.org/ns/shacl#maxCount | 1 | literal | http://www.w3.org/2001/XMLSchema#integer | null |
http://schema.org/Corporation | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class | uri | null | null |
http://yago-knowledge.org/schema#endDateAnnotation | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/quant/P582 | uri | null | null |
http://yago-knowledge.org/schema#FictionalEntity_property_97 | http://yago-knowledge.org/schema#fromProperty | http://www.wikidata.org/prop/direct/P4584 | uri | null | null |
http://yago-knowledge.org/schema#element_53 | http://www.w3.org/ns/shacl#class | http://schema.org/Person | uri | null | null |
http://yago-knowledge.org/schema#MusicComposition_property_80 | http://www.w3.org/ns/shacl#or | http://yago-knowledge.org/schema#list_81 | uri | null | null |
YAGO 4.5 Full
Dataset Description
Complete YAGO 4.5 dataset with all facts
Original Source: https://yago-knowledge.org/data/yago4.5/yago-4.5.0.2.zip
Dataset Summary
This dataset contains RDF triples from YAGO 4.5 Full converted to HuggingFace dataset format for easy use in machine learning pipelines.
- Format: Originally turtle, converted to HuggingFace Dataset
- Size: 15.0 GB (extracted)
- Entities: ~50M
- Triples: ~109M
- Original License: CC BY-SA 3.0
Recommended Use
Complete entity information with type hierarchies
Notes\n\nYAGO 4.5 complete version. Format changed to ZIP distribution with multiple files.
Dataset Format: Lossless RDF Representation
This dataset uses a standard lossless format for representing RDF (Resource Description Framework) data in HuggingFace Datasets. All semantic information from the original RDF knowledge graph is preserved, enabling perfect round-trip conversion between RDF and HuggingFace formats.
Schema
Each RDF triple is represented as a row with 6 fields:
| Field | Type | Description | Example |
|---|---|---|---|
subject |
string | Subject of the triple (URI or blank node) | "http://schema.org/Person" |
predicate |
string | Predicate URI | "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" |
object |
string | Object of the triple | "John Doe" or "http://schema.org/Thing" |
object_type |
string | Type of object: "uri", "literal", or "blank_node" |
"literal" |
object_datatype |
string | XSD datatype URI (for typed literals) | "http://www.w3.org/2001/XMLSchema#integer" |
object_language |
string | Language tag (for language-tagged literals) | "en" |
Example: RDF Triple Representation
Original RDF (Turtle):
<http://example.org/John> <http://schema.org/name> "John Doe"@en .
HuggingFace Dataset Row:
{
"subject": "http://example.org/John",
"predicate": "http://schema.org/name",
"object": "John Doe",
"object_type": "literal",
"object_datatype": None,
"object_language": "en"
}
Loading the Dataset
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("CleverThis/yago-4.5-full")
# Access the data
data = dataset["data"]
# Iterate over triples
for row in data:
subject = row["subject"]
predicate = row["predicate"]
obj = row["object"]
obj_type = row["object_type"]
print(f"Triple: ({subject}, {predicate}, {obj})")
print(f" Object type: {obj_type}")
if row["object_language"]:
print(f" Language: {row['object_language']}")
if row["object_datatype"]:
print(f" Datatype: {row['object_datatype']}")
Converting Back to RDF
The dataset can be converted back to any RDF format (Turtle, N-Triples, RDF/XML, etc.) with zero information loss:
from datasets import load_dataset
from rdflib import Graph, URIRef, Literal, BNode
def convert_to_rdf(dataset_name, output_file="output.ttl", split="data"):
"""Convert HuggingFace dataset back to RDF Turtle format."""
# Load dataset
dataset = load_dataset(dataset_name)
# Create RDF graph
graph = Graph()
# Convert each row to RDF triple
for row in dataset[split]:
# Subject
if row["subject"].startswith("_:"):
subject = BNode(row["subject"][2:])
else:
subject = URIRef(row["subject"])
# Predicate (always URI)
predicate = URIRef(row["predicate"])
# Object (depends on object_type)
if row["object_type"] == "uri":
obj = URIRef(row["object"])
elif row["object_type"] == "blank_node":
obj = BNode(row["object"][2:])
elif row["object_type"] == "literal":
if row["object_datatype"]:
obj = Literal(row["object"], datatype=URIRef(row["object_datatype"]))
elif row["object_language"]:
obj = Literal(row["object"], lang=row["object_language"])
else:
obj = Literal(row["object"])
graph.add((subject, predicate, obj))
# Serialize to Turtle (or any RDF format)
graph.serialize(output_file, format="turtle")
print(f"Exported {len(graph)} triples to {output_file}")
return graph
# Usage
graph = convert_to_rdf("CleverThis/yago-4.5-full", "reconstructed.ttl")
Information Preservation Guarantee
This format preserves 100% of RDF information:
- β URIs: Exact string representation preserved
- β Literals: Full text content preserved
- β
Datatypes: XSD and custom datatypes preserved (e.g.,
xsd:integer,xsd:dateTime) - β
Language Tags: BCP 47 language tags preserved (e.g.,
@en,@fr,@ja) - β Blank Nodes: Node structure preserved (identifiers may change but graph isomorphism maintained)
Round-trip guarantee: Original RDF β HuggingFace β Reconstructed RDF produces semantically identical graphs.
Querying the Dataset
You can filter and query the dataset like any HuggingFace dataset:
from datasets import load_dataset
dataset = load_dataset("CleverThis/yago-4.5-full")
# Find all triples with English literals
english_literals = dataset["data"].filter(
lambda x: x["object_type"] == "literal" and x["object_language"] == "en"
)
print(f"Found {len(english_literals)} English literals")
# Find all rdf:type statements
type_statements = dataset["data"].filter(
lambda x: "rdf-syntax-ns#type" in x["predicate"]
)
print(f"Found {len(type_statements)} type statements")
# Convert to Pandas for analysis
import pandas as pd
df = dataset["data"].to_pandas()
# Analyze predicate distribution
print(df["predicate"].value_counts())
Dataset Format
The dataset contains all triples in a single data split, suitable for machine learning tasks such as:
- Knowledge graph completion
- Link prediction
- Entity embedding
- Relation extraction
- Graph neural networks
Format Specification
For complete technical documentation of the RDF-to-HuggingFace format, see:
π RDF to HuggingFace Format Specification
The specification includes:
- Detailed schema definition
- All RDF node type mappings
- Performance benchmarks
- Edge cases and limitations
- Complete code examples
Conversion Metadata
- Source Format: turtle
- Original Size: 15.0 GB
- Conversion Tool: CleverErnie RDF Pipeline
- Format Version: 1.0
- Conversion Date: 2025-11-07
Citation
If you use this dataset, please cite the original source:
Original Dataset: YAGO 4.5 Full URL: https://yago-knowledge.org/data/yago4.5/yago-4.5.0.2.zip License: CC BY-SA 3.0
Dataset Preparation
This dataset was prepared using the CleverErnie GISM framework:
# Download original dataset
cleverernie download-dataset -d yago-4.5-full
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/yago-4.5-full/[file] \
hf_datasets/yago-4.5-full \
--format turtle
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset yago-4.5-full
Additional Information
Original Source
https://yago-knowledge.org/data/yago4.5/yago-4.5.0.2.zip
Conversion Details
- Converted using: CleverErnie GISM
- Conversion script:
scripts/convert_rdf_to_hf_dataset.py - Dataset format: Single 'data' split with all triples
Maintenance
This dataset is maintained by the CleverThis organization.
- Downloads last month
- 10