-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LU Validation Test for ExistingLandUse reports wrong dateTime Format #424
Comments
Hello @robblis The Data Specification for LU specifies at page 22 (34 in pdf) So according to this section of the TG they should be DateTime. Aren't these the elements referred in your issue? Indeed at page 50 (62 in PDF) the type is Date while the definition is mentioning Time. Only for this feature type one definition seems to correspond to the data type Probably the TWG did not properly updated the Data Specifications TG when they decided to switch from DateTime to Date. They updated the application schema, but not updated the TG accordingly. So indeed the validator should not trigger an error and a new Corrigendum should be added here: |
We have checked the data specification that @iuriemaxim has linked, and it is indeed confusing the usage of Date in Also, checking the INSPIRE generic model we get in the Recommendation 17 that this attributes should be specified using DateTime. This is of course a recommendation and it should not be enforced, but we are going to check internally in which way should this issue be treated, if the test should be relaxed admitting Date and DateTime or move to a DateTime requirement |
@carlospurtitsa When analysing ”if the test should be relaxed admitting Date and DateTime or move to a DateTime requirement”, please take into consideration that the Land Use phenomenons are difficult to be indicated even by date, as by hour minute and second will be even strange. Imagine a sentence like: ”this area is used for constructions starting from 2000-12-31T23:59:59.999, before being used as a pasture”. Most probably this should be clarified with the TWG that wrote the DS TG for LU, as most probably they changed the dateTime to Date. The same problem we had in the TWG dealing with SD, HB and BR Data themes. Same for habitats and biotopes (HB): |
I am also testing the LU theme. I found the same validation issue with the plu:validFrom and plu:validTo for plu:SpatialPlan and plu:SupplementaryRegulation feature in the plu/PlannedLandUse.xsd. XPath: plu:SupplementaryRegulation/plu:validFrom Thanks, |
@robblis @carlospzurita
|
Dear @robblis @iuriemaxim We modified the xQuery functiones that were used to validate the validFrom and validTo elements. Even if those elements were valid against the schema, there were implemented additional checks for them to ensure that validFrom was set before validTo. To do this, they were both treated as DateTime. Now both Dates and DateTimes are allowed to define this elements. Please have a look into the staging instance |
@carlospzurita I think that only Date should be correct. Otherwise if dateTime will be used, the GML will be validated by the validator, but any XML/GML validator will trigger an error due to the fact that the schema is indicating that the element should be Date. Unless the schema will be changed please reconsider the decision in such a way to trigger an error if the elements are provided as DateTime as any GML/XML validator will do the same. |
Dear @iuriemaxim The modification made on the ETS does not overrides the schema validation. The change was made to be able to check that the time consistency between |
Ran new test on modified validator. Tests passed. |
Hi Validator Community,
I'm running validation tests for the LU theme using the ExistingLandUse feature type.
I am getting the following error reported in the Conformance Class 'Data consistency' test.
For all features verify that either
validFrom or validTo are missing or nil or
validTo is not before the value of validFrom.
Relevant requirements:
IR Requirement Article 12 (3): Other Requirements and Rules. Where the attributes validFrom and validTo are used, the value of validTo shall not be before the value of validFrom.
Source: Abstract Test Case 'Temporal consistency', INSPIRE Data Specification Template, A.3.4
Messages:
System error in the Executable Test Suite. Please contact a system administrator. Error information:
[err:FORG0001] Wrong xs:dateTime format: '1943-08-14' (try e.g. '2000-12-31T23:59:59.999').
(621/153)
However, the data type for the 'validFrom' and the 'validTo' in the ExistingLandUse.xsd is specified as a 'date' type and not a 'dateTime' type as shown in the xml snippet below from taken from the ExistingLandUse.xsd.
-- Definition -- The time when the phenomenon started to exist in the real world. -- Definition -- The time from which the phenomenon no longer exists in the real world.I've attached the test xml.
ExistingLandUse_service_xml.zip
The text was updated successfully, but these errors were encountered: