Skip to content

Theme III/8 PF, feature type "ProductionFacility", attribute "function", problematic testing of NACE code URL #609

@fantamir

Description

@fantamir

Dear colleagues,

The attribute function in the feature type ProductionFacility of the INSPIRE theme III/8 Production and Industrial Facilities should contain URL to relevant NACE code as the preferred choice for European interoperability.
example:
act-core:function
act-core:Function
<act-core:activity xlink:href="https://inspire.ec.europa.eu/codelist/EconomicActivityNACEValue/C.23.51"></act-core:activity>
</act-core:Function>
</act-core:function>

This example is accepted by latest version of INSPIRE validator (implemented at 16th of September) without any problems.

In the dataset I am preparing for INSPIRE purposes, a NACE code is unpopulated for some of spatial objects. Unfortunately, the NACE codelist does not contain any item having value Unpopulated, Unknown or something like that. Therefore, the reasonable solution could be to fill the nilReason parameter of the function.Function.activity attribute in such case, instead of href.
example:
<act-core:activity nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"></act-core:activity>
Unfortunately, this solution is rejected by INSPIRE validator.

On the other hand, all four examples below are accepted by validator without any problems!!:
<act-core:activity xlink:href="https://inspire.ec.europa.eu/codelist/EconomicActivityNACEValue/"></act-core:activity>
<act-core:activity xlink:href="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"></act-core:activity>
<act-core:activity xlink:href="valueUnpopulated"></act-core:activity>
<act-core:activity xlink:href=""></act-core:activity>

It seems, the validator just tests the presence of href parameter, without checking of its content. This is very strange.

Suggested solution:

  • add testing of the content of href parameter of the function.Function.activity attribute; allow the URLs directed to the items of NACE (or other similar) codelist only; if the set of such codelists cannot be compiled, then the test if a href parameter contains a valid URL should be implemented at least.
  • allow using of nilReason parameter in the function.Function.activity attribute
    or
    add a new item containing the value Unpopulated to the NACE codelist, to create the URL https://inspire.ec.europa.eu/codelist/EconomicActivityNACEValue/Unpopulated , which could be used in the href parameter
  • implement the solution described above on all cases in the INSPIRE themes, where NACE (or other similar) code should be filled by data providers.

All spatial objects with missing NACE code value should be deleted from the INSPIRE datasets, because function.Function.activity is a mandatory attribute. Since such deleting would reduce the usability of our dataset, I intend to use <act-core:activity xlink:href="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"></act-core:activity> solution for the time being.

Miroslav Fanta
CENIA, Czech Environmental Information Agency

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions