Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
uri.hab.de
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dmj
uri.hab.de
Commits
970b3594
Commit
970b3594
authored
7 years ago
by
David Maus
Browse files
Options
Downloads
Patches
Plain Diff
XSpec für Schematron
parent
dce8a82d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/schema/.gitignore
+1
-0
1 addition, 0 deletions
test/schema/.gitignore
test/schema/common.xspec
+35
-0
35 additions, 0 deletions
test/schema/common.xspec
test/schema/vocab.xspec
+26
-0
26 additions, 0 deletions
test/schema/vocab.xspec
with
62 additions
and
0 deletions
test/schema/.gitignore
0 → 100644
+
1
−
0
View file @
970b3594
*-compiled.xspec
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/schema/common.xspec
0 → 100644
+
35
−
0
View file @
970b3594
<xspec:description xmlns:xspec="http://www.jenitennison.com/xslt/xspec" schematron="common.sch">
<xspec:scenario label="Verwende <owl:sameAs> 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>
This diff is collapsed.
Click to expand it.
test/schema/vocab.xspec
0 → 100644
+
26
−
0
View file @
970b3594
<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>
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment