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">
(skos:Concept or lido:conceptID or lido:term) and not(text()[not(normalize-space(.) = '')] 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.
......@@ -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() != ''">
<sch:rule context="skos:Concept" id="sch_SKOS_properties">
<sch:report role="fatal" test="child::*/namespace-uri() != ''">
Only SKOS properties are allowed within skos:Concept.
......@@ -106,7 +107,7 @@
<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>
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