term search and other queries
Closed this issue · 2 comments
carueda commented
This is about determining possible triple store queries that could be exposed through the main ORR endpoint with a simpler interface. For example, for a "term search" the user or client application can just make requests that look like:
GET ../term?containing=sensor
GET ../term?skosMatch=termIri&relation=closeMatch
GET ../term?sameAs=termIri
GET ../term?regex=someregex
- and similar
carueda commented
@lewismc , @graybeal FYI in case of any comments/suggestions. See also mmisw/orr-portal#112 . Thx.
carueda commented
ORR 3.6.2 brings a first version of providing a simplified interface for semantic queries, see https://mmisw.org/ontapi/#!/term/get_term for a description of the new /term
API route.
Some direct examples:
- https://mmisw.org/ont/api/v0/term?containing=sensor&in=s&limit=2
- https://mmisw.org/ont/api/v0/term?predicate=skos:exactMatch&subject=http://mmisw.org/ont/mmi/platform/AirAndOuterSpaceBasedPlatform
- https://mmisw.org/ont/api/v0/term?predicate=skos:relatedMatch&subject=http://mmisw.org/ont/ioos/parameter/air_temperature
- https://mmisw.org/ont/api/v0/term?predicate=owl:sameAs&subject=http://www.cuahsi.org/watqualsyn%23redoxPotential
- https://mmisw.org/ont/api/v0/term?predicate=http://purl.org/dc/terms/description&subject=http://www.w3.org/ns/ssn/