Commit a8630a58 authored by schleier's avatar schleier
Browse files

applied changes from schematron-review branch

parent da614d91
Pipeline #199543 passed with stage
in 22 seconds
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<sch:rule abstract="true" id="sch_MixedContent"> <sch:rule abstract="true" id="sch_MixedContent">
<sch:assert <sch:assert
role="fatal"
test=" test="
(skos:Concept or lido:conceptID or lido:term) and not(text()[not(normalize-space(.) = '')] or @*) (skos:Concept or lido:conceptID or lido:term) and not(text()[not(normalize-space(.) = '')] or @*)
or or
...@@ -81,7 +82,7 @@ ...@@ -81,7 +82,7 @@
namespace is used as a child element for concept(Mixed)ComplexType.</sch:p> namespace is used as a child element for concept(Mixed)ComplexType.</sch:p>
<sch:rule abstract="true" id="sch_SKOS"> <sch:rule abstract="true" id="sch_SKOS">
<sch:assert test="not(skos:*[not(self::skos:Concept)])"> Only skos:Concept <sch:assert role="fatal" test="not(skos:*[not(self::skos:Concept)])"> Only skos:Concept
should be used as direct child of <sch:name/> from the SKOS namespace. should be used as direct child of <sch:name/> from the SKOS namespace.
</sch:assert> </sch:assert>
</sch:rule> </sch:rule>
...@@ -92,8 +93,8 @@ ...@@ -92,8 +93,8 @@
<sch:p>Ensures that when enriching a dataset with information retrieved via the URI provided in skos:Concept, only <sch:p>Ensures that when enriching a dataset with information retrieved via the URI provided in skos:Concept, only
SKOS properties are added to the dataset.</sch:p> SKOS properties are added to the dataset.</sch:p>
<sch:rule context="skos:Concept/descendant::*" id="sch_SKOS_properties"> <sch:rule context="skos:Concept" id="sch_SKOS_properties">
<sch:report test="namespace-uri() != 'http://www.w3.org/2004/02/skos/core#'"> <sch:report role="fatal" test="child::*/namespace-uri() != 'http://www.w3.org/2004/02/skos/core#'">
Only SKOS properties are allowed within skos:Concept. Only SKOS properties are allowed within skos:Concept.
</sch:report> </sch:report>
</sch:rule> </sch:rule>
...@@ -106,7 +107,7 @@ ...@@ -106,7 +107,7 @@
legalBodyRefComplexType.</sch:p> legalBodyRefComplexType.</sch:p>
<sch:rule abstract="true" id="sch_OWL"> <sch:rule abstract="true" id="sch_OWL">
<sch:assert test="not(owl:*[not(self::owl:sameAs)])"> Only owl:sameAs should be <sch:assert role="fatal" test="not(owl:*[not(self::owl:sameAs)])"> Only owl:sameAs should be
used as direct child of <sch:name/> from the OWL namespace. </sch:assert> used as direct child of <sch:name/> from the OWL namespace. </sch:assert>
</sch:rule> </sch:rule>
</sch:pattern> </sch:pattern>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment