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

validate xml documents error #1100

Open
trodin opened this issue Jul 15, 2024 · 10 comments
Open

validate xml documents error #1100

trodin opened this issue Jul 15, 2024 · 10 comments
Assignees
Labels
enhancement New feature or request under analysis

Comments

@trodin
Copy link

trodin commented Jul 15, 2024

Hello,

We have validation error in validating dataset for Population distribution:
Conformance class: INSPIRE GML application schemas, General requirments
Schema validation, validate XML documents saying:

XML document '2021_demography - housholds on municipality level_surface.gml': http://inspire.ec.europa.eu/schemas/pd/4.0/PopulationDistributionDemography.xsd, 2:35: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.

When I open schema: https://inspire.ec.europa.eu/schemas/pd/4.0/PopulationDistributionDemography.xsd
in the root of the document we have xmlns:sc="http://www.interactive-instruments.de/ShapeChange/AppInfo"

But this link is not working: https://www.interactive-instruments.de/de/ShapeChange/AppInfo

Is that the cause of the validation error?
schema validation error

Thank you
Tanja

@fabiovinci
Copy link
Collaborator

Dear @trodin,

this should not be the cause of the validation error since the PopulationDistributionDemography.xsd is valid.

Could you please send us your GML file so that we can take a look?

@fabiovinci fabiovinci assigned trodin and unassigned fabiovinci Jul 23, 2024
@fabiovinci fabiovinci added question Further information is requested and removed under analysis labels Jul 23, 2024
@trodin
Copy link
Author

trodin commented Jul 23, 2024

File size too big: 25 MB are allowed, 29 MB were attempted to upload.

can I send it to some mail?

Thanks,
Tanja

@fabiovinci
Copy link
Collaborator

You could generate a sample dataset, by reducing the number of feature members, or send the whole dataset by email (you can find it on my user page).

@trodin
Copy link
Author

trodin commented Jul 23, 2024

@fabiovinci
Copy link
Collaborator

Dear @trodin,

I validated your dataset, selecting both application schemas PD and SU, and I didn't detect the error you reported. See related report: https://inspire.ec.europa.eu/validator/test-run/details.html?id=EIDac19c162-e1a9-470b-91ec-f31447bcfe4c

In addition, test name is now different:

image

Which version of the validator did you use?

@trodin
Copy link
Author

trodin commented Jul 29, 2024

Ok, thank you.

I use some internal ETF validator on our infrastructure, not the online version since my data is too big for on line version.

Thank you for validating.

Regards,
Tanja

@trodin
Copy link
Author

trodin commented Jul 29, 2024

Is there any other error, we had one more error related to geometry:
image
do you have that?

Thanks,
Tanja

@fabiovinci
Copy link
Collaborator

Dear @trodin,

I confirm that the error mentioned was also present.

Fina attached the report: Test run on 13_45 - 23.07.2024 with test suite Annex III - Statistical units (SU) - IOS 1100.html.zip

@trodin
Copy link
Author

trodin commented Jul 29, 2024

Ok, now I see. But why The feature geometry is not a valid GML geometry?

And the first error is alos present in your validation report. It is in Conformance class: GML aplication schemas, Statistical Units and PD
it is in test: Validation against INSPIRE official schema, su-gml.b1: validate XML documents against official schema:

How to correct that?
image

@fabiovinci
Copy link
Collaborator

Regarding the geometry error "The feature geometry is not a valid GML geometry. Error detected: Invalid polygon. Outer ring of polygon is clockwise within element Surface,", you should fix it in the source dataset or during the generation of the gml file.

The errors in the test "Validation against INSPIRE official schema" should be due to the presence of two application schemas.

On the contrary, the test "Validation against declared schema" is passed.

image

We will further investigate if it's possible to avoid errors related to the presence of feature types from different application schemas.

@fabiovinci fabiovinci assigned fabiovinci and unassigned trodin Jul 31, 2024
@fabiovinci fabiovinci added enhancement New feature or request under analysis and removed question Further information is requested labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request under analysis
Projects
Status: To do
Development

No branches or pull requests

2 participants