subject
stringlengths 20
185
| predicate
stringclasses 53
values | object
stringlengths 1
508
| object_type
stringclasses 3
values | object_datatype
stringclasses 1
value | object_language
stringclasses 1
value |
|---|---|---|---|---|---|
https://en-word.net/lemma/bell_magpie#bell_magpie-n-lemma
|
http://www.w3.org/ns/lemon/ontolex#writtenRep
|
bell magpie
|
literal
| null |
en
|
https://en-word.net/id/oewn-12369608-n
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#noun
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b387918
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#hyponym
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b480917
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#hypernym
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b162273
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#value
|
ethyl alcohol that is unfit for drinking but is still useful for other purposes
|
literal
| null |
en
|
n53318ce326af4be5b30892fbe20e4e35b208712
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/id/oewn-01295488-v
|
uri
| null | null |
https://en-word.net/id/oewn-14893067-n
|
http://www.w3.org/2004/02/skos/core#inScheme
|
https://en-word.net/
|
uri
| null | null |
https://en-word.net/lemma/bottomed#bottomed-oewn-02451478-a
|
http://www.w3.org/ns/lemon/ontolex#isLexicalizedSenseOf
|
https://en-word.net/id/oewn-02451478-a
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b326369
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#hypernym
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b84261
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#value
|
have as an inherent or characteristic feature or have as a consequence
|
literal
| null |
en
|
n53318ce326af4be5b30892fbe20e4e35b40305
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#value
|
How sharper than a serpent's tooth it is / To have a thankless child!
|
literal
| null |
en
|
https://en-word.net/id/oewn-10463768-n
|
https://globalwordnet.github.io/schemas/wn#instance_hyponym
|
https://en-word.net/id/oewn-10898907-n
|
uri
| null | null |
https://en-word.net/id/oewn-00470295-v
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalConcept
|
uri
| null | null |
https://en-word.net/lemma/distributional#distributional-oewn-02725314-a
|
https://globalwordnet.github.io/schemas/wn#pertainym
|
https://en-word.net/lemma/distribution#distribution-oewn-05094504-n
|
uri
| null | null |
https://en-word.net/id/oewn-03788327-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalConcept
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b59749
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#value
|
large trogon of Central America and South America having golden-green and scarlet plumage
|
literal
| null |
en
|
n53318ce326af4be5b30892fbe20e4e35b57480
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#value
|
the dead body of an animal that has been killed on a road by a vehicle
|
literal
| null |
en
|
https://en-word.net/lemma/campaign#campaign-oewn-01096197-v
|
https://globalwordnet.github.io/schemas/wn#derivation
|
https://en-word.net/lemma/campaign#campaign-oewn-00970259-n
|
uri
| null | null |
https://en-word.net/lemma/catapult#catapult-oewn-01516980-v
|
https://globalwordnet.github.io/schemas/wn#derivation
|
https://en-word.net/lemma/catapult#catapult-oewn-04247204-n
|
uri
| null | null |
https://en-word.net/id/oewn-01028015-s
|
http://purl.org/dc/terms/subject
|
adj.all
|
literal
| null | null |
https://en-word.net/lemma/truck_traffic#truck_traffic-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b351759
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/lemma/American_spelling#American_spelling-oewn-87027384-n
|
uri
| null | null |
https://en-word.net/id/oewn-02774171-n
|
http://purl.org/dc/terms/subject
|
noun.artifact
|
literal
| null | null |
https://en-word.net/id/oewn-05157705-n
|
https://globalwordnet.github.io/schemas/wn#hypernym
|
https://en-word.net/id/oewn-05155946-n
|
uri
| null | null |
https://en-word.net/lemma/phone#phone-v
|
http://www.w3.org/ns/lemon/synsem#synBehavior
|
n53318ce326af4be5b30892fbe20e4e35b182107
|
blank_node
| null | null |
https://en-word.net/lemma/stage_setting#stage_setting-n
|
http://www.w3.org/ns/lemon/ontolex#sense
|
https://en-word.net/lemma/stage_setting#stage_setting-oewn-03778801-n
|
uri
| null | null |
https://en-word.net/lemma/misstep#misstep-n-lemma
|
http://www.w3.org/ns/lemon/ontolex#writtenRep
|
misstep
|
literal
| null |
en
|
https://en-word.net/lemma/couple#couple-oewn-01295488-v
|
https://globalwordnet.github.io/schemas/wn#derivation
|
https://en-word.net/lemma/couple#couple-oewn-13765745-n
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b495214
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#derivation
|
uri
| null | null |
https://en-word.net/id/oewn-03435223-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalConcept
|
uri
| null | null |
https://en-word.net/id/oewn-03952093-n
|
http://purl.org/dc/terms/subject
|
noun.artifact
|
literal
| null | null |
https://en-word.net/lemma/metacentre#metacentre-oewn-05875406-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalSense
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b389969
|
http://www.w3.org/ns/lemon/vartrans#source
|
https://en-word.net/id/oewn-07827392-n
|
uri
| null | null |
https://en-word.net/lemma/coat#coat-v
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#verb
|
uri
| null | null |
https://en-word.net/id/oewn-06284745-n
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#noun
|
uri
| null | null |
https://en-word.net/lemma/naval_shipyard#naval_shipyard-n
|
http://www.w3.org/ns/lemon/ontolex#canonicalForm
|
https://en-word.net/lemma/naval_shipyard#naval_shipyard-n-lemma
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b440510
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/id/oewn-11061443-n
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b312037
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/id/oewn-03602662-n
|
uri
| null | null |
https://en-word.net/lemma/welcome#welcome-a
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#adjective
|
uri
| null | null |
https://en-word.net/id/oewn-00392901-n
|
https://globalwordnet.github.io/schemas/wn#hypernym
|
https://en-word.net/id/oewn-01064179-n
|
uri
| null | null |
https://en-word.net/id/oewn-01240770-a
|
https://globalwordnet.github.io/schemas/wn#similar
|
https://en-word.net/id/oewn-01242283-s
|
uri
| null | null |
https://en-word.net/lemma/Ziziphus_lotus#Ziziphus_lotus-n
|
http://www.w3.org/ns/lemon/ontolex#canonicalForm
|
https://en-word.net/lemma/Ziziphus_lotus#Ziziphus_lotus-n-lemma
|
uri
| null | null |
https://en-word.net/lemma/proctitis#proctitis-n
|
http://www.w3.org/ns/lemon/ontolex#sense
|
https://en-word.net/lemma/proctitis#proctitis-oewn-14377662-n
|
uri
| null | null |
https://en-word.net/id/oewn-01242997-n
|
https://globalwordnet.github.io/schemas/wn#hyponym
|
https://en-word.net/id/oewn-01243193-n
|
uri
| null | null |
https://en-word.net/
|
http://www.w3.org/ns/lemon/lime#entry
|
https://en-word.net/lemma/arch_support#arch_support-n
|
uri
| null | null |
https://en-word.net/
|
http://www.w3.org/ns/lemon/lime#entry
|
https://en-word.net/lemma/Chari#Chari-n
|
uri
| null | null |
https://en-word.net/lemma/American_spelling#American_spelling-oewn-87027384-n
|
https://globalwordnet.github.io/schemas/wn#is_exemplified_by
|
https://en-word.net/lemma/unionize#unionize-oewn-02439085-v
|
uri
| null | null |
https://en-word.net/lemma/Holy_Joe#Holy_Joe-oewn-10336185-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalSense
|
uri
| null | null |
https://en-word.net/lemma/hand_organ#hand_organ-oewn-02799001-n
|
http://www.w3.org/ns/lemon/ontolex#isLexicalizedSenseOf
|
https://en-word.net/id/oewn-02799001-n
|
uri
| null | null |
https://en-word.net/lemma/homeroom#homeroom-n-lemma
|
http://www.w3.org/ns/lemon/ontolex#writtenRep
|
homeroom
|
literal
| null |
en
|
n53318ce326af4be5b30892fbe20e4e35b549607
|
http://www.w3.org/ns/lemon/vartrans#source
|
https://en-word.net/id/oewn-00737862-a
|
uri
| null | null |
https://en-word.net/
|
http://www.w3.org/ns/lemon/lime#entry
|
https://en-word.net/lemma/Philistia#Philistia-n
|
uri
| null | null |
https://en-word.net/lemma/genus_Cnemidophorus#genus_Cnemidophorus-n
|
http://www.w3.org/ns/lemon/ontolex#sense
|
https://en-word.net/lemma/genus_Cnemidophorus#genus_Cnemidophorus-oewn-01688320-n
|
uri
| null | null |
https://en-word.net/lemma/customs_union#customs_union-n
|
http://www.w3.org/ns/lemon/ontolex#sense
|
https://en-word.net/lemma/customs_union#customs_union-oewn-08322498-n
|
uri
| null | null |
https://en-word.net/id/oewn-11221051-n
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#noun
|
uri
| null | null |
https://en-word.net/lemma/Grias_cauliflora#Grias_cauliflora-oewn-12348045-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalSense
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b338238
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#derivation
|
uri
| null | null |
https://en-word.net/id/oewn-00604200-v
|
https://globalwordnet.github.io/schemas/wn#hypernym
|
https://en-word.net/id/oewn-00601387-v
|
uri
| null | null |
https://en-word.net/lemma/pro_bono#pro_bono-s-lemma
|
http://www.w3.org/ns/lemon/ontolex#writtenRep
|
pro bono
|
literal
| null |
en
|
https://en-word.net/lemma/palatoglossal#palatoglossal-oewn-02783354-a
|
http://www.w3.org/ns/lemon/ontolex#isLexicalizedSenseOf
|
https://en-word.net/id/oewn-02783354-a
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b410655
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/id/oewn-08877934-n
|
uri
| null | null |
https://en-word.net/id/oewn-06332925-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalConcept
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b208702
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#similar
|
uri
| null | null |
https://en-word.net/lemma/trace#trace-n
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#noun
|
uri
| null | null |
https://en-word.net/lemma/imperturbable#imperturbable-s
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
https://en-word.net/id/oewn-02481047-n
|
https://globalwordnet.github.io/schemas/wn#ili
|
http://globalwordnet.org/ili/i48688
|
uri
| null | null |
https://en-word.net/id/oewn-01924583-a
|
https://globalwordnet.github.io/schemas/wn#also
|
https://en-word.net/id/oewn-00724949-a
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b413972
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/id/oewn-09747479-n
|
uri
| null | null |
https://en-word.net/
|
http://www.w3.org/ns/lemon/lime#entry
|
https://en-word.net/lemma/obviating#obviating-s
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b146797
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#value
|
rare north temperate bog orchid bearing a solitary white to pink flower marked with purple at the tip of an erect reddish stalk above 1 basal leaf
|
literal
| null |
en
|
n53318ce326af4be5b30892fbe20e4e35b214672
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#domain_topic
|
uri
| null | null |
https://en-word.net/id/oewn-00792627-v
|
https://globalwordnet.github.io/schemas/wn#ili
|
http://globalwordnet.org/ili/i25634
|
uri
| null | null |
https://en-word.net/id/oewn-01879263-s
|
http://www.w3.org/2004/02/skos/core#inScheme
|
https://en-word.net/
|
uri
| null | null |
https://en-word.net/lemma/glycerite#glycerite-oewn-14910331-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalSense
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b351087
|
http://www.w3.org/ns/lemon/vartrans#source
|
https://en-word.net/lemma/particularism#particularism-oewn-05713022-n
|
uri
| null | null |
https://en-word.net/id/oewn-84605489-n
|
http://purl.org/dc/terms/subject
|
noun.person
|
literal
| null | null |
https://en-word.net/id/oewn-13583677-n
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#noun
|
uri
| null | null |
https://en-word.net/lemma/Coffea#Coffea-n
|
https://globalwordnet.github.io/schemas/wn#partOfSpeech
|
https://globalwordnet.github.io/schemas/wn#noun
|
uri
| null | null |
https://en-word.net/id/oewn-02139513-v
|
https://globalwordnet.github.io/schemas/wn#hyponym
|
https://en-word.net/id/oewn-01721295-v
|
uri
| null | null |
https://en-word.net/lemma/Cursorius#Cursorius-oewn-02042031-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalSense
|
uri
| null | null |
https://en-word.net/lemma/fire_opal#fire_opal-n
|
http://www.w3.org/ns/lemon/ontolex#sense
|
https://en-word.net/lemma/fire_opal#fire_opal-oewn-14893067-n
|
uri
| null | null |
https://en-word.net/lemma/graduate#graduate-v-lemma
|
http://www.w3.org/ns/lemon/ontolex#writtenRep
|
graduate
|
literal
| null |
en
|
https://en-word.net/lemma/carpellate#carpellate-a
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
https://en-word.net/id/oewn-13674147-n
|
https://globalwordnet.github.io/schemas/wn#hypernym
|
https://en-word.net/id/oewn-13624548-n
|
uri
| null | null |
https://en-word.net/id/oewn-00036171-v
|
https://globalwordnet.github.io/schemas/wn#ili
|
http://globalwordnet.org/ili/i21946
|
uri
| null | null |
https://en-word.net/lemma/Hypsiprymnodon#Hypsiprymnodon-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
https://en-word.net/lemma/map_maker#map_maker-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b292878
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#hyponym
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b513385
|
http://www.w3.org/ns/lemon/vartrans#source
|
https://en-word.net/id/oewn-14744399-n
|
uri
| null | null |
https://en-word.net/lemma/stare#stare-oewn-00033399-v
|
https://globalwordnet.github.io/schemas/wn#derivation
|
https://en-word.net/lemma/stare#stare-oewn-00880134-n
|
uri
| null | null |
https://en-word.net/
|
http://www.w3.org/ns/lemon/lime#entry
|
https://en-word.net/lemma/gnat#gnat-n
|
uri
| null | null |
https://en-word.net/lemma/parget#parget-v
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
https://en-word.net/lemma/frequency-response_curve#frequency-response_curve-n
|
http://www.w3.org/ns/lemon/ontolex#sense
|
https://en-word.net/lemma/frequency-response_curve#frequency-response_curve-oewn-07013504-n
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b414602
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#instance_hypernym
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b527446
|
http://www.w3.org/ns/lemon/vartrans#source
|
https://en-word.net/lemma/British_spelling#British_spelling-oewn-86712636-n
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b472805
|
http://www.w3.org/ns/lemon/vartrans#category
|
https://globalwordnet.github.io/schemas/wn#hyponym
|
uri
| null | null |
https://en-word.net/lemma/life_imprisonment#life_imprisonment-n-lemma
|
http://www.w3.org/ns/lemon/ontolex#writtenRep
|
life imprisonment
|
literal
| null |
en
|
https://en-word.net/lemma/hornblende#hornblende-oewn-14750303-n
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalSense
|
uri
| null | null |
n53318ce326af4be5b30892fbe20e4e35b226009
|
http://www.w3.org/ns/lemon/vartrans#target
|
https://en-word.net/id/oewn-01229113-a
|
uri
| null | null |
https://en-word.net/lemma/valorously#valorously-r
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://www.w3.org/ns/lemon/ontolex#LexicalEntry
|
uri
| null | null |
WordNet RDF
Dataset Description
Lexical database of semantic relations between words (English WordNet 2024)
Original Source: https://en-word.net/static/english-wordnet-2024.ttl.gz
Dataset Summary
This dataset contains RDF triples from WordNet RDF converted to HuggingFace dataset format for easy use in machine learning pipelines.
- Format: Originally turtle, converted to HuggingFace Dataset
- Size: 0.21 GB (extracted)
- Entities: ~120K synsets
- Triples: ~2M
- Original License: CC BY 4.0
Recommended Use
Quick validation, linguistic relationships, small-scale testing
Notes\n\nCompressed download, automatic extraction. English WordNet 2024 from en-word.net
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/wordnet")
# 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/wordnet", "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/wordnet")
# 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.21 GB
- Conversion Tool: CleverErnie RDF Pipeline
- Format Version: 1.0
- Conversion Date: 2025-11-05
Citation
If you use this dataset, please cite the original source:
Original Dataset: WordNet RDF URL: https://en-word.net/static/english-wordnet-2024.ttl.gz License: CC BY 4.0
Dataset Preparation
This dataset was prepared using the CleverErnie GISM framework:
# Download original dataset
cleverernie download-dataset -d wordnet
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/wordnet/[file] \
hf_datasets/wordnet \
--format turtle
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset wordnet
Additional Information
Original Source
https://en-word.net/static/english-wordnet-2024.ttl.gz
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
- 61