-
Notifications
You must be signed in to change notification settings - Fork 25
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
Incorrect validation error on INSPIRE vocabulary date and date type #180
Comments
Same problem here. It must be something quite recent, because the same metadata file not so long ago didn't get that error. |
@inakidiazdecerio Could you pls look into this? Thanks. |
Dear @coravanoorschot and @michellutz, The assertion is checking that the date is "2008-06-01", that the attribute codeListValue and text of date type element is "publication". In the example provided there is no text value, that is the reason there is an error. See the example with the publication value:
@michellutz Are you agree if we remove the check for the text value? The assertion should only check the date element is "2008-06-01" and that the code list value attribute is "publication". |
Yes, in my view, the test could be relaxed to check only (as also specified in TG requirement C.21 in the MD TG v2.0) that
Please, note, however, that according to section 8.5.5.1 Building blocks of the CodeList encoding in ISO/TS 19139:2007, the element should actually also have non-empty content:
I guess, this is a more general issue for discussion in the 2017.4 sub-group. |
Agree with Michael. The content of codelist elements is free and can be in other languages (We often use that option in France). Only the codeListValue should be tested. |
I think that the test should check the codeListValue and that the content is non-empty regardless the value, according to the mentioned section in the ISO TS 19139. In this regard, see also the section A.11 Codelists in the MD TG v. 1.3 that recommends two ways to reference code lists: either the element value repeats the codeListValue or the element name is expressed in the default metadata language. In both cases, the content is non-empty. |
We agree with Michael and Antonio: codeListValue should be tested and the content should be non-empty regardless the value. |
Agreed with changing the test like @michellutz describes. |
[2017.4 meeting 2018-11-15] all agree to change the test, as suggested above. |
The check for the text value of dateType element is removed. The assertion should only check that the codeListValue attribute is "publication".
Modifications in the ETS to solve the issue #180
The assertion checks that there is a non-empty value of the element <CI_DateTypeCode>.
Dear @coravanoorschot, We are happy to announce that the solution for this issue has been implemented in the INSPIRE Validator. We have prepared a testing environment with the solution. The solution passed our quality controls, but we will appreciate if you could test it before deploying it in production. You will find the solution deployed in following link: http://staging-inspire-validator.eu-west-1.elasticbeanstalk.com/etf-webapp/ Thanks in advance for your help. |
This reverts commit bb1e1c1.
This reverts commit 440da6d.
Modifications in the ETS to solve the issue #180
Dear Inaki,
I have run a test in the ETF staging tool.
Unfortunately the keyword error is not solved.
Error message:
The metadata record set has 1 record(s) with errors for this assertion.
XML document 'EGM_metadata_dataset_new2.xml', record '1aa0a808-7822-43d7-9006-4a085f7fd2f9': The metadata record has keywords which originate from a controlled vocabulary 'GEMET - INSPIRE themes, version 1.0', but the gmd:CI_DateTypeCode element is empty. The keywords are: Geographical names; Hydrography; Transport networks; Administrative units.
In the tested metadata file the DateTypeCode is present, see the printcreen below and the attached XML file.
![2019-04-15 10_32_53-My GeoNetwork catalogue](https://user-images.githubusercontent.com/36854889/56118722-d5d21d80-5f6a-11e9-8e29-a4102c58d27f.png)
[EGM_metadata_dataset_new2 - kopie.txt](https://github.com/inspire-eu-validation/ets-repository/files/3079197/EGM_metadata_dataset_new2.-.kopie.txt)
Met vriendelijke groet,
Cora van Oorschot-Rudolphie
Operationeel Informatiemanager PDOK
Kadaster, afd. GVA/MB/LV
(088) 183 39 42 / (06) 108 580 12
[email protected]<mailto:[email protected]@kadaster.nl>
www.pdok.nl<http://www.pdok.nl/>
[95AF5C05] [6A06F15B]
Van: Iñaki Diaz de Cerio <[email protected]>
Verzonden: woensdag 10 april 2019 08:00
Aan: inspire-eu-validation/ets-repository <[email protected]>
CC: Oorschot-Rudolphie, Cora van <[email protected]>; Mention <[email protected]>
Onderwerp: Re: [inspire-eu-validation/ets-repository] Incorrect validation error on INSPIRE vocabulary date and date type (#180)
Dear @coravanoorschot<https://github.com/coravanoorschot>,
We are happy to announce that the solution for this issue has been implemented in the INSPIRE Validator. We have prepared a testing environment with the solution. The solution passed our quality controls, but we will appreciate if you could test it before deploying it in production.
You will find the solution deployed in following link:
http://staging-inspire-validator.eu-west-1.elasticbeanstalk.com/etf-webapp/
Thanks in advance for your help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#180 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AjJcaR5UzDugw4G9goceHmRB87yxnVJNks5vfX3qgaJpZM4W2ngP>.
Disclaimer:
De inhoud van dit bericht is uitsluitend bestemd voor geadresseerde.
Gebruik van de inhoud van dit bericht door anderen zonder toestemming van het Kadaster
is onrechtmatig. Mocht dit bericht ten onrechte bij u terecht komen, dan verzoeken wij u
dit direct te melden aan de verzender en het bericht te vernietigen.
Aan de inhoud van dit bericht kunnen geen rechten worden ontleend.
Disclaimer:
The content of this message is meant to be received by the addressee only.
Use of the content of this message by anyone other than the addressee without the consent
of the Kadaster is unlawful. If you have received this message, but are not the addressee,
please contact the sender immediately and destroy the message.
No rights can be derived from the content of this message
|
Dear @coravanoorschot, Thank you for your feedback. The assertion checks that the codeListValue attribute is "publication", and with the latest changes also that there is a non-empty value of the element <CI_DateTypeCode>. If you put a value in the <CI_DateTypeCode> element (for example "publication") the test should be pass. Regards. |
Dear Inaki,
The codelist value “publication” is not mandatory, so I don’t think is right to validate only on the codelist value “publication” and not on the other codelist values, for instance “revision” of “creation”.
Kind regards,
Cora van Oorschot
Van: Iñaki Diaz de Cerio <[email protected]>
Verzonden: dinsdag 23 april 2019 11:40
Aan: inspire-eu-validation/ets-repository <[email protected]>
CC: Oorschot-Rudolphie, Cora van <[email protected]>; Mention <[email protected]>
Onderwerp: Re: [inspire-eu-validation/ets-repository] Incorrect validation error on INSPIRE vocabulary date and date type (#180)
Dear @coravanoorschot<https://github.com/coravanoorschot>,
Thank you for your feedback. The assertion checks that the codeListValue attribute is "publication", and with the latest changes also that there is a non-empty value of the element <CI_DateTypeCode>.
If you put a value in the <CI_DateTypeCode> element (for example "publication") the test should be pass.
Regards.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#180 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIZFY2IUJCG3ZCDYTVGPKQDPR3KOZANCNFSM4FW2PAHQ>.
Disclaimer:
De inhoud van dit bericht is uitsluitend bestemd voor geadresseerde.
Gebruik van de inhoud van dit bericht door anderen zonder toestemming van het Kadaster
is onrechtmatig. Mocht dit bericht ten onrechte bij u terecht komen, dan verzoeken wij u
dit direct te melden aan de verzender en het bericht te vernietigen.
Aan de inhoud van dit bericht kunnen geen rechten worden ontleend.
Disclaimer:
The content of this message is meant to be received by the addressee only.
Use of the content of this message by anyone other than the addressee without the consent
of the Kadaster is unlawful. If you have received this message, but are not the addressee,
please contact the sender immediately and destroy the message.
No rights can be derived from the content of this message
|
Dear @coravanoorschot, These changes were discussed in the pull request #194 (see the comment #194 (comment)). Regards. |
Error message:
The metadata record set has 1 record(s) with errors for this assertion.
XML document 'Geolocator-metadata_dataset_new7.xml', record '3401db4d-e04d-4514-8907-c78691e62558': The metadata record has keywords which originate from a controlled vocabulary 'GEMET - INSPIRE themes, version 1.0', but the date or date type is not correct. Date should be '2008-06-01' and date type 'publication'. The keywords are: Geographical names; Land use; Hydrography; Transport networks; Sea regions; Buildings.
This error messag is not correct, because the XML contains a correct date and date type.
ETF Validation report: http://inspire-sandbox.jrc.ec.europa.eu/etf-webapp//v2/TestRuns/EIDf6f794af-27c5-4a6e-aba8-9805a215c8a1.html
The XML is attachted in Zipfile: Geolocator-metadata_dataset_new7.zip
The text was updated successfully, but these errors were encountered: