Skip to content

Provider: SPARQL Endpoint

Petr Škoda edited this page Mar 24, 2020 · 1 revision

As dcat-ap-viewer client consume JSON-LD it can easily use SPARQL endpoint with predefined set of queries as a data source. However, in practice, the queries related to indexing would be complex and evaluation of a query may be slow. For those reasons, a SPARQL Endpoint data source should be used carefully.

Provider

The sparql provider allows dcat-ap-viewer to use [Apache Solr] as a data source.

Example

The example below configures sparql provider to use SPARQL endpoint running on localhost. Although the sparql provider can be used to obtain data about datasets and distributions, it may not be optimal due to endpoint performance/stability. For this reason, we select only some of the implemented methods: v2-quality-dataset, v2-quality-distribution, and v2-quality-publishers.

    - type: sparql
      url: http://localhost/sparql
      filter:
        - v2-quality-dataset
        - v2-quality-distribution
        - v2-quality-publishers

Configuration

  • url - URL of the SPARQL endpoint.
  • dataset-per-graph - If true each dataset is in it's own graph.

Implemented methods

  • v2-dataset-item
  • v2-distribution-item
  • v2-quality-publishers
  • v2-quality-dataset
  • v2-quality-distribution
  • v2-quality-publisher
Clone this wiki locally