Add dataset card
Browse files
README.md
CHANGED
|
@@ -1,45 +1,303 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
-
|
| 19 |
-
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
- name: aliases_es
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: aliases_ca
|
| 27 |
-
dtype: string
|
| 28 |
-
- name: instance_of
|
| 29 |
-
dtype: string
|
| 30 |
-
- name: subclass_of
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: full_json
|
| 33 |
-
dtype: string
|
| 34 |
-
splits:
|
| 35 |
-
- name: train
|
| 36 |
-
num_bytes: 5612669
|
| 37 |
-
num_examples: 4265
|
| 38 |
-
download_size: 2351536
|
| 39 |
-
dataset_size: 5612669
|
| 40 |
-
configs:
|
| 41 |
-
- config_name: default
|
| 42 |
-
data_files:
|
| 43 |
-
- split: train
|
| 44 |
-
path: data/train-*
|
| 45 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- ca
|
| 5 |
+
- es
|
| 6 |
+
- en
|
| 7 |
+
- it
|
| 8 |
+
task_categories:
|
| 9 |
+
- feature-extraction
|
| 10 |
+
- text-generation
|
| 11 |
+
tags:
|
| 12 |
+
- knowledge-base
|
| 13 |
+
- wikidata
|
| 14 |
+
- multilingual
|
| 15 |
+
- R&D
|
| 16 |
+
- query-expansion
|
| 17 |
+
- semantic-search
|
| 18 |
+
- catalan
|
| 19 |
+
- spanish
|
| 20 |
+
- italian
|
| 21 |
+
- AINA
|
| 22 |
+
size_categories:
|
| 23 |
+
- 1K<n<10K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
---
|
| 25 |
+
|
| 26 |
+
# IMPULS R&D Knowledge Base
|
| 27 |
+
|
| 28 |
+
A multilingual knowledge base of 4,265 R&D concepts derived from Wikidata, designed for query expansion in scientific and research project search systems.
|
| 29 |
+
|
| 30 |
+
## Dataset Description
|
| 31 |
+
|
| 32 |
+
This knowledge base was created as part of the **IMPULS project** (AINA Challenge 2024), a collaboration between [SIRIS Academic](https://sirisacademic.com/) and [Generalitat de Catalunya](https://web.gencat.cat/) to build a multilingual semantic search system for R&D ecosystems.
|
| 33 |
+
|
| 34 |
+
The KB contains scientific and technological concepts with:
|
| 35 |
+
- **Multilingual labels** in Catalan, Spanish, English, and Italian
|
| 36 |
+
- **Aliases/synonyms** for each language
|
| 37 |
+
- **Definitions** where available
|
| 38 |
+
- **Hierarchical relationships** (instance_of, subclass_of) linking to Wikidata
|
| 39 |
+
|
| 40 |
+
### Use Cases
|
| 41 |
+
|
| 42 |
+
- **Query Expansion**: Expand search queries with synonyms and related terms across languages
|
| 43 |
+
- **Multilingual Search**: Find equivalent terms across CA/ES/EN/IT
|
| 44 |
+
- **Concept Navigation**: Traverse hierarchical relationships for broader/narrower terms
|
| 45 |
+
- **Named Entity Linking**: Link mentions to Wikidata identifiers
|
| 46 |
+
|
| 47 |
+
## Dataset Structure
|
| 48 |
+
|
| 49 |
+
### Format
|
| 50 |
+
|
| 51 |
+
JSONL (JSON Lines) - one concept per line.
|
| 52 |
+
|
| 53 |
+
### Schema
|
| 54 |
+
|
| 55 |
+
```json
|
| 56 |
+
{
|
| 57 |
+
"keyword": "machine learning",
|
| 58 |
+
"wikidata_id": "Q2539",
|
| 59 |
+
"languages": {
|
| 60 |
+
"ca": {
|
| 61 |
+
"label": "aprenentatge automàtic",
|
| 62 |
+
"description": "branca de la intel·ligència artificial",
|
| 63 |
+
"also_known_as": ["aprenentatge de màquines", "ML"]
|
| 64 |
+
},
|
| 65 |
+
"es": {
|
| 66 |
+
"label": "aprendizaje automático",
|
| 67 |
+
"description": "rama de la inteligencia artificial",
|
| 68 |
+
"also_known_as": ["aprendizaje de máquina", "ML"]
|
| 69 |
+
},
|
| 70 |
+
"en": {
|
| 71 |
+
"label": "machine learning",
|
| 72 |
+
"description": "branch of artificial intelligence",
|
| 73 |
+
"also_known_as": ["ML", "statistical learning"]
|
| 74 |
+
},
|
| 75 |
+
"it": {
|
| 76 |
+
"label": "apprendimento automatico",
|
| 77 |
+
"description": "ramo dell'intelligenza artificiale",
|
| 78 |
+
"also_known_as": []
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"instance_of": [
|
| 82 |
+
{"id": "Q11660", "label": "artificial intelligence"}
|
| 83 |
+
],
|
| 84 |
+
"subclass_of": [
|
| 85 |
+
{"id": "Q11660", "label": "artificial intelligence"},
|
| 86 |
+
{"id": "Q816264", "label": "computational learning theory"}
|
| 87 |
+
]
|
| 88 |
+
}
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
### Field Descriptions
|
| 92 |
+
|
| 93 |
+
| Field | Type | Description |
|
| 94 |
+
|-------|------|-------------|
|
| 95 |
+
| `keyword` | string | Primary English keyword |
|
| 96 |
+
| `wikidata_id` | string | Wikidata entity ID (Q-number) |
|
| 97 |
+
| `languages` | object | Multilingual labels, descriptions, and aliases |
|
| 98 |
+
| `languages.{lang}.label` | string | Primary label in that language |
|
| 99 |
+
| `languages.{lang}.description` | string | Short description/definition |
|
| 100 |
+
| `languages.{lang}.also_known_as` | array | Alternative names/synonyms |
|
| 101 |
+
| `instance_of` | array | Wikidata instance_of relations |
|
| 102 |
+
| `subclass_of` | array | Wikidata subclass_of relations (for hierarchy traversal) |
|
| 103 |
+
|
| 104 |
+
## Statistics
|
| 105 |
+
|
| 106 |
+
| Metric | Value |
|
| 107 |
+
|--------|-------|
|
| 108 |
+
| Total concepts | 4,265 |
|
| 109 |
+
| With Catalan labels | ~4,200 |
|
| 110 |
+
| With Spanish labels | ~4,250 |
|
| 111 |
+
| With English labels | 4,265 |
|
| 112 |
+
| With Italian labels | ~4,100 |
|
| 113 |
+
| With subclass_of relations | ~3,590 |
|
| 114 |
+
| Unique parent concepts | ~770 (in KB) |
|
| 115 |
+
|
| 116 |
+
### Domain Coverage
|
| 117 |
+
|
| 118 |
+
The KB focuses on R&D-relevant concepts including:
|
| 119 |
+
- **Technology**: AI, blockchain, IoT, robotics, quantum computing
|
| 120 |
+
- **Science**: biotechnology, nanotechnology, materials science
|
| 121 |
+
- **Health**: medical devices, diagnostics, pharmaceuticals
|
| 122 |
+
- **Energy**: renewables, hydrogen, energy storage
|
| 123 |
+
- **Environment**: climate, sustainability, circular economy
|
| 124 |
+
- **Industry**: manufacturing, automation, Industry 4.0
|
| 125 |
+
|
| 126 |
+
## Examples
|
| 127 |
+
|
| 128 |
+
### Example 1: Technology Concept
|
| 129 |
+
|
| 130 |
+
```json
|
| 131 |
+
{
|
| 132 |
+
"keyword": "blockchain",
|
| 133 |
+
"wikidata_id": "Q20514253",
|
| 134 |
+
"languages": {
|
| 135 |
+
"ca": {
|
| 136 |
+
"label": "cadena de blocs",
|
| 137 |
+
"description": "estructura de dades distribuïda",
|
| 138 |
+
"also_known_as": ["blockchain"]
|
| 139 |
+
},
|
| 140 |
+
"es": {
|
| 141 |
+
"label": "cadena de bloques",
|
| 142 |
+
"description": "base de datos distribuida",
|
| 143 |
+
"also_known_as": ["blockchain"]
|
| 144 |
+
},
|
| 145 |
+
"en": {
|
| 146 |
+
"label": "blockchain",
|
| 147 |
+
"description": "distributed database technology",
|
| 148 |
+
"also_known_as": ["block chain", "distributed ledger"]
|
| 149 |
+
}
|
| 150 |
+
},
|
| 151 |
+
"subclass_of": [
|
| 152 |
+
{"id": "Q8513", "label": "database"}
|
| 153 |
+
]
|
| 154 |
+
}
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
### Example 2: Health Concept
|
| 158 |
+
|
| 159 |
+
```json
|
| 160 |
+
{
|
| 161 |
+
"keyword": "patient",
|
| 162 |
+
"wikidata_id": "Q181600",
|
| 163 |
+
"languages": {
|
| 164 |
+
"ca": {
|
| 165 |
+
"label": "pacient",
|
| 166 |
+
"description": "",
|
| 167 |
+
"also_known_as": []
|
| 168 |
+
},
|
| 169 |
+
"es": {
|
| 170 |
+
"label": "paciente",
|
| 171 |
+
"description": "persona que recibe tratamiento para un problema de salud",
|
| 172 |
+
"also_known_as": ["pacientes", "enfermo"]
|
| 173 |
+
},
|
| 174 |
+
"en": {
|
| 175 |
+
"label": "patient",
|
| 176 |
+
"description": "person who takes a medical treatment",
|
| 177 |
+
"also_known_as": ["patients", "medical patient", "human patient"]
|
| 178 |
+
}
|
| 179 |
+
},
|
| 180 |
+
"instance_of": [
|
| 181 |
+
{"id": "Q214339", "label": "role"}
|
| 182 |
+
],
|
| 183 |
+
"subclass_of": [
|
| 184 |
+
{"id": "Q12722854", "label": "sick person"},
|
| 185 |
+
{"id": "Q852835", "label": "customer"}
|
| 186 |
+
]
|
| 187 |
+
}
|
| 188 |
+
```
|
| 189 |
+
|
| 190 |
+
## Usage
|
| 191 |
+
|
| 192 |
+
### Loading the Dataset
|
| 193 |
+
|
| 194 |
+
```python
|
| 195 |
+
from datasets import load_dataset
|
| 196 |
+
|
| 197 |
+
dataset = load_dataset("SIRIS-Lab/impuls-wikidata-kb")
|
| 198 |
+
kb = dataset["train"]
|
| 199 |
+
|
| 200 |
+
print(f"Loaded {len(kb)} concepts")
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
### Query Expansion Example
|
| 204 |
+
|
| 205 |
+
```python
|
| 206 |
+
def find_concept(kb, query):
|
| 207 |
+
"""Find concept by keyword or label."""
|
| 208 |
+
query_lower = query.lower()
|
| 209 |
+
for concept in kb:
|
| 210 |
+
if concept["keyword"].lower() == query_lower:
|
| 211 |
+
return concept
|
| 212 |
+
for lang in ["en", "es", "ca"]:
|
| 213 |
+
if concept["languages"].get(lang, {}).get("label", "").lower() == query_lower:
|
| 214 |
+
return concept
|
| 215 |
+
return None
|
| 216 |
+
|
| 217 |
+
def get_expansions(concept):
|
| 218 |
+
"""Get all labels and aliases for a concept."""
|
| 219 |
+
expansions = set()
|
| 220 |
+
for lang_data in concept["languages"].values():
|
| 221 |
+
if lang_data.get("label"):
|
| 222 |
+
expansions.add(lang_data["label"])
|
| 223 |
+
for alias in lang_data.get("also_known_as", []):
|
| 224 |
+
expansions.add(alias)
|
| 225 |
+
return expansions
|
| 226 |
+
|
| 227 |
+
# Example
|
| 228 |
+
concept = find_concept(kb, "machine learning")
|
| 229 |
+
if concept:
|
| 230 |
+
print(f"Wikidata ID: {concept['wikidata_id']}")
|
| 231 |
+
print(f"Expansions: {get_expansions(concept)}")
|
| 232 |
+
# Output: {'machine learning', 'ML', 'aprenentatge automàtic', 'aprendizaje automático', ...}
|
| 233 |
+
```
|
| 234 |
+
|
| 235 |
+
### Building a Lookup Index
|
| 236 |
+
|
| 237 |
+
```python
|
| 238 |
+
def build_kb_index(kb):
|
| 239 |
+
"""Build wikidata_id -> concept index for fast parent lookup."""
|
| 240 |
+
return {concept["wikidata_id"]: concept for concept in kb}
|
| 241 |
+
|
| 242 |
+
kb_index = build_kb_index(kb)
|
| 243 |
+
|
| 244 |
+
# Get parent concepts
|
| 245 |
+
concept = find_concept(kb, "deep learning")
|
| 246 |
+
for parent in concept.get("subclass_of", []):
|
| 247 |
+
parent_concept = kb_index.get(parent["id"])
|
| 248 |
+
if parent_concept:
|
| 249 |
+
print(f"Parent: {parent_concept['keyword']}")
|
| 250 |
+
```
|
| 251 |
+
|
| 252 |
+
## Data Collection
|
| 253 |
+
|
| 254 |
+
The knowledge base was built by:
|
| 255 |
+
|
| 256 |
+
1. **Seed Selection**: Identifying R&D-relevant concepts from project databases (RIS3CAT, OpenAIRE, CORDIS)
|
| 257 |
+
2. **Wikidata Extraction**: Querying Wikidata API for each concept's labels, aliases, and relations
|
| 258 |
+
3. **Multilingual Enrichment**: Ensuring coverage across CA/ES/EN/IT
|
| 259 |
+
4. **Hierarchy Validation**: Filtering subclass_of relations to include only parents present in the KB
|
| 260 |
+
5. **Quality Control**: Manual review of key domain concepts
|
| 261 |
+
|
| 262 |
+
## Integration with IMPULS
|
| 263 |
+
|
| 264 |
+
This KB is used by the [IMPULS Query Parser](https://huggingface.co/SIRIS-Lab/impuls-salamandra-7b-query-parser) for:
|
| 265 |
+
|
| 266 |
+
- **Query Expansion**: Adding multilingual synonyms to search queries
|
| 267 |
+
- **Cross-lingual Search**: Finding Spanish projects with Catalan queries
|
| 268 |
+
- **Concept Navigation**: Broadening searches via parent concepts
|
| 269 |
+
|
| 270 |
+
## Limitations
|
| 271 |
+
|
| 272 |
+
- **Domain Focus**: Optimized for R&D/scientific concepts; general vocabulary coverage is limited
|
| 273 |
+
- **Language Coverage**: Best coverage in English; some concepts may lack labels in other languages
|
| 274 |
+
- **Temporal Snapshot**: Based on Wikidata as of late 2024; may not reflect recent additions
|
| 275 |
+
- **Hierarchy Depth**: Only direct parents (subclass_of) are included; transitive closure not computed
|
| 276 |
+
|
| 277 |
+
## Citation
|
| 278 |
+
|
| 279 |
+
```bibtex
|
| 280 |
+
@misc{impuls-wikidata-kb-2024,
|
| 281 |
+
author = {SIRIS Academic},
|
| 282 |
+
title = {IMPULS R&D Knowledge Base: Multilingual Wikidata Concepts for Query Expansion},
|
| 283 |
+
year = {2024},
|
| 284 |
+
publisher = {Hugging Face},
|
| 285 |
+
howpublished = {\url{https://huggingface.co/datasets/SIRIS-Lab/impuls-wikidata-kb}}
|
| 286 |
+
}
|
| 287 |
+
```
|
| 288 |
+
|
| 289 |
+
## Acknowledgments
|
| 290 |
+
|
| 291 |
+
- **[Wikidata](https://www.wikidata.org/)** - Source knowledge graph
|
| 292 |
+
- **[Barcelona Supercomputing Center (BSC)](https://www.bsc.es/)** - AINA project infrastructure
|
| 293 |
+
- **[Generalitat de Catalunya](https://web.gencat.cat/)** - Funding and RIS3-MCAT platform
|
| 294 |
+
|
| 295 |
+
## License
|
| 296 |
+
|
| 297 |
+
Apache 2.0
|
| 298 |
+
|
| 299 |
+
## Related Resources
|
| 300 |
+
|
| 301 |
+
- **Query Parser Model**: [SIRIS-Lab/impuls-salamandra-7b-query-parser](https://huggingface.co/SIRIS-Lab/impuls-salamandra-7b-query-parser)
|
| 302 |
+
- **Query Parsing Dataset**: [SIRIS-Lab/impuls-query-parsing](https://huggingface.co/datasets/SIRIS-Lab/impuls-query-parsing)
|
| 303 |
+
- **Project Repository**: [github.com/sirisacademic/aina-impulse](https://github.com/sirisacademic/aina-impulse)
|