Skip to content
Snippets Groups Projects
Commit 566ec5a8 authored by David Maus's avatar David Maus
Browse files

Verlange vollständig URIs für @rdf:about und @rdf:resource

parent 8b6646fb
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,16 @@ namespace s = "http://purl.oclc.org/dsdl/schematron" ...@@ -14,6 +14,16 @@ namespace s = "http://purl.oclc.org/dsdl/schematron"
[ [
s:ns [ prefix = "rdf" uri = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ] s:ns [ prefix = "rdf" uri = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ]
s:ns [ prefix = "owl" uri = "http://www.w3.org/2002/07/owl#" ] s:ns [ prefix = "owl" uri = "http://www.w3.org/2002/07/owl#" ]
s:pattern [
s:rule [
context = "@rdf:about | @rdf:resource" s:assert [
test = "matches(., '^https?://')"
id = "general_001"
"Verwende immer vollständige URIs für Subjekte oder Referenzen"
]
]
]
] ]
start = rdfWrapper start = rdfWrapper
......
...@@ -32,4 +32,21 @@ ...@@ -32,4 +32,21 @@
</xspec:scenario> </xspec:scenario>
</xspec:scenario> </xspec:scenario>
<xspec:scenario label="Verwende immer vollständige URIs für Subjekte oder Referenzen">
<xspec:scenario label="Regel trifft zu">
<xspec:context xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Entity rdf:about="http://example.hab.de/entity"/>
</xspec:context>
<xspec:expect-not-assert id="general_001"/>
</xspec:scenario>
<xspec:scenario label="Regel nicht trifft zu">
<xspec:context xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Entity>
<Property rdf:resource="property"/>
</Entity>
</xspec:context>
<xspec:expect-assert id="general_001"/>
</xspec:scenario>
</xspec:scenario>
</xspec:description> </xspec:description>
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