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

XSpec für Schematron

parent dce8a82d
No related branches found
No related tags found
No related merge requests found
*-compiled.xspec
\ No newline at end of file
<xspec:description xmlns:xspec="http://www.jenitennison.com/xslt/xspec" schematron="common.sch">
<xspec:scenario label="Verwende &lt;owl:sameAs&gt; für Statements zu Entitäten, die nicht unter der Kontrolle der HAB liegen">
<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="internalEntity_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 rdf:about="http://hab.example.de/entity"/>
</xspec:context>
<xspec:expect-assert id="internalEntity_001"/>
</xspec:scenario>
</xspec:scenario>
<xspec:scenario label="Verwende @rdf:about für Statements zu Entitäten, die unter der Kontrolle der HAB liegen">
<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="externalEntity_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 xmlns:owl="http://www.w3.org/2002/07/owl#">
<owl:sameAs rdf:resource="http://example.hab.de/entity"/>
</Entity>
</xspec:context>
<xspec:expect-assert id="externalEntity_001"/>
</xspec:scenario>
</xspec:scenario>
</xspec:description>
<xspec:description xmlns:xspec="http://www.jenitennison.com/xslt/xspec" schematron="vocab.sch">
<xspec:scenario label="Das Konzept muss zu einem Ordnungssystem gehören, dass in der Vokabulardatei definiert ist.">
<xspec:scenario label="Regel trifft zu">
<xspec:context xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<rdf:RDF>
<skos:ConceptScheme rdf:about="http://example.hab.de/scheme"/>
<skos:Concept>
<skos:inScheme rdf:resource="http://example.hab.de/scheme"/>
</skos:Concept>
</rdf:RDF>
</xspec:context>
<xspec:expect-not-assert id="skos.inScheme_001"/>
</xspec:scenario>
<xspec:scenario label="Regel trifft nicht zu">
<xspec:context xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<rdf:RDF>
<skos:ConceptScheme rdf:about="http://example.hab.de/scheme"/>
<skos:Concept>
<skos:inScheme rdf:resource="http://example.hab.de/other"/>
</skos:Concept>
</rdf:RDF>
</xspec:context>
<xspec:expect-assert id="skos.inScheme_001"/>
</xspec:scenario>
</xspec:scenario>
</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