Class DcatPublisherIntegrationConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, IntegrationConnector

public class DcatPublisherIntegrationConnector extends IntegrationConnectorBase
DcatPublisherIntegrationConnector publishes the Data Catalog Vocabulary (DCAT) descriptions of the assets that have been chosen for publication. An asset is chosen by making it a member of a collection that is attached to the connector as a catalog target, or of a collection folder nested in such a collection. Any type of collection may be used - it does not need to be a root collection.

Each catalog target collection is published as a separate DCAT catalog in its own subdirectory of the directory named in the network address of the endpoint in the connector's connection. The subdirectory is named after the collection, and on each refresh the connector writes the following JSON-LD files to it:

  • catalog.jsonld - the collection as a dcat:Catalog, along with the description of every published asset. This is the file to give to a portal that harvests DCAT catalogs.
  • datasets/<name>.jsonld - the description of each asset that is published as a dcat:Dataset.
  • data-services/<name>.jsonld - the description of each asset that is published as a dcat:DataService.
A file is only written if its content has changed. The file for an asset that is no longer in the collection is removed, as is the subdirectory of a collection that is no longer a catalog target.