-
Notifications
You must be signed in to change notification settings - Fork 23
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
Local install of Validator fails test 'md common req C.1: XML Schema' for some dataset metadata #862
Comments
And here is a dataset metadata post that passes XML Schema validation in both our local validator and the EU Reference Validator |
Dear @petbod-lm, could you please make a test using the official APISO schema? You should replace the "schemaLocation" attribute in your metadata with the following value:
|
Hi Fabio, I then submitted this updated metadata for validation on both the EU Inspire Reference Validator and our internal server with Inspire Valdator. The updated metadata (with offical APISO schema) validates on the EU Inspire Reference Validator but not on our local installation . What should I look at next? |
Dear @petbod-lm, I have compared the two metadata, but there are no substantial differences that can lead to different results. Could you please download and send the report of the failed metadata? |
I have validated the dataset using the GetRcordById URL |
Can you send the report in html format? |
I have to zip the html file to attach it to the comment |
Dear @petbod-lm, the different behaviour of the two instances is very strange, could you please try to install the latest version to verify if the error persists? |
Hej Fabio, |
Hello, |
Dear @petbod-lm , based on the information shared, we cannot deduce what the issue could be. Best regards, |
Thank you for the contact information. |
Hi, |
These are very good news Peter, thanks a lot. Best regards, |
We have setup a local instance of the Inspire Reference validator.
We have found that certain datasets fail the test 'md common req C.1: XML Schema' on our local validator but when I test the same dataset in the EU Inspire Reference validator the dataset passes this test.
URL to dataset that fails C1: XML Schema locally but passes in EU Validator:
https://www.geodata.se/geodataportalen/srv/eng/csw-inspire?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&outputSchema=csw:IsoRecord&id=0dde1643-6323-4208-8d5b-daf0c9b718f8
Here is the Error Message from the test:
The metadata record set has 1 record(s) with errors for this assertion.
XML document 'csw-inspire.xml', record '0dde1643-6323-4208-8d5b-daf0c9b718f8': 'Validation failed: http://schemas.opengis.net/iso/19139/20070417/srv/1.0/serviceMetadata.xsd, 33:49: src-resolve: Cannot resolve the name 'gco:AbstractObject_Type' to a(n) 'type definition' component.'.
I have validated the metadata in XML Spy and it validates correctly.
I have updated this same dataset to use the same namespace declarations as the shown in the Dataset_metadata_2.0_example.xml
(https://github.com/INSPIRE-MIF/helpdesk-validator/blob/master/examples/Dataset_metadata_2.0_example.xml)
and the dataset continues to fail the XML Schema test.
I am at a loss as to why some datasets fail XML Schema validation while others pass while thier namespace declarations are the same.
Can you provide advice on how to I could find more detailed error logs from the Validator or what I should change/add to our local installation?
Thanks
/Pete
The text was updated successfully, but these errors were encountered: