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 defining cascading elements to look up values #150

Closed
mhogeweg opened this issue Mar 31, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@mhogeweg
Copy link
Member

The crosswalks for mapping CSDGM and ISO to schema 1.1 has many POD elements with a cascading series of potential mappings from the source metadata: if xpath1 exists, use it, if not, then use xpath2, and on and on.

Include in geoportal also the ability to cascade through indexed fields to find one that has a value usable for the specific POD JSON output.

@mhogeweg
Copy link
Member Author

mhogeweg commented Apr 3, 2015

Adding a bit more implementation details. Here is a configuration example:

<field name="publisher"
  index="dcat.publisher;dcat.org.org+dcat.org.per;dcat.per.org+dcat.per.per;dcat.publisher.origin"
  required="true" 
  joinOperator=" "/>

In the above the data.json field publisher will be fed from the first matching element in the index attribute. In this case that's dcat.publisher. if this field has a value in the index for the current document, it will be used. if it doesn't geoportal server will look at the next element in the index attribute (note these are separated by semi-colon): dcat.org.org+dcat.org.per. this next lookup is a concatenation of two index fields: dcat.org.org and dcat.org.per. The two are concatenated using the defined joinOperator.

@mhogeweg
Copy link
Member Author

included in 1.2.6

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