Skip to content

Commit

Permalink
+ literal and integer versions of intro value set
Browse files Browse the repository at this point in the history
[#10] 3.1 Node Constraints
  • Loading branch information
Eric Prud'hommeaux committed Dec 2, 2017
1 parent 400dcd4 commit ecd904b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,20 @@ <h2>Node Constraints</h2>
{ "my:IssueShape": { "type": "Shape",
"expression": { "type": "TripleConstraint", "predicate": "ex:status",
"value": { "type": "NodeConstraint", "values": <span class="keyword new lookit">[ "ex:unassigned", "ex:assigned" ]</span> } } } }</pre>
<pre class="nohighlight schema shexc table"><span class="shape-name">my:IssueShape</span> {
<span class="predicate"><span class="type">ex:</span><span class="constant">state</span></span> <span class="lookit object">[<span class="string">"unassigned"</span> <span class="string">"assigned"</span>]</span>
}</pre>
<pre class="nohighlight schema json table">
{ "my:IssueShape": { "type": "Shape",
"expression": { "type": "TripleConstraint", "predicate": "ex:status",
"value": { "type": "NodeConstraint", "values": <span class="keyword new lookit">[ { "value": "unassigned" }, { "value": "assigned" } ]</span> } } } }</pre>
<pre class="nohighlight schema shexc table"><span class="shape-name">my:IssueShape</span> {
<span class="predicate"><span class="type">ex:</span><span class="constant">state</span></span> <span class="lookit object">[0 1]</span>
}</pre>
<pre class="nohighlight schema json table">
{ "my:IssueShape": { "type": "Shape",
"expression": { "type": "TripleConstraint", "predicate": "ex:status",
"value": { "type": "NodeConstraint", "values": <span class="keyword new lookit">[ { "value": "0" }, { "value": "1" } ]</span> } } } }</pre>
</dd>
<dt id="value-shape" class="new">value shape</dt> <dd>Asserts that the value is described by another shape, e.g.
<pre class="nohighlight schema shexc table"><span class="shape-name">my:IssueShape</span> {
Expand Down

0 comments on commit ecd904b

Please sign in to comment.