Update README.md
Browse files
README.md
CHANGED
|
@@ -2,143 +2,117 @@
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
license: cc-by-4.0
|
|
|
|
| 5 |
task_categories:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
- feature-extraction
|
| 9 |
-
tags:
|
| 10 |
-
- phytochemistry
|
| 11 |
-
- drug-discovery
|
| 12 |
-
- natural-products
|
| 13 |
-
- ethnobotany
|
| 14 |
-
- cheminformatics
|
| 15 |
-
- pubmed
|
| 16 |
-
- clinical-trials
|
| 17 |
-
- patents
|
| 18 |
-
- smiles
|
| 19 |
-
- parquet
|
| 20 |
-
- biology
|
| 21 |
-
- medical
|
| 22 |
-
- pubchem
|
| 23 |
-
- chembl
|
| 24 |
-
- bioactivity
|
| 25 |
-
pretty_name: USDA Phytochemical & Ethnobotanical Database — Enriched v2.4.0
|
| 26 |
size_categories:
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
configs:
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
features:
|
| 35 |
-
- name: chemical
|
| 36 |
-
dtype: string
|
| 37 |
-
- name: plant_species
|
| 38 |
-
dtype: string
|
| 39 |
-
- name: application
|
| 40 |
-
dtype: string
|
| 41 |
-
- name: dosage
|
| 42 |
-
dtype: string
|
| 43 |
-
- name: pubmed_mentions_2026
|
| 44 |
-
dtype: int64
|
| 45 |
-
- name: clinical_trials_count_2026
|
| 46 |
-
dtype: int64
|
| 47 |
-
- name: chembl_bioactivity_count
|
| 48 |
-
dtype: int64
|
| 49 |
-
- name: patent_count_since_2020
|
| 50 |
-
dtype: float64
|
| 51 |
-
- name: pubchem_cid
|
| 52 |
-
dtype: float64
|
| 53 |
-
- name: canonical_smiles
|
| 54 |
-
dtype: string
|
| 55 |
-
- name: compound_type
|
| 56 |
-
dtype: string
|
| 57 |
-
- name: patent_count_method
|
| 58 |
-
dtype: string
|
| 59 |
-
- name: partner_cid
|
| 60 |
-
dtype: float64
|
| 61 |
-
- name: inchi_key
|
| 62 |
-
dtype: float64
|
| 63 |
-
- name: iupac_verified
|
| 64 |
-
dtype: string
|
| 65 |
-
- name: partner_match_method
|
| 66 |
-
dtype: string
|
| 67 |
-
splits:
|
| 68 |
-
- name: train
|
| 69 |
-
num_bytes: 21261
|
| 70 |
-
num_examples: 400
|
| 71 |
-
download_size: 21261
|
| 72 |
-
dataset_size: 21261
|
| 73 |
---
|
| 74 |
|
| 75 |
<p align="center">
|
| 76 |
<img src="./assets/ethno-api-readme-banner.svg" alt="Ethno-API v2.4.0 — phytochemical data rescue, RAG-ready exports, public dataset metrics, and no medical claims" width="100%">
|
| 77 |
</p>
|
| 78 |
|
| 79 |
-
# Ethno-API
|
| 80 |
|
| 81 |
-
> **Ethno-API v2.4.0
|
|
|
|
| 82 |
> **No medical claims. No pharmaceutical validation. No safety or efficacy claims. Research and retrieval use only.**
|
| 83 |
|
| 84 |
<p align="left">
|
| 85 |
<a href="https://doi.org/10.5281/zenodo.19660107"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.19660107.svg" alt="Zenodo DOI"></a>
|
| 86 |
<a href="https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON"><img src="https://img.shields.io/badge/HuggingFace-Dataset-yellow" alt="Hugging Face Dataset"></a>
|
| 87 |
-
<a href="https://creativecommons.org/licenses/by/4.0/"><img src="https://img.shields.io/badge/
|
| 88 |
</p>
|
| 89 |
|
| 90 |
---
|
| 91 |
|
| 92 |
-
##
|
| 93 |
|
| 94 |
-
|
|
| 95 |
|---|---:|
|
| 96 |
-
|
|
| 97 |
-
|
|
| 98 |
-
| Plant species | 2,313 |
|
| 99 |
-
| Unique chemical entities | 24,746 |
|
| 100 |
-
| Public schema fields | 16 |
|
| 101 |
-
| Partner-assisted CID/IUPAC resolution records | 1,197 |
|
| 102 |
-
| Public sample format | JSON, Parquet |
|
| 103 |
| Public sample size | 400 rows |
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
-
##
|
| 109 |
|
| 110 |
-
|
|
|
|
| 111 |
|
| 112 |
-
|
| 113 |
-
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
- data-product portfolio proof for client projects
|
| 117 |
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
-
|
| 121 |
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
|
| 131 |
---
|
| 132 |
|
| 133 |
-
##
|
| 134 |
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
|
|
|
|
|
|
| 142 |
|
| 143 |
---
|
| 144 |
|
|
@@ -167,6 +141,19 @@ It is **not** a medical product, **not** a clinical validation layer, and **not*
|
|
| 167 |
|
| 168 |
---
|
| 169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
## QA Pipeline
|
| 171 |
|
| 172 |
1. Normalize USDA source records into a flat analytical schema.
|
|
@@ -197,66 +184,21 @@ Known v2.4.0 QA fixes include thiol-false-alcohol detection, non-carboxylic-acid
|
|
| 197 |
|
| 198 |
---
|
| 199 |
|
| 200 |
-
##
|
| 201 |
-
|
| 202 |
-
```text
|
| 203 |
-
/
|
| 204 |
-
├── README.md
|
| 205 |
-
├── METHODOLOGY.md
|
| 206 |
-
├── MANIFEST.md
|
| 207 |
-
├── LICENSE
|
| 208 |
-
├── assets/
|
| 209 |
-
│ └── ethno-api-readme-banner.svg
|
| 210 |
-
├── exports/
|
| 211 |
-
│ ├── ethno_api_v2.4.0_sample.json
|
| 212 |
-
│ ├── ethno_api_v2.4.0_sample.parquet
|
| 213 |
-
│ ├── ethno_api_schema.json
|
| 214 |
-
│ └── iupac_cid_resolutions.json
|
| 215 |
-
└── notebooks/
|
| 216 |
-
└── quickstart.ipynb
|
| 217 |
-
```
|
| 218 |
-
|
| 219 |
-
---
|
| 220 |
-
|
| 221 |
-
## Quickstart
|
| 222 |
-
|
| 223 |
-
```python
|
| 224 |
-
import pandas as pd
|
| 225 |
-
|
| 226 |
-
df = pd.read_parquet("exports/ethno_api_v2.4.0_sample.parquet")
|
| 227 |
-
|
| 228 |
-
print(df.shape)
|
| 229 |
-
print(df["chemical"].nunique())
|
| 230 |
-
print(df["plant_species"].nunique())
|
| 231 |
-
|
| 232 |
-
preview_columns = [
|
| 233 |
-
"chemical",
|
| 234 |
-
"plant_species",
|
| 235 |
-
"pubchem_cid",
|
| 236 |
-
"canonical_smiles",
|
| 237 |
-
]
|
| 238 |
-
|
| 239 |
-
print(df[preview_columns].head())
|
| 240 |
-
```
|
| 241 |
-
|
| 242 |
-
The public repository contains sample exports and documentation. The full licensed export package is distributed through Ethno-API.
|
| 243 |
-
|
| 244 |
-
---
|
| 245 |
-
|
| 246 |
-
## Use Cases
|
| 247 |
|
| 248 |
| Use case | Fit |
|
| 249 |
|---|---|
|
| 250 |
-
| Retrieval experiments | Build test corpora for vector search and RAG pipelines
|
| 251 |
-
| Data cleaning demos | Show normalization, enrichment, and QA-gating workflows
|
| 252 |
-
| Natural-products data prototypes | Explore structured phytochemical source data
|
| 253 |
-
| Portfolio proof | Demonstrate data rescue → enrichment → QA → export architecture
|
| 254 |
-
| Review workflows | Inspect identifier-resolution and QA-gate logic on a bounded public sample
|
| 255 |
|
| 256 |
---
|
| 257 |
|
| 258 |
## Limitations — Read Before Use
|
| 259 |
|
|
|
|
| 260 |
- **No pharmaceutical validation.** This dataset does not confirm biological activity, safety, efficacy, dosage relevance, or clinical utility.
|
| 261 |
- **No medical claims.** Nothing in this repository constitutes medical advice, treatment guidance, product guidance, or usage recommendation.
|
| 262 |
- **Source dependency.** Baseline relationships reflect USDA/source-database records and may contain historical terminology, sparse annotations, or context limitations.
|
|
@@ -267,14 +209,30 @@ The public repository contains sample exports and documentation. The full licens
|
|
| 267 |
|
| 268 |
---
|
| 269 |
|
| 270 |
-
##
|
| 271 |
|
| 272 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
|
| 274 |
-
|
| 275 |
|
| 276 |
-
```
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
```
|
| 279 |
|
| 280 |
---
|
|
@@ -292,18 +250,4 @@ data rescue → enrichment → QA gating → retrieval-ready export
|
|
| 292 |
|
| 293 |
Public sample files in this repository: **CC BY 4.0** unless otherwise stated.
|
| 294 |
Full commercial dataset: separate Ethno-API license terms.
|
| 295 |
-
Code snippets / methodology scripts: MIT only where explicitly marked.
|
| 296 |
-
|
| 297 |
-
Please attribute:
|
| 298 |
-
|
| 299 |
-
```bibtex
|
| 300 |
-
@misc{ethno_api_v24_2026,
|
| 301 |
-
title = {USDA Phytochemical & Ethnobotanical Database -- Enriched v2.4.0},
|
| 302 |
-
author = {Wirth, Alexander},
|
| 303 |
-
year = {2026},
|
| 304 |
-
publisher = {Ethno-API},
|
| 305 |
-
url = {https://ethno-api.com},
|
| 306 |
-
doi = {10.5281/zenodo.19660107},
|
| 307 |
-
note = {76,907 records, 24,746 unique chemical entities, 2,313 plant species}
|
| 308 |
-
}
|
| 309 |
-
```
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
license: cc-by-4.0
|
| 5 |
+
pretty_name: Ethno-API v2.4.0 — USDA Phytochemical Database Public Sample
|
| 6 |
task_categories:
|
| 7 |
+
- text-retrieval
|
| 8 |
+
- feature-extraction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
size_categories:
|
| 10 |
+
- n<1K
|
| 11 |
+
source_datasets:
|
| 12 |
+
- extended
|
| 13 |
+
tags:
|
| 14 |
+
- tabular
|
| 15 |
+
- datasets
|
| 16 |
+
- parquet
|
| 17 |
+
- pandas
|
| 18 |
+
- phytochemistry
|
| 19 |
+
- ethnobotany
|
| 20 |
+
- natural-products
|
| 21 |
+
- cheminformatics
|
| 22 |
+
- pubchem
|
| 23 |
+
- pubmed
|
| 24 |
+
- chembl
|
| 25 |
+
- patents
|
| 26 |
+
- smiles
|
| 27 |
+
- rag
|
| 28 |
+
- data-engineering
|
| 29 |
+
- data-cleaning
|
| 30 |
configs:
|
| 31 |
+
- config_name: default
|
| 32 |
+
default: true
|
| 33 |
+
data_files:
|
| 34 |
+
- split: train
|
| 35 |
+
path: ethno_sample_400.parquet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
---
|
| 37 |
|
| 38 |
<p align="center">
|
| 39 |
<img src="./assets/ethno-api-readme-banner.svg" alt="Ethno-API v2.4.0 — phytochemical data rescue, RAG-ready exports, public dataset metrics, and no medical claims" width="100%">
|
| 40 |
</p>
|
| 41 |
|
| 42 |
+
# Ethno-API v2.4.0 — Public Sample
|
| 43 |
|
| 44 |
+
> **Hugging Face hosts a 400-row public sample** of Ethno-API v2.4.0: a cleaned and enriched phytochemical data-engineering project derived from the USDA Dr. Duke source data.
|
| 45 |
+
> The full project contains **76,907 records**, **2,313 plant species**, **24,746 unique chemical entities**, and a **16-field public schema** with PubMed, ClinicalTrials.gov, ChEMBL, PatentsView, PubChem CID/SMILES, and partner-assisted CID/IUPAC resolution fields.
|
| 46 |
> **No medical claims. No pharmaceutical validation. No safety or efficacy claims. Research and retrieval use only.**
|
| 47 |
|
| 48 |
<p align="left">
|
| 49 |
<a href="https://doi.org/10.5281/zenodo.19660107"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.19660107.svg" alt="Zenodo DOI"></a>
|
| 50 |
<a href="https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON"><img src="https://img.shields.io/badge/HuggingFace-Dataset-yellow" alt="Hugging Face Dataset"></a>
|
| 51 |
+
<a href="https://creativecommons.org/licenses/by/4.0/"><img src="https://img.shields.io/badge/public%20sample-CC%20BY%204.0-lightgrey.svg" alt="Public sample license: CC BY 4.0"></a>
|
| 52 |
</p>
|
| 53 |
|
| 54 |
---
|
| 55 |
|
| 56 |
+
## What Is Hosted Here
|
| 57 |
|
| 58 |
+
| Item | Value |
|
| 59 |
|---|---:|
|
| 60 |
+
| Hosted file | `ethno_sample_400.parquet` |
|
| 61 |
+
| Hosted split | `train` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
| Public sample size | 400 rows |
|
| 63 |
+
| Hosted format | Parquet |
|
| 64 |
+
| Public sample license | CC BY 4.0 |
|
| 65 |
+
| Full project version | v2.4.0 |
|
| 66 |
+
| Full project records | 76,907 |
|
| 67 |
+
| Full project plant species | 2,313 |
|
| 68 |
+
| Full project unique chemical entities | 24,746 |
|
| 69 |
+
| Public schema fields | 16 |
|
| 70 |
+
| Partner-assisted CID/IUPAC records | 1,197 |
|
| 71 |
+
| DOI | `10.5281/zenodo.19660107` |
|
| 72 |
+
|
| 73 |
+
This Hugging Face repository is a **public sample and documentation surface**, not the full commercial export package.
|
| 74 |
|
| 75 |
---
|
| 76 |
|
| 77 |
+
## Load the Public Sample
|
| 78 |
|
| 79 |
+
```python
|
| 80 |
+
from datasets import load_dataset
|
| 81 |
|
| 82 |
+
ds = load_dataset(
|
| 83 |
+
"wirthal1990-tech/USDA-Phytochemical-Database-JSON",
|
| 84 |
+
split="train",
|
| 85 |
+
)
|
|
|
|
| 86 |
|
| 87 |
+
print(ds)
|
| 88 |
+
print(ds.column_names)
|
| 89 |
+
print(ds[0])
|
| 90 |
+
```
|
| 91 |
|
| 92 |
+
Pandas / Parquet workflow:
|
| 93 |
|
| 94 |
+
```python
|
| 95 |
+
import pandas as pd
|
| 96 |
+
|
| 97 |
+
df = pd.read_parquet("hf://datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON/ethno_sample_400.parquet")
|
| 98 |
+
|
| 99 |
+
print(df.shape)
|
| 100 |
+
print(df[["chemical", "plant_species", "pubchem_cid", "canonical_smiles"]].head())
|
| 101 |
+
```
|
| 102 |
|
| 103 |
---
|
| 104 |
|
| 105 |
+
## Dataset Scope
|
| 106 |
|
| 107 |
+
Ethno-API is a machine-readable, enriched version of the USDA Dr. Duke phytochemical and ethnobotanical source data, flattened into a practical JSON/Parquet-oriented structure for:
|
| 108 |
+
|
| 109 |
+
- data rescue and normalization demonstrations
|
| 110 |
+
- retrieval / RAG ingestion experiments
|
| 111 |
+
- phytochemical and natural-products data prototypes
|
| 112 |
+
- QA-gated identifier workflows
|
| 113 |
+
- data-product portfolio proof for client projects
|
| 114 |
+
|
| 115 |
+
It is **not** a medical product, **not** a clinical validation layer, and **not** evidence that any compound is safe, effective, therapeutically useful, or suitable for use.
|
| 116 |
|
| 117 |
---
|
| 118 |
|
|
|
|
| 141 |
|
| 142 |
---
|
| 143 |
|
| 144 |
+
## Enrichment Layers
|
| 145 |
+
|
| 146 |
+
| Layer | Function | Limitation |
|
| 147 |
+
|---|---|---|
|
| 148 |
+
| PubMed | Mention-count snapshot | Search-density proxy only |
|
| 149 |
+
| ClinicalTrials.gov | Study-count snapshot | Not clinical validation |
|
| 150 |
+
| ChEMBL | Bioactivity-count feature | Count metadata, not safety or efficacy proof |
|
| 151 |
+
| PatentsView | Patent-density feature | Innovation / IP-density proxy |
|
| 152 |
+
| PubChem | CID and canonical SMILES enrichment | Coverage depends on successful identifier matching |
|
| 153 |
+
| Partner-assisted resolution | CID/IUPAC identifier resolution subset | Identifier-level contribution only |
|
| 154 |
+
|
| 155 |
+
---
|
| 156 |
+
|
| 157 |
## QA Pipeline
|
| 158 |
|
| 159 |
1. Normalize USDA source records into a flat analytical schema.
|
|
|
|
| 184 |
|
| 185 |
---
|
| 186 |
|
| 187 |
+
## Intended Use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
|
| 189 |
| Use case | Fit |
|
| 190 |
|---|---|
|
| 191 |
+
| Retrieval experiments | Build test corpora for vector search and RAG pipelines |
|
| 192 |
+
| Data cleaning demos | Show normalization, enrichment, and QA-gating workflows |
|
| 193 |
+
| Natural-products data prototypes | Explore structured phytochemical source data |
|
| 194 |
+
| Portfolio proof | Demonstrate data rescue → enrichment → QA → export architecture |
|
| 195 |
+
| Review workflows | Inspect identifier-resolution and QA-gate logic on a bounded public sample |
|
| 196 |
|
| 197 |
---
|
| 198 |
|
| 199 |
## Limitations — Read Before Use
|
| 200 |
|
| 201 |
+
- **Public sample only.** This Hub dataset contains a 400-row public sample, not the full 76,907-record export.
|
| 202 |
- **No pharmaceutical validation.** This dataset does not confirm biological activity, safety, efficacy, dosage relevance, or clinical utility.
|
| 203 |
- **No medical claims.** Nothing in this repository constitutes medical advice, treatment guidance, product guidance, or usage recommendation.
|
| 204 |
- **Source dependency.** Baseline relationships reflect USDA/source-database records and may contain historical terminology, sparse annotations, or context limitations.
|
|
|
|
| 209 |
|
| 210 |
---
|
| 211 |
|
| 212 |
+
## Distribution
|
| 213 |
|
| 214 |
+
| Channel | URL |
|
| 215 |
+
|---|---|
|
| 216 |
+
| Website | https://ethno-api.com |
|
| 217 |
+
| GitHub | https://github.com/wirthal1990-tech/USDA-Phytochemical-Database-JSON |
|
| 218 |
+
| Hugging Face | https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON |
|
| 219 |
+
| Kaggle | https://www.kaggle.com/datasets/alexanderwirth/usda-phytochemical-database-json |
|
| 220 |
+
| Zenodo DOI | https://doi.org/10.5281/zenodo.19660107 |
|
| 221 |
+
|
| 222 |
+
---
|
| 223 |
|
| 224 |
+
## Citation
|
| 225 |
|
| 226 |
+
```bibtex
|
| 227 |
+
@misc{ethno_api_v24_2026,
|
| 228 |
+
title = {USDA Phytochemical & Ethnobotanical Database -- Enriched v2.4.0},
|
| 229 |
+
author = {Wirth, Alexander},
|
| 230 |
+
year = {2026},
|
| 231 |
+
publisher = {Ethno-API},
|
| 232 |
+
url = {https://ethno-api.com},
|
| 233 |
+
doi = {10.5281/zenodo.19660107},
|
| 234 |
+
note = {76,907 records, 24,746 unique chemical entities, 2,313 plant species}
|
| 235 |
+
}
|
| 236 |
```
|
| 237 |
|
| 238 |
---
|
|
|
|
| 250 |
|
| 251 |
Public sample files in this repository: **CC BY 4.0** unless otherwise stated.
|
| 252 |
Full commercial dataset: separate Ethno-API license terms.
|
| 253 |
+
Code snippets / methodology scripts: MIT only where explicitly marked.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|