GodotCN J0nasW commited on
Commit
8897a7a
·
0 Parent(s):

Duplicate from J0nasW/science-datalake

Browse files

Co-authored-by: Jonas Wilinski <J0nasW@users.noreply.huggingface.co>

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +61 -0
  2. README.md +329 -0
  3. datalake.duckdb +3 -0
  4. ontologies/agrovoc_hierarchy/agrovoc_hierarchy.parquet +3 -0
  5. ontologies/agrovoc_terms/agrovoc_terms.parquet +3 -0
  6. ontologies/agrovoc_xrefs/agrovoc_xrefs.parquet +3 -0
  7. ontologies/chebi_hierarchy/chebi_hierarchy.parquet +3 -0
  8. ontologies/chebi_terms/chebi_terms.parquet +3 -0
  9. ontologies/chebi_xrefs/chebi_xrefs.parquet +3 -0
  10. ontologies/cso_hierarchy/cso_hierarchy.parquet +3 -0
  11. ontologies/cso_terms/cso_terms.parquet +3 -0
  12. ontologies/cso_xrefs/cso_xrefs.parquet +3 -0
  13. ontologies/doid_hierarchy/doid_hierarchy.parquet +3 -0
  14. ontologies/doid_terms/doid_terms.parquet +3 -0
  15. ontologies/doid_xrefs/doid_xrefs.parquet +3 -0
  16. ontologies/edam_hierarchy/edam_hierarchy.parquet +3 -0
  17. ontologies/edam_terms/edam_terms.parquet +3 -0
  18. ontologies/edam_xrefs/edam_xrefs.parquet +3 -0
  19. ontologies/go_hierarchy/go_hierarchy.parquet +3 -0
  20. ontologies/go_terms/go_terms.parquet +3 -0
  21. ontologies/go_xrefs/go_xrefs.parquet +3 -0
  22. ontologies/hpo_hierarchy/hpo_hierarchy.parquet +3 -0
  23. ontologies/hpo_terms/hpo_terms.parquet +3 -0
  24. ontologies/hpo_xrefs/hpo_xrefs.parquet +3 -0
  25. ontologies/mesh_terms/mesh_terms.parquet +3 -0
  26. ontologies/msc2020_hierarchy/msc2020_hierarchy.parquet +3 -0
  27. ontologies/msc2020_terms/msc2020_terms.parquet +3 -0
  28. ontologies/ncit_hierarchy/ncit_hierarchy.parquet +3 -0
  29. ontologies/ncit_terms/ncit_terms.parquet +3 -0
  30. ontologies/ncit_xrefs/ncit_xrefs.parquet +3 -0
  31. ontologies/physh_hierarchy/physh_hierarchy.parquet +3 -0
  32. ontologies/physh_terms/physh_terms.parquet +3 -0
  33. ontologies/stw_hierarchy/stw_hierarchy.parquet +3 -0
  34. ontologies/stw_terms/stw_terms.parquet +3 -0
  35. ontologies/unesco_hierarchy/unesco_hierarchy.parquet +3 -0
  36. ontologies/unesco_terms/unesco_terms.parquet +3 -0
  37. openalex/authors/authors.parquet +3 -0
  38. openalex/authors_counts_by_year/authors_counts_by_year.parquet +3 -0
  39. openalex/authors_ids/authors_ids.parquet +3 -0
  40. openalex/awards/awards.parquet +3 -0
  41. openalex/concepts/concepts.parquet +3 -0
  42. openalex/domains/domains.parquet +3 -0
  43. openalex/fields/fields.parquet +3 -0
  44. openalex/funders/funders.parquet +3 -0
  45. openalex/institutions/institutions.parquet +3 -0
  46. openalex/publishers/publishers.parquet +3 -0
  47. openalex/sources/sources.parquet +3 -0
  48. openalex/subfields/subfields.parquet +3 -0
  49. openalex/topics/topics.parquet +3 -0
  50. openalex/works/works.parquet +3 -0
