java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.mapping.DcatMappingBase
org.odpi.openmetadata.frameworks.integration.dcat.mapping.DcatMapper

public class DcatMapper extends DcatMappingBase
DcatMapper catalogs the resources described in a DCAT document as open metadata elements. Each resource is matched to an existing element through a qualified name built from the resource's IRI (or its identifier or title if it has no IRI), so sending the same description again updates the elements rather than creating new ones.
  • Constructor Details

    • DcatMapper

      public DcatMapper(ConnectorContextBase context)
      Constructor
      Parameters:
      context - the connector context that provides access to open metadata
  • Method Details

    • getResourceKey

      public static String getResourceKey(DcatResource resource)
      Return the value that identifies a resource: its IRI, or failing that its first identifier, or failing that its title.
      Parameters:
      resource - resource from a DCAT document
      Returns:
      identifying string or null if the resource has none of these values
    • catalogueDocument

      Catalog the catalogs, datasets, dataset series and data services described in a DCAT document.
      Parameters:
      document - document to catalog
      source - name of the caller - used to describe where the metadata came from
      Returns:
      description of the elements that were created or updated
      Throws:
      InvalidParameterException - one of the parameters is null or invalid.
      PropertyServerException - a problem retrieving information from the property server(s).
      UserNotAuthorizedException - the requesting user is not authorized to issue this request.