Skip to content

Providers

Petr Škoda edited this page May 19, 2021 · 2 revisions

dcat-ap-viewer can use so-called Providers to consume data from different data sources. As of now, the following providers are supported:

The providers together provide implementations of the following methods:

  • v1-info
  • v2-dataset-list
  • v2-dataset-facet
  • v2-dataset-item
  • v2-dataset-typeahead
  • v2-distribution-item
  • v2-publisher-list
  • v2-keyword-list
  • v2-label-item
  • v2-init-data
  • v2-quality-dataset
  • v2-quality-distribution
  • v2-quality-publishers
  • v2-catalog-list

Not all methods are implemented by all providers, while some methods are implemented by multiple providers. See the provider's details for more information.

Providers are configured in the configuration. Example:

  providers:
    - type: solr
      url: http://localhost:8983/solr/dcat-ap-viewer
      default-language: cs
      languages:
        - cs
    - type: couchdb
      url: http://127.0.0.1:5984
      default-language: cs
    - type: sparql
      url: https://localhost/sparql
      filter:
        - v2-quality-dataset
        - v2-quality-distribution
        - v2-quality-publishers

In this example, three providers are used: solr provider, couchdb provider and SPARQL endpoint provider. Providers defined later override providers defined before. For example, both couchdb provider and SPARQL endpoint provider provide an implementation of v2-dataset-item method, in this situation the second provider would override implementation from the first one. While this behaviour may not be intended user can filter methods that are used from the given provider. In the example above, only v2-quality-dataset, v2-quality-distribution, and v2-quality-publishers methods are used from SPARQL endpoint provider.

Clone this wiki locally