A transport thesaurus

source · output · proof · check · playground


The question

Which hierarchical, mapping and collection relationships follow from this thesaurus?

Historical background

The W3C standardized SKOS in 2009 so thesauri, taxonomies, and similar knowledge organization systems could be shared as RDF. It kept distinctions such as broader concepts, mappings between schemes, and ordered collections. The transport example combines all three. W3C, 2009 SKOS Reference

What we tell eyemind

Cycling is broader-linked to active travel, which is broader-linked to travel. Two exact-match links connect cycling to bike travel. An ordered collection lists cycling and walking. The rules follow the W3C SKOS Reference.

What eyemind concludes

Cycling is transitively narrower than travel, exactly matches bike travel, and belongs to the collection. Its preferred label also becomes an RDFS label. The direct broader link to travel is not invented.

One conclusion in the JavaScript check report is:

result_rdf(iri('https://example.org/transport#cycling'), iri('http://www.w3.org/2004/02/skos/core#broaderTransitive'), iri('https://example.org/transport#travel'), 'default_graph')

What the proof establishes

The saved proof is checked against the compiled LS program. It establishes the reported conclusions from the supplied data and rules. Validation and conflict reports are conclusions too; exit code 0 means evaluation completed.

Try it

node bin/eyemind.js --skos examples/thesaurus-skos.ttl
node bin/eyemind.js --skos --program examples/thesaurus-skos.ttl > /tmp/thesaurus-skos.js
node bin/eyemind.js --to turtle /tmp/thesaurus-skos.js
node bin/eyemind.js --skos --check-proof examples/proof/thesaurus-skos.js examples/thesaurus-skos.ttl

Replace the second exact-match link with skos:closeMatch: exact mapping no longer propagates through it. This profile derives positive consequences; it does not check SKOS integrity conditions.