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 @@
<sch:rule abstract="true" id="sch_MixedContent">
<sch:assert
role="fatal"
test="
(skos:Concept or lido:conceptID or lido:term) and not(text()[not(normalize-space(.) = '')] or @*)
or
......@@ -81,7 +82,7 @@
namespace is used as a child element for concept(Mixed)ComplexType.</sch:p>
<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.
</sch:assert>
</sch:rule>
......@@ -92,8 +93,8 @@
<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>
<sch:rule context="skos:Concept/descendant::*" id="sch_SKOS_properties">
<sch:report test="namespace-uri() != 'http://www.w3.org/2004/02/skos/core#'">
<sch:rule context="skos:Concept" id="sch_SKOS_properties">
<sch:report role="fatal" test="child::*/namespace-uri() != 'http://www.w3.org/2004/02/skos/core#'">
Only SKOS properties are allowed within skos:Concept.
</sch:report>
</sch:rule>
......@@ -106,7 +107,7 @@
legalBodyRefComplexType.</sch:p>
<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>
</sch:rule>
</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