Dataset Viewer
Auto-converted to Parquet Duplicate
subject
stringlengths
30
212
predicate
stringclasses
1 value
object
stringclasses
403 values
object_type
stringclasses
1 value
object_datatype
stringclasses
0 values
object_language
stringclasses
0 values
http://dbpedia.org/resource/'40s_Junction
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Agent
uri
null
null
http://dbpedia.org/resource/%22Wildman%22_Steve_Brill__PersonFunction__1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(Themes_from)_The_Man_with_the_Golden_Arm
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q386724
uri
null
null
http://dbpedia.org/resource/%22Bulldog%22_Ben_Robinson
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Species
uri
null
null
http://dbpedia.org/resource/'s_Gravenmoer
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q532
uri
null
null
http://dbpedia.org/resource/(You_Can)_Depend_on_Me
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/'Til_You_Do_Me_Right
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/CreativeWork
uri
null
null
http://dbpedia.org/resource/'Abd_al-Ilah
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q19088
uri
null
null
http://dbpedia.org/resource/(90568)_2004_GV9
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Location
uri
null
null
http://dbpedia.org/resource/(Get_Your_Kicks_on)_Route_66
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q386724
uri
null
null
http://dbpedia.org/resource/(More)_So_Much_More
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/CreativeWork
uri
null
null
http://dbpedia.org/resource/'47_(magazine)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q41298
uri
null
null
http://dbpedia.org/resource/'Nard
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/(612901)_2004_XP14
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/Place
uri
null
null
http://dbpedia.org/resource/(+)-delta-selinene_synthase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q206229
uri
null
null
http://dbpedia.org/resource/(68950)_2002_QF15
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Location
uri
null
null
http://dbpedia.org/resource/(181708)_1993_FW
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Location
uri
null
null
http://dbpedia.org/resource/(99907)_1989_VA
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Place
uri
null
null
http://dbpedia.org/resource/%22Major%22_John_Buchanan
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(I_Do_It)_For_the_Money
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/&flix
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Organisation
uri
null
null
http://dbpedia.org/resource/(468861)_2013_LU28
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Place
uri
null
null
http://dbpedia.org/resource/(If_You're_Not_in_It_for_Love)_I'm_Outta_Here!
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/MusicRecording
uri
null
null
http://dbpedia.org/resource/+_Laburnocytisus_'Adamii'
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Species
uri
null
null
http://dbpedia.org/resource/%22Wildman%22_Steve_Brill
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Animal
uri
null
null
http://dbpedia.org/resource/(Chloromethylene)triphenylphosphorane
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/ChemicalSubstance
uri
null
null
http://dbpedia.org/resource/(S)-beta-macrocarpene_synthase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q206229
uri
null
null
http://dbpedia.org/resource/%22Sunshine%22_Sonny_Payne
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/'Snaz
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/CreativeWork
uri
null
null
http://dbpedia.org/resource/%22Major%22_John_Buchanan
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Species
uri
null
null
http://dbpedia.org/resource/(I_Can't)_Forget_About_You
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q386724
uri
null
null
http://dbpedia.org/resource/(Pronounced_'LΔ•h-'nΓ©rd_'Skin-'nΓ©rd)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/MusicalWork
uri
null
null
http://dbpedia.org/resource/!_(Trippie_Redd_album)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/MusicalWork
uri
null
null
http://dbpedia.org/resource/(523635)_2010_DN93
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/CelestialBody
uri
null
null
http://dbpedia.org/resource/(There's)_Always_Something_There_to_Remind_Me__Always_Something_There_to_Remind_Me__1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/CreativeWork
uri
null
null
http://dbpedia.org/resource/(471288)_2011_GM27
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/Place
uri
null
null
http://dbpedia.org/resource/%22Sunshine%22_Sonny_Payne
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Species
uri
null
null
http://dbpedia.org/resource/+44_discography
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q386724
uri
null
null
http://dbpedia.org/resource/%22O%22_Is_for_Outlaw
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q571
uri
null
null
http://dbpedia.org/resource/(10115)_1992_SK
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/!Action_Pact!
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/MusicGroup
uri
null
null
http://dbpedia.org/resource/(163243)_2002_FB3
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/Place
uri
null
null
http://dbpedia.org/resource/(Now_and_Then_There's)_A_Fool_Such_as_I
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/'N_Sync_(album)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/%22Weird_Paul%22_Petroskey
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Artist
uri
null
null
http://dbpedia.org/resource/'N'_Dey_Say
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(You_Make_Me_Want_to_Be_a)_Mother
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/MusicRecording
uri
null
null
http://dbpedia.org/resource/(R)-2-Methyl-CBS-oxazaborolidine
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(Just_Like)_Romeo_and_Juliet__Just_Like_Romeo_and_Juliet__1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/(121514)_1999_UJ7
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Place
uri
null
null
http://dbpedia.org/resource/(308193)_2005_CB79
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Place
uri
null
null
http://dbpedia.org/resource/(Just_Like)_Romeo_and_Juliet
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/'69_Newport
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q482994
uri
null
null
http://dbpedia.org/resource/$1,000,000_Worth_of_Twang
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q386724
uri
null
null
http://dbpedia.org/resource/'Til_I_Die
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/MusicRecording
uri
null
null
http://dbpedia.org/resource/(172034)_2001_WR1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Place
uri
null
null
http://dbpedia.org/resource/(3-methyl-2-oxobutanoate_dehydrogenase_(2-methylpropanoyl-transferring))-phosphatase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Biomolecule
uri
null
null
http://dbpedia.org/resource/(KDO)-lipid_IVA_3-deoxy-D-manno-octulosonic_acid_transferase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Biomolecule
uri
null
null
http://dbpedia.org/resource/(1R,3R)-1,2,3-Trimethylcyclopentane
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q11173
uri
null
null
http://dbpedia.org/resource/'Tops'_with_Me
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/MusicalWork
uri
null
null
http://dbpedia.org/resource/(527604)_2007_VL305
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/Place
uri
null
null
http://dbpedia.org/resource/(6-4)DNA_photolyase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q206229
uri
null
null
http://dbpedia.org/resource/(Wish_I_Had_A)_Heart_of_Stone
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/(15820)_1994_TB
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/Place
uri
null
null
http://dbpedia.org/resource/(Songbook)_A_Collection_of_Hits
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/(7888)_1993_UC
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Location
uri
null
null
http://dbpedia.org/resource/'Apepi
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Species
uri
null
null
http://dbpedia.org/resource/%22What_Is_This_Heart%3F%22
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(65407)_2002_RP120
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/(303775)_2005_QU182
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/'Allo_'Allo!_(series_5)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(24)7.ai
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent
uri
null
null
http://dbpedia.org/resource/%22H%22_Is_for_Homicide
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://purl.org/ontology/bibo/Book
uri
null
null
http://dbpedia.org/resource/'t_Gulden_Zeepaert_(ship,_1626)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/Product
uri
null
null
http://dbpedia.org/resource/'Til_Summer_Comes_Around
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/(R)-3-hydroxyacid-ester_dehydrogenase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/'s-Hertogenbosch
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/PopulatedPlace
uri
null
null
http://dbpedia.org/resource/(Baby)_You_Don't_Have_to_Tell_Me
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/(5646)_1990_TR
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Place
uri
null
null
http://dbpedia.org/resource/'78_Jumping_Summer_Carnival
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/MusicAlbum
uri
null
null
http://dbpedia.org/resource/(Your_Love_Keeps_Lifting_Me)_Higher_and_Higher__Your_Love_Has_Lifted_Me_Higher_and_Higher__1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/(+)-Menthofuran_synthase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/(585310)_2017_YZ1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Thing
uri
null
null
http://dbpedia.org/resource/'Round_Midnight_(1963_Betty_Carter_album)__'Round_Midnight__1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q482994
uri
null
null
http://dbpedia.org/resource/(231937)_2001_FO32
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/(Marie's_the_Name)_His_Latest_Flame
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://schema.org/CreativeWork
uri
null
null
http://dbpedia.org/resource/(12538)_1998_OH
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/(614433)_2009_KK
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Location
uri
null
null
http://dbpedia.org/resource/(Sex)_Appeal
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/(84719)_2002_VR128
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/CelestialBody
uri
null
null
http://dbpedia.org/resource/(phosphorylase)_phosphatase
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Biomolecule
uri
null
null
http://dbpedia.org/resource/(118228)_1996_TQ66
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/(Rough_and_Unreleased)_Homemade_Recordings
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/'Til_I_Can_Make_It_on_My_Own__Til_I_Can_Make_It_on_My_Own__1
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://dbpedia.org/ontology/Work
uri
null
null
http://dbpedia.org/resource/(137924)_2000_BD19
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/(177049)_2003_EE16
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/%22A%22_Is_for_Alibi
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q386724
uri
null
null
http://dbpedia.org/resource/(434620)_2005_VD
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q634
uri
null
null
http://dbpedia.org/resource/'Live_and_Well_in_Japan!
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q2188189
uri
null
null
http://dbpedia.org/resource/+1_Music
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.wikidata.org/entity/Q43229
uri
null
null
End of preview. Expand in Data Studio

DBpedia Ontology

Dataset Description

DBpedia ontology classes and properties

Original Source: https://downloads.dbpedia.org/repo/dbpedia/mappings/instance-types/2022.12.01/instance-types_lang=en_transitive.ttl.bz2

Dataset Summary

This dataset contains RDF triples from DBpedia Ontology converted to HuggingFace dataset format for easy use in machine learning pipelines.

  • Format: Originally turtle, converted to HuggingFace Dataset
  • Size: 0.8 GB (extracted)
  • Entities: ~9.5M
  • Triples: ~40M
  • Original License: CC BY-SA 3.0

Recommended Use

Type classification, ontology learning

Notes\n\nUses transitive closure of instance types for complete type hierarchy

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-ontology")

# 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-ontology", "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-ontology")

# 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: 0.8 GB
  • Conversion Tool: CleverErnie RDF Pipeline
  • Format Version: 1.0
  • Conversion Date: 2025-11-06

Citation

If you use this dataset, please cite the original source:

Original Dataset: DBpedia Ontology URL: https://downloads.dbpedia.org/repo/dbpedia/mappings/instance-types/2022.12.01/instance-types_lang=en_transitive.ttl.bz2 License: CC BY-SA 3.0

Dataset Preparation

This dataset was prepared using the CleverErnie GISM framework:

# Download original dataset
cleverernie download-dataset -d dbpedia-ontology

# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
    datasets/dbpedia-ontology/[file] \
    hf_datasets/dbpedia-ontology \
    --format turtle

# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset dbpedia-ontology

Additional Information

Original Source

https://downloads.dbpedia.org/repo/dbpedia/mappings/instance-types/2022.12.01/instance-types_lang=en_transitive.ttl.bz2

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
49