You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 04-tests.bs
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,33 @@ Each conformance point is described in detail, including the expected behavior o
60
60
- When there is a `tree:member` in the payload of the current HTTP response, the subject of the `tree:member` must be a `tree:Collection` or a `tree:RootNode`
61
61
- When there is a `tree:Relation` in the payload of the current HTTP response, the subject of the `tree:Relation` must also point to a `tree:path`
62
62
63
-
### Initialization ### {#1.2}
63
+
### Search TREE ### {#1.2}
64
+
- During the construction of the complete RDF graph of the search tree at any point in the traversal, the inbound link to any tree:Node via a tree:Relation can originate from only one other tree:Node.
65
+
66
+
```turtle
67
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
68
+
@prefix tree: <https://w3id.org/tree#> .
69
+
@prefix ex: <http://example.org/> .
70
+
71
+
ex:NodeInboundUniquenessShape
72
+
a sh:NodeShape ;
73
+
sh:targetClass tree:Node ;
74
+
sh:sparql [
75
+
a sh:SPARQLConstraint ;
76
+
sh:message "Each tree:Node must not be the target of more than one tree:Relation.tree:node link from another node." ;
77
+
sh:select """
78
+
SELECT ?this (COUNT(?sourceNode) AS ?inboundCount)
0 commit comments