EN NL

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.

qThe term to look for. Required for a search.
innl, en, de or fr: only look in labels of this language.
matchexact (the whole label), prefix (exact or beginning of a label) or any (default).
langLanguage of the label and breadcrumb fields (default en). All labels are always returned in labels.
limit, offsetPaging. Default 25, at most 100 per request.
scope=1Also include concepts that only mention the term in their scope note (weak matches, off by default).
pretty=1Indent 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

There is no SPARQL endpoint; the dump is small enough to load into any triple store.

← terug naar overzicht