Changes to the schematron - AstunTechnology/iso19139.gemini23 GitHub Wiki
A number of changes to the Gemini 2.3 schematron at https://github.com/agiorguk/gemini-schematron have been made to get around certain GeoNetwork requirements.
Name Change
GEMINI_2.3_Schematron_Schema-v1.0.sch -> schematron-rules-GEMINI_23-v10.sch
GEMINI_2.3_supplemental-v1.0.sch -> schematron-rules-GEMINI_23_supp-v10.sch
- GeoNetwork requires that all schematron files are prefixed with schematron-rules
- GeoNetwork 4.2.x requires that schematron rules files do not have additional full stops in the filename
Changes to temporal extent validation rules
Metadata Item 7 in GEMINI_2.3_Schematron_Schema-v1.0.sch/schematron-rules-GEMINI_23-v10.sch
-
Split both the
Gemini2-mi7-endposandGemini2-mi7-beginpospatterns into two (so 7a, b, c, and d are now separate patterns) -
Change the
sch:reporttests intosch:asserttests for mi7b and mi7d and negate them to make sure that they actually showed as errors rather than messages -
Change the xpaths for all 4 rules to include the potential for an extra element between
gml:TimePeriodandgml:endPositionorgml:beginPositionto work around a GeoNetwork peculiarity -
Change the tests for 7c and 7e from
normalize-space(.)tostring-length(normalize-space(.)) -
Improve the message for 7c and 7e to identify which time position has triggered the error