-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add extra test case for nested nodes
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BASE <http://example.org/nestedShape> | ||
|
||
PREFIX ex: <http://example.org/test#> | ||
|
||
shape ex:TestShape { | ||
ex:property IRI { | ||
ex:nestedProperty [1..1] . | ||
} . | ||
ex:property2 IRI { | ||
ex:nestedProperty2 [1..1] . | ||
ex:property3 IRI { | ||
ex:nestedProperty3 [1..1] . | ||
} . | ||
} . | ||
} |
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,48 @@ | ||
@base <http://example.org/nestedShape> . | ||
@prefix ex: <http://example.org/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#> . | ||
|
||
<> | ||
a owl:Ontology ; | ||
. | ||
|
||
ex:TestShape | ||
a sh:NodeShape ; | ||
sh:property [ | ||
sh:path ex:property ; | ||
sh:nodeKind sh:IRI ; | ||
sh:node [ | ||
sh:property [ | ||
sh:path ex:nestedProperty ; | ||
sh:minCount 1 ; | ||
sh:maxCount 1 ; | ||
] ; | ||
] ; | ||
] ; | ||
sh:property [ | ||
sh:path ex:property2 ; | ||
sh:nodeKind sh:IRI ; | ||
sh:node [ | ||
sh:property [ | ||
sh:path ex:nestedProperty2 ; | ||
sh:minCount 1 ; | ||
sh:maxCount 1 ; | ||
] ; | ||
sh:property [ | ||
sh:path ex:property3 ; | ||
sh:nodeKind sh:IRI ; | ||
sh:node [ | ||
sh:property [ | ||
sh:path ex:nestedProperty3 ; | ||
sh:minCount 1 ; | ||
sh:maxCount 1 ; | ||
] | ||
] | ||
] ; | ||
] ; | ||
] ; | ||
. |