-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:TopQuadrant/shacl
- Loading branch information
Showing
2 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/test/resources/sh/tests/core/property/closed-001.test.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# baseURI: http://datashapes.org/sh/tests/core/property/closed-001.test | ||
# prefix: ex | ||
|
||
@prefix dash: <http://datashapes.org/dash#> . | ||
@prefix ex: <http://datashapes.org/sh/tests/core/property/closed-001.test#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<http://datashapes.org/sh/tests/core/property/closed-001.test> | ||
rdf:type owl:Ontology ; | ||
rdfs:label "Test of sh:closed at property shape 001" ; | ||
owl:imports <http://datashapes.org/dash> ; | ||
. | ||
ex:GraphValidationTestCase | ||
rdf:type dash:GraphValidationTestCase ; | ||
dash:expectedResult [ | ||
rdf:type sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
] ; | ||
. | ||
ex:Person | ||
a rdfs:Class, sh:NodeShape ; | ||
sh:property [ | ||
sh:path ex:knows ; | ||
sh:closed true; | ||
sh:property | ||
[ | ||
sh:path ex:name ; | ||
]; | ||
|
||
] . | ||
ex:validPerson1 a ex:Person ; | ||
ex:knows | ||
[ | ||
ex:name "John" ; | ||
] . |