INSPIRE-MIF / helpdesk-validator

Community discussion forum for INSPIRE validation issues
41 stars 22 forks source link

ACMF dataset receives schema validation error in Conformance class: INSPIRE GML application schemas, General requirements #539

Open Kate-Lyndegaard opened 3 years ago

Kate-Lyndegaard commented 3 years ago

Hi,

I have an ACMF dataset that receives a schema validation error in the Conformance class: INSPIRE GML application schemas, General requirements.

Error: XML document 'inspire.gml': 3:76: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://inspire.ec.europa.eu/schemas/omso/3.0":PointObservation}'. One of '{"http://www.opengis.net/gml/3.2":AbstractFeature}' is expected.

GML: acmf_inspire.zip

Test report: acmf_test.zip

I would appreciate your insight on the error, because PointObservation appears to be a valid substitution for GMLAbstractFeature as it derives from OM_Observation, which itself derives from AbstractFeature.

Kind regards, Kate

iuriemaxim commented 3 years ago

Dear @Kate-Lyndegaard

Did you tried to validate the content with any other XML validator? Altrough it is not perfect, Notepad++ provides this:

image

From what I remember, when implementing ACMF is necessary to implement EF first, so the first element will be <ef:

Here you may find some short-urls examples on how we implemented ACMF:

https://inspire.meteoromania.ro/ids/EnvironmentalMonitoringNetwork.N100 (network) https://inspire.meteoromania.ro/ids/EnvironmentalMonitoringFacility.15015 (station) https://inspire.meteoromania.ro/ids/EnvironmentalMonitoringFacility.15015/WindSpeedSYNOP (sensor) https://inspire.meteoromania.ro/ids/OM_Observation.EnvironmentalMonitoringFacility.15015.WindSpeedSYNOP.AllValuesWML20 (values from sensor) https://inspire.meteoromania.ro/observedProperty/BUFR0-11-002SF32PT10M (observed property) https://inspire.meteoromania.ro/process/WindSpeed (process) https://inspire.meteoromania.ro/ids/OM_Observation.EnvironmentalMonitoringNetwork.N502.WindSpeedAverage10Years.GeoTIFF (raster data) https://inspire.meteoromania.ro/ids/OM_Observation.EnvironmentalMonitoringNetwork.N301.AEROSComposed.BUFR (bufr data) https://inspire.meteoromania.ro/data/M402.nc (netCDF data)

I am also very interested to see how others are implementing ACMF, so any insights are welcomed.

Hope it helps. Iurie

carlospzurita commented 3 years ago

Dear @Kate-Lyndegaard

We are working on reproducing the error with your GML and checking ourselves the test report on this. We will get back to you with some feedback.

Kind regards.

Kate-Lyndegaard commented 3 years ago

Hi @iuriemaxim,

This is a pure Observations dataset, which uses the Specialized Observations schema: https://inspire.ec.europa.eu/schemas/omso/3.0/SpecialisedObservations.xsd.

grafik

The ACMF theme does not mandate use of the Environmental Monitoring Facilities schema. The ACMF definiton of scope is: grafik

The EF model provides implementers an optional linking property (hasObservation) by which to link Observations to Environmental Monitoring Facilities, if desired.

grafik

To avoid confusion, I don't see the need to implement EF first.

Kind regards, Kate

iuriemaxim commented 3 years ago

@Kate-Lyndegaard Thank you for the valuable response. If I remember well we were not able to obtain a valid XML by using OMSO at the root.

We used the "Guidelines for the use of Observations & Measurements and Sensor Web Enablement-related standards in INSPIRE" from 2016, that is available here: https://inspire.ec.europa.eu/id/document/tg/d2.9-o%26m-swe and the EF TG.

image

Altrough may not be relevant, but the Data Specification on Atmospheric Conditions and Meteorological Geographical Features – Technical Guidelines was not updated from 2013 and the O&M Guideline from 2016 is refering the ACMF data theme.

I am really interested to understand how ACMF, MF, EF and O&M should be treated. Unfortunately there is not yet a validation nor for ACMF, nor for MF in the Validator, but one for EF exist and the files are valid against this conformance class.

For ACMF there is no schema https://inspire.ec.europa.eu/https-schemas/ac-mf/4.0/ There is any plan to have in the validator a conformance class for OMSO?

JohannaOtt commented 3 years ago

I am receiving a similar error (omop instead of omso though) when validating this WFS against the Direct WFS Confirmance Class: Error message: "The property value "http://www.opengis.net/gml/3.2":AbstractObject cannot substitute for "http://www.opengis.net/gml/3.2":AbstractGML in {http://inspire.ec.europa.eu/schemas/omop/3.0}. expected [true] but found [false]" TestID: EID3701e33c-803b-3900-af38-3f3b0076f6a5 grafik

The data in the WFS does not contain any data using the omop namespace.

Dnoack49 commented 2 years ago

Similarly to the comment above we receive the error: The property value "http://www.opengis.net/gml/3.2":AbstractObject cannot substitute for "http://www.opengis.net/gml/3.2":AbstractGML in {http://inspire.ec.europa.eu/schemas/omop/3.0}. expected [true] but found [false]

grafik

when validating this WFS. How can this be corrected?