Interoperable-data / ERA_vocabulary

ERA vocabulary is an ontology defined by the European Union Agency for Railways (ERA) to describe the concepts and relationships related to the European railway infrastructure and the vehicles authorized to operate over it.
https://data-interop.era.europa.eu/era-vocabulary/
MIT License
4 stars 3 forks source link

Extra SHACL constraints compared to the XSD constraints #12

Closed xuemduan closed 5 months ago

xuemduan commented 1 year ago

It seems that there are some additional constraints in the SHACL shapes compared to the RINF XSD Schema V1.5: some constraints which are available in the SHACL shapes are not present in XSD.

For instance, the SHACL shape restricts the wgs:lat latitude should be between 34 and 73 but this constraint is not available in the XSD. Which one is correct?

In more detail:

era-sh:locationShape sh:property era-sh:lat .
era-sh:lat
   a sh:PropertyShape;
   rdfs:comment "Latitude following the spatial reference system WGS84." ;
   sh:targetClass geosparql:Geometry ;
   sh:path wgs:lat ;
   sh:minCount 1 ;
   sh:maxCount 1 ;
   sh:minInclusive 34;
   sh:maxExclusive 73;
ednaru commented 1 year ago

On the range of values for latitude, would need to check why it is restricted to these values. As for the rest of the validations that do not appear in the XSD schema, in SHACL shapes there is more completeness with respect to the reference RINF application guide; this is the case of the check for patterns in properties such as era:demonstrationINF and era:tafTAPCode where there are certain patterns according to the guide.