adiwg / mdTranslator

Metadata translation tool built using Ruby

Home Page:https://www.adiwg.org/mdTranslator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DCAT-us writer: identifier

hmaier-fws opened this issue · comments

Issue

Determine mapping to use when writing mdJSON to the required DCAT-US identifier field. The field is defined as:

Description:
A unique identifier for the dataset or API as maintained within an Agency catalog or database.

Usage Notes:
This field allows third parties to maintain a consistent record for datasets even if title or URLs are updated. Agencies may integrate an existing system for maintaining unique identifiers. Each identifier must be unique across the agency’s catalog and remain fixed. It is highly recommended that a URI (preferably an HTTP URL) be used to provide a globally unique identifier. Identifier URLs should be designed and maintained to persist indefinitely regardless of whether the URL of the resource itself changes.

Initial proposal is to use the following rules:

  • IF resourceInfo.citation.identifier.namespace = "DOI"
  • SELECT resourceInfo.citation.onlineResource.uri

ELSE

  • if "DOI" within resourceInfo.citation.onlineResource.uri
  • SELECT resourceInfo.citation.onlineResource.uri

Related issues: #251, #264