Add OLS Provider
Opened this issue · 1 comments
Ontology Look-up Service (OLS) is used by TIB for vocabularies used by NFDI. Wrapping its API as cocoda-sdk provider would enable access to these vocabularies for BARTOC and other applications. See https://bartoc.org/registries for registries with OLS service.
Examples from TIB Terminology service with API endpoint http://service.tib.eu/ts4tib/api. Don't be confused by Swagger API document but see https://service.tib.eu/ts4tib/docs/api.
- Example of an SKOS vocabulary: https://service.tib.eu/ts4tib/ontologies/raum
- Example of an OWL vocabulary: https://service.tib.eu/ts4tib/ontologies/swo
It looks like in the HTML view vocabularies are seen as RDF ontology, so SKOS is not properly handled as special kind vocabulary for terminologies but as random ontology (EBISPOT/OLS#503) but internally there are fields to differentiate e.g. which RDF properties to use for labels.
Start with a list of vocabularies:
curl -sL 'http://service.tib.eu/ts4tib/api/ontologies' -H 'Accept: application/json' | jq '._embedded.ontologies[]'