Datasets:
subject stringlengths 22 644 | predicate stringclasses 122 values | object stringlengths 1 723 | object_type stringclasses 2 values | object_datatype stringclasses 6 values | object_language stringclasses 498 values |
|---|---|---|---|---|---|
http://yago-knowledge.org/resource/Reception_Q66317493 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Party | uri | null | null |
http://yago-knowledge.org/resource/Nebenhaushalt_Q1973350 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Planungsrecht_Q1628720 | uri | null | null |
http://yago-knowledge.org/resource/Giro_di_Lombardia | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Single-Day_Road_Race_Q2912397 | uri | null | null |
http://yago-knowledge.org/resource/Transport_Aircraft_Q15126142 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Purpose-Designed_Aircraft_Q19403027 | uri | null | null |
http://yago-knowledge.org/resource/Aromatase_excess_syndrome | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Precocious_Puberty_In_Female_Q55788177 | uri | null | null |
http://yago-knowledge.org/resource/Railbus | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Railcars_Q7132141 | uri | null | null |
http://yago-knowledge.org/resource/Liaison_aircraft | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/STOL | uri | null | null |
http://yago-knowledge.org/resource/Citation_index | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Bibliographic_index | uri | null | null |
http://yago-knowledge.org/resource/Rough_diamond | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Diamond | uri | null | null |
http://yago-knowledge.org/resource/Dithyramb | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Eulogy | uri | null | null |
http://yago-knowledge.org/resource/Politifact_U0027_S_Lie_Of_The_Year_Q38163431 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Political_buzzword | uri | null | null |
http://yago-knowledge.org/resource/Louisville_International_Open_Q20710122 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Wta_Tennis_Tournament_Q26836193 | uri | null | null |
http://yago-knowledge.org/resource/Municipal_Council_Of_Geri_Municipality_Elections_Q94620977 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Cypriot_Municipal_Councils_Elections_Q92282921 | uri | null | null |
http://yago-knowledge.org/resource/Rosette__u0028_award_u0029_ | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Ribbon | uri | null | null |
http://yago-knowledge.org/resource/T_Cell_Proliferation_Q14874277 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/T_Cell_Activation_Q14863969 | uri | null | null |
http://yago-knowledge.org/resource/Picture_Collection_Q110301894 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Collection__u0028_museum_u0029_ | uri | null | null |
http://yago-knowledge.org/resource/Romance_Car_Q11350713 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Rolling_stock | uri | null | null |
http://yago-knowledge.org/resource/Flurbiprofen | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Nonsteroidal_anti-inflammatory_drug | uri | null | null |
http://yago-knowledge.org/resource/Forest_Heath_District_Council_elections | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Non-Metropolitan_District_Council_Election_Q107358924 | uri | null | null |
http://yago-knowledge.org/resource/Peripheral | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Computer_hardware | uri | null | null |
http://yago-knowledge.org/resource/Third_Saturday_In_November_Q51156587 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Third_Saturday_Of_The_Month_Q51119382 | uri | null | null |
http://yago-knowledge.org/resource/Training_ship | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Ship | uri | null | null |
http://yago-knowledge.org/resource/Ensemble_De_Meubles_Q112135092 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Furnishing_Q31807746 | uri | null | null |
http://yago-knowledge.org/resource/Strade_Bianche | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/1_U002E_Uwt_Q22231106 | uri | null | null |
http://yago-knowledge.org/resource/Varicellovirus_Infectious_Disease_Q55009466 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Herpesviridae_Infectious_Disease_Q18975237 | uri | null | null |
http://yago-knowledge.org/resource/Printer_u0027_s_mark | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Mark_Q57248625 | uri | null | null |
http://yago-knowledge.org/resource/Church_Magazine_Q110479257 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Periodical_literature | uri | null | null |
http://yago-knowledge.org/resource/Childbirth | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Multi-Multicellular_Organism_Process_Q22294339 | uri | null | null |
http://yago-knowledge.org/resource/Mini_album | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Release_Group_Q108346082 | uri | null | null |
http://yago-knowledge.org/resource/Medals_of_Honor__u0028_Japan_u0029_ | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Award_Medal_Q57082336 | uri | null | null |
http://yago-knowledge.org/resource/Image_macro | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Digital_image | uri | null | null |
http://yago-knowledge.org/resource/Yearbook_Q10283140 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Annual_publication | uri | null | null |
http://yago-knowledge.org/resource/Laryngeal_Carcinoma_Q18555132 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Laryngeal_cancer | uri | null | null |
http://yago-knowledge.org/resource/High-performance_liquid_chromatography | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Column_chromatography | uri | null | null |
http://yago-knowledge.org/resource/Negative_Regulation_Of_Toll-Like_Receptor_6_Signaling_Pathway_Q22303759 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Regulation_Of_Toll-Like_Receptor_6_Signaling_Pathway_Q22303758 | uri | null | null |
http://yago-knowledge.org/resource/Preserved_Diesel_Locomotive_Q29996089 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Preserved_Locomotive_Q27955407 | uri | null | null |
http://yago-knowledge.org/resource/Idea_Store | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Public_library | uri | null | null |
http://yago-knowledge.org/resource/KanyΓ‘hte_U0027__KΓ‘_U0027_Nowa_U0027__Q116970830 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Rattle__u0028_percussion_instrument_u0029_ | uri | null | null |
http://yago-knowledge.org/resource/Costa_Rica_National_Road_Cycling_Championships_-_Men_U23_Itt_Q27048385 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Cn_Q22231119 | uri | null | null |
http://yago-knowledge.org/resource/French_Chess_Championship | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/National_championship | uri | null | null |
http://yago-knowledge.org/resource/Kepi | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Visor_Cap_Q58914721 | uri | null | null |
http://yago-knowledge.org/resource/Vignette__u0028_entertainment_u0029_ | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://schema.org/CreativeWork | uri | null | null |
http://yago-knowledge.org/resource/Fourth-generation_programming_language | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Programming_language | uri | null | null |
http://yago-knowledge.org/resource/Truck | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Multi-Track_Vehicle_Q12060681 | uri | null | null |
http://yago-knowledge.org/resource/Skin__u0028_computing_u0029_ | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Software_Add-On_Q70383937 | 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://yago-knowledge.org/resource/Clostridium_Difficile_Infection_Q56150863 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Clostridium_Infectious_Disease_Q18975529 | uri | null | null |
http://yago-knowledge.org/resource/2020_BaΕtyk-Karkonosze_Tour_Q99229480 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/2_U002E_2_Q22231113 | uri | null | null |
http://yago-knowledge.org/resource/Predella | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Furniture_Component_Q28803767 | uri | null | null |
http://yago-knowledge.org/resource/Open_standard | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Specification__u0028_technical_standard_u0029_ | uri | null | null |
http://yago-knowledge.org/resource/Book_trade_in_the_United_Kingdom | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Bookselling | uri | null | null |
http://yago-knowledge.org/resource/2016_Circuit_Des_Ardennes_Q29255090 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/2_U002E_2_Q22231113 | uri | null | null |
http://yago-knowledge.org/resource/Modulation_By_Virus_Of_Host_Catalytic_Activity_Q22249944 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Modulation_By_Virus_Of_Host_Process_Q14818042 | uri | null | null |
http://yago-knowledge.org/resource/Suffrage_By_Country_Q114845130 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Suffrage | uri | null | null |
http://yago-knowledge.org/resource/2020_Tour_Of_Bulgaria_Q99392587 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/2_U002E_2_Q22231113 | uri | null | null |
http://yago-knowledge.org/resource/First_Saturday_In_December_Q44404737 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Saturday_In_December_Q55550852 | uri | null | null |
http://yago-knowledge.org/resource/ZgΕoszenie_Do_Ewidencji_DziaΕalnoΕci_Gospodarczej_Q872919 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Administrative_act | uri | null | null |
http://yago-knowledge.org/resource/Charter_Of_The_Communist_Party_Of_The_Soviet_Union_Q4478159 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Q115433383 | uri | null | null |
http://yago-knowledge.org/resource/Pericardial_window | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Cardiac_surgery | uri | null | null |
http://yago-knowledge.org/resource/Compressor | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Pump | uri | null | null |
http://yago-knowledge.org/resource/Wuxi_Classic | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Snooker_Tournament_Q17299750 | uri | null | null |
http://yago-knowledge.org/resource/Malignant_Tumor_Of_Nasopharynx_Q56014512 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Nasopharyngeal_Disease_Q18558167 | uri | null | null |
http://yago-knowledge.org/resource/Isle_of_Wight_Council_elections | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Unitary_Authority_Council_Election_Q107637253 | uri | null | null |
http://yago-knowledge.org/resource/Epiphora__u0028_medicine_u0029_ | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Eye_Symptom_Q102186610 | uri | null | null |
http://yago-knowledge.org/resource/Women_U0027_S_Tour_Down_Under_2023_Q116203516 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/2_U002E_Wwt_Q23005603 | uri | null | null |
http://yago-knowledge.org/resource/ROM_image | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Disk_image | uri | null | null |
http://yago-knowledge.org/resource/Belgian_International | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Badminton_Tournament_Q13357858 | uri | null | null |
http://yago-knowledge.org/resource/Adult-onset_Still_u0027_s_disease | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Still_U0027_S_Disease_Q3281303 | uri | null | null |
http://yago-knowledge.org/resource/Conference_Paper_Q23927052 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Scholarly_Work_Q55915575 | uri | null | null |
http://yago-knowledge.org/resource/Sessile_serrated_lesion | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Colorectal_adenoma | uri | null | null |
http://yago-knowledge.org/resource/I_Annotate_Q52045923 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Convention__u0028_meeting_u0029_ | uri | null | null |
http://yago-knowledge.org/resource/Christmas_lights | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Christmas_decoration | uri | null | null |
http://yago-knowledge.org/resource/Luge | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Sledding | uri | null | null |
http://yago-knowledge.org/resource/Google_Chrome_extension | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Browser_extension | uri | null | null |
http://yago-knowledge.org/resource/Hormone_Activity_Q14758899 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Receptor_Ligand_Activity_Q14907861 | uri | null | null |
http://yago-knowledge.org/resource/Stun_And_Bleed_Vessel_Q108815497 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Cargo_ship | uri | null | null |
http://yago-knowledge.org/resource/Point-to-Point_Tunneling_Protocol | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Tunneling_protocol | uri | null | null |
http://yago-knowledge.org/resource/Virtual_assistant | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Software_agent | uri | null | null |
http://yago-knowledge.org/resource/Acrosome_reaction | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Reproductive_Process_Q14885910 | uri | null | null |
http://yago-knowledge.org/resource/Biodiversity_Database_Q113685974 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Biological_database | uri | null | null |
http://yago-knowledge.org/resource/Bay-class_tugboat | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Icebreaker | uri | null | null |
http://yago-knowledge.org/resource/Platform_game | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Action_game | uri | null | null |
http://yago-knowledge.org/resource/Master_Of_Information_Technology_Q65099057 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Master_u0027_s_degree | uri | null | null |
http://yago-knowledge.org/resource/Original_net_animation | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Animated_film | uri | null | null |
http://yago-knowledge.org/resource/Figurine | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Statue | uri | null | null |
http://yago-knowledge.org/resource/Patent_application | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Document | uri | null | null |
http://yago-knowledge.org/resource/Vidimus_Q2523079 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Deed | uri | null | null |
http://yago-knowledge.org/resource/Mixed_Testicular_Germ_Cell_Tumor_Q18556462 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Testicular_Malignant_Germ_Cell_Cancer_Q18556864 | uri | null | null |
http://yago-knowledge.org/resource/Collectible_miniatures_game | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Miniatures_game | uri | null | null |
http://yago-knowledge.org/resource/Chronic_histiocytic_intervillositis | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Placentitis | uri | null | null |
http://yago-knowledge.org/resource/Asymptomatic_Hiv_Infection_Q5915685 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Human_Immunodeficiency_Virus_Infectious_Disease_Q18556697 | uri | null | null |
http://yago-knowledge.org/resource/Tour_of_the_Basque_Country | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/2_U002E_Hc_Q22231109 | uri | null | null |
http://yago-knowledge.org/resource/Parody_film | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Comedy_film | uri | null | null |
http://yago-knowledge.org/resource/Technical_communication_tools | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Communication_software | uri | null | null |
http://yago-knowledge.org/resource/UCI_Cycling_Esports_World_Championships | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Single-Day_Road_Race_Q2912397 | uri | null | null |
http://yago-knowledge.org/resource/2021_New_Zealand_Cycle_Classic_Q104218473 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/2_U002E_2_Q22231113 | uri | null | null |
http://yago-knowledge.org/resource/Peru_Junior_International_Badminton_Championships_Q15941614 | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Badminton_Tournament_Q13357858 | uri | null | null |
http://yago-knowledge.org/resource/Replicator__u0028_Stargate_u0029_ | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Extraterrestrials_in_fiction | uri | null | null |
http://yago-knowledge.org/resource/Women_u0027_s_World_Chess_Championship | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/World_Chess_Championship | uri | null | null |
http://yago-knowledge.org/resource/Cordless_telephone | http://www.w3.org/2000/01/rdf-schema#subClassOf | http://yago-knowledge.org/resource/Telephone | uri | null | null |
YAGO 4.5
Dataset Description
Knowledge base combining Wikipedia, WordNet, and GeoNames
Original Source: https://yago-knowledge.org/data/yago4.5/yago-4.5.0.2-tiny.zip
Dataset Summary
This dataset contains RDF triples from YAGO 4.5 converted to HuggingFace dataset format for easy use in machine learning pipelines.
- Format: Originally turtle, converted to HuggingFace Dataset
- Size: 10.0 GB (extracted)
- Entities: ~2.5M
- Triples: ~50M
- Original License: CC BY-SA 3.0
Recommended Use
Balanced size/quality, general knowledge, initial training
Notes\n\nYAGO 4.5 tiny version. Good balance for initial experiments. ZIP distribution.
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")
# 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", "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")
# 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: 10.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 URL: https://yago-knowledge.org/data/yago4.5/yago-4.5.0.2-tiny.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
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/yago-4.5/[file] \
hf_datasets/yago-4.5 \
--format turtle
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset yago-4.5
Additional Information
Original Source
https://yago-knowledge.org/data/yago4.5/yago-4.5.0.2-tiny.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
- 126