Search and lookup API
Find the concept of the TIMS Dictionary of Molinology you want to link to, and read it back as JSON. The API is read-only, needs no key and is open to requests from any website (CORS). The data is published under CC BY 4.0: please credit “TIMS Dictionary of Molinology, millthesaurus.org”. Keep to a few requests per second; for the whole thesaurus use the dump instead.
Search by label
https://millthesaurus.org/search.php?format=json&q=term
Matches preferred and alternative labels in Dutch, English, German and French, and the concept id. Ignores capitals and accents. Results are ordered by match quality: exact, then beginning of a label, then anywhere in a label.
q | The term to look for. Required for a search. |
|---|---|
in | nl, en, de or fr: only look in labels of this language. |
match | exact (the whole label), prefix (exact or beginning of a label) or any (default). |
lang | Language of the label and breadcrumb fields (default en). All labels are always returned in labels. |
limit, offset | Paging. Default 25, at most 100 per request. |
scope=1 | Also include concepts that only mention the term in their scope note (weak matches, off by default). |
pretty=1 | Indent the JSON. |
Example: the Dutch term haspel, exact matches only.
https://millthesaurus.org/search.php?format=json&q=haspel&in=nl&match=exact
{
"query": "haspel",
"total": 4,
"count": 4,
"offset": 0,
"limit": 25,
"license": "https://creativecommons.org/licenses/by/4.0/",
"results": [
{
"id": "7068b",
"uri": "https://w3id.org/molinology/7068b",
"label": "bobbin",
"labels": { "nl": "haspel", "en": "bobbin", "de": "Haspel", "fr": "dévidoir" },
"alt_labels": { ... },
"breadcrumb": [ ..., "roller draw bench" ],
"matched_in": "nl",
"matched_field": "pref",
"matched_text": "haspel",
"score": 90
},
...
]
}
This is a shortened example (... marks left-out parts).
A term often has several meanings in the dictionary. Use the
breadcrumb (the concept's place in the hierarchy) to pick the right one.
One concept
https://millthesaurus.org/search.php?format=json&id=id
Returns the labels, the scope note, the broader, part-of, related and narrower concepts, and the links to Wikidata, Getty AAT and other sources. An unknown id gives HTTP 404.
Other machine-readable access
- A concept as SKOS:
concept.php?id=id&format=turtleor&format=jsonld. The permanent identifier ishttps://w3id.org/molinology/id. - The whole thesaurus: Turtle or JSON-LD.
- Description of the dataset: VoID.
- A list for matching tools such as Wikidata's Mix'n'match: mixnmatch.php.
There is no SPARQL endpoint; the dump is small enough to load into any triple store.
← terug naar overzicht