Datasets:
subject
stringlengths 32
42
| predicate
stringclasses 10
values | object
stringlengths 1
56
| object_type
stringclasses 2
values | object_datatype
stringclasses 3
values | object_language
stringclasses 0
values |
|---|---|---|---|---|---|
http://purl.uniprot.org/uniprot/Y8X6J4
|
http://purl.uniprot.org/core/created
|
2014-06-11
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2S8QYI1
|
http://purl.uniprot.org/core/version
|
8
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A076RA32
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A6J2VWM8
|
http://purl.uniprot.org/core/mnemonic
|
A0A6J2VWM8_CHACN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A1I6QET1
|
http://purl.uniprot.org/core/version
|
26
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A044Z5Q4
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A5C8TLJ5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A102EJH9
|
http://purl.uniprot.org/core/created
|
2016-04-13
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/Z0ZHE9
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A5I0V908
|
http://purl.uniprot.org/core/version
|
7
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A4E0GIW2
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A3R9XLE2
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A6U7XYB2
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A073C1P6
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A117YCZ6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1I3DWE3
|
http://purl.uniprot.org/core/created
|
2017-11-22
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A5B0UNZ9
|
http://purl.uniprot.org/core/mnemonic
|
A0A5B0UNZ9_9GAMM
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A022X4F0
|
http://purl.uniprot.org/core/modified
|
2016-10-05
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A353RIR8
|
http://purl.uniprot.org/core/version
|
20
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A943ERT7
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/R0PYS2
|
http://purl.uniprot.org/core/modified
|
2015-11-11
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2X4Z564
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A9D6MDK3
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A090Z7C2
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A1W1YMZ8
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A9U4M5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A557ZGG9
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/V5UGS2
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A2K2XE84
|
http://purl.uniprot.org/core/modified
|
2018-10-10
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A1G3YAC0
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A5G3L069
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A9Q2XAJ5
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A854GRM6
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/S7DXW3
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A3Q8VYC3
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/W4F246
|
http://purl.uniprot.org/core/modified
|
2018-04-25
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A358T1S6
|
http://purl.uniprot.org/core/version
|
23
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A813ANS9
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6V6YCU7
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1C4IXJ6
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A8A5IGR4
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A7C2T713
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A1Q3PFF4
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2E3K2C6
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/R1IXP9
|
http://purl.uniprot.org/core/mnemonic
|
R1IXP9_ENTFL
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A9E8AVM4
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1Z9XJW7
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AA45M0C9
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/X8EZG2
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1Q2G0S6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A124BGW7
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A2I2I2K3
|
http://purl.uniprot.org/core/created
|
2018-02-28
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A522JJA2
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A3A0D0J1
|
http://purl.uniprot.org/core/created
|
2018-12-05
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A331W940
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/D1WMQ1
|
http://purl.uniprot.org/core/version
|
19
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A9Q2KR48
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A931SQ76
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/R0XIX7
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A0T6XW73
|
http://purl.uniprot.org/core/version
|
16
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A966KLQ8
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/S3GVN5
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A019XB33
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A2X2SB15
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A012PHB3
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A2N3E215
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A2U2QYV8
|
http://purl.uniprot.org/core/modified
|
2018-09-12
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A956CW45
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1E7HFY7
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7W1LTW7
|
http://purl.uniprot.org/core/created
|
2021-06-02
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A9Q5TDV0
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/V3CN85
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A916HBX1
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/U8PEC6
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7U8MUJ7
|
http://purl.uniprot.org/core/mnemonic
|
A0A7U8MUJ7_ECO57
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0AAN6AQ23
|
http://purl.uniprot.org/core/mnemonic
|
A0AAN6AQ23_ECOLX
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A1R0M0F5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A2X4ZVQ8
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AAJ8DF73
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A4R1XSL5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6T3FYM3
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A9X8UWA3
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A009QL68
|
http://purl.uniprot.org/core/mnemonic
|
A0A009QL68_ACIBA
|
literal
| null | null |
http://purl.uniprot.org/uniprot/Y2WLV7
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A5I6M4C7
|
http://purl.uniprot.org/core/mnemonic
|
A0A5I6M4C7_SALET
|
literal
| null | null |
http://purl.uniprot.org/uniprot/K5UYX5
|
http://purl.uniprot.org/core/mnemonic
|
K5UYX5_VIBHA
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A260RFI4
|
http://purl.uniprot.org/core/version
|
12
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/M3S1F1
|
http://purl.uniprot.org/core/mnemonic
|
M3S1F1_HELPX
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A4U8FRB6
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A3R5Y0Q6
|
http://purl.uniprot.org/core/modified
|
2024-01-24
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2J2GGB2
|
http://purl.uniprot.org/core/mnemonic
|
A0A2J2GGB2_KLEPN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A1Q5LWW6
|
http://purl.uniprot.org/core/version
|
16
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A092E0B7
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A8G0I1P9
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Member_Of_Redudant_Proteome
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A047GFG3
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
http://purl.uniprot.org/uniprot/D7V866
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A653X3C3
|
http://purl.uniprot.org/core/modified
|
2020-08-12
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A445TAW1
|
http://purl.uniprot.org/core/mnemonic
|
A0A445TAW1_9ZZZZ
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A7Z7EQI6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6S8IZ73
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
uniprotkb_obsolete_entries_250000000
Dataset Description
Comprehensive protein knowledgebase with functional annotations
Original Source: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_250000000.rdf.xz
Dataset Summary
This dataset contains RDF triples from uniprotkb_obsolete_entries_250000000 converted to HuggingFace dataset format for easy use in machine learning pipelines.
- Format: Originally rdf, converted to HuggingFace Dataset
- Size: 0.392 GB (extracted)
- Entities: ~90M protein entries
- Triples: ~3.4B
- Original License: CC BY 4.0
Recommended Use
Protein research, molecular biology, functional genomics
Notes: High quality with manual curation for Swiss-Prot entries. Updated every 8 weeks.
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/uniprotkb_obsolete_entries_250000000")
# 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/uniprotkb_obsolete_entries_250000000", "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/uniprotkb_obsolete_entries_250000000")
# 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: rdf
- Original Size: 0.392 GB
- Conversion Tool: CleverErnie RDF Pipeline
- Format Version: 1.0
- Conversion Date: 2025-12-29
Citation
If you use this dataset, please cite the original source:
Original Dataset: uniprotkb_obsolete_entries_250000000 URL: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_250000000.rdf.xz License: CC BY 4.0
Dataset Preparation
This dataset was prepared using the CleverErnie GISM framework:
# Download original dataset
python scripts/rdf_dataset_downloader.py uniprotkb_obsolete_entries_250000000 -o datasets/
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/uniprotkb_obsolete_entries_250000000/[file] \
hf_datasets/uniprotkb_obsolete_entries_250000000 \
--format xml
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset uniprotkb_obsolete_entries_250000000
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
- 9