Skip to content

API for knowledge extraction

An API providing machine-based access to the SWR knowledge graph. This API is most likely to conform to an existing meta-data standard, such as the OGC API Records, OpenAPI or GraphQL. However, its responses are RDF documents, for instance encoded with JSON-LD syntax. Other components of the SWR performing knowledge extraction and/or augmentation may also use this API to interact with the knowledge graph.

A point of discussion is if the SPARQL engine offers enough performance to facilitate basic discovery actions (by the catalogue frontend), an alternative was suggested to introduce an Elastic Search or PostgreSQL component, which caches the content retrieved with a SPARQL query. These aspects will be validated in the upcoming iteration.

Technology

Various technology options exist, we will validate these in the upcoming iteration

  • pycsw and pygeoapi could be extended to support SPARQL as a backend, which would enable OGC API Records on the SPARQL backend
  • The GRLC tool enables an Open Rest API on any SPARQL endpoint
  • Various tools exist offering Graphql interface to wrap a SPARQL endpoint, to facilitate the growing GraphQL community