-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from s-tittel/master
fixes #136
- Loading branch information
Showing
4 changed files
with
70 additions
and
1 deletion.
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,5 @@ | ||
--- | ||
"rdf-validate-shacl": patch | ||
--- | ||
|
||
Added a `maxNodeChecks` option to prevent `too much recursion` error caused by cyclic shape references (fixes #136) |
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
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 @@ | ||
@prefix dash: <http://datashapes.org/dash#> . | ||
@prefix ex: <http://example.org#> . | ||
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . | ||
@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 sht: <http://www.w3.org/ns/shacl-test#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<> | ||
rdf:type mf:Manifest ; | ||
mf:entries ( | ||
<circularReferences> | ||
) ; | ||
. | ||
|
||
<circularReferences> | ||
rdf:type sht:Validate ; | ||
rdfs:label "Test of circular references in data graph" ; | ||
mf:action [ | ||
sht:dataGraph <> ; | ||
sht:shapesGraph <> ; | ||
] ; | ||
mf:result [ | ||
rdf:type sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
] ; | ||
. | ||
|
||
ex:Thing | ||
a sh:NodeShape,rdfs:Class ; | ||
sh:property [ | ||
sh:path ex:references ; | ||
sh:node ex:Thing | ||
] ; | ||
sh:targetClass <Thing> | ||
. | ||
|
||
<thing1> | ||
a <Thing> ; | ||
ex:references <thing2> | ||
. | ||
|
||
<thing2> | ||
a <Thing> ; | ||
ex:references <thing1> ; | ||
. |
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