Commit f9a296a1 authored by mmarkus1's avatar mmarkus1
Browse files

update unrestricted version regarding changes of the schema file

parent 4d242d60
This diff is collapsed.
......@@ -66,11 +66,9 @@
schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
<xs:import namespace="http://www.opengis.net/gml"
schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>
<xs:import namespace="http://www.lido-schema.org/quality-assurance"
schemaLocation="http://www.lido-schema.org/schema/v1.1/lido-v1.1-qa.xsd"/>
<xs:annotation>
<xs:appinfo>
<xs:appinfo>
<sch:title>Abstract Schematron rules</sch:title>
<sch:pattern>
<sch:title>Allow free text or LIDO's concept elements (mutually
......@@ -103,12 +101,12 @@
</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>Expansion of skos:Concept</sch:title>
<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" id="sch_SKOS_properties">
<sch:report test="child::*/namespace-uri() != 'http://www.w3.org/2004/02/skos/core#'">
Only SKOS properties are allowed within skos:Concept.
......@@ -127,18 +125,18 @@
used as direct child of <sch:name/> from the OWL namespace. </sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>rightsType@type: generic or specific type</sch:title>
<sch:p>A LIDO element holding lido:rightsType can either hold a generic or a specific type of right.
Since a right can fall in only one of these categories, they are mutually exclusive.</sch:p>
<sch:rule abstract="true" id="sch_rightsType">
<sch:assert role="warn"
test="@lido:type = 'http://terminology.lido-schema.org/lido00920'
test="@lido:type = 'http://terminology.lido-schema.org/lido00920'
and not(following-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00921'
or preceding-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00921')
or @lido:type = 'http://terminology.lido-schema.org/lido00921'
or @lido:type = 'http://terminology.lido-schema.org/lido00921'
and not(following-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00920'
or preceding-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00920')
or count(parent::*/lido:rightsType) = 1 and not(@lido:type)">
......@@ -146,12 +144,12 @@
</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>Possible values for lido:rightsType@lido:type</sch:title>
<sch:p>In LIDOv1.1 a lido:type attribute is introduced for lido:rightsType in order to discern generic rights and specific ones.
This rule ensures that only the URIs for these two types of rights are used when @lido:type is set.</sch:p>
<sch:rule abstract="true" id="sch_rightsType_type">
<sch:assert role="warn"
test="(@lido:type = 'http://terminology.lido-schema.org/lido00920' or @lido:type = 'http://terminology.lido-schema.org/lido00921')
......
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