|
257 | 257 | .focus-node-selected {
|
258 | 258 | color: blue;
|
259 | 259 | }
|
| 260 | + |
260 | 261 | .focus-node-error {
|
261 | 262 | color: red;
|
262 | 263 | }
|
263 | 264 |
|
264 |
| - .triple-can-be-skipped { |
265 |
| - color: grey; |
266 |
| - } |
267 | 265 | .focus-node-error {
|
268 | 266 | color: red;
|
269 | 267 | }
|
270 | 268 |
|
271 |
| - .target-can-be-skipped { |
272 |
| - color: darkslategray; |
273 |
| - font-style: italic; |
274 |
| - } |
275 |
| - |
276 | 269 | .component-class {
|
277 | 270 | font-weight: bold;
|
278 | 271 | font-size: 16px;
|
@@ -693,8 +686,7 @@ <h3>Document Conventions</h3>
|
693 | 686 | <div class="turtle">
|
694 | 687 | # This box represents an input shapes graph
|
695 | 688 |
|
696 |
| -# Triples that can be omitted are marked as grey, e.g. -- |
697 |
| -<span class="triple-can-be-skipped"><s> ex:p <o> .</span> |
| 689 | +<s> ex:p <o> . |
698 | 690 | </div>
|
699 | 691 | <div class="jsonld">
|
700 | 692 | <pre class="text">// This box represents an input shapes graph</pre>
|
@@ -1855,7 +1847,7 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
|
1855 | 1847 | <div class="turtle">
|
1856 | 1848 | ex:MyShape
|
1857 | 1849 | a sh:NodeShape ;
|
1858 |
| - <span class="target-can-be-skipped">sh:targetNode ex:MyInstance ;</span> |
| 1850 | + sh:targetNode ex:MyInstance ; |
1859 | 1851 | sh:property [ # _:b1
|
1860 | 1852 | # Violations of sh:minCount and sh:datatype are produced as warnings
|
1861 | 1853 | sh:path ex:myProperty ;
|
@@ -2037,7 +2029,7 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
|
2037 | 2029 | <div class="turtle">
|
2038 | 2030 | ex:MyShape
|
2039 | 2031 | a sh:NodeShape ;
|
2040 |
| - <span class="target-can-be-skipped">sh:targetNode ex:MyInstance ;</span> |
| 2032 | + sh:targetNode ex:MyInstance ; |
2041 | 2033 | sh:property [ # _:b1
|
2042 | 2034 | sh:path ex:myProperty ;
|
2043 | 2035 | sh:minCount 1 {| sh:severity sh:Info |} ;
|
@@ -2097,7 +2089,7 @@ <h4>Declaring Messages for a Shape or Constraint</h4>
|
2097 | 2089 | <div class="turtle">
|
2098 | 2090 | ex:MyShape
|
2099 | 2091 | a sh:NodeShape ;
|
2100 |
| - <span class="target-can-be-skipped">sh:targetNode ex:MyInstance ;</span> |
| 2092 | + sh:targetNode ex:MyInstance ; |
2101 | 2093 | sh:property [
|
2102 | 2094 | sh:path ex:myProperty ;
|
2103 | 2095 | sh:maxLength 10 {|
|
@@ -2167,7 +2159,7 @@ <h4>Deactivating Shapes and Constraints</h4>
|
2167 | 2159 | <div class="turtle">
|
2168 | 2160 | ex:PersonShape
|
2169 | 2161 | a sh:NodeShape ;
|
2170 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 2162 | + sh:targetClass ex:Person ; |
2171 | 2163 | sh:property ex:PersonShape-name .
|
2172 | 2164 |
|
2173 | 2165 | ex:PersonShape-name
|
@@ -2232,7 +2224,7 @@ <h4>Deactivating Shapes and Constraints</h4>
|
2232 | 2224 | <div class="turtle">
|
2233 | 2225 | ex:PersonShape
|
2234 | 2226 | a sh:NodeShape ;
|
2235 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 2227 | + sh:targetClass ex:Person ; |
2236 | 2228 | sh:property ex:PersonShape-name .
|
2237 | 2229 |
|
2238 | 2230 | ex:PersonShape-name
|
@@ -3277,7 +3269,7 @@ <h4>sh:class</h4>
|
3277 | 3269 | <div class="turtle">
|
3278 | 3270 | ex:ClassExampleShape
|
3279 | 3271 | a sh:NodeShape ;
|
3280 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob, ex:Alice, ex:Carol ;</span> |
| 3272 | + sh:targetNode ex:Bob, ex:Alice, ex:Carol ; |
3281 | 3273 | sh:property [
|
3282 | 3274 | sh:path ex:address ;
|
3283 | 3275 | sh:class ex:PostalAddress ;
|
@@ -3356,7 +3348,7 @@ <h4>sh:class</h4>
|
3356 | 3348 | <div class="turtle">
|
3357 | 3349 | ex:ClassListExampleShape
|
3358 | 3350 | a sh:NodeShape ;
|
3359 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 3351 | + sh:targetClass ex:Person ; |
3360 | 3352 | sh:property [
|
3361 | 3353 | sh:path ex:pet ;
|
3362 | 3354 | sh:class ( ex:Cat ex:Dog ) ;
|
@@ -3432,7 +3424,7 @@ <h4>sh:datatype</h4>
|
3432 | 3424 | <div class="turtle">
|
3433 | 3425 | ex:DatatypeExampleShape
|
3434 | 3426 | a sh:NodeShape ;
|
3435 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob, ex:Carol ;</span> |
| 3427 | + sh:targetNode ex:Alice, ex:Bob, ex:Carol ; |
3436 | 3428 | sh:property [
|
3437 | 3429 | sh:path ex:age ;
|
3438 | 3430 | sh:datatype xsd:integer ;
|
@@ -3509,7 +3501,7 @@ <h4>sh:datatype</h4>
|
3509 | 3501 | <div class="turtle">
|
3510 | 3502 | ex:TextExampleShape
|
3511 | 3503 | a sh:NodeShape ;
|
3512 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Estonia, ex:GreatBritain ;</span> |
| 3504 | + sh:targetNode ex:Estonia, ex:GreatBritain ; |
3513 | 3505 | sh:property [
|
3514 | 3506 | sh:path rdfs:label ;
|
3515 | 3507 | sh:datatype ( xsd:string rdf:langString ) ;
|
@@ -3578,7 +3570,7 @@ <h4>sh:nodeKind</h4>
|
3578 | 3570 | <div class="turtle">
|
3579 | 3571 | ex:NodeKindExampleShape
|
3580 | 3572 | a sh:NodeShape ;
|
3581 |
| - <span class="target-can-be-skipped">sh:targetObjectsOf ex:knows ;</span> |
| 3573 | + sh:targetObjectsOf ex:knows ; |
3582 | 3574 | sh:nodeKind sh:IRI .
|
3583 | 3575 | </div>
|
3584 | 3576 | <div class="jsonld">
|
@@ -3669,7 +3661,7 @@ <h4>sh:minCount</h4>
|
3669 | 3661 | <div class="turtle">
|
3670 | 3662 | ex:MinCountExampleShape
|
3671 | 3663 | a sh:PropertyShape ;
|
3672 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob ;</span> |
| 3664 | + sh:targetNode ex:Alice, ex:Bob ; |
3673 | 3665 | sh:path ex:name ;
|
3674 | 3666 | sh:minCount 1 .
|
3675 | 3667 | </div>
|
@@ -3762,7 +3754,7 @@ <h4>sh:maxCount</h4>
|
3762 | 3754 | <div class="turtle">
|
3763 | 3755 | ex:MaxCountExampleShape
|
3764 | 3756 | a sh:NodeShape ;
|
3765 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob ;</span> |
| 3757 | + sh:targetNode ex:Bob ; |
3766 | 3758 | sh:property [
|
3767 | 3759 | sh:path ex:birthDate ;
|
3768 | 3760 | sh:maxCount 1 ;
|
@@ -3817,7 +3809,7 @@ <h3>Value Range Constraint Components</h3>
|
3817 | 3809 | <div class="turtle">
|
3818 | 3810 | ex:NumericRangeExampleShape
|
3819 | 3811 | a sh:NodeShape ;
|
3820 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob, ex:Alice, ex:Ted ;</span> |
| 3812 | + sh:targetNode ex:Bob, ex:Alice, ex:Ted ; |
3821 | 3813 | sh:property [
|
3822 | 3814 | sh:path ex:age ;
|
3823 | 3815 | sh:minInclusive 0 ;
|
@@ -4125,7 +4117,7 @@ <h4>sh:maxLength</h4>
|
4125 | 4117 | <div class="turtle">
|
4126 | 4118 | ex:PasswordExampleShape
|
4127 | 4119 | a sh:NodeShape ;
|
4128 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob, ex:Alice ;</span> |
| 4120 | + sh:targetNode ex:Bob, ex:Alice ; |
4129 | 4121 | sh:property [
|
4130 | 4122 | sh:path ex:password ;
|
4131 | 4123 | sh:minLength 8 ;
|
@@ -4238,7 +4230,7 @@ <h4>sh:pattern</h4>
|
4238 | 4230 | <div class="turtle">
|
4239 | 4231 | ex:PatternExampleShape
|
4240 | 4232 | a sh:NodeShape ;
|
4241 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob, ex:Alice, ex:Carol ;</span> |
| 4233 | + sh:targetNode ex:Bob, ex:Alice, ex:Carol ; |
4242 | 4234 | sh:property [
|
4243 | 4235 | sh:path ex:bCode ;
|
4244 | 4236 | sh:pattern "^B" ; # starts with 'B'
|
@@ -4462,7 +4454,7 @@ <h4>sh:languageIn</h4>
|
4462 | 4454 | <div class="turtle">
|
4463 | 4455 | ex:NewZealandLanguagesShape
|
4464 | 4456 | a sh:NodeShape ;
|
4465 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Mountain, ex:Berg ;</span> |
| 4457 | + sh:targetNode ex:Mountain, ex:Berg ; |
4466 | 4458 | sh:property [
|
4467 | 4459 | sh:path ex:prefLabel ;
|
4468 | 4460 | sh:languageIn ( "en" "mi" ) ;
|
@@ -4595,7 +4587,7 @@ <h4>sh:uniqueLang</h4>
|
4595 | 4587 | <div class="turtle">
|
4596 | 4588 | ex:UniqueLangExampleShape
|
4597 | 4589 | a sh:NodeShape ;
|
4598 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob ;</span> |
| 4590 | + sh:targetNode ex:Alice, ex:Bob ; |
4599 | 4591 | sh:property [
|
4600 | 4592 | sh:path ex:label ;
|
4601 | 4593 | sh:uniqueLang true ;
|
@@ -4733,7 +4725,7 @@ <h4>sh:memberShape</h4>
|
4733 | 4725 | <div class="turtle">
|
4734 | 4726 | ex:AgendaShape
|
4735 | 4727 | a sh:NodeShape ;
|
4736 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Agenda ;</span> |
| 4728 | + sh:targetClass ex:Agenda ; |
4737 | 4729 | sh:property [
|
4738 | 4730 | sh:path ex:speakerOrder ;
|
4739 | 4731 | sh:memberShape [
|
@@ -4856,7 +4848,7 @@ <h4>sh:minListLength</h4>
|
4856 | 4848 | <div class="turtle">
|
4857 | 4849 | ex:PersonShape
|
4858 | 4850 | a sh:NodeShape ;
|
4859 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 4851 | + sh:targetClass ex:Person ; |
4860 | 4852 | sh:property [
|
4861 | 4853 | sh:path ex:skills ;
|
4862 | 4854 | sh:minListLength 1 ;
|
@@ -4961,7 +4953,7 @@ <h4>sh:maxListLength</h4>
|
4961 | 4953 | <div class="turtle">
|
4962 | 4954 | ex:PersonShape
|
4963 | 4955 | a sh:NodeShape ;
|
4964 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 4956 | + sh:targetClass ex:Person ; |
4965 | 4957 | sh:property [
|
4966 | 4958 | sh:path ex:hobbies ;
|
4967 | 4959 | sh:maxListLength 2 ;
|
@@ -5074,7 +5066,7 @@ <h4>sh:uniqueMembers</h4>
|
5074 | 5066 | <div class="turtle">
|
5075 | 5067 | ex:PersonShape
|
5076 | 5068 | a sh:NodeShape ;
|
5077 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 5069 | + sh:targetClass ex:Person ; |
5078 | 5070 | sh:property [
|
5079 | 5071 | sh:path ex:preferences ;
|
5080 | 5072 | sh:uniqueMembers true ;
|
@@ -5195,7 +5187,7 @@ <h4>sh:equals</h4>
|
5195 | 5187 | <div class="turtle">
|
5196 | 5188 | ex:EqualExampleShape
|
5197 | 5189 | a sh:NodeShape ;
|
5198 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob ;</span> |
| 5190 | + sh:targetNode ex:Bob ; |
5199 | 5191 | sh:property [
|
5200 | 5192 | sh:path ex:firstName ;
|
5201 | 5193 | sh:equals ex:givenName ;
|
@@ -5286,7 +5278,7 @@ <h4>sh:disjoint</h4>
|
5286 | 5278 | <div class="turtle">
|
5287 | 5279 | ex:DisjointExampleShape
|
5288 | 5280 | a sh:NodeShape ;
|
5289 |
| - <span class="target-can-be-skipped">sh:targetNode ex:USA, ex:Germany ;</span> |
| 5281 | + sh:targetNode ex:USA, ex:Germany ; |
5290 | 5282 | sh:property [
|
5291 | 5283 | sh:path ex:prefLabel ;
|
5292 | 5284 | sh:disjoint ex:altLabel ;
|
@@ -5511,7 +5503,7 @@ <h3>sh:not</h3>
|
5511 | 5503 | <div class="turtle">
|
5512 | 5504 | ex:NotExampleShape
|
5513 | 5505 | a sh:NodeShape ;
|
5514 |
| - <span class="target-can-be-skipped">sh:targetNode ex:InvalidInstance1 ;</span> |
| 5506 | + sh:targetNode ex:InvalidInstance1 ; |
5515 | 5507 | sh:not [
|
5516 | 5508 | a sh:PropertyShape ;
|
5517 | 5509 | sh:path ex:property ;
|
@@ -5615,7 +5607,7 @@ <h4>sh:and</h4>
|
5615 | 5607 |
|
5616 | 5608 | ex:ExampleAndShape
|
5617 | 5609 | a sh:NodeShape ;
|
5618 |
| - <span class="target-can-be-skipped">sh:targetNode ex:ValidInstance, ex:InvalidInstance ;</span> |
| 5610 | + sh:targetNode ex:ValidInstance, ex:InvalidInstance ; |
5619 | 5611 | sh:and (
|
5620 | 5612 | ex:SuperShape
|
5621 | 5613 | [
|
@@ -5757,7 +5749,7 @@ <h4>sh:or</h4>
|
5757 | 5749 | <div class="turtle">
|
5758 | 5750 | ex:OrConstraintExampleShape
|
5759 | 5751 | a sh:NodeShape ;
|
5760 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Bob ;</span> |
| 5752 | + sh:targetNode ex:Bob ; |
5761 | 5753 | sh:or (
|
5762 | 5754 | [
|
5763 | 5755 | sh:path ex:firstName ;
|
@@ -5823,7 +5815,7 @@ <h4>sh:or</h4>
|
5823 | 5815 | <div class="turtle">
|
5824 | 5816 | ex:PersonAddressShape
|
5825 | 5817 | a sh:NodeShape ;
|
5826 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 5818 | + sh:targetClass ex:Person ; |
5827 | 5819 | sh:property [
|
5828 | 5820 | sh:path ex:address ;
|
5829 | 5821 | sh:or (
|
@@ -5981,7 +5973,7 @@ <h4>sh:xone</h4>
|
5981 | 5973 | <div class="turtle">
|
5982 | 5974 | ex:XoneConstraintExampleShape
|
5983 | 5975 | a sh:NodeShape ;
|
5984 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 5976 | + sh:targetClass ex:Person ; |
5985 | 5977 | sh:xone (
|
5986 | 5978 | [
|
5987 | 5979 | sh:property [
|
@@ -6150,7 +6142,7 @@ <h4>sh:node</h4>
|
6150 | 6142 |
|
6151 | 6143 | ex:PersonShape
|
6152 | 6144 | a sh:NodeShape ;
|
6153 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 6145 | + sh:targetClass ex:Person ; |
6154 | 6146 | sh:property [ # _:b1
|
6155 | 6147 | sh:path ex:address ;
|
6156 | 6148 | sh:minCount 1 ;
|
@@ -6451,7 +6443,7 @@ <h4>sh:qualifiedValueShape, sh:qualifiedMinCount, sh:qualifiedMaxCount</h4>
|
6451 | 6443 | <div class="turtle">
|
6452 | 6444 | ex:QualifiedValueShapeExampleShape
|
6453 | 6445 | a sh:NodeShape ;
|
6454 |
| - <span class="target-can-be-skipped">sh:targetNode ex:QualifiedValueShapeExampleValidResource ;</span> |
| 6446 | + sh:targetNode ex:QualifiedValueShapeExampleValidResource ; |
6455 | 6447 | sh:property [
|
6456 | 6448 | sh:path ex:parent ;
|
6457 | 6449 | sh:minCount 2 ;
|
@@ -6553,7 +6545,7 @@ <h4>sh:qualifiedValueShape, sh:qualifiedMinCount, sh:qualifiedMaxCount</h4>
|
6553 | 6545 | <div class="turtle">
|
6554 | 6546 | ex:HandShape
|
6555 | 6547 | a sh:NodeShape ;
|
6556 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Hand ;</span> |
| 6548 | + sh:targetClass ex:Hand ; |
6557 | 6549 | sh:property [
|
6558 | 6550 | sh:path ex:digit ;
|
6559 | 6551 | sh:maxCount 5 ;
|
@@ -6903,7 +6895,7 @@ <h4>sh:nodeByExpression</h4>
|
6903 | 6895 |
|
6904 | 6896 | ex:PersonShape
|
6905 | 6897 | a sh:NodeShape ;
|
6906 |
| - <span class="target-can-be-skipped">sh:targetClass ex:Person ;</span> |
| 6898 | + sh:targetClass ex:Person ; |
6907 | 6899 | sh:property [ # _:b1
|
6908 | 6900 | sh:path ex:address ;
|
6909 | 6901 | sh:minCount 1 ;
|
@@ -7151,7 +7143,7 @@ <h3>sh:closed, sh:ignoredProperties</h3>
|
7151 | 7143 | <div class="turtle">
|
7152 | 7144 | ex:ClosedShapeExampleShape
|
7153 | 7145 | a sh:NodeShape ;
|
7154 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob ;</span> |
| 7146 | + sh:targetNode ex:Alice, ex:Bob ; |
7155 | 7147 | sh:closed true ;
|
7156 | 7148 | sh:ignoredProperties (rdf:type) ;
|
7157 | 7149 | sh:property [
|
@@ -7278,7 +7270,7 @@ <h4>sh:hasValue</h4>
|
7278 | 7270 | <div class="turtle">
|
7279 | 7271 | ex:StanfordGraduate
|
7280 | 7272 | a sh:NodeShape ;
|
7281 |
| - <span class="target-can-be-skipped">sh:targetNode ex:Alice ;</span> |
| 7273 | + sh:targetNode ex:Alice ; |
7282 | 7274 | sh:property [
|
7283 | 7275 | sh:path ex:alumniOf ;
|
7284 | 7276 | sh:hasValue ex:Stanford ;
|
@@ -7372,7 +7364,7 @@ <h4>sh:in</h4>
|
7372 | 7364 | <div class="turtle">
|
7373 | 7365 | ex:InExampleShape
|
7374 | 7366 | a sh:NodeShape ;
|
7375 |
| - <span class="target-can-be-skipped">sh:targetNode ex:RainbowPony ;</span> |
| 7367 | + sh:targetNode ex:RainbowPony ; |
7376 | 7368 | sh:property [
|
7377 | 7369 | sh:path ex:color ;
|
7378 | 7370 | sh:in ( ex:Pink ex:Purple ) ;
|
@@ -7980,19 +7972,5 @@ <h2>Changes between SHACL 1.0 Core and SHACL 1.2 Core</h2>
|
7980 | 7972 | <li>Added parameter <a href="#subClassOfInShapesGraph"></a> to look up rdfs:subClassOf triples in the union of the shapes graph and the data graph; see <a href="https://github.com/w3c/data-shapes/issues/185">Issue 185</a></li>
|
7981 | 7973 | </ul>
|
7982 | 7974 | </section>
|
7983 |
| - |
7984 |
| - |
7985 |
| - <script type="text/javascript"> |
7986 |
| - |
7987 |
| - tooltip = "Targets are not the only way to initiate validation, SHACL also allows specific nodes to be validated against specific shapes."; |
7988 |
| - var t = document.getElementsByClassName("target-can-be-skipped"); |
7989 |
| - for (var i = 0; i < t.length; i++) { |
7990 |
| - t[i].title = tooltip; |
7991 |
| - } |
7992 |
| - |
7993 |
| - </script> |
7994 |
| - |
7995 |
| - |
7996 |
| - |
7997 | 7975 |
|
7998 | 7976 | </body></html>
|
0 commit comments