|
83 | 83 | tabs.prepend(selectors);
|
84 | 84 | }
|
85 | 85 |
|
| 86 | + for (const block of document.querySelectorAll('.shaclc')) { |
| 87 | + block.innerHTML = `<i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i>${block.innerHTML}`; |
| 88 | + } |
| 89 | + |
86 | 90 | // Add example button selection logic
|
87 | 91 | for (const button of document.querySelectorAll(".ds-selector-tabs .selectors button")) {
|
88 | 92 | button.onclick = () => {
|
@@ -909,7 +913,7 @@ <h3>SHACL Example</h3>
|
909 | 913 | }
|
910 | 914 | }</pre>
|
911 | 915 | </div>
|
912 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:PersonShape -> ex:Person { |
| 916 | + <div class="shaclc"><pre class="shaclc">shape ex:PersonShape -> ex:Person { |
913 | 917 | closed=true ignoredProperties=[rdf:type] .
|
914 | 918 | ex:ssn xsd:string [0..1] pattern="^\\d{3}-\\d{2}-\\d{4}$" .
|
915 | 919 | ex:worksFor IRI ex:Company .
|
@@ -1334,7 +1338,7 @@ <h3>Constraints, Parameters and Constraint Components</h3>
|
1334 | 1338 | ]
|
1335 | 1339 | }</pre>
|
1336 | 1340 | </div>
|
1337 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:MultiplePatternsShape { |
| 1341 | + <div class="shaclc"><pre class="shaclc">shape ex:MultiplePatternsShape { |
1338 | 1342 | ex:name pattern="^Start" flags="i" .
|
1339 | 1343 | ex:name pattern="End$" .
|
1340 | 1344 | }</pre></div></div>
|
@@ -1431,7 +1435,7 @@ <h4>Node targets (sh:targetNode)</h4>
|
1431 | 1435 | }
|
1432 | 1436 | }</pre>
|
1433 | 1437 | </div>
|
1434 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:PersonShape { |
| 1438 | + <div class="shaclc"><pre class="shaclc">shape ex:PersonShape { |
1435 | 1439 | targetNode=ex:Alice .
|
1436 | 1440 | }</pre></div></div>
|
1437 | 1441 | <div class="data-graph">
|
@@ -1486,7 +1490,7 @@ <h4>Class-based Targets (sh:targetClass)</h4>
|
1486 | 1490 | }
|
1487 | 1491 | }</pre>
|
1488 | 1492 | </div>
|
1489 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:PersonShape -> ex:Person { |
| 1493 | + <div class="shaclc"><pre class="shaclc">shape ex:PersonShape -> ex:Person { |
1490 | 1494 | }</pre></div></div>
|
1491 | 1495 |
|
1492 | 1496 | <div class="data-graph">
|
@@ -1610,7 +1614,7 @@ <h4>Implicit Class Targets and sh:ShapeClass</h4>
|
1610 | 1614 | ]
|
1611 | 1615 | }</pre>
|
1612 | 1616 | </div>
|
1613 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shapeClass ex:Person { |
| 1617 | + <div class="shaclc"><pre class="shaclc">shapeClass ex:Person { |
1614 | 1618 | }</pre></div></div>
|
1615 | 1619 | <div class="data-graph">
|
1616 | 1620 | <div class="turtle">
|
@@ -1683,7 +1687,7 @@ <h4>Subjects-of targets (sh:targetSubjectsOf)</h4>
|
1683 | 1687 | }
|
1684 | 1688 | }</pre>
|
1685 | 1689 | </div>
|
1686 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:TargetSubjectsOfExampleShape { |
| 1690 | + <div class="shaclc"><pre class="shaclc">shape ex:TargetSubjectsOfExampleShape { |
1687 | 1691 | targetSubjectsOf=ex:knows .
|
1688 | 1692 | }</pre></div></div>
|
1689 | 1693 | <div class="data-graph">
|
@@ -1747,7 +1751,7 @@ <h4>Objects-of targets (sh:targetObjectsOf)</h4>
|
1747 | 1751 | }
|
1748 | 1752 | }</pre>
|
1749 | 1753 | </div>
|
1750 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:TargetObjectsOfExampleShape { |
| 1754 | + <div class="shaclc"><pre class="shaclc">shape ex:TargetObjectsOfExampleShape { |
1751 | 1755 | targetObjectsOf=ex:knows .
|
1752 | 1756 | }</pre></div></div>
|
1753 | 1757 | <div class="data-graph">
|
@@ -1912,7 +1916,7 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
|
1912 | 1916 | }
|
1913 | 1917 | }</pre>
|
1914 | 1918 | </div>
|
1915 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:MyShape { |
| 1919 | + <div class="shaclc"><pre class="shaclc">shape ex:MyShape { |
1916 | 1920 | targetNode=ex:MyInstance .
|
1917 | 1921 | ex:myProperty xsd:string [1..*] severity=Warning .
|
1918 | 1922 | ex:myProperty maxLength=10 message="Too many characters"@en message="Zu viele Zeichen"@de .
|
@@ -3304,7 +3308,7 @@ <h4>sh:class</h4>
|
3304 | 3308 | ]
|
3305 | 3309 | }</pre>
|
3306 | 3310 | </div>
|
3307 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:ClassExampleShape { |
| 3311 | + <div class="shaclc"><pre class="shaclc">shape ex:ClassExampleShape { |
3308 | 3312 | targetNode=ex:Bob targetNode=ex:Alice targetNode=ex:Carol .
|
3309 | 3313 | ex:address ex:PostalAddress .
|
3310 | 3314 | }</pre></div></div>
|
@@ -3459,7 +3463,7 @@ <h4>sh:datatype</h4>
|
3459 | 3463 | ]
|
3460 | 3464 | }</pre>
|
3461 | 3465 | </div>
|
3462 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:DatatypeExampleShape { |
| 3466 | + <div class="shaclc"><pre class="shaclc">shape ex:DatatypeExampleShape { |
3463 | 3467 | targetNode=ex:Alice targetNode=ex:Bob targetNode=ex:Carol .
|
3464 | 3468 | ex:age xsd:integer .
|
3465 | 3469 | }</pre></div></div>
|
@@ -3589,7 +3593,7 @@ <h4>sh:nodeKind</h4>
|
3589 | 3593 | }
|
3590 | 3594 | }</pre>
|
3591 | 3595 | </div>
|
3592 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:NodeKindExampleShape { |
| 3596 | + <div class="shaclc"><pre class="shaclc">shape ex:NodeKindExampleShape { |
3593 | 3597 | targetObjectsOf=ex:knows nodeKind=IRI .
|
3594 | 3598 | }</pre></div></div>
|
3595 | 3599 | <div class="data-graph">
|
@@ -3782,7 +3786,7 @@ <h4>sh:maxCount</h4>
|
3782 | 3786 | }
|
3783 | 3787 | }</pre>
|
3784 | 3788 | </div>
|
3785 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:MaxCountExampleShape { |
| 3789 | + <div class="shaclc"><pre class="shaclc">shape ex:MaxCountExampleShape { |
3786 | 3790 | targetNode=ex:Bob .
|
3787 | 3791 | ex:birthDate [0..1] .
|
3788 | 3792 | }</pre></div></div>
|
@@ -3850,7 +3854,7 @@ <h3>Value Range Constraint Components</h3>
|
3850 | 3854 | ]
|
3851 | 3855 | }</pre>
|
3852 | 3856 | </div>
|
3853 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:NumericRangeExampleShape { |
| 3857 | + <div class="shaclc"><pre class="shaclc">shape ex:NumericRangeExampleShape { |
3854 | 3858 | targetNode=ex:Bob targetNode=ex:Alice targetNode=ex:Ted .
|
3855 | 3859 | ex:age minInclusive=0 maxInclusive=150 .
|
3856 | 3860 | }</pre></div></div>
|
@@ -4155,7 +4159,7 @@ <h4>sh:maxLength</h4>
|
4155 | 4159 | ]
|
4156 | 4160 | }</pre>
|
4157 | 4161 | </div>
|
4158 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:PasswordExampleShape { |
| 4162 | + <div class="shaclc"><pre class="shaclc">shape ex:PasswordExampleShape { |
4159 | 4163 | targetNode=ex:Bob targetNode=ex:Alice .
|
4160 | 4164 | ex:password minLength=8 maxLength=10 .
|
4161 | 4165 | }</pre></div></div>
|
@@ -4265,7 +4269,7 @@ <h4>sh:pattern</h4>
|
4265 | 4269 | ]
|
4266 | 4270 | }</pre>
|
4267 | 4271 | </div>
|
4268 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:PatternExampleShape { |
| 4272 | + <div class="shaclc"><pre class="shaclc">shape ex:PatternExampleShape { |
4269 | 4273 | targetNode=ex:Bob targetNode=ex:Alice targetNode=ex:Carol .
|
4270 | 4274 | ex:bCode pattern="^B" flags="i" .
|
4271 | 4275 | }</pre></div></div>
|
@@ -4489,7 +4493,7 @@ <h4>sh:languageIn</h4>
|
4489 | 4493 | ]
|
4490 | 4494 | }</pre>
|
4491 | 4495 | </div>
|
4492 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:NewZealandLanguagesShape { |
| 4496 | + <div class="shaclc"><pre class="shaclc">shape ex:NewZealandLanguagesShape { |
4493 | 4497 | targetNode=ex:Mountain targetNode=ex:Berg .
|
4494 | 4498 | ex:prefLabel languageIn=["en" "mi"] .
|
4495 | 4499 | }</pre></div></div>
|
@@ -4620,7 +4624,7 @@ <h4>sh:uniqueLang</h4>
|
4620 | 4624 | ]
|
4621 | 4625 | }</pre>
|
4622 | 4626 | </div>
|
4623 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:UniqueLangExampleShape { |
| 4627 | + <div class="shaclc"><pre class="shaclc">shape ex:UniqueLangExampleShape { |
4624 | 4628 | targetNode=ex:Alice targetNode=ex:Bob .
|
4625 | 4629 | ex:label uniqueLang=true .
|
4626 | 4630 | }</pre></div></div>
|
@@ -5214,7 +5218,7 @@ <h4>sh:equals</h4>
|
5214 | 5218 | }
|
5215 | 5219 | }</pre>
|
5216 | 5220 | </div>
|
5217 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:EqualExampleShape { |
| 5221 | + <div class="shaclc"><pre class="shaclc">shape ex:EqualExampleShape { |
5218 | 5222 | targetNode=ex:Bob .
|
5219 | 5223 | ex:firstName equals=ex:givenName .
|
5220 | 5224 | }</pre></div></div>
|
@@ -5310,7 +5314,7 @@ <h4>sh:disjoint</h4>
|
5310 | 5314 | ]
|
5311 | 5315 | }</pre>
|
5312 | 5316 | </div>
|
5313 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:DisjointExampleShape { |
| 5317 | + <div class="shaclc"><pre class="shaclc">shape ex:DisjointExampleShape { |
5314 | 5318 | targetNode=ex:USA targetNode=ex:Germany .
|
5315 | 5319 | ex:prefLabel disjoint=ex:altLabel .
|
5316 | 5320 | }</pre></div></div>
|
@@ -5409,7 +5413,7 @@ <h4>sh:lessThan</h4>
|
5409 | 5413 | }
|
5410 | 5414 | }</pre>
|
5411 | 5415 | </div>
|
5412 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:LessThanExampleShape { |
| 5416 | + <div class="shaclc"><pre class="shaclc">shape ex:LessThanExampleShape { |
5413 | 5417 | ex:startDate lessThan=ex:endDate .
|
5414 | 5418 | }</pre></div></div>
|
5415 | 5419 | </aside>
|
@@ -5860,7 +5864,7 @@ <h4>sh:or</h4>
|
5860 | 5864 | }
|
5861 | 5865 | }</pre>
|
5862 | 5866 | </div>
|
5863 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:PersonAddressShape -> ex:Person { |
| 5867 | + <div class="shaclc"><pre class="shaclc">shape ex:PersonAddressShape -> ex:Person { |
5864 | 5868 | ex:address xsd:string|ex:Address .
|
5865 | 5869 | }</pre></div></div>
|
5866 | 5870 | <div class="data-graph">
|
@@ -6194,7 +6198,7 @@ <h4>sh:node</h4>
|
6194 | 6198 | ]
|
6195 | 6199 | }</pre>
|
6196 | 6200 | </div>
|
6197 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:AddressShape { |
| 6201 | + <div class="shaclc"><pre class="shaclc">shape ex:AddressShape { |
6198 | 6202 | ex:postalCode xsd:string [0..1] .
|
6199 | 6203 | }
|
6200 | 6204 | shape ex:PersonShape -> ex:Person {
|
@@ -7194,7 +7198,7 @@ <h3>sh:closed, sh:ignoredProperties</h3>
|
7194 | 7198 | ]
|
7195 | 7199 | }</pre>
|
7196 | 7200 | </div>
|
7197 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:ClosedShapeExampleShape { |
| 7201 | + <div class="shaclc"><pre class="shaclc">shape ex:ClosedShapeExampleShape { |
7198 | 7202 | targetNode=ex:Alice targetNode=ex:Bob closed=true ignoredProperties=[rdf:type] .
|
7199 | 7203 | ex:firstName .
|
7200 | 7204 | ex:lastName .
|
@@ -7297,7 +7301,7 @@ <h4>sh:hasValue</h4>
|
7297 | 7301 | }
|
7298 | 7302 | }</pre>
|
7299 | 7303 | </div>
|
7300 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:StanfordGraduate { |
| 7304 | + <div class="shaclc"><pre class="shaclc">shape ex:StanfordGraduate { |
7301 | 7305 | targetNode=ex:Alice .
|
7302 | 7306 | ex:alumniOf hasValue=ex:Stanford .
|
7303 | 7307 | }</pre></div></div>
|
@@ -7398,7 +7402,7 @@ <h4>sh:in</h4>
|
7398 | 7402 | }
|
7399 | 7403 | }</pre>
|
7400 | 7404 | </div>
|
7401 |
| - <div class="shaclc"><i>SHACL-C specification is unstable - SHACL-C document fragments in this document are informative</i><pre class="shaclc">shape ex:InExampleShape { |
| 7405 | + <div class="shaclc"><pre class="shaclc">shape ex:InExampleShape { |
7402 | 7406 | targetNode=ex:RainbowPony .
|
7403 | 7407 | ex:color in=[ex:Pink ex:Purple] .
|
7404 | 7408 | }</pre></div></div>
|
|
0 commit comments