Target encoding: GML 3.3 Additional assertions on code list values and constraints

24 Copyright © 2011 Open Geospatial Consortium containsxlink:href, and documentsubstring- before.xlink:href,idsubstring-after.xlink:href,[local- name=Definiton and namespace-uri=http:www.opengis.netgml3.2] For applicationrdf+xml we expect a skos:Concept see the OWS-8 Semantic Mediation ER: not containsxlink:href, and document.xlink:hrefskos:Concept or containsxlink:href, and documentsubstring- before.xlink:href,idsubstring-after.xlink:href,[local- name=Concept and namespace-uri=http:www.w3.org200402skoscore] For example, for the property Test.att1 shown in Figure 5 the following Schematron assertions are created: rule context=t:Test assert test=starts- witht:att1xlink:href,http:metadata.ces.milmdrnsGSIPcode listClassificationCodeCode list value URI starts with http:metadata.ces.milmdrnsGSIPcodelistClassificationCode assert assert test=not containst:att1xlink:href, and documentt:att1xlink:href or containst:att1xlink:href, and documentsubstring- beforet:att1xlink:href,idsubstring- aftert:att1xlink:href,Code list value existsassert assert test=not containst:att1xlink:href, and documentt:att1xlink:hrefgml:Definition or containst:att1xlink:href, and documentsubstring- beforet:att1xlink:href,idsubstring- aftert:att1xlink:href,[local-name=Definiton and namespace-uri=http:www.opengis.netgml3.2]Code list dictionary is represented using GML 3.2assert rule

6.4.6.2 Target encoding: GML 3.2

For GML 3.2, the expressions are different as the code list information is split into the codeSpace attribute and the text node. To verify the codeSpace attribute, the following assertion is added to the Schematron schema in the context of the property, if the tagged value {codeList} has been provided: codeSpace={codeList} To test the existence of the code list value the following assertion is added to the Schematron schema in the context of the property. In {codeListValuePattern} we replace {codeList} by {codeList} and {value} by : Copyright © 2011 Open Geospatial Consortium 25 not contains{codeListValuePattern}, and document{codeListValuePattern} or contains{codeListValuePattern}, and documentsubstring- before{codeListValuePattern},idsubstring-after{codeListValuePattern}, In addition, we can assert that the remote resource has the correct element based on its representation. For applicationgml+xml;version=3.2 the default we expect a gml:Definition: not contains{codeListValuePattern}, and document{codeListValuePattern} gml:Definition or contains{codeListValuePattern}, and documentsubstring- before{codeListValuePattern},idsubstring-after{codeListValuePattern}, [local-name=Definiton and namespace-uri=http:www.opengis.netgml3.2] For applicationrdf+xml we expect a skos:Concept see the OWS-8 Semantic Mediation ER: not contains{codeListValuePattern}, and document{codeListValuePattern} skos:Concept or contains{codeListValuePattern}, and documentsubstring- before{codeListValuePattern},idsubstring-after{codeListValuePattern}, [local-name=Concept and namespace-uri= http:www.w3.org200402skoscore]

6.4.6.3 Target encding: ISOTS 19139

The Schematron assertions for code list values in properties encoded according to ISOTS 19139 is similar to the GML 3.2 encoding. The differences are described in 6.4.2. To verify the codeSpace attribute, the following assertion is added to the Schematron schema in the context of the property, if the tagged value {codeList} has been provided: codeList={codeList} To test the existence of the code list value the following assertion is added to the Schematron schema in the context of the property. In {codeListValuePattern} we replace {codeList} by {codeList} and {value} by codeListValue: not contains{codeListValuePattern}, and document{codeListValuePattern} or contains{codeListValuePattern}, and documentsubstring- before{codeListValuePattern},idsubstring-after{codeListValuePattern}, In addition, we can assert that the remote resource has the correct element based on its representation. For applicationgml+xml;version=3.2 the default we expect a gml:Definition: not contains{codeListValuePattern}, and document{codeListValuePattern} gml:Definition or contains{codeListValuePattern}, and documentsubstring-