Overview
All site data is served from JSON under data/. These files are produced by the pipeline from external APIs and local sources. This page maps each source to its attributes and how they relate.
Flow
flowchart LR
subgraph APIs
A[Artemis WP REST]
E[EMA report JSON]
W[Wikidata]
G[Google Translate]
end
subgraph data
artemis[artemis.jsonld]
ema[ema-herbal-medicines.json]
monographs[monographs.json]
herbs[herbs/index.json]
trans[translations.json]
end
A --> artemis
E --> ema
artemis --> monographs
ema --> monographs
W --> herbs
G --> trans
monographs --> herbs
Artemis (WordPress REST)
- Script:
fetch-artemis-jsonld.mjs - Output:
data/artemis.jsonld(@graphnodes)
Monograph (?_embed): id, slug, title.rendered, content.rendered, meta.artm_summary, meta.artm_frequency, taxonomies. After EMA matching: euApproved, emaMonographs.
EMA report
- Source: EMA herbal medicines inventory (JSON). Output:
data/ema-herbal-medicines.json - Relation: fetch-monographs.mjs merges Artemis + EMA and writes
data/monographs.json; build-herbs-json writesdata/herbs/index.json.
Wikidata / Wikimedia
- Script:
fetch-herb-images.mjs– images and attribution.
Google Translate
Fills translated in data/translations.json.
Downstream
build-herbs-json.mjs reads data/monographs.json and writes data/herbs/index.json.