Class DcatMapper
java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.mapping.DcatMappingBase
org.odpi.openmetadata.frameworks.integration.dcat.mapping.DcatMapper
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.integration.dcat.mapping.DcatMappingBase
ACCESS_RIGHTS, ACCESS_SERVICES_JSON, ACCESS_URL, ACCRUAL_PERIODICITY, ADDITIONAL_PROPERTY_PREFIX, BYTE_SIZE, CATALOG_KIND, CATALOG_QUALIFIED_NAME_PREFIX, CHECKSUM_ALGORITHM, CHECKSUM_VALUE, COMPRESS_FORMAT, CONFORMS_TO_JSON, CONFORMS_TO_LABEL, CONTACT_POINT_JSON, context, CREATORS_JSON, DATA_SERVICE_KIND, DATA_SERVICE_QUALIFIED_NAME_PREFIX, DATASET_KIND, DATASET_QUALIFIED_NAME_PREFIX, DATASET_SERIES_KIND, DESCRIPTION_TRANSLATIONS_JSON, DISTRIBUTION_KIND, DISTRIBUTION_QUALIFIED_NAME_PREFIX, DOCUMENTATION_LABEL, DOWNLOAD_URL, ENDPOINT_DESCRIPTIONS_JSON, FORMAT, GENERATED_IRI_PREFIX, HOMEPAGE, IDENTIFIERS_JSON, IRI, ISSUED, KIND, LANGUAGES_JSON, LICENSE_JSON, MEDIA_TYPE, MODIFIED, OTHER_PROPERTIES_JSON, PACKAGE_FORMAT, PREVIOUS_VERSION, propertyHelper, PUBLISHER_JSON, RESOURCE_TYPE, RIGHTS, SEPARATOR, SPATIAL_JSON, SPATIAL_RESOLUTION_IN_METERS, STATUS, TEMPORAL_JSON, TEMPORAL_RESOLUTION, THEME_TAXONOMIES_JSON, THEMES_JSON, TITLE_TRANSLATIONS_JSON, VERSION_NOTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncatalogueDocument(DcatDocument document, String source) Catalog the catalogs, datasets, dataset series and data services described in a DCAT document.static StringgetResourceKey(DcatResource resource) Return the value that identifies a resource: its IRI, or failing that its first identifier, or failing that its title.Methods inherited from class org.odpi.openmetadata.frameworks.integration.dcat.mapping.DcatMappingBase
findElement, findElementGUID, getAdditionalProperties, getBean, getBeanList, getLinkedElementGUIDs, getRelationships, getStringList, getStringProperty, putIfPresent, toJSON
-
Constructor Details
-
DcatMapper
Constructor- Parameters:
context- the connector context that provides access to open metadata
-
-
Method Details
-
getResourceKey
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
public DcatMappingResult catalogueDocument(DcatDocument document, String source) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Catalog the catalogs, datasets, dataset series and data services described in a DCAT document.- Parameters:
document- document to catalogsource- 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.
-