.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
61
+ datalake.duckdb filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license:
5
+ - cc0-1.0
6
+ - cc-by-4.0
7
+ - cc-by-sa-4.0
8
+ - cc-by-nc-sa-4.0
9
+ - cc-by-nc-4.0
10
+ size_categories:
11
+ - 100M<n<1B
12
+ task_categories:
13
+ - text-classification
14
+ - feature-extraction
15
+ tags:
16
+ - scholarly
17
+ - academic
18
+ - citations
19
+ - bibliometrics
20
+ - science-of-science
21
+ - openalex
22
+ - sciscinet
23
+ - papers-with-code
24
+ - duckdb
25
+ - parquet
26
+ - ontologies
27
+ - knowledge-graph
28
+ pretty_name: Science Data Lake
29
+ thumbnail: https://raw.githubusercontent.com/J0nasW/science-datalake/main/sdl_banner.jpg
30
+ configs:
31
+ # Cross-reference tables
32
+ - config_name: unified_papers
33
+ data_files: "xref/unified_papers/*.parquet"
34
+ - config_name: topic_ontology_map
35
+ data_files: "xref/topic_ontology_map/*.parquet"
36
+ - config_name: ontology_bridges
37
+ data_files: "xref/ontology_bridges/*.parquet"
38
+ # OpenAlex (CC0 1.0)
39
+ - config_name: openalex_works
40
+ data_files: "openalex/works/*.parquet"
41
+ - config_name: openalex_authors
42
+ data_files: "openalex/authors/*.parquet"
43
+ - config_name: openalex_topics
44
+ data_files: "openalex/topics/*.parquet"
45
+ - config_name: openalex_works_topics
46
+ data_files: "openalex/works_topics/*.parquet"
47
+ - config_name: openalex_works_authorships
48
+ data_files: "openalex/works_authorships/*.parquet"
49
+ - config_name: openalex_works_referenced_works
50
+ data_files: "openalex/works_referenced_works/*.parquet"
51
+ - config_name: openalex_works_keywords
52
+ data_files: "openalex/works_keywords/*.parquet"
53
+ - config_name: openalex_institutions
54
+ data_files: "openalex/institutions/*.parquet"
55
+ # SciSciNet (CC BY 4.0)
56
+ - config_name: sciscinet_core
57
+ data_files: "sciscinet/core/*.parquet"
58
+ - config_name: sciscinet_large
59
+ data_files: "sciscinet/large/*.parquet"
60
+ # Papers With Code (CC BY-SA 4.0)
61
+ - config_name: pwc_papers
62
+ data_files: "pwc/papers/*.parquet"
63
+ - config_name: pwc_paper_has_code
64
+ data_files: "pwc/paper_has_code/*.parquet"
65
+ - config_name: pwc_methods
66
+ data_files: "pwc/methods/*.parquet"
67
+ - config_name: pwc_paper_has_task
68
+ data_files: "pwc/paper_has_task/*.parquet"
69
+ - config_name: pwc_datasets
70
+ data_files: "pwc/datasets/*.parquet"
71
+ # Other sources
72
+ - config_name: retwatch
73
+ data_files: "retwatch/retraction_watch/*.parquet"
74
+ - config_name: p2p_preprint_to_paper
75
+ data_files: "p2p/preprint_to_paper/*.parquet"
76
+ # Reliance on Science (CC BY-NC 4.0)
77
+ - config_name: ros_patent_paper_pairs
78
+ data_files: "ros/patent_paper_pairs/*.parquet"
79
+ - config_name: ros_patent_paper_pairs_plus
80
+ data_files: "ros/patent_paper_pairs_plus/*.parquet"
81
+ - config_name: ros_pcs_oa
82
+ data_files: "ros/pcs_oa/*.parquet"
83
+ # Ontologies (various licenses, see below)
84
+ - config_name: ontology_terms
85
+ data_files: "ontologies/*_terms.parquet"
86
+ - config_name: ontology_hierarchy
87
+ data_files: "ontologies/*_hierarchy.parquet"
88
+ - config_name: ontology_xrefs
89
+ data_files: "ontologies/*_xrefs.parquet"
90
+ ---
91
+
92
+ <p align="center">
93
+ <img src="https://raw.githubusercontent.com/J0nasW/science-datalake/main/sdl_banner.jpg" alt="Science Data Lake" width="100%">
94
+ </p>
95
+
96
+ <p align="center">
97
+ <a href="https://arxiv.org/abs/2603.03126"><img src="https://img.shields.io/badge/arXiv-2603.03126-b31b1b" alt="arXiv"></a>
98
+ <a href="https://github.com/J0nasW/science-datalake"><img src="https://img.shields.io/badge/GitHub-Repository-181717?logo=github" alt="GitHub"></a>
99
+ <a href="https://doi.org/10.57967/hf/7850"><img src="https://img.shields.io/badge/DOI-10.57967%2Fhf%2F7850-blue" alt="DOI"></a>
100
+ <a href="https://github.com/J0nasW/science-datalake/blob/main/SCHEMA.md"><img src="https://img.shields.io/badge/LLM--Ready-SCHEMA.md-purple" alt="LLM-Ready"></a>
101
+ <a href="https://x.com/Jonas_H_W"><img src="https://img.shields.io/badge/Follow-%40Jonas__H__W-black?logo=x" alt="Follow on X"></a>
102
+ <a href="https://wilinski.me"><img src="https://img.shields.io/badge/Author-wilinski.me-orange" alt="Author website"></a>
103
+ </p>
104
+
105
+ # Science Data Lake
106
+
107
+ A unified, portable science data lake integrating **7 scholarly datasets** (~525 GB Parquet) with cross-dataset DOI normalization, **13 scientific ontologies** (1.3M terms), and a reproducible ETL pipeline.
108
+
109
+ > **Note:** One additional source (Semantic Scholar S2AG) is supported by the pipeline but is **not redistributed here** due to its API terms of service. See [Not Included in This Upload](#not-included-in-this-upload) below.
110
+
111
+ ## What's Unique
112
+
113
+ This dataset enables queries that are **impossible with any single source**:
114
+
115
+ ```sql
116
+ -- "Top disruptive papers with open-source code, checking for retractions"
117
+ SELECT doi, title, year,
118
+ sciscinet_disruption, -- from SciSciNet
119
+ oa_cited_by_count, -- from OpenAlex
120
+ has_pwc, -- from Papers With Code
121
+ has_retraction -- from Retraction Watch
122
+ FROM unified_papers
123
+ WHERE has_pwc AND sciscinet_disruption > 0.5
124
+ ORDER BY oa_cited_by_count DESC
125
+ LIMIT 20
126
+ ```
127
+
128
+ ## Datasets Included
129
+
130
+ | Dataset | Papers/Records | License | Key Contribution |
131
+ |---------|---------------|---------|-----------------|
132
+ | **OpenAlex** | 479M works | **CC0 1.0** (public domain) | Broadest coverage, topics, FWCI |
133
+ | **SciSciNet** v2 | 250M papers | **CC BY 4.0** | Disruption index, atypicality, team size |
134
+ | **Papers With Code** | 513K papers | **CC BY-SA 4.0** | Method-task-dataset-code links |
135
+ | **Retraction Watch** | 69K records | **Open** (via Crossref) | Retraction flags + reasons |
136
+ | **Reliance on Science** | 47.8M pairs | **CC BY-NC 4.0** | Patent-to-paper citation pairs (global) |
137
+ | **Preprint-to-Paper** | 146K pairs | **CC BY 4.0** | bioRxiv preprint to published paper |
138
+ | **13 Ontologies** | 1.3M terms | Various (see below) | CSO, MeSH, GO, DOID, ChEBI, NCIT, HPO, EDAM, AGROVOC, UNESCO, STW, MSC2020, PhySH |
139
+
140
+ ### Ontology Licenses
141
+
142
+ | Ontology | License |
143
+ |----------|---------|
144
+ | MeSH | Public Domain (US government work) |
145
+ | GO, ChEBI, NCIT, EDAM, CSO, PhySH, STW | CC BY 4.0 |
146
+ | DOID | CC0 1.0 |
147
+ | AGROVOC | CC BY 3.0 IGO |
148
+ | UNESCO Thesaurus | CC BY-SA 3.0 IGO |
149
+ | HPO | Custom (free for research use) |
150
+ | MSC2020 | **CC BY-NC-SA 4.0** (non-commercial) |
151
+
152
+ ### Snapshot Dates
153
+
154
+ Each source was downloaded at a specific point in time:
155
+
156
+ | Dataset | Snapshot / Release | Notes |
157
+ |---------|-------------------|-------|
158
+ | OpenAlex | 2026-02-03 | S3 snapshot |
159
+ | SciSciNet v2 | 2024-11-01 | GCS bucket |
160
+ | Papers With Code | 2025-07 | Archived JSON |
161
+ | Retraction Watch | 2025-02 | Crossref CSV |
162
+ | Reliance on Science | v64 | Zenodo record |
163
+ | Preprint-to-Paper | 2025-06 | Zenodo record |
164
+ | 13 Ontologies | 2026-02 | Official sources |
165
+
166
+ All snapshots can be refreshed using the [update pipeline](https://github.com/J0nasW/science-datalake) — see below.
167
+
168
+ ### Not Included in This Upload
169
+
170
+ The following source is supported by the full pipeline ([GitHub](https://github.com/J0nasW/science-datalake)) but is **not redistributed here** due to its API terms of service:
171
+
172
+ | Dataset | Reason | How to obtain |
173
+ |---------|--------|---------------|
174
+ | **S2AG** (Semantic Scholar, 231M papers) | License requires individual agreement with Semantic Scholar | [Semantic Scholar Datasets API](https://api.semanticscholar.org/api-docs/datasets) |
175
+
176
+ After downloading S2AG locally, run the full pipeline to integrate it.
177
+
178
+ ## Key Tables
179
+
180
+ ### `unified_papers` (293M rows)
181
+ The headline table: one row per unique DOI, joining all sources.
182
+
183
+ | Column | Type | Description |
184
+ |--------|------|-------------|
185
+ | `doi` | VARCHAR | Normalized DOI (lowercase, no prefix) |
186
+ | `title` | VARCHAR | Best available title (OpenAlex > S2AG) |
187
+ | `year` | BIGINT | Publication year |
188
+ | `openalex_id` | VARCHAR | OpenAlex work ID |
189
+ | `sciscinet_paperid` | VARCHAR | SciSciNet paper ID |
190
+ | `has_openalex` | BOOLEAN | Present in OpenAlex |
191
+ | `has_sciscinet` | BOOLEAN | Present in SciSciNet |
192
+ | `has_pwc` | BOOLEAN | Has code on Papers With Code |
193
+ | `has_retraction` | BOOLEAN | Flagged in Retraction Watch |
194
+ | `has_s2ag` | BOOLEAN | Present in Semantic Scholar |
195
+ | `has_patent` | BOOLEAN | Cited by at least one patent (RoS) |
196
+ | `s2ag_corpusid` | BIGINT | Semantic Scholar corpus ID |
197
+ | `s2ag_citationcount` | INTEGER | S2AG citation count |
198
+ | `oa_cited_by_count` | BIGINT | OpenAlex citation count |
199
+ | `sciscinet_disruption` | DOUBLE | Disruption index (CD index) |
200
+ | `sciscinet_atypicality` | DOUBLE | Atypicality score |
201
+ | `oa_fwci` | DOUBLE | Field-Weighted Citation Impact |
202
+
203
+ > **Note:** The S2AG columns (`s2ag_corpusid`, `s2ag_citationcount`, `s2ag_influentialcitationcount`, `s2ag_isopenaccess`, `has_s2ag`) are present in the uploaded file but will contain NULL/FALSE values unless S2AG has been integrated locally. All other columns (including `has_patent` from Reliance on Science) are fully populated.
204
+
205
+ ### `topic_ontology_map`
206
+ Maps OpenAlex's 4,516 topics to terms in 13 scientific ontologies via embedding-based semantic similarity (BGE-large-en-v1.5, 1024-dim) + exact matching for large ontologies (MeSH, ChEBI, NCIT). 16,150 mappings covering 99.8% of topics. Columns include `similarity` (cosine, 0-1) and `match_type` (label/synonym/exact) for quality filtering.
207
+
208
+ ### `ontology_bridges`
209
+ Cross-ontology links discovered via shared external IDs (UMLS, Wikidata, MESH, etc.).
210
+
211
+ ## Usage with DuckDB
212
+
213
+ ### Option 1: Pre-built database file (recommended)
214
+
215
+ This repository includes a ready-to-use DuckDB database file (`datalake.duckdb`, 274 KB) with 145 SQL views pre-configured to read directly from HuggingFace. Download just this one file and query all 7 datasets immediately — no pipeline setup required.
216
+
217
+ ```python
218
+ import duckdb
219
+
220
+ con = duckdb.connect()
221
+ con.execute("INSTALL httpfs; LOAD httpfs;")
222
+ con.execute("ATTACH 'hf://datasets/J0nasW/science-datalake/datalake.duckdb' AS lake")
223
+
224
+ # Query using familiar schema.table syntax
225
+ df = con.execute("""
226
+ SELECT doi, title, year, sciscinet_disruption, oa_cited_by_count
227
+ FROM lake.xref.unified_papers
228
+ WHERE sciscinet_disruption IS NOT NULL
229
+ ORDER BY sciscinet_disruption DESC
230
+ LIMIT 100
231
+ """).df()
232
+
233
+ # Cross-source joins work out of the box
234
+ con.execute("""
235
+ SELECT t.display_name AS topic, o.ontology, o.term_name, o.similarity
236
+ FROM lake.xref.topic_ontology_map o
237
+ JOIN lake.openalex.topics t ON t.id = o.topic_id
238
+ WHERE o.similarity >= 0.85
239
+ ORDER BY o.similarity DESC
240
+ LIMIT 20
241
+ """).df()
242
+ ```
243
+
244
+ ### Option 2: Direct Parquet queries
245
+
246
+ You can also query individual Parquet files directly without the database file:
247
+
248
+ ```python
249
+ import duckdb
250
+
251
+ con = duckdb.connect()
252
+ con.execute("INSTALL httpfs; LOAD httpfs;")
253
+
254
+ df = con.execute("""
255
+ SELECT doi, title, year, sciscinet_disruption, oa_cited_by_count
256
+ FROM 'hf://datasets/J0nasW/science-datalake/xref/unified_papers/*.parquet'
257
+ WHERE sciscinet_disruption IS NOT NULL
258
+ ORDER BY sciscinet_disruption DESC
259
+ LIMIT 100
260
+ """).df()
261
+ ```
262
+
263
+ ## Keeping the Data Current
264
+
265
+ The full pipeline supports incremental updates. When upstream sources release new snapshots:
266
+
267
+ ```bash
268
+ # Update a single dataset
269
+ python scripts/datalake_cli.py update openalex
270
+
271
+ # Update all datasets and rebuild cross-reference tables
272
+ python scripts/datalake_cli.py update
273
+ python scripts/materialize_unified_papers.py
274
+ ```
275
+
276
+ See the [GitHub repository](https://github.com/J0nasW/science-datalake) for full pipeline documentation.
277
+
278
+ ## LLM & AI Agent Integration
279
+
280
+ This data lake ships with **[SCHEMA.md](https://github.com/J0nasW/science-datalake/blob/main/SCHEMA.md)** — a structured reference file optimized for LLM-based coding agents (Claude Code, Cursor, Copilot, etc.). It contains every table, column, type, join strategy, and performance tier in a format that AI agents can use to write correct DuckDB SQL without prior schema knowledge.
281
+
282
+ Point your AI assistant at `SCHEMA.md` and ask it to query across all 7 hosted datasets and 13 ontologies using natural language.
283
+
284
+ ## Building the Full Instance (All 8 Sources)
285
+
286
+ Clone the GitHub repository and run the pipeline to integrate all sources including S2AG:
287
+
288
+ ```bash
289
+ git clone https://github.com/J0nasW/science-datalake
290
+ cd science-datalake
291
+ python scripts/datalake_cli.py download --all
292
+ python scripts/datalake_cli.py convert --all
293
+ python scripts/create_unified_db.py
294
+ python scripts/materialize_unified_papers.py
295
+ ```
296
+
297
+ ## Citation
298
+
299
+ If you use the Science Data Lake, please cite the paper:
300
+
301
+ ```bibtex
302
+ @article{wilinski2026sciencedatalake,
303
+ title = {The Science Data Lake: A Unified Open Infrastructure Integrating
304
+ 293 Million Papers Across Eight Scholarly Sources with
305
+ Embedding-Based Ontology Alignment},
306
+ author = {Wilinski, Jonas},
307
+ journal = {arXiv preprint arXiv:2603.03126},
308
+ year = {2026},
309
+ url = {https://arxiv.org/abs/2603.03126}
310
+ }
311
+ ```
312
+
313
+ Dataset DOI: [10.57967/hf/7850](https://doi.org/10.57967/hf/7850)
314
+
315
+ ## License
316
+
317
+ This dataset aggregates multiple sources, each with its own license. **Users must comply with the most restrictive license applicable to the sources they use.**
318
+
319
+ | Component | License |
320
+ |-----------|---------|
321
+ | Integration code (scripts, pipeline) | MIT |
322
+ | OpenAlex data | CC0 1.0 (public domain) |
323
+ | SciSciNet v2 data | CC BY 4.0 |
324
+ | Papers With Code data | CC BY-SA 4.0 |
325
+ | Retraction Watch data | Open (via Crossref) |
326
+ | Reliance on Science data | CC BY-NC 4.0 |
327
+ | Preprint-to-Paper data | CC BY 4.0 |
328
+ | Cross-reference tables (`unified_papers`, `topic_ontology_map`) | Derived work — most restrictive source license applies |
329
+ | Ontologies | Various — see table above; note **MSC2020 is CC BY-NC-SA 4.0** |
datalake.duckdb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b748b0a21c396a4d0058dfb4ba535bf299974e4975a01c3e54e5eba6c5035c3
3
+ size 274432
ontologies/agrovoc_hierarchy/agrovoc_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14eb9dfac0c29bf8370eec2f055c748ae5b56031368e30c5b5a91359be9cbe21
3
+ size 329108
ontologies/agrovoc_terms/agrovoc_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c275924b8e41625f1979cc131edfbddb0ad0a841a52863041cd5f95adb7c6edd
3
+ size 375552
ontologies/agrovoc_xrefs/agrovoc_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ec15640984a1e59d8228f6b383fc0217b575ca85f592a9426e5945541002107
3
+ size 588231
ontologies/chebi_hierarchy/chebi_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a65eeb5f464bc64cf5fbba855d0d442fc47e4fcb4b3cd1acf2c1b8ff01d3f9c7
3
+ size 1261053
ontologies/chebi_terms/chebi_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3879ddab6d265fd3533c7d71b894dc3519733a2668002a23f80419eb8abbbb40
3
+ size 11267095
ontologies/chebi_xrefs/chebi_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74bf469ab829787fd864b348f8965c5bae628395121747c45f798f88111977bf
3
+ size 2583566
ontologies/cso_hierarchy/cso_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2e3c5dcf10794c5b0f4f2437da9e7ebd962c083646c635d89566f8ea0a1a412
3
+ size 397863
ontologies/cso_terms/cso_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67b5e5b5df2d8b6db2a42aee867dd0a16b30bbd8673000f6508767b0b6288b81
3
+ size 320594
ontologies/cso_xrefs/cso_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0759b9330426ac76207178fa2a46bcc8bd7359bd82bd3a91862a0759bba414b
3
+ size 240850
ontologies/doid_hierarchy/doid_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:214fbd5cdd5380b7f836e8a58074b3ff0142d1ab40ff5246f985f733df2652c1
3
+ size 80016
ontologies/doid_terms/doid_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bd3c7d8c1c309ca4c91ad648ae9c09befc202f3906c9ab28c0a032b865af620
3
+ size 911165
ontologies/doid_xrefs/doid_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f0965b0282ed1d88134f84f2df95c781c51fe01142983c4f67451fb463b72c
3
+ size 309580
ontologies/edam_hierarchy/edam_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd6ab9c282627c0db0ec201dbd5baa617fc988d0b3b386f0e8128ccb0d43ce14
3
+ size 24083
ontologies/edam_terms/edam_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8b3b3ef1d6fce026cad5932dbcf1cd43bf8008b93c2b821e66b30bbb6a5fef5
3
+ size 73652
ontologies/edam_xrefs/edam_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04ea3285dabe07c1d58204228f164e7f304614d03d1ccedc2d05becc3e1cdd7f
3
+ size 6209
ontologies/go_hierarchy/go_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fb451941a0e522a42f431d0a6ef50345aa39116c55501f861031f05bf7fe3db
3
+ size 390212
ontologies/go_terms/go_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ad81273290d172dcb002280b771918dac72bebcaf83c907d6a14318ad75756c
3
+ size 3246092
ontologies/go_xrefs/go_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8303f6448d88d3a61822430587d78650c916607ca8389d1fbff01551a43219ed
3
+ size 236630
ontologies/hpo_hierarchy/hpo_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49b85336e4d65f6717fdf8f8769130ad00be35025f00222b97c0e08f550ba901
3
+ size 129542
ontologies/hpo_terms/hpo_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57765ddd077862faf1dc4077a7d663bd71ad47f3080917e6c7ee0e13e4d943a5
3
+ size 1241512
ontologies/hpo_xrefs/hpo_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89657be85335c55138ef72099d4bb142bd68fe70e95f3dcf7a456012d7709b2c
3
+ size 158642
ontologies/mesh_terms/mesh_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bfa2245bf7bfcb524b9c4b50e75ef0ee3c651fae9fdaad176ab24d797b6ae29
3
+ size 15269000
ontologies/msc2020_hierarchy/msc2020_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec18068bafca6ce8ff33f68e52b1edb0ec46c96a33470def8b8b4dec72381a5b
3
+ size 29821
ontologies/msc2020_terms/msc2020_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54131c315bad0cc3968ef07f96558c9436aec99e9824cc3fc8182916bb67da7c
3
+ size 221061
ontologies/ncit_hierarchy/ncit_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13e7906c718b90a246672dc856890b79101959b7b3af41bb455292c2ebdb8f80
3
+ size 1148673
ontologies/ncit_terms/ncit_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c61d4962bc3c195daf6ceeff18594f0613d4d9060983e43d1d3145cada31c4be
3
+ size 16154136
ontologies/ncit_xrefs/ncit_xrefs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9102774d930353c1bfa1fdb93836a81b485e8674efa86d1783caea246cd8573d
3
+ size 20689
ontologies/physh_hierarchy/physh_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db3e375598621fdef120dc93252c126f28bc949f44cacdddb083d8f69bef5031
3
+ size 202775
ontologies/physh_terms/physh_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5492f5005f023e8b9360e0929df6bce8e389ee3df2d653e93242c7b8dad61c1c
3
+ size 147115
ontologies/stw_hierarchy/stw_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dee0d0a4f90d35f112b891a79cbf681fd69a0b519033b320c30a4227633fa0e
3
+ size 135365
ontologies/stw_terms/stw_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f384977fb39493b441c91d5d14901228ebc544d605bbd951bb7e1957bc4d1e52
3
+ size 211904
ontologies/unesco_hierarchy/unesco_hierarchy.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6386628d8adb2d940949ba12bee95d0878c7f6dedd8ecb30205a67587fc13d2b
3
+ size 53054
ontologies/unesco_terms/unesco_terms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af81c9b84e478646aaa94541dcf8badb68b897e677bbe06905ee2e280ef14933
3
+ size 118815
openalex/authors/authors.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a675d1c7df55edd36c0cc603f3b92cabea8f7bd57219f7bf36b5b37c44e5b8f0
3
+ size 5646956678
openalex/authors_counts_by_year/authors_counts_by_year.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b48eec273274766c187a32f1e6d4b17d41f4e564ab138f196208e6c9c8ddcc8
3
+ size 1454212524
openalex/authors_ids/authors_ids.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0db868b6d2acba579063f3809d50d9934df1ef22daae4a1f20ce29bb0c6f2857
3
+ size 1348001609
openalex/awards/awards.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be539302cfc405eee6f03181ce3bd52ababd536f8a860fe39de81e65373dea72
3
+ size 1986941135
openalex/concepts/concepts.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:001e95159c6e9017591c23b5f1752707eae9179d5232f66cf963cafbf5516a62
3
+ size 4545589
openalex/domains/domains.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cfa0a4f907eb4c63621d4d134e7bbd90782faf05fa846e8b1029894e369cf63
3
+ size 3569
openalex/fields/fields.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2be0ec481d85b0f7bd894c682cd567d579cff7d5400c296ae5e08bba3af75710
3
+ size 6793
openalex/funders/funders.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bef1acb00a885e68aa06603d2c8aefab10a92fa3a7f98614cb43c8b61365b60
3
+ size 2570028
openalex/institutions/institutions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab936e14d46c2d0d963aadae11ce17023603f8438dc3723bd192b7bf14f230b5
3
+ size 10750579
openalex/publishers/publishers.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e046f438151bacf21c802ea4bd328908c1117cc4c3689c0af7fb365362f3676d
3
+ size 800587
openalex/sources/sources.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf2f3f33220a7542be1bd468e4e5bba890376f6c25767bb327aa58534f3a0a23
3
+ size 13879430
openalex/subfields/subfields.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3b78441d1ce5bb64aa42f836b218b527ece32d5a30a2676e0f689a17dd19434
3
+ size 25535
openalex/topics/topics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a072600fe8b131b54b40e0be70f2bc53734acd331f4a1c04080768861635793e
3
+ size 945844
openalex/works/works.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:842b1e3ac39c597bdcc9ac9ab1a05df3502ed8c45de31f1bf9e45e9f4b1a8751
3
+ size 134752212966