Datasets:
subject
stringlengths 29
212
| predicate
stringclasses 633
values | object
stringlengths 11
1.3k
| object_type
stringclasses 1
value | object_datatype
stringclasses 0
values | object_language
stringclasses 0
values |
|---|---|---|---|---|---|
http://dbpedia.org/resource/'Neile_Alina_'Mantoa_Fanana
|
http://dbpedia.org/ontology/occupation
|
http://dbpedia.org/resource/Ombudsman
|
uri
| null | null |
http://dbpedia.org/resource/...One_Third_of_a_Nation...
|
http://dbpedia.org/ontology/starring
|
http://dbpedia.org/resource/Sidney_Lumet
|
uri
| null | null |
http://dbpedia.org/resource/1864_(TV_series)
|
http://dbpedia.org/ontology/director
|
http://dbpedia.org/resource/Ole_Bornedal
|
uri
| null | null |
http://dbpedia.org/resource/1001_Woodward
|
http://dbpedia.org/ontology/architect
|
http://dbpedia.org/resource/SmithGroupJJR
|
uri
| null | null |
http://dbpedia.org/resource/(394130)_2006_HY51
|
http://dbpedia.org/ontology/discoverer
|
http://dbpedia.org/resource/Lincoln_Near-Earth_Asteroid_Research
|
uri
| null | null |
http://dbpedia.org/resource/10th_Indian_Motor_Brigade
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/British_Crown
|
uri
| null | null |
http://dbpedia.org/resource/16th_Rajputs_(The_Lucknow_Regiment)
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Indian_Mutiny
|
uri
| null | null |
http://dbpedia.org/resource/(Ghost)_Riders_in_the_Sky:_A_Cowboy_Legend__Ghost_Riders_in_the_Sky__1
|
http://dbpedia.org/ontology/genre
|
http://dbpedia.org/resource/Country_rock
|
uri
| null | null |
http://dbpedia.org/resource/103_series
|
http://dbpedia.org/ontology/manufacturer
|
http://dbpedia.org/resource/Hitachi
|
uri
| null | null |
http://dbpedia.org/resource/1890_New_Zealand_general_election
|
http://dbpedia.org/ontology/secondLeader
|
http://dbpedia.org/resource/Harry_Atkinson
|
uri
| null | null |
http://dbpedia.org/resource/1894_All-Ireland_Senior_Football_Championship_Final
|
http://dbpedia.org/ontology/city
|
http://dbpedia.org/resource/Dublin
|
uri
| null | null |
http://dbpedia.org/resource/1896β97_Blackpool_F.C._season
|
http://dbpedia.org/ontology/position
|
http://dbpedia.org/resource/1896β97_Football_League
|
uri
| null | null |
http://dbpedia.org/resource/136th_Heavy_Anti-Aircraft_Regiment,_Royal_Artillery
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Operation_Diver
|
uri
| null | null |
http://dbpedia.org/resource/100_Mile_House
|
http://dbpedia.org/ontology/type
|
http://dbpedia.org/resource/District_municipality
|
uri
| null | null |
http://dbpedia.org/resource/160th_Regiment_Royal_Armoured_Corps
|
http://dbpedia.org/ontology/type
|
http://dbpedia.org/resource/Armoured_warfare
|
uri
| null | null |
http://dbpedia.org/resource/1792β93_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_representatives_from_Delaware
|
uri
| null | null |
http://dbpedia.org/resource/15th_Operations_Group
|
http://dbpedia.org/ontology/commandStructure
|
http://dbpedia.org/resource/15th_Wing
|
uri
| null | null |
http://dbpedia.org/resource/10,000_Nights_Nowhere
|
http://dbpedia.org/ontology/starring
|
http://dbpedia.org/resource/Najwa_Nimri
|
uri
| null | null |
http://dbpedia.org/resource/1898_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_representatives_from_Wisconsin
|
uri
| null | null |
http://dbpedia.org/resource/100th_Regiment_of_Foot_(Prince_Regent's_County_of_Dublin_Regiment)
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/United_Kingdom_of_Britain_and_Ireland
|
uri
| null | null |
http://dbpedia.org/resource/1892β93_Sheffield_United_F.C._season__Ernest_Needham__1
|
http://dbpedia.org/ontology/currentMember
|
http://dbpedia.org/resource/Ernest_Needham
|
uri
| null | null |
http://dbpedia.org/resource/1,_2,_3,_Sun
|
http://dbpedia.org/ontology/writer
|
http://dbpedia.org/resource/Bertrand_Blier
|
uri
| null | null |
http://dbpedia.org/resource/14th_Infantry_Regiment_(United_States)
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Boxer_Rebellion
|
uri
| null | null |
http://dbpedia.org/resource/108th_Infantry
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/British_India
|
uri
| null | null |
http://dbpedia.org/resource/140_New_Montgomery
|
http://xmlns.com/foaf/0.1/homepage
|
https://140nm.com/%7C140NM.com
|
uri
| null | null |
http://dbpedia.org/resource/121st_Field_Artillery_Regiment_(United_States)
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/World_War_II
|
uri
| null | null |
http://dbpedia.org/resource/12th_Corps_(Yugoslav_Partisans)
|
http://dbpedia.org/ontology/militaryBranch
|
http://dbpedia.org/resource/Yugoslav_Partisan
|
uri
| null | null |
http://dbpedia.org/resource/1816β17_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/1816_New_York's_21st_congressional_district_special_election
|
uri
| null | null |
http://dbpedia.org/resource/1893_German_federal_election
|
http://dbpedia.org/ontology/affiliation
|
http://dbpedia.org/resource/German_Conservative_Party
|
uri
| null | null |
http://dbpedia.org/resource/151st_Theater_Information_Operations_Group
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/United_States
|
uri
| null | null |
http://dbpedia.org/resource/127th_Pennsylvania_Infantry_Regiment
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/United_States
|
uri
| null | null |
http://dbpedia.org/resource/149th_Street_station_(IRT_Third_Avenue_Line)
|
http://www.w3.org/2002/07/owl#differentFrom
|
http://dbpedia.org/resource/Third_Avenueβ149th_Street_station
|
uri
| null | null |
http://dbpedia.org/resource/173rd_Airborne_Brigade
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Operation_Hump
|
uri
| null | null |
http://dbpedia.org/resource/10_Squadron_SAAF
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/South_Africa
|
uri
| null | null |
http://dbpedia.org/resource/101st_Field_Artillery_Regiment
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Northern_France_Campaign
|
uri
| null | null |
http://dbpedia.org/resource/(Such_an)_Easy_Question
|
http://dbpedia.org/ontology/genre
|
http://dbpedia.org/resource/Rock_and_Roll
|
uri
| null | null |
http://dbpedia.org/resource/100_Girls
|
http://dbpedia.org/ontology/starring
|
http://dbpedia.org/resource/Larisa_Oleynik
|
uri
| null | null |
http://dbpedia.org/resource/12th_Signal_Brigade_(United_Kingdom)
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/United_Kingdom
|
uri
| null | null |
http://dbpedia.org/resource/'Aloua_Fetu'utolu_Tupou__Tenure__1
|
http://dbpedia.org/ontology/predecessor
|
http://dbpedia.org/resource/Tupou_VI
|
uri
| null | null |
http://dbpedia.org/resource/100th_New_York_Infantry_Regiment
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/United_States
|
uri
| null | null |
http://dbpedia.org/resource/10th_Class_Diaries
|
http://dbpedia.org/ontology/starring
|
http://dbpedia.org/resource/Himaja
|
uri
| null | null |
http://dbpedia.org/resource/(Up_A)_Lazy_River
|
http://dbpedia.org/ontology/composer
|
http://dbpedia.org/resource/Sidney_Arodin
|
uri
| null | null |
http://dbpedia.org/resource/16_(band)
|
http://dbpedia.org/ontology/recordLabel
|
http://dbpedia.org/resource/Relapse_Records
|
uri
| null | null |
http://dbpedia.org/resource/1836_United_States_presidential_election_in_North_Carolina
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/North_Carolina
|
uri
| null | null |
http://dbpedia.org/resource/.zm
|
http://dbpedia.org/ontology/type
|
http://dbpedia.org/resource/Country_code_top-level_domain
|
uri
| null | null |
http://dbpedia.org/resource/189th_Motorized_Infantry_Brigade_(People's_Republic_of_China)
|
http://dbpedia.org/ontology/militaryBranch
|
http://dbpedia.org/resource/People's_Liberation_Army_Ground_Force
|
uri
| null | null |
http://dbpedia.org/resource/1874β75_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_representatives_from_New_Hampshire
|
uri
| null | null |
http://dbpedia.org/resource/158th_Division_(Imperial_Japanese_Army)
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/Empire_of_Japan
|
uri
| null | null |
http://dbpedia.org/resource/130_William
|
http://dbpedia.org/ontology/location
|
http://dbpedia.org/resource/William_Street_(Manhattan)
|
uri
| null | null |
http://dbpedia.org/resource/1893β94_FC_Basel_season__Richard_Strub__1
|
http://dbpedia.org/ontology/currentMember
|
http://dbpedia.org/resource/Richard_Strub
|
uri
| null | null |
http://dbpedia.org/resource/15th_South_Carolina_Infantry_Regiment
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/South_Carolina
|
uri
| null | null |
http://dbpedia.org/resource/12_Rods
|
http://dbpedia.org/ontology/associatedBand
|
http://dbpedia.org/resource/Halloween,_Alaska
|
uri
| null | null |
http://dbpedia.org/resource/+Beryll
|
http://dbpedia.org/ontology/type
|
http://dbpedia.org/resource/Private_company
|
uri
| null | null |
http://dbpedia.org/resource/15th_Panzergrenadier_Division_(Wehrmacht)
|
http://dbpedia.org/ontology/notableCommander
|
http://dbpedia.org/resource/Ernst-GΓΌnther_Baade
|
uri
| null | null |
http://dbpedia.org/resource/176th_Wing
|
http://dbpedia.org/ontology/type
|
http://dbpedia.org/resource/Wing_(air_force_unit)
|
uri
| null | null |
http://dbpedia.org/resource/14th_Air_Army
|
http://dbpedia.org/ontology/commandStructure
|
http://dbpedia.org/resource/Carpathian_Military_District
|
uri
| null | null |
http://dbpedia.org/resource/1885_United_Kingdom_general_election
|
http://dbpedia.org/ontology/secondPopularVote
|
http://dbpedia.org/resource/Rhondda_(UK_Parliament_constituency)
|
uri
| null | null |
http://dbpedia.org/resource/10th_Pennsylvania_Reserve_Regiment
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Battle_of_Spotsylvania_Court_House
|
uri
| null | null |
http://dbpedia.org/resource/1._FC_KΓΆln_(women)__Jana_Beuschlein__1
|
http://dbpedia.org/ontology/team
|
http://dbpedia.org/resource/1._FC_KΓΆln_(women)
|
uri
| null | null |
http://dbpedia.org/resource/10cc
|
http://dbpedia.org/ontology/associatedBand
|
http://dbpedia.org/resource/The_Mindbenders
|
uri
| null | null |
http://dbpedia.org/resource/(386723)_2009_YE7
|
http://dbpedia.org/ontology/discoverer
|
http://dbpedia.org/resource/David_L._Rabinowitz
|
uri
| null | null |
http://dbpedia.org/resource/13th_Ohio_Infantry_Regiment
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Battle_of_Perryville
|
uri
| null | null |
http://dbpedia.org/resource/143_(film)
|
http://dbpedia.org/ontology/editing
|
http://dbpedia.org/resource/Marthand_K._Venkatesh
|
uri
| null | null |
http://dbpedia.org/resource/147th_Regiment_(United_States)
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Meuse-Argonne_Offensive
|
uri
| null | null |
http://dbpedia.org/resource/12th_Infantry_Regiment_(United_States)
|
http://dbpedia.org/ontology/type
|
http://dbpedia.org/resource/Infantry
|
uri
| null | null |
http://dbpedia.org/resource/.pro
|
http://xmlns.com/foaf/0.1/homepage
|
https://registry.pro/
|
uri
| null | null |
http://dbpedia.org/resource/1874_Italian_general_election
|
http://dbpedia.org/ontology/secondLeader
|
http://dbpedia.org/resource/Agostino_Depretis
|
uri
| null | null |
http://dbpedia.org/resource/13th_Ohio_Infantry_Regiment
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Battle_of_Missionary_Ridge
|
uri
| null | null |
http://dbpedia.org/resource/101st_Signal_Battalion
|
http://dbpedia.org/ontology/militaryBranch
|
http://dbpedia.org/resource/United_States_Army_National_Guard
|
uri
| null | null |
http://dbpedia.org/resource/149_Squadron,_Republic_of_Singapore_Air_Force
|
http://dbpedia.org/ontology/garrison
|
http://dbpedia.org/resource/Paya_Lebar_Air_Base
|
uri
| null | null |
http://dbpedia.org/resource/17th_Kentucky_Infantry_Regiment
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/Union_(American_Civil_War)
|
uri
| null | null |
http://dbpedia.org/resource/1802β03_United_States_Senate_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_senators_from_South_Carolina
|
uri
| null | null |
http://dbpedia.org/resource/1894_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_representatives_from_Minnesota
|
uri
| null | null |
http://dbpedia.org/resource/1896_Sanriku_earthquake
|
http://www.w3.org/2002/07/owl#differentFrom
|
http://dbpedia.org/resource/1896_Rikuu_earthquake
|
uri
| null | null |
http://dbpedia.org/resource/169th_Rifle_Division_(Soviet_Union)
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Battle_of_Stalingrad
|
uri
| null | null |
http://dbpedia.org/resource/11th_arrondissement_of_the_Littoral_Department
|
http://dbpedia.org/ontology/timeZone
|
http://dbpedia.org/resource/West_Africa_Time
|
uri
| null | null |
http://dbpedia.org/resource/117th_Indiana_Infantry_Regiment
|
http://dbpedia.org/ontology/militaryBranch
|
http://dbpedia.org/resource/Union_Army
|
uri
| null | null |
http://dbpedia.org/resource/12th_(Eastern)_Division
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/World_War_I
|
uri
| null | null |
http://dbpedia.org/resource/16th_Electronic_Warfare_Squadron
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Mediterranean_Theater_of_Operations
|
uri
| null | null |
http://dbpedia.org/resource/(Theme_From)_The_Monkees
|
http://dbpedia.org/ontology/producer
|
http://dbpedia.org/resource/Jack_Keller_(songwriter)
|
uri
| null | null |
http://dbpedia.org/resource/00_Schneider_β_Jagd_auf_Nihil_Baxter
|
http://dbpedia.org/ontology/writer
|
http://dbpedia.org/resource/Helge_Schneider
|
uri
| null | null |
http://dbpedia.org/resource/(I_Don't_Need_You_To)_Set_Me_Free
|
http://dbpedia.org/ontology/writer
|
http://dbpedia.org/resource/Nick_Cave
|
uri
| null | null |
http://dbpedia.org/resource/15th_Panzergrenadier_Division_(Wehrmacht)
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Battle_of_Monte_Cassino
|
uri
| null | null |
http://dbpedia.org/resource/1890β91_Dumbarton_F.C._season
|
http://dbpedia.org/ontology/league
|
http://dbpedia.org/resource/1890β91_Scottish_Football_League
|
uri
| null | null |
http://dbpedia.org/resource/13th_Arkansas_Infantry_Regiment
|
http://dbpedia.org/ontology/country
|
http://dbpedia.org/resource/Confederate_States_of_America
|
uri
| null | null |
http://dbpedia.org/resource/113th_Heavy_Anti-Aircraft_Regiment,_Royal_Artillery
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/The_Blitz
|
uri
| null | null |
http://dbpedia.org/resource/1500_or_Nothin'
|
http://dbpedia.org/ontology/genre
|
http://dbpedia.org/resource/Hip_hop_music
|
uri
| null | null |
http://dbpedia.org/resource/1838β39_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_representatives_from_South_Carolina
|
uri
| null | null |
http://dbpedia.org/resource/002_Operazione_Luna
|
http://dbpedia.org/ontology/writer
|
http://dbpedia.org/resource/Amedeo_Sollazzo
|
uri
| null | null |
http://dbpedia.org/resource/1765_in_architecture
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/Structures_completed
|
uri
| null | null |
http://dbpedia.org/resource/(I_Like)_The_Way_You_Love_Me
|
http://dbpedia.org/ontology/writer
|
http://dbpedia.org/resource/Michael_Jackson
|
uri
| null | null |
http://dbpedia.org/resource/176th_Rifle_Division
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Operation_Barbarossa
|
uri
| null | null |
http://dbpedia.org/resource/1893_New_Zealand_general_election
|
http://dbpedia.org/ontology/secondLeader
|
http://dbpedia.org/resource/William_Rolleston
|
uri
| null | null |
http://dbpedia.org/resource/10th_Mountain_Division
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Operation_Mountain_Resolve
|
uri
| null | null |
http://dbpedia.org/resource/10th_Marine_Regiment
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/War_on_Terror
|
uri
| null | null |
http://dbpedia.org/resource/17th_Virginia_Infantry_Regiment
|
http://dbpedia.org/ontology/battle
|
http://dbpedia.org/resource/Battle_of_Cold_Harbor
|
uri
| null | null |
http://dbpedia.org/resource/1816β17_United_States_House_of_Representatives_elections
|
http://www.w3.org/2000/01/rdf-schema#seeAlso
|
http://dbpedia.org/resource/List_of_United_States_representatives_from_Delaware
|
uri
| null | null |
http://dbpedia.org/resource/.nl
|
http://xmlns.com/foaf/0.1/homepage
|
https://www.sidn.nl/
|
uri
| null | null |
http://dbpedia.org/resource/1._FC_Magdeburg__Alexander_Bittroff__1
|
http://dbpedia.org/ontology/currentMember
|
http://dbpedia.org/resource/Alexander_Bittroff
|
uri
| null | null |
http://dbpedia.org/resource/152_mm_45_caliber_Pattern_1892
|
http://dbpedia.org/ontology/usedInWar
|
http://dbpedia.org/resource/Boxer_Rebellion
|
uri
| null | null |
DBpedia Core (English)
Dataset Description
Core facts from Wikipedia (English)
Original Source: https://downloads.dbpedia.org/repo/dbpedia/mappings/mappingbased-objects/2022.12.01/mappingbased-objects_lang=en.ttl.bz2
Dataset Summary
This dataset contains RDF triples from DBpedia Core (English) converted to HuggingFace dataset format for easy use in machine learning pipelines.
- Format: Originally turtle, converted to HuggingFace Dataset
- Size: 1.8 GB (extracted)
- Entities: ~9.5M
- Triples: ~50-60M
- Original License: CC BY-SA 3.0
Recommended Use
Wikipedia-based knowledge, production training
Notes\n\nCore DBpedia facts extracted from Wikipedia infoboxes
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/dbpedia-core-en")
# 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/dbpedia-core-en", "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/dbpedia-core-en")
# 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: 1.8 GB
- Conversion Tool: CleverErnie RDF Pipeline
- Format Version: 1.0
- Conversion Date: 2025-11-18
Citation
If you use this dataset, please cite the original source:
Original Dataset: DBpedia Core (English) URL: https://downloads.dbpedia.org/repo/dbpedia/mappings/mappingbased-objects/2022.12.01/mappingbased-objects_lang=en.ttl.bz2 License: CC BY-SA 3.0
Dataset Preparation
This dataset was prepared using the CleverErnie GISM framework:
# Download original dataset
python scripts/rdf_dataset_downloader.py dbpedia-core-en -o datasets/
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/dbpedia-core-en/[file] \
hf_datasets/dbpedia-core-en \
--format turtle
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset dbpedia-core-en
Additional Information
Original Source
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
- 42