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/A0A064U2Y5
|
http://purl.uniprot.org/core/mnemonic
|
A0A064U2Y5_ECOLX
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A934LU70
|
http://purl.uniprot.org/core/version
|
10
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/X6YZ44
|
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/A0A1W9EW66
|
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/A0A038DEP9
|
http://purl.uniprot.org/core/mnemonic
|
A0A038DEP9_SALTM
|
literal
| null | null |
http://purl.uniprot.org/uniprot/K3G124
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6U3AT99
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A8T9UC46
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1F8VNM2
|
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/A0A6K6L8L3
|
http://purl.uniprot.org/core/created
|
2020-10-07
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A233VVW7
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A5P9IUY3
|
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/A0A829QWE9
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A495HTZ8
|
http://purl.uniprot.org/core/created
|
2019-06-05
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A266ZYA8
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AA94ZUD0
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A836SDP0
|
http://purl.uniprot.org/core/version
|
7
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A561KQ58
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1X0HZY7
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A957U9S7
|
http://purl.uniprot.org/core/created
|
2023-02-22
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/H1GRN1
|
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/A0A9E0P3I1
|
http://purl.uniprot.org/core/version
|
10
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A2N0EJ64
|
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/A0A165P7U0
|
http://purl.uniprot.org/core/modified
|
2024-01-24
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A386WAG9
|
http://purl.uniprot.org/core/version
|
3
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A948LG31
|
http://purl.uniprot.org/core/modified
|
2023-05-03
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A1D8JPM1
|
http://purl.uniprot.org/core/created
|
2017-01-18
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A8F2QBA4
|
http://purl.uniprot.org/core/modified
|
2022-08-03
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A960VMF7
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A1A0LME5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7C8GXF0
|
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/A0A3N0WG69
|
http://purl.uniprot.org/core/mnemonic
|
A0A3N0WG69_9FLAO
|
literal
| null | null |
http://purl.uniprot.org/uniprot/I9EEH6
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A6H2JPQ8
|
http://purl.uniprot.org/core/mnemonic
|
A0A6H2JPQ8_BACMO
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A3L3YY15
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6C2E372
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A2G1ADV3
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A0W1BDQ2
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A434HJJ0
|
http://purl.uniprot.org/core/created
|
2019-05-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A958ZIU2
|
http://purl.uniprot.org/core/version
|
6
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A928EM64
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6M7XFU7
|
http://purl.uniprot.org/core/mnemonic
|
A0A6M7XFU7_9HYPH
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A7C9NI53
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A0V0WB25
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/T2DBH1
|
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/A0AA37C6T6
|
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/A0A6P0D024
|
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/A0AAX2YAF8
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A4V2HUP3
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A933LDQ1
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A3G7XBS0
|
http://purl.uniprot.org/core/mnemonic
|
A0A3G7XBS0_9PSED
|
literal
| null | null |
http://purl.uniprot.org/uniprot/L9FBC0
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/M8NZJ8
|
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/A0A6T6WN48
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A285Q3E9
|
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/A0A9Q2DKV6
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A060EQC2
|
http://purl.uniprot.org/core/mnemonic
|
A0A060EQC2_BRUSS
|
literal
| null | null |
http://purl.uniprot.org/uniprot/G6J3L2
|
http://purl.uniprot.org/core/version
|
10
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0AAD2TGP0
|
http://purl.uniprot.org/core/mnemonic
|
A0AAD2TGP0_BACCE
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A7H5NBV8
|
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/A0A538GDJ8
|
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/A0A5F1AID3
|
http://purl.uniprot.org/core/created
|
2019-11-13
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A3M3E840
|
http://purl.uniprot.org/core/mnemonic
|
A0A3M3E840_PSEAV
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A198BNQ1
|
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/Z8HC05
|
http://purl.uniprot.org/core/mnemonic
|
Z8HC05_STAAU
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A071PYX6
|
http://purl.uniprot.org/core/created
|
2014-10-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/W8V3L7
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A4Q4WEU1
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1C2ZUQ6
|
http://purl.uniprot.org/core/version
|
7
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/U7I049
|
http://purl.uniprot.org/core/modified
|
2016-06-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7K2JY93
|
http://purl.uniprot.org/core/created
|
2021-04-07
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A837VU17
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A352SJV9
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A4R7HED1
|
http://purl.uniprot.org/core/modified
|
2022-02-23
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0AAI9JMV0
|
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/A0A7Y0KS04
|
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/A0A661PY22
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A415RR44
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/D8B354
|
http://purl.uniprot.org/core/created
|
2010-10-05
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A039ADY3
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A480UPN1
|
http://purl.uniprot.org/core/modified
|
2019-11-13
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7J4TAI6
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6H1YCE4
|
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/A0A6U7GCN4
|
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/A0A3S2EX75
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A097N7S6
|
http://purl.uniprot.org/core/modified
|
2016-04-13
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A0Q9Q834
|
http://purl.uniprot.org/core/mnemonic
|
A0A0Q9Q834_9GAMM
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A3B9EME4
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A9E7VPL8
|
http://purl.uniprot.org/core/modified
|
2024-01-24
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/N3CZ10
|
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/A0A0Q5C8A8
|
http://purl.uniprot.org/core/created
|
2016-01-20
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A040K7T1
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A518EJK5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A406S1M9
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A8B0B075
|
http://purl.uniprot.org/core/mnemonic
|
A0A8B0B075_9PSED
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A3N8GCF1
|
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/A0A1A2Q193
|
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/A0AAU5IW22
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A5B0JHU6
|
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/A0A7Z8ECA3
|
http://purl.uniprot.org/core/modified
|
2021-09-29
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
uniprotkb_obsolete_entries_210000000
Dataset Description
Comprehensive protein knowledgebase with functional annotations
Original Source: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_210000000.rdf.xz
Dataset Summary
This dataset contains RDF triples from uniprotkb_obsolete_entries_210000000 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_210000000")
# 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_210000000", "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_210000000")
# 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-26
Citation
If you use this dataset, please cite the original source:
Original Dataset: uniprotkb_obsolete_entries_210000000 URL: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_210000000.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_210000000 -o datasets/
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/uniprotkb_obsolete_entries_210000000/[file] \
hf_datasets/uniprotkb_obsolete_entries_210000000 \
--format xml
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset uniprotkb_obsolete_entries_210000000
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
- 4