Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,98 @@
|
|
| 1 |
-
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Dataset Card for `Text2Sparql-Clean`
|
| 2 |
+
|
| 3 |
+
### 🧾 Dataset Summary
|
| 4 |
+
|
| 5 |
+
`Text2Sparql-Clean` is a **clean, standardized, and multilingual dataset** for the task of translating natural language questions into SPARQL queries over the **DBpedia** knowledge graph. It aggregates and harmonizes four widely-used benchmarks in the text-to-SPARQL research field:
|
| 6 |
+
|
| 7 |
+
* **QALD (versions 1–9)**
|
| 8 |
+
* **LC-QuAD 1.0**
|
| 9 |
+
* **Orange/paraqa-sparqltotext**
|
| 10 |
+
* **julioc-p/Question-Sparql**
|
| 11 |
+
|
| 12 |
+
The dataset includes questions in **English** and **Spanish**, making it a valuable resource for both **monolingual** and **cross-lingual** question answering over knowledge graphs.
|
| 13 |
+
|
| 14 |
+
This is the **second official version** of the dataset.
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
### 🛠️ Key Features and Improvements
|
| 19 |
+
|
| 20 |
+
This dataset goes beyond simple aggregation. It includes several **important improvements** over the original datasets:
|
| 21 |
+
|
| 22 |
+
* ✅ **Standardized SPARQL queries**: All queries were revised to **include the necessary PREFIX declarations**, ensuring compatibility with DBpedia’s SPARQL endpoint.
|
| 23 |
+
* ✅ **Syntactic and semantic validation**: Every SPARQL query was checked for **syntactic correctness** and **semantic executability**. Faulty or malformed queries were either **fixed** or **removed**.
|
| 24 |
+
* ✅ **Clean, high-quality corpus**: The result is a **clean dataset** where all queries are **both executable and meaningful**, enabling reliable model training and evaluation.
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
### ✅ Supported Tasks
|
| 29 |
+
|
| 30 |
+
* **Text-to-SPARQL generation**
|
| 31 |
+
→ Given a natural language question, generate the corresponding SPARQL query over DBpedia.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
### 🌍 Languages
|
| 36 |
+
|
| 37 |
+
* **English** (`en`)
|
| 38 |
+
* **Spanish** (`es`)
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
### 📁 Dataset Format
|
| 43 |
+
|
| 44 |
+
Each data instance contains:
|
| 45 |
+
|
| 46 |
+
* `question`: The question in natural language (English or Spanish)
|
| 47 |
+
* `query`: The corresponding SPARQL query
|
| 48 |
+
* `dataset-id`: Original dataset source (e.g., `QALD-X`, `LCQUAD`, `Orange`, `JULIOC`)
|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
+
### 🔧 Dataset Creation Process
|
| 53 |
+
|
| 54 |
+
This dataset is the result of a **comprehensive curation pipeline**:
|
| 55 |
+
|
| 56 |
+
1. **Aggregation** of four public datasets into a unified structure.
|
| 57 |
+
* **QALD 1-9**: https://github.com/ag-sc/QALD
|
| 58 |
+
* **LC-QuAD 1.0**: https://github.com/AskNowQA/LC-QuAD
|
| 59 |
+
* **Paraqa-SparqlToText**: https://huggingface.co/datasets/Orange/paraqa-sparqltotext
|
| 60 |
+
* **Question-Sparql**: https://huggingface.co/datasets/julioc-p/Question-Sparql
|
| 61 |
+
3. **Normalization** of query formats and syntax, resulting in all queries with PREFIX.
|
| 62 |
+
4. **Insertion of missing PREFIX declarations** to ensure compliance with DBpedia standards.
|
| 63 |
+
5. **Execution validation**: All queries were tested against a DBpedia SPARQL endpoint. Queries that failed were either corrected (if trivial) or removed.
|
| 64 |
+
6. **Language consistency checks** for both English and Spanish questions.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
### 💡 Use Cases
|
| 69 |
+
|
| 70 |
+
* Training and evaluating **text-to-SPARQL models**
|
| 71 |
+
* Developing **multilingual semantic parsers**
|
| 72 |
+
* Enabling **cross-lingual question answering** over structured knowledge graphs
|
| 73 |
+
* Fine-tuning large language models on **knowledge-graph-to-text** tasks
|
| 74 |
+
|
| 75 |
+
---
|
| 76 |
+
|
| 77 |
+
### 📚 Citation
|
| 78 |
+
|
| 79 |
+
If you use this dataset in your research, please cite:
|
| 80 |
+
|
| 81 |
+
```
|
| 82 |
+
@misc{text2sparql-clean,
|
| 83 |
+
author = {Marcos Gôlo, Paulo do Carmo, Edgard Marx, Ricardo Marcacini},
|
| 84 |
+
title = {text2sparql-clean: Natural Language Text to SPARQL for DBpedia Cleaned Dataset},
|
| 85 |
+
year = {2025},
|
| 86 |
+
howpublished = {\url{https://huggingface.co/datasets/aksw/Text2Sparql-Clean}},
|
| 87 |
+
}
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
### 🪪 Licensing
|
| 93 |
+
|
| 94 |
+
license: apache-2.0
|
| 95 |
+
|
| 96 |
+
Check each dataset’s original repository for full licensing terms.
|
| 97 |
+
|
| 98 |
+
---
|