Commit 5de21db5 authored by mmarkus1's avatar mmarkus1
Browse files

Merge branch 'schematron-review2' into 'develop'

Added changes from schematron-review branch

See merge request lido/development!81
parents c60bc4a8 a8630a58
Pipeline #199892 passed with stage
in 47 seconds
......@@ -29,8 +29,7 @@
<tei:p>Prepared for CIDOC LIDO Working Group by LIDO-DE Working Group.</tei:p>
<tei:p>The schema is developed at https://gitlab.gwdg.de/lido/development. LIDO v1.1 is backwards compatible with LIDO v1.0.
For a summary of changes please refer to the repository’s README. The full history of LIDO can be found in http://www.lido-schema.org/schema/v1.0/lido-v1.0-specification.pdf, 2.3 History of the schema.</p>
<tei:p>The schema is developed at https://gitlab.gwdg.de/lido/development. LIDO v1.1 is backwards compatible with LIDO v1.0. For a summary of changes please refer to the repository’s README. The full history of LIDO can be found in http://www.lido-schema.org/schema/v1.0/lido-v1.0-specification.pdf, 2.3 History of the schema.</tei:p>
<tei:p>Prepared for CIDOC LIDO Working Group by LIDO-DE Working Group.</tei:p>
......@@ -66,6 +65,7 @@ For a summary of changes please refer to the repository’s README. The full his
<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
......@@ -82,7 +82,7 @@ For a summary of changes please refer to the repository’s README. The full his
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>
......@@ -93,8 +93,8 @@ For a summary of changes please refer to the repository’s README. The full his
<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>
......@@ -107,7 +107,7 @@ For a summary of changes please refer to the repository’s README. The full his
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