Closed fxprunayre closed 6 years ago
You can find my answers inline:
Thanks @df-git for the recommendations.
some information (like the parent / child relation) which is available in the Re3gistry XML
@df-git, Could you point us to a codelist using this type of relation in order to add support to it. Thanks.
This is an example: http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset If you open the Re3gistry XML you can see the hierarchy. e.g.
...
<parents>
<parent id="http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/dir-2002-49">
<label xml:lang="en">Directive 2002/49/EC</label>
</parent>
</parents>
...
Thanks @df-git . Is there any elements which could help identifying top concepts ?
Another question, I suppose we should only concentrate on items with status http://inspire.ec.europa.eu/registry/status/valid ? And ignore others eg. Superseded
The top concepts have no parents. There isn't a specific element to identify them.
Yes, the ones to be considered are the "Valid" elements.
Some new questions @df-git
Also an "issue" related to valid item is that each Registry installation has its own concept of valid status eg. http://registre.geocatalogue.fr/codelist/drillingmethod/drillingmethod.en.xml
<status id="http://registre.geocatalogue.fr/registry/status/valid">
<label xml:lang="en">Valid</label>
The valid status id depends on the registry base url.
I noticed an issue related to the codelist date. For example, the INSPIRE themes were published the 2008-06-01 eg. https://github.com/geonetwork/util-gemet/blob/master/thesauri/inspire-theme.rdf#L13
But when creating the thesaurus from the registry, we are currently setting the date to "now".
Using the validator, we end up with
The content "2018-05-25" of element <DateOfPublication> does not match the required simple type. Value "2018-05-25" contravenes the enumeration facet "2008-06-01" of the type of element DateOfPublication at column 66, line 10
@df-git, is there any element indicating date of publication in Registry responses ? eg. http://inspire.ec.europa.eu/theme/theme.en.xml
A form is displayed with:
When submitting the form, the registry items are processed by the catalogue.
Processing to build a thesaurus from the codelist :
[x] API Changes:
POST /api/0.1/registries/vocabularies : Upload a new thesaurus from a file
PUT /api/0.1/registries/vocabularies : Upload a new thesaurus from URL or Registry
GET /api/0.1/registries/vocabularies/{thesaurusId} : Download a thesaurus
DELETE /api/0.1/registries/vocabularies/{thesaurusId} : Remove a thesaurus
Dev branch: https://github.com/titellus/core-geonetwork/tree/feature/inspire-registry
Tests made with: