Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in DCAT implementation allow mapping between value domains #144

Closed
mhogeweg opened this issue Mar 31, 2015 · 1 comment
Closed

in DCAT implementation allow mapping between value domains #144

mhogeweg opened this issue Mar 31, 2015 · 1 comment
Assignees
Milestone

Comments

@mhogeweg
Copy link
Member

The specific domains for several elements of Project Open Data Metadata Schema v1.1 differ from the typical domains for the corresponding metadata element in ISO or FGDC metadata. Geoportal Server could allow defining a mapping between the values found in the geospatial metadata to values to be used in Project Open Data Metadata Schema v1.1.

For example, FGDC CSDGM records with secclass values “Medium Confidentiality” and “No Confidentiality” are currently mapping to “non-public”.

A suggested approach is to include mapping in dcat-mappings.xml that use a regex to find values in the source metadata and map those to a target value to be included in the output json file.

@pandzel-zz
Copy link

dcat-mappings.xml allows to define domain values mappings. For each string field it is possible to include <map from="" to=""/> collection of nodes. Each "from" is a regular expression matching input value (coming from the index) and "to" is output value printed to the DCAT json. Also, "to" might have value of "*" to indicate to pass original input value right to the output. Example:

<field name="accessLevel" index="accessLevel" required="true">
   <map from=".restricted." to="restricted public"/>
   <map from="Medium Confidentiality" to="restricted public"/>
   <map from="No Confidentiality" to="restricted public"/>
   <map from="private|confidential|secret" to="non-public"/>
   <map from=".*" to="public"/>
</field>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants