European Commission logo
INSPIRE Community Forum

Existing validation rules for INSPIRE data sets (EL & OI + other themes)

Have you or your organization been involved in the validation of EL & OI data sets transformed to the INSPIRE schemas?

Please, share your experience and provide examples of existing Schematron validation rules, or other type of rules, in this context.

Schematron is a rule-based validation language structured in XML and standardized according ISO/IEC 19757-3:2006.

Find here an example of application of Schematron language for the automatic validation of rules from the AIXM model from ICAO:

http://www.snowflakesoftware.com/2012/08/xml-gml-validation/

 

  • Peter PARSLOW

    Only marginally: we created OS Terrain based on the 2.9 draft EL specification. I have recently been validating our schema using the OGC online validator, with interesting results - basically, we took the wrong approach (from the OGC perspective) to defining our own feature collection. (See my entry elsewhere in this forum about the INSPIRE ElevationDataSet). We haven't considered using schematron.

  • Jordi ESCRIU

    Peter,

    Thank you for this information - Let me make a couple of questions:

    - What kind of language have you used to define the validation rules?

    - What type of characteristics of the schema are validated through these rules?

    - Are these rules available elsewhere online?

    I can not find the entry you mentioned about "INSPIRE ElevationDataSet".

  • Peter PARSLOW

    The OGC validator is at http://cite.opengeospatial.org/teamengine/. For example, to validate our OS Terrain schema, I used this call:

    http://cite.opengeospatial.org/teamengine/rest/suites/gml32/3.2.1-r17/run?xsd=http://www.ordnancesurvey.co.uk/xml/terrainschema/contours/v1/OSTerrainContourProducts.xsd

    I believe the rules are implemented in java. They are available in GitHub.

    My mistake. ElevationBaseDataset was defined in ElevationBase.xsd 2.0, but had already gone by the time v2.9 of the specification was published, at the time we created OS Terrain. It no longer matters why we created os:DataSet - just that it was that bit of our schema that fails the OGC test.

     

     

  • Jordi ESCRIU

    Dear Peter,

    Thank you again for this information.

    I had a look at the OGC validator (the link you provided) and each test suite seems to check conformance to an OGC standard.

    Is there any test suite related to INSPIRE schema conformance? 

    I assume that OS Terrain is a TIN model, isn't it?

  • Peter PARSLOW

    Yes, the OGC validator only validates against OGC schemas & specs, so it's only a partial validation against INSPIRE requirements.

    However, you can extend the validation by providing your own schematron rules (an extra '&sch=URL' parameter). Or set up your own instance of the underlying TEAM Engine - I believe Germany have quite some experience with that. There was also some discussion between INSPIRE 'MIG' and OGC about them hosting validation, once we've designed the rules.

    OS Terrain is available in vector & grid flavours. We offered TIN to our market in the UK, but there was very little interest - we'd need to do more to sell the benefits of a TIN to people who are used to working with grids.

  • Jordi ESCRIU

    Hi Peter,

    Thanks again for clariying this. 

    I have opened a new discussion topic on benefits / advantages / needs regarding TIN data. I feel this is interesting:

    https://themes.jrc.ec.europa.eu/discussion/view/19232/tin-elevation-data-benefits-advantages-and-needs

    The possibility to provide your own schematron validation rules to the OGC validator seems to me quite interesting for data providers having to transform their data sets.

    Do you have the contact for Germany experience?

    It will be nice to hear about any other existing experience on using this schematron rules!

     

  • Peter PARSLOW

    I learned about the German use some years ago; it was confirmed in the MIG Validation & Conformity Testing work package. I had almost forgotten that this discussion is in the "thematic clusters" area, rather than that one!

    You should be able to see the list of existing validation tools gathered by MIG WP-5: https://ies-svn.jrc.ec.europa.eu/projects/validation-and-conformity-testing/wiki/Overview_about_existing_validation_toolssolutions ; it gives support(at)gdi-de.org for the German team, and also mentions a project hosted in Italy using the same test engine.

    I don't know if either of them use the sch parameter.

  • Jordi ESCRIU

    Thanks Peter,

    I will have a look at the links you provided - This is for sure interesting for implementers thinking of starting with schema validation.

  • Giacomo MARTIRANO

    By Giacomo MARTIRANO

    Hi Jordi, Peter and all.

    In the context of the European project eENVplus (the "project hosted in Italy" mentioned by Peter) we developed a Validation Service consisting of an implementation for the ATS (Abstract Test Suite) included in the Annex A of INSPIRE Data Specifications. This service makes use of the OGC free testing facility GML 3.2 (ISO 19136:2007).

    This executable test suite (ETS) verifies the conformance of GML datasets with respect to INSPIRE application schemas and also with respect to ISO 19136:2007 (GML 3.2.1).

    Supplementary INSPIRE constraints can be verified making use of theme specific schematron files.

    For those tests that cannot be automated, the ETS contains guidelines to manual execution.

    For the time being the full ETS (including schematron file and guidelines) is available for PS theme.

    The validation against the application schema is available on-line for all the other data themes and for most of them interfaces explaining the INSPIRE ATS context in which the validation is performed are provided.

    Exploiting the Team Engine functionalities, apart from a local resource, it is possible to upload the GML dataset file as web resource, inserting the http URL or the relevant WFS GetFeature request.

    The Test, Evaluation, And Measurement (TEAM) Engine, the official test harness used by OGC Compliance Program, and the GML testing facility have been:

    • checked out from GitHub OGC repositories ((TEAM Engine version 4.0.5 – GML Suite release r17)
    • installed on cloud server
    • customized (in terms of user interface)
    • enriched with theme-specific schematron rules provided by the eENVplus team

    The work, still in progress, is reported within the MIG WG5.

    Access the service:

    Grateful to those of you willing to send any feedback.

     

  • Jordi ESCRIU

    Dear Giacomo / Dear all,

    This valuable resource information has been published as a group page with the same title within the Topographic and Cadastral Reference Data cluster:

    https://themes.jrc.ec.europa.eu/pages/view/22803/on-line-validation-of-datasets

Elevation, Ortho & Grids

Elevation, Ortho & Grids

INSPIRE Thematic Cluster Elevation, Orthoimagery, Reference systems, Geographical grids - Join this group to share your knowkledge, learn and collaborate in solving issues related to the Elevation, Orthoimagery, Reference systems and Geographical grids themes