Skip to content

Configuring for the INSPIRE Directive

Enabling INSPIRE

From the Admin console → Settings user can configure INSPIRE directive support.

When enabled, the INSPIRE support activate the following:

  • Enable indexing of INSPIRE themes and annexes (INSPIRE themes thesaurus MUST be added to the list of thesaurus from the INSPIRE Registry - see Managing thesaurus).

    image

To configure the discovery service, a dedicated service metadata record MUST be created in order to provide a complete GetCapabilities document (CSW Configuration for INSPIRE).

Loading INSPIRE codelists

To describe INSPIRE datasets and series, it is recommended to load relevant codelists from the INSPIRE Registry, the following codelists are relevant in the scope of metadata guidelines v2.0:

From Admin consoleClassification systemsThesaurus, administrators can manage thesauri. One of the options is to load a thesaurus straight from the registry.

image

Click Use INSPIRE registry to use the default INSPIRE registry but any instance of the Registry software can be used.

image

Select one or more languages depending on your needs. Choose a category or directly a thesaurus, depending on the thesaurus. By default the type of thesaurus will be Theme but you can adapt it if needed.

By clicking the Upload button the catalogue will contact the registry, download the files for each languages and combined them in a thesaurus in SKOS format supported by the catalogue.

User can also use the well known GEMET thesaurus. Some SKOS format version of the thesaurus are available here.

Once loaded, a thesaurus can be used in metadata records to select keywords from:

image

The type of encoding of keywords can be defined using the gear icon (See validation section for more information):

image

Via the schema plugin form configuration it is an option to configure a thesaurus to be used for a specific Anchor element. The thesaures concepts are used to populate an auto complete text field for that element.

INSPIRE validation

INSPIRE validation of metadata records is available at the INSPIRE Validator. It is using ETF which is an open source testing framework for spatial data and services. GeoNetwork is able to remote validate any record using a service provided by an instance of ETF. To configure remote validation, go to Admin consoleSettings and set the URL of the validator. The url of the main INSPIRE validator is https://inspire.ec.europa.eu/validator/.

image

Once enabled, the editor will show the remote validation option in the menu:

image

The standard validate option will use the internal validation system (ie. XSD, Schematron rules for ISO, INSPIRE, ... depending on the configuration). In the internal system the INSPIRE validation is based on INSPIRE Technical guidance version 1.3 and results will be different from ETF reports.

The remote INSPIRE validation will open the validator in a popup. Choose one of the options depending on the level of validation and type of resource to validate. The list of options can be customized in this configuration file. The configuration is made by selecting one or more test suite from the ETF options:

image

During the validation, the record is sent to the ETF service and processed. Once ETF completes the validation, the catalogue will display a link to the validation report.

image

Note, that if you are validating a private record, that record will be pushed to the validator. To secure this process we recommend to set up a local (private) installation of the validator.

Configure validation test suites

The set of test that runs for each schema can be configured using the file WEB-INF/config-etf-validator.xml.

The list of available test suites are defined in the inspireEtfValidatorTestsuites bean. It is a map with an entry for each test suite. The key attribute is the name of the test suite. Each map entry is an array with the tests to execute in the test suite. The value of each array item (<value>)is the test's title written exactly as defined in the remote INSPIRE validator service. For example:

