Datasets:
subject
string | predicate
string | object
string | object_type
string | object_datatype
string | object_language
string |
|---|---|---|---|---|---|
http://purl.uniprot.org/uniprot/A0A0S4NMN6
|
http://purl.uniprot.org/core/modified
|
2017-07-05
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0AB74FXM2
|
http://purl.uniprot.org/core/created
|
2025-04-23
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A366AQP1
|
http://purl.uniprot.org/core/mnemonic
|
A0A366AQP1_9VIBR
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A097W3A5
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A2T0CBJ9
|
http://purl.uniprot.org/core/version
|
14
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0AAE4UU15
|
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/A0A2K1RZW1
|
http://purl.uniprot.org/core/modified
|
2018-04-25
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A928WJG3
|
http://purl.uniprot.org/core/mnemonic
|
A0A928WJG3_9CYAN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A939XPW6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1F0RTA8
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/Q2WUZ7
|
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/Q6HYX0
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A028C2L9
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/Y8MPX2
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7G6JMV2
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A924ZLT1
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A809NJW7
|
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/A0A6M0XZ92
|
http://purl.uniprot.org/core/created
|
2020-10-07
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A8R1UP02
|
http://purl.uniprot.org/core/version
|
4
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A1B2JX68
|
http://purl.uniprot.org/core/mnemonic
|
A0A1B2JX68_CITFR
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A829REG8
|
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/W3PL93
|
http://purl.uniprot.org/core/created
|
2014-03-19
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6I3K202
|
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/A0A3D2ZX97
|
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/A0A7J2LZU3
|
http://purl.uniprot.org/core/version
|
9
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A7Y7W8T5
|
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/A0A1H0Z8M6
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1I1C2W2
|
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/Q7AEY3
|
http://purl.uniprot.org/core/version
|
4
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A448L095
|
http://purl.uniprot.org/core/version
|
17
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A1I2G8Q2
|
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/A0A4R1WZH8
|
http://purl.uniprot.org/core/version
|
23
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A6U8YX38
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A3ZDZ1
|
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/U1UXK7
|
http://purl.uniprot.org/core/modified
|
2019-10-16
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A021JI49
|
http://purl.uniprot.org/core/version
|
6
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A555RKU4
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A042RDH4
|
http://purl.uniprot.org/core/mnemonic
|
A0A042RDH4_MYCTX
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A052HD96
|
http://purl.uniprot.org/core/created
|
2014-07-09
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/E7P472
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A0J6JUE1
|
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/A0A939KYW1
|
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/A0A7G4IJQ7
|
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/I8J1N3
|
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/A0A2Y9SUV2
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A2K4Z286
|
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/B3KW16
|
http://purl.uniprot.org/core/created
|
2008-09-02
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A060VAF5
|
http://purl.uniprot.org/core/version
|
7
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A2T7I7F9
|
http://purl.uniprot.org/core/modified
|
2022-10-12
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A699N3D3
|
http://purl.uniprot.org/core/version
|
7
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A348YQ62
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A5I2YWL2
|
http://purl.uniprot.org/core/modified
|
2021-02-10
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7C7BJ93
|
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/A0A3R4ZZR9
|
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/M2XFB2
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/T8K7H5
|
http://purl.uniprot.org/core/modified
|
2015-04-01
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6S7PER7
|
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/A0A3W1QJX4
|
http://purl.uniprot.org/core/version
|
6
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A3S2JMG4
|
http://purl.uniprot.org/core/created
|
2019-04-10
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A523CI66
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A6B2CJA4
|
http://purl.uniprot.org/core/mnemonic
|
A0A6B2CJA4_9CREN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A0T0MNT4
|
http://purl.uniprot.org/core/mnemonic
|
A0A0T0MNT4_9CELL
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A2J8XU33
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A1J5VLI5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A5S9QCJ1
|
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/A0A9E7S1C1
|
http://purl.uniprot.org/core/modified
|
2025-10-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7U7KJP3
|
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/U0RZK4
|
http://purl.uniprot.org/core/created
|
2013-11-13
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A2W6EVX9
|
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/A0A3L6DXY5
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7W1U767
|
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/A0A5P9PS25
|
http://purl.uniprot.org/core/mnemonic
|
A0A5P9PS25_9PSEU
|
literal
| null | null |
http://purl.uniprot.org/uniprot/N6NSQ3
|
http://purl.uniprot.org/core/mnemonic
|
N6NSQ3_STAAU
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A407ETK2
|
http://purl.uniprot.org/core/created
|
2019-05-08
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A049EGN0
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A8D0WGM9
|
http://purl.uniprot.org/core/replacedBy
|
http://purl.uniprot.org/uniprot/A0A287AKM3
|
uri
| null | null |
http://purl.uniprot.org/uniprot/A0AAP6VN80
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7Z7DBZ8
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/G4ULX5
|
http://purl.uniprot.org/core/modified
|
2024-10-02
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/Z9S676
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7Y9B028
|
http://purl.uniprot.org/core/created
|
2021-06-02
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A6T9F9D0
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AAF0NTD1
|
http://purl.uniprot.org/core/replacedBy
|
http://purl.uniprot.org/uniprot/Q70BJ1
|
uri
| null | null |
http://purl.uniprot.org/uniprot/Q1A9K3
|
http://purl.uniprot.org/core/version
|
18
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/Y0GZY9
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A8A9I8B0
|
http://purl.uniprot.org/core/mnemonic
|
A0A8A9I8B0_STRSZ
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A3D9GT42
|
http://purl.uniprot.org/core/mnemonic
|
A0A3D9GT42_9BACL
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A1BWX7
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A7C3HC99
|
http://purl.uniprot.org/core/obsolete
|
true
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0A170VQY2
|
http://purl.uniprot.org/core/mnemonic
|
A0A170VQY2_KLEPN
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A2H0ILD4
|
http://purl.uniprot.org/core/version
|
19
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/C1XNQ7
|
http://purl.uniprot.org/core/modified
|
2010-04-20
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/Z2E494
|
http://purl.uniprot.org/core/reviewed
|
false
|
literal
|
http://www.w3.org/2001/XMLSchema#boolean
| null |
http://purl.uniprot.org/uniprot/A0AAN5UNE4
|
http://purl.uniprot.org/core/modified
|
2024-11-27
|
literal
|
http://www.w3.org/2001/XMLSchema#date
| null |
http://purl.uniprot.org/uniprot/A0A7Y6J371
|
http://purl.uniprot.org/core/mnemonic
|
A0A7Y6J371_BACTU
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A7A5M316
|
http://purl.uniprot.org/core/version
|
4
|
literal
|
http://www.w3.org/2001/XMLSchema#int
| null |
http://purl.uniprot.org/uniprot/A0A7C2HGP0
|
http://purl.uniprot.org/core/mnemonic
|
A0A7C2HGP0_UNCFI
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0AAE9R0L3
|
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/A0A2M7XZW6
|
http://purl.uniprot.org/core/mnemonic
|
A0A2M7XZW6_9RHOO
|
literal
| null | null |
http://purl.uniprot.org/uniprot/A0A3B8JFJ8
|
http://purl.uniprot.org/core/mnemonic
|
A0A3B8JFJ8_9CYAN
|
literal
| null | null |
uniprotkb_obsolete_entries_0
Dataset Description
Comprehensive protein knowledgebase with functional annotations
Original Source: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_0.rdf.xz
Dataset Summary
This dataset contains RDF triples from uniprotkb_obsolete_entries_0 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_0")
# 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_0", "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_0")
# 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_0 URL: ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_0.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_0 -o datasets/
# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
datasets/uniprotkb_obsolete_entries_0/[file] \
hf_datasets/uniprotkb_obsolete_entries_0 \
--format xml
# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset uniprotkb_obsolete_entries_0
Additional Information
Original Source
ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/uniprotkb_obsolete_entries_0.rdf.xz
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
- 53