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/D3LFK5
|
http://purl.uniprot.org/core/mnemonic
|
D3LFK5_ENTFC
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A1N6ZJS0
|
http://purl.uniprot.org/core/created
|
2017-03-15
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A653SI31
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A3D9RB43
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/E9Z2A1
|
http://purl.uniprot.org/core/created
|
2011-05-03
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A076HWS3
|
http://purl.uniprot.org/core/mnemonic
|
A0A076HWS3_9BACT
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A841P1D5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A4Q4YT60
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A8H5SQH0
|
http://purl.uniprot.org/core/created
|
2022-02-23
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A0P9WU77
|
http://purl.uniprot.org/core/created
|
2016-01-20
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A330J7W5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A9D7H8A5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AAJ3G999
|
http://purl.uniprot.org/core/created
|
2024-07-24
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6T4HPU3
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A3B9RYX6
|
http://purl.uniprot.org/core/created
|
2019-01-16
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6P2FFM6
|
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/A0A356XIP5
|
http://purl.uniprot.org/core/mnemonic
|
A0A356XIP5_9FIRM
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A0E8SJ09
|
http://purl.uniprot.org/core/mnemonic
|
A0A0E8SJ09_SALTI
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A2S6Q653
|
http://purl.uniprot.org/core/version
|
17
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/Y8UYX8
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/I2EX05
|
http://purl.uniprot.org/core/replacedBy
|
http://purl.uniprot.org/uniprot/A0ABN4APC7
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0A7Y0R3N1
|
http://purl.uniprot.org/core/modified
|
2023-05-03
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A4X1V1E1
|
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/A0A012M2Q0
|
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/A0A6U0GXF6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A3C0YZW4
|
http://purl.uniprot.org/core/mnemonic
|
A0A3C0YZW4_9CHLR
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A0Q6XM71
|
http://purl.uniprot.org/core/version
|
24
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/Z1B0C8
|
http://purl.uniprot.org/core/mnemonic
|
Z1B0C8_STAAU
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A4V1BC08
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6N0BQH6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A147B0R2
|
http://purl.uniprot.org/core/version
|
4
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A1G3P4Y9
|
http://purl.uniprot.org/core/mnemonic
|
A0A1G3P4Y9_9SPIR
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A6I5PBW4
|
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/A0A151F4Q9
|
http://purl.uniprot.org/core/created
|
2016-06-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/Y6E1H7
|
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/Y3F6P2
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A941CBN2
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1I6BD44
|
http://purl.uniprot.org/core/version
|
25
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A6T5S7M2
|
http://purl.uniprot.org/core/version
|
4
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A7H8M4L5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A3S1L8C3
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A115SLN9
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/E9U2G0
|
http://purl.uniprot.org/core/mnemonic
|
E9U2G0_ECOLX
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A785D3W7
|
http://purl.uniprot.org/core/created
|
2020-12-02
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/X7CSN3
|
http://purl.uniprot.org/core/created
|
2014-06-11
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A3A0BA79
|
http://purl.uniprot.org/core/created
|
2018-12-05
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A0K1UEE7
|
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/A0A840TC81
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AA49Y7G4
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1L9IPL0
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A064DB99
|
http://purl.uniprot.org/core/mnemonic
|
A0A064DB99_ACIBA
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A092BRZ8
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/E0KSU6
|
http://purl.uniprot.org/core/version
|
10
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A1W9U0A2
|
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/A0A078R304
|
http://purl.uniprot.org/core/modified
|
2015-06-24
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2V3CCL9
|
http://purl.uniprot.org/core/modified
|
2022-02-23
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2D6R5R6
|
http://purl.uniprot.org/core/version
|
22
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/H8E7L4
|
http://purl.uniprot.org/core/mnemonic
|
H8E7L4_9MICO
|
literal
| null | null |
http://purl.uniprot.org/uniprot/S3LNU1
|
http://purl.uniprot.org/core/mnemonic
|
S3LNU1_PASMD
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A952F3K9
|
http://purl.uniprot.org/core/version
|
6
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A439Y193
|
http://purl.uniprot.org/core/mnemonic
|
A0A439Y193_9HYPH
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A0K2J1K2
|
http://purl.uniprot.org/core/modified
|
2022-05-25
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A0F5CPY2
|
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/T3H3E5
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A1F8XQF8
|
http://purl.uniprot.org/core/version
|
14
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A229HCU2
|
http://purl.uniprot.org/core/mnemonic
|
A0A229HCU2_9ACTN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/Y2CX53
|
http://purl.uniprot.org/core/version
|
9
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/S8IBI9
|
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/A0A6G6X474
|
http://purl.uniprot.org/core/created
|
2020-08-12
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7H8X5C4
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A125MWC2
|
http://purl.uniprot.org/core/mnemonic
|
A0A125MWC2_PSEA0
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A924M334
|
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/A0A356ZCP7
|
http://purl.uniprot.org/core/version
|
3
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A0S8JSX7
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/Q2ZX64
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A968JH74
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7C4LGM7
|
http://purl.uniprot.org/core/version
|
17
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A842XXJ6
|
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/A0A227W6H4
|
http://purl.uniprot.org/core/modified
|
2017-12-20
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2A8IGP4
|
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/A0A2V3H9G8
|
http://purl.uniprot.org/core/modified
|
2019-01-16
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A5C7AEA3
|
http://purl.uniprot.org/core/mnemonic
|
A0A5C7AEA3_9BURK
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0AAX3KUK5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A0B6W0I3
|
http://purl.uniprot.org/core/version
|
5
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A0G9MIR6
|
http://purl.uniprot.org/core/created
|
2015-09-16
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6N3FR65
|
http://purl.uniprot.org/core/mnemonic
|
A0A6N3FR65_9CLOT
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A7K0NDA8
|
http://purl.uniprot.org/core/mnemonic
|
A0A7K0NDA8_9ACTN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A3A4VT52
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A2A5PDY2
|
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/A0A7C7GL21
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7C5ZXC4
|
http://purl.uniprot.org/core/mnemonic
|
A0A7C5ZXC4_9ARCH
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A927NMK6
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A050S927
|
http://purl.uniprot.org/core/mnemonic
|
A0A050S927_MYCTX
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A7G9LS46
|
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/A0AA49YY94
|
http://purl.uniprot.org/core/modified
|
2024-05-29
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6T0CIJ2
|
http://purl.uniprot.org/core/mnemonic
|
A0A6T0CIJ2_PRYPA
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A6B8HVZ5
|
http://purl.uniprot.org/core/created
|
2020-06-17
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A0Q0FIQ8
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7J9QQB1
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A843ST88
|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
|
http://purl.uniprot.org/core/Protein
|
uri
| null | null |
uniprotkb_obsolete_entries_20000000
Dataset Description
Comprehensive protein knowledgebase with functional annotations
Original Source: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_20000000.rdf.xz
Dataset Summary
This dataset contains RDF triples from uniprotkb_obsolete_entries_20000000 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_20000000")
# 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_20000000", "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_20000000")
# 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-24
Citation
If you use this dataset, please cite the original source:
Original Dataset: uniprotkb_obsolete_entries_20000000 URL: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_20000000.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_20000000 -o datasets/
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/uniprotkb_obsolete_entries_20000000/[file] \
hf_datasets/uniprotkb_obsolete_entries_20000000 \
--format xml
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset uniprotkb_obsolete_entries_20000000
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
- 32