<util:map id="inspireEtfValidatorTestsuites" key-type="java.lang.String" value-type="java.lang.String[]">
 <entry key="TG version 1.3">
   <array value-type="java.lang.String">
     <value>Conformance class: INSPIRE Profile based on EN ISO 19115 and EN ISO 19119</value>
     <value>Conformance class: XML encoding of ISO 19115/19119 metadata</value>
     <value>Conformance class: Conformance class: Metadata for interoperability</value>
   </array>
 </entry>
 <entry key="TG version 2.0 - Data sets and series">
   <array value-type="java.lang.String">
     <value>Common Requirements for ISO/TC 19139:2007 based INSPIRE metadata records.</value>
     <value>Conformance Class 1: INSPIRE data sets and data set series baseline metadata.</value>
     <value>Conformance Class 2: INSPIRE data sets and data set series interoperability metadata.</value>
   </array>
 </entry>
 <entry key="TG version 2.0 - Network services">
   <array value-type="java.lang.String">
     <value>Common Requirements for ISO/TC 19139:2007 based INSPIRE metadata records.</value>
     <!--<value>Conformance Class 1: INSPIRE data sets and data set series baseline metadata.</value>
     <value>Conformance Class 2: INSPIRE data sets and data set series interoperability metadata.</value>-->
     <value>Conformance Class 3: INSPIRE Spatial Data Service baseline metadata.</value>
     <value>Conformance Class 4: INSPIRE Network Services metadata.</value>
     <!--<value>Conformance Class 5: INSPIRE Invocable Spatial Data Services metadata.</value>
     <value>Conformance Class 6: INSPIRE Interoperable Spatial Data Services metadata.</value>
     <value>Conformance Class 7: INSPIRE Harmonised Spatial Data Services metadata.</value>-->
   </array>
 </entry>
</util:map>

Array's value-type attribute must be defined as Java strings: <array value-type="java.lang.String">.

To define which test suites will be executed when using the editor dashboard's INSPIRE validation option you can modify the inspireEtfValidatorTestsuitesConditions bean. It's a map with an entry for each schema and test suite to execute. The map entry key attribute must be in the format SCHEMA_ID::TEST_SUITE_NAME, where TEST_SUITE_NAME is one of the inspireEtfValidatorTestsuites map entry key. For each entry you can define a XPath condition that the metadata must pass to be sent to the validator.

Note

If a metadata schema doesn't match, the schema dependency hierarchy is checked to verify if any parent schema matches any rules.

Warning

The Xpath must return a node-set or a node to work. XPaths returning a boolean true or false value will be interpreted as always matching by GeoNetwork.

<util:map id="inspireEtfValidatorTestsuitesConditions">
  <!--
     key format:
     SCHEMAID::TG_RULE_NAME
     If a metadata schema doesn't match, the schema dependency hierarchy
     is checked to verify if any parent schema matches any rules.
    -->
  <entry key="iso19139::TG version 2.0 - Data sets and series"
         value="gmd:hierarchyLevel[*/@codeListValue = 'dataset' or */@codeListValue = 'series']"/>
  <entry key="iso19139::TG version 2.0 - Network services" value=".//srv:SV_ServiceIdentification"/>
  <entry key="iso19115-3.2018::TG version 2.0 - Data sets and series"
         value="mdb:metadataScope[*/mdb:resourceScope/*/@codeListValue = 'dataset' or */mdb:resourceScope/*/@codeListValue = 'series']"/>
  <entry key="iso19115-3.2018::TG version 2.0 - Network services" value=".//srv:SV_ServiceIdentification"/>
</util:map>

INSPIRE access point

In many cases only a part of the metadata records in a catalog are related to the INSPIRE Directive. In that case, it may be relevant to filter the set of records falling in the scope of the Directive and promote them through a sub portal. In this way a European portal can easily harvest the records related to INSPIRE.

First define a filtering mechanism to identify the records in the scope of the directive. Frequently used method are:

  • Create a group INSPIRE and publish those record in that group (or a category).
  • Add a specific keyword in the metadata record.
  • Filter based on the conformance quality report having a reference to the EU directive.

From the Admin consoleSettingsSources, an administrator can create a sub portal. Create a portal inspire and set the filter to select only records related to INSPIRE (eg. +_groupPublished:INSPIRE to select all records published in group INSPIRE).

image

Once saved, the portal is accessible at http://localhost:8080/geonetwork/inspire and the CSW service at http://localhost:8080/geonetwork/inspire/eng/csw.

INSPIRE reference documents