docfreemo commited on
Commit
1d6375b
·
verified ·
1 Parent(s): 0469bbd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +26 -54
README.md CHANGED
@@ -12,31 +12,6 @@ tags:
12
  - triples
13
  size_categories:
14
  - 1K<n<10K
15
- configs:
16
- - config_name: default
17
- data_files:
18
- - split: data
19
- path: data/data-*
20
- dataset_info:
21
- features:
22
- - name: subject
23
- dtype: string
24
- - name: predicate
25
- dtype: string
26
- - name: object
27
- dtype: string
28
- - name: object_type
29
- dtype: string
30
- - name: object_datatype
31
- dtype: string
32
- - name: object_language
33
- dtype: string
34
- splits:
35
- - name: data
36
- num_bytes: 2648040
37
- num_examples: 17823
38
- download_size: 394086
39
- dataset_size: 2648040
40
  ---
41
 
42
  # Schema.org
@@ -56,21 +31,21 @@ dataset format for easy use in machine learning pipelines.
56
  - **Size:** 0.01 GB (extracted)
57
  - **Entities:** ~2K types
58
  - **Triples:** ~15K
59
- - **Original License:** CC BY-SA 3.0
 
60
 
61
  ### Recommended Use
62
 
63
  Ontology understanding, vocabulary learning, small-scale testing
64
 
65
- ### Notes\n\nDirect download, no extraction needed
66
 
67
 
68
  ## Dataset Format: Lossless RDF Representation
69
 
70
- This dataset uses a **standard lossless format** for representing RDF (Resource
71
- Description Framework) data in HuggingFace Datasets. All semantic information from
72
- the original RDF knowledge graph is preserved, enabling perfect round-trip conversion
73
- between RDF and HuggingFace formats.
74
 
75
  ### Schema
76
 
@@ -78,16 +53,11 @@ Each RDF triple is represented as a row with **6 fields**:
78
 
79
  | Field | Type | Description | Example |
80
  |-------|------|-------------|---------|
81
- | `subject` | string | Subject of the triple (URI or blank node) |
82
- `"http://schema.org/Person"` |
83
- | `predicate` | string | Predicate URI |
84
- `"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"` |
85
- | `object` | string | Object of the triple |
86
- `"John Doe"` or `"http://schema.org/Thing"` |
87
- | `object_type` | string | Type of object: `"uri"`, `"literal"`, or
88
- `"blank_node"` | `"literal"` |
89
- | `object_datatype` | string | XSD datatype URI (for typed literals) |
90
- `"http://www.w3.org/2001/XMLSchema#integer"` |
91
  | `object_language` | string | Language tag (for language-tagged literals) | `"en"` |
92
 
93
  ### Example: RDF Triple Representation
@@ -193,14 +163,14 @@ This format preserves **100% of RDF information**:
193
 
194
  - ✅ **URIs**: Exact string representation preserved
195
  - ✅ **Literals**: Full text content preserved
196
- - ✅ **Datatypes**: XSD and custom datatypes preserved (e.g., `xsd:integer`,
197
- `xsd:dateTime`)
198
  - ✅ **Language Tags**: BCP 47 language tags preserved (e.g., `@en`, `@fr`, `@ja`)
199
- - ✅ **Blank Nodes**: Node structure preserved (identifiers may change but graph
200
- isomorphism maintained)
201
 
202
- **Round-trip guarantee**: Original RDF → HuggingFace → Reconstructed RDF produces
203
- **semantically identical** graphs.
204
 
205
  ### Querying the Dataset
206
 
@@ -233,8 +203,8 @@ print(df["predicate"].value_counts())
233
 
234
  ### Dataset Format
235
 
236
- The dataset contains all triples in a single **data** split, suitable for machine
237
- learning tasks such as:
238
 
239
  - Knowledge graph completion
240
  - Link prediction
@@ -246,7 +216,7 @@ learning tasks such as:
246
 
247
  For complete technical documentation of the RDF-to-HuggingFace format, see:
248
 
