docfreemo commited on
Commit
ccfc9e4
·
verified ·
1 Parent(s): 4d69dd6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +22 -39
README.md CHANGED
@@ -12,31 +12,6 @@ tags:
12
  - triples
13
  size_categories:
14
  - 1K<n<10K
15
- dataset_info:
16
- features:
17
- - name: subject
18
- dtype: string
19
- - name: predicate
20
- dtype: string
21
- - name: object
22
- dtype: string
23
- - name: object_type
24
- dtype: string
25
- - name: object_datatype
26
- dtype: 'null'
27
- - name: object_language
28
- dtype: 'null'
29
- splits:
30
- - name: data
31
- num_bytes: 29616925
32
- num_examples: 154213
33
- download_size: 2431122
34
- dataset_size: 29616925
35
- configs:
36
- - config_name: default
37
- data_files:
38
- - split: data
39
- path: data/data-*
40
  ---
41
 
42
  # NELL-995
@@ -49,20 +24,21 @@ Never-Ending Learning subset for link prediction
49
 
50
  ### Dataset Summary
51
 
52
- This dataset contains RDF triples from NELL-995 converted to HuggingFace dataset format
53
- for easy use in machine learning pipelines.
54
 
55
  - **Format:** Originally tsv, converted to HuggingFace Dataset
56
  - **Size:** 0.12 GB (extracted)
57
  - **Entities:** ~75,492
58
  - **Triples:** 154,213
59
- - **Original License:** CC BY-NC
 
60
 
61
  ### Recommended Use
62
 
63
  Semi-supervised learning benchmarks, noisy data experiments
64
 
65
- ### Notes\n\nNAACL18 paper dataset. Contains raw.kb file with triples and evaluation splits. Format: tab-separated triples.
66
 
67
 
68
  ## Dataset Format: Lossless RDF Representation
@@ -131,7 +107,8 @@ for row in data:
131
 
132
  ### Converting Back to RDF
133
 
134
- The dataset can be converted back to any RDF format (Turtle, N-Triples, RDF/XML, etc.) with **zero information loss**:
 
135
 
136
  ```python
137
  from datasets import load_dataset
@@ -186,11 +163,14 @@ This format preserves **100% of RDF information**:
186
 
187
  - ✅ **URIs**: Exact string representation preserved
188
  - ✅ **Literals**: Full text content preserved
189
- - ✅ **Datatypes**: XSD and custom datatypes preserved (e.g., `xsd:integer`, `xsd:dateTime`)
 
190
  - ✅ **Language Tags**: BCP 47 language tags preserved (e.g., `@en`, `@fr`, `@ja`)
191
- - ✅ **Blank Nodes**: Node structure preserved (identifiers may change but graph isomorphism maintained)
 
192
 
193
- **Round-trip guarantee**: Original RDF → HuggingFace → Reconstructed RDF produces **semantically identical** graphs.
 
194
 
195
  ### Querying the Dataset
196
 
@@ -223,7 +203,8 @@ print(df["predicate"].value_counts())
223
 
224
  ### Dataset Format
225
 
226
- The dataset contains all triples in a single **data** split, suitable for machine learning tasks such as:
 
227
 
228
  - Knowledge graph completion
229
  - Link prediction
@@ -250,7 +231,7 @@ The specification includes:
250
  - **Original Size**: 0.12 GB
251
  - **Conversion Tool**: [CleverErnie RDF Pipeline](https://github.com/CleverThis/cleverernie)
252
  - **Format Version**: 1.0
253
- - **Conversion Date**: 2025-11-06
254
 
255
 
256
  ## Citation
@@ -267,13 +248,14 @@ This dataset was prepared using the CleverErnie GISM framework:
267
 
268
  ```bash
269
  # Download original dataset
270
- cleverernie download-dataset -d nell-995
271
 
272
  # Convert to HuggingFace format
273
- python scripts/convert_rdf_to_hf_dataset.py \
274
  datasets/nell-995/[file] \
275
  hf_datasets/nell-995 \
276
- --format tsv
 
277
 
278
  # Upload to HuggingFace Hub
279
  python scripts/upload_all_datasets.py --dataset nell-995
@@ -288,8 +270,9 @@ https://github.com/wenhuchen/KB-Reasoning-Data/archive/refs/heads/master.zip
288
  ### Conversion Details
289
 
290
  - Converted using: [CleverErnie GISM](https://github.com/cleverthis/cleverernie)
291
- - Conversion script: `scripts/convert_rdf_to_hf_dataset.py`
292
  - Dataset format: Single 'data' split with all triples
 
293
 
294
  ### Maintenance
295
 
 
12
  - triples
13
  size_categories:
14
  - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
 
17
  # NELL-995
 
24
 
25
  ### Dataset Summary
26
 
27
+ This dataset contains RDF triples from NELL-995 converted to HuggingFace
28
+ dataset format for easy use in machine learning pipelines.
29
 
30
  - **Format:** Originally tsv, converted to HuggingFace Dataset
31
  - **Size:** 0.12 GB (extracted)
32
  - **Entities:** ~75,492
33
  - **Triples:** 154,213
34
+ - **Original License:**
35
+ CC BY-NC
36
 
37
  ### Recommended Use
38
 
39
  Semi-supervised learning benchmarks, noisy data experiments
40
 
41
+ ### Notes: NAACL18 paper dataset. Contains raw.kb file with triples and evaluation splits. Format: tab-separated triples.
42
 
43
 
44
  ## Dataset Format: Lossless RDF Representation
 
107
 
108
  ### Converting Back to RDF
109
 
110
+ The dataset can be converted back to any RDF format (Turtle, N-Triples, RDF/XML,
111
+ etc.) with **zero information loss**:
112
 
113
  ```python
114
  from datasets import load_dataset
 
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
 
231
  - **Original Size**: 0.12 GB
232
  - **Conversion Tool**: [CleverErnie RDF Pipeline](https://github.com/CleverThis/cleverernie)
233
  - **Format Version**: 1.0
234
+ - **Conversion Date**: 2026-01-09
235
 
236
 
237
  ## Citation
 
248
 
249
  ```bash
250
  # Download original dataset
251
+ python scripts/rdf_dataset_downloader.py nell-995 -o datasets/
252
 
253
  # Convert to HuggingFace format
254
+ python scripts/convert_rdf_to_hf_dataset_unified.py \
255
  datasets/nell-995/[file] \
256
  hf_datasets/nell-995 \
257
+ --format tsv \
258
+ --strategy auto
259
 
260
  # Upload to HuggingFace Hub
261
  python scripts/upload_all_datasets.py --dataset nell-995
 
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