Open nichtich opened 3 years ago
EU Vocabularies also provides a SPARQL endpoint for their vocabularies, we are already in contact to integrate into BARTOC.
See SPARQL Explorer presented at SWIB21 for a tool to inspect SPARQL endpoints.
An example of a vocabulary with public SPARQL API is The Nomenclature for Museum Cataloging. We used to download, transform and import the vocabulary but better switch to external API of its publishers.
Sample query to get Top Concepts and mappings from https://nomenclature.info/sparql (see button "saved queries" to get more examples):
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
select * where {
?concept skos:topConceptOf <https://nomenclature.info/nom/>.
OPTIONAL { ?concept skos:exactMatch ?exactMatch }
OPTIONAL { ?concept skos:prefLabel ?prefLabel }
} limit 100
Skosmos uses SPARQL to access SKOS vocabularies as well so looking at its source code may help.
See https://github.com/netwerk-digitaal-erfgoed/network-of-terms/tree/master/packages/network-of-terms-catalog for an approach to query diverse SPARQL endpoint for SKOS data:
We could reuse @netwerk-digitaal-erfgoed/network-of-terms-catalog with description and SPARQL templates for several vocabularies.
Another use case is LIDO vocabularies, available via SPARQL at https://terminology.lido-schema.org/sparql.php
LOV has a SPARQL endpoint and a REST API. Most LOV vocabularies had been imported to BARTOC but no updates yet (https://github.com/gbv/bartoc.org/issues/62).