INSPIRE-MIF / helpdesk-validator

Community discussion forum for INSPIRE validation issues
42 stars 23 forks source link

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

Open fantamir opened 3 years ago

fantamir commented 3 years ago

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: _

_ 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:** __ Unfortunately, this solution is rejected by INSPIRE validator. On the other hand, all four examples below are accepted by validator without any problems!!: _ _ 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 __ solution for the time being. Miroslav Fanta CENIA, Czech Environmental Information Agency
fabiovin commented 3 years ago

Dear @fantamir,

I will further analyse the checks carried out by the validator, in the meantime, I can anticipate to you that the function.Function.activity attribute does not have the stereotype "voidable", so it cannot be void.

For this reason, the nilReason attribute should not be present inside the function.Function.activity element.

Could you please provide a sample GML file you are using for the test?

image

fantamir commented 3 years ago

Dear Fabio,

thank you very much for your prompt feedback. Sample GML file is attached. Focus of rows containing comments - example 2, ..5 IPPC_ETRS89_NACE_sample1_GML_GitHub609.zip

INSPIRE validator test report is here: https://inspire.ec.europa.eu/validator/test-run/details.html?id=EID768c7b2a-16fb-4901-b74d-756b5056e5e7 (skipped test: 0, failed test: 0, warnings: 0)

Best wishes Miroslav