249
- [RDF to HuggingFace Format Specification](https://github.com/CleverThis/cleverernie/blob/master/docs/rdf_huggingface_format_specification.md)
250
 
251
  The specification includes:
252
  - Detailed schema definition
@@ -261,7 +231,7 @@ The specification includes:
261
  - **Original Size**: 0.01 GB
262
  - **Conversion Tool**: [CleverErnie RDF Pipeline](https://github.com/CleverThis/cleverernie)
263
  - **Format Version**: 1.0
264
- - **Conversion Date**: 2025-12-18
265
 
266
 
267
  ## Citation
@@ -281,10 +251,11 @@ This dataset was prepared using the CleverErnie GISM framework:
281
  python scripts/rdf_dataset_downloader.py schema-org -o datasets/
282
 
283
  # Convert to HuggingFace format
284
- python scripts/convert_rdf_to_hf_dataset.py \
285
  datasets/schema-org/[file] \
286
  hf_datasets/schema-org \
287
- --format turtle
 
288
 
289
  # Upload to HuggingFace Hub
290
  python scripts/upload_all_datasets.py --dataset schema-org
@@ -299,8 +270,9 @@ https://schema.org/version/latest/schemaorg-current-https.ttl
299
  ### Conversion Details
300
 
301
  - Converted using: [CleverErnie GISM](https://github.com/cleverthis/cleverernie)
302
- - Conversion script: `scripts/convert_rdf_to_hf_dataset.py`
303
  - Dataset format: Single 'data' split with all triples
 
304
 
305
  ### Maintenance
306
 
 
12
  - triples
13
  size_categories:
14
  - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
 
17
  # Schema.org
 
31
  - **Size:** 0.01 GB (extracted)
32
  - **Entities:** ~2K types
33
  - **Triples:** ~15K
34
+ - **Original License:**
35
+ CC BY-SA 3.0
36
 
37
  ### Recommended Use
38
 
39
  Ontology understanding, vocabulary learning, small-scale testing
40
 
41
+ ### Notes: Direct download, no extraction needed
42
 
43
 
44
  ## Dataset Format: Lossless RDF Representation
45
 
46
+ This dataset uses a **standard lossless format** for representing RDF (Resource Description Framework)
47
+ data in HuggingFace Datasets. All semantic information from the original RDF knowledge graph is preserved,
48
+ enabling perfect round-trip conversion between RDF and HuggingFace formats.
 
49
 
50
  ### Schema
51
 
 
53
 
54
  | Field | Type | Description | Example |
55
  |-------|------|-------------|---------|
56
+ | `subject` | string | Subject of the triple (URI or blank node) | `"http://schema.org/Person"` |
57
+ | `predicate` | string | Predicate URI | `"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"` |
58
+ | `object` | string | Object of the triple | `"John Doe"` or `"http://schema.org/Thing"` |
59
+ | `object_type` | string | Type of object: `"uri"`, `"literal"`, or `"blank_node"` | `"literal"` |
60
+ | `object_datatype` | string | XSD datatype URI (for typed literals) | `"http://www.w3.org/2001/XMLSchema#integer"` |
 
 
 
 
 
61
  | `object_language` | string | Language tag (for language-tagged literals) | `"en"` |
62
 
63
  ### Example: RDF Triple Representation
 
163
 
164
  - ✅ **URIs**: Exact string representation preserved
165
  - ✅ **Literals**: Full text content preserved
166
+ - ✅ **Datatypes**: XSD and custom datatypes preserved
167
+ (e.g., `xsd:integer`, `xsd:dateTime`)
168
  - ✅ **Language Tags**: BCP 47 language tags preserved (e.g., `@en`, `@fr`, `@ja`)
169
+ - ✅ **Blank Nodes**: Node structure preserved (identifiers may change but
170
+ graph isomorphism maintained)
171
 
172
+ **Round-trip guarantee**: Original RDF → HuggingFace → Reconstructed RDF
173
+ produces **semantically identical** graphs.
174
 
175
  ### Querying the Dataset
176
 
 
203
 
204
  ### Dataset Format
205
 
206
+ The dataset contains all triples in a single **data** split, suitable for
207
+ machine learning tasks such as:
208
 
209
  - Knowledge graph completion
210
  - Link prediction
 
216
 
217
  For complete technical documentation of the RDF-to-HuggingFace format, see:
218
 
219
+ 📖 [RDF to HuggingFace Format Specification](https://github.com/CleverThis/cleverernie/blob/master/docs/rdf_huggingface_format_specification.md)
220
 
221
  The specification includes:
222
  - Detailed schema definition
 
231
  - **Original Size**: 0.01 GB
232
  - **Conversion Tool**: [CleverErnie RDF Pipeline](https://github.com/CleverThis/cleverernie)
233
  - **Format Version**: 1.0
234
+ - **Conversion Date**: 2025-12-29
235
 
236
 
237
  ## Citation
 
251
  python scripts/rdf_dataset_downloader.py schema-org -o datasets/
252
 
253
  # Convert to HuggingFace format
254
+ python scripts/convert_rdf_to_hf_dataset_unified.py \
255
  datasets/schema-org/[file] \
256
  hf_datasets/schema-org \
257
+ --format turtle \
258
+ --strategy auto
259
 
260
  # Upload to HuggingFace Hub
261
  python scripts/upload_all_datasets.py --dataset schema-org
 
270
  ### Conversion Details
271
 
272
  - Converted using: [CleverErnie GISM](https://github.com/cleverthis/cleverernie)
273
+ - Conversion script: `scripts/convert_rdf_to_hf_dataset_unified.py`
274
  - Dataset format: Single 'data' split with all triples
275
+ - Strategy: Auto-selected based on dataset size and format
276
 
277
  ### Maintenance
278