Skip to content

Commit 7d2d4c2

Browse files
#472: Deleted triple-can-be-skipped and target-can-be-skipped (#475)
1 parent 66108d8 commit 7d2d4c2

File tree

7 files changed

+51
-121
lines changed

7 files changed

+51
-121
lines changed

shacl12-compact-syntax/index.html

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,26 +141,17 @@
141141
.focus-node-selected {
142142
color: blue;
143143
}
144+
144145
.focus-node-error {
145146
color: red;
146147
}
147-
148-
.triple-can-be-skipped {
149-
color: grey;
150-
}
148+
151149
.focus-node-error {
152150
color: red;
153151
}
154152

155153
.rule {
156154
}
157-
158-
.target-can-be-skipped{
159-
color: darkslategray;
160-
font-style: italic;
161-
data-tooltip: "Custom tooltip text." ;
162-
data-tooltip-position: "bottom" ;
163-
}
164155

165156
.component-class {
166157
font-weight: bold;

shacl12-core/index.html

Lines changed: 37 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -257,22 +257,15 @@
257257
.focus-node-selected {
258258
color: blue;
259259
}
260+
260261
.focus-node-error {
261262
color: red;
262263
}
263264

264-
.triple-can-be-skipped {
265-
color: grey;
266-
}
267265
.focus-node-error {
268266
color: red;
269267
}
270268

271-
.target-can-be-skipped {
272-
color: darkslategray;
273-
font-style: italic;
274-
}
275-
276269
.component-class {
277270
font-weight: bold;
278271
font-size: 16px;
@@ -693,8 +686,7 @@ <h3>Document Conventions</h3>
693686
<div class="turtle">
694687
# This box represents an input shapes graph
695688

696-
# Triples that can be omitted are marked as grey, e.g. --
697-
<span class="triple-can-be-skipped">&lt;s&gt; ex:p &lt;o&gt; .</span>
689+
&lt;s&gt; ex:p &lt;o&gt; .
698690
</div>
699691
<div class="jsonld">
700692
<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>
18551847
<div class="turtle">
18561848
ex:MyShape
18571849
a sh:NodeShape ;
1858-
<span class="target-can-be-skipped">sh:targetNode ex:MyInstance ;</span>
1850+
sh:targetNode ex:MyInstance ;
18591851
sh:property [ # _:b1
18601852
# Violations of sh:minCount and sh:datatype are produced as warnings
18611853
sh:path ex:myProperty ;
@@ -2037,7 +2029,7 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
20372029
<div class="turtle">
20382030
ex:MyShape
20392031
a sh:NodeShape ;
2040-
<span class="target-can-be-skipped">sh:targetNode ex:MyInstance ;</span>
2032+
sh:targetNode ex:MyInstance ;
20412033
sh:property [ # _:b1
20422034
sh:path ex:myProperty ;
20432035
sh:minCount 1 {| sh:severity sh:Info |} ;
@@ -2097,7 +2089,7 @@ <h4>Declaring Messages for a Shape or Constraint</h4>
20972089
<div class="turtle">
20982090
ex:MyShape
20992091
a sh:NodeShape ;
2100-
<span class="target-can-be-skipped">sh:targetNode ex:MyInstance ;</span>
2092+
sh:targetNode ex:MyInstance ;
21012093
sh:property [
21022094
sh:path ex:myProperty ;
21032095
sh:maxLength 10 {|
@@ -2167,7 +2159,7 @@ <h4>Deactivating Shapes and Constraints</h4>
21672159
<div class="turtle">
21682160
ex:PersonShape
21692161
a sh:NodeShape ;
2170-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
2162+
sh:targetClass ex:Person ;
21712163
sh:property ex:PersonShape-name .
21722164

21732165
ex:PersonShape-name
@@ -2232,7 +2224,7 @@ <h4>Deactivating Shapes and Constraints</h4>
22322224
<div class="turtle">
22332225
ex:PersonShape
22342226
a sh:NodeShape ;
2235-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
2227+
sh:targetClass ex:Person ;
22362228
sh:property ex:PersonShape-name .
22372229

22382230
ex:PersonShape-name
@@ -3277,7 +3269,7 @@ <h4>sh:class</h4>
32773269
<div class="turtle">
32783270
ex:ClassExampleShape
32793271
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 ;
32813273
sh:property [
32823274
sh:path ex:address ;
32833275
sh:class ex:PostalAddress ;
@@ -3356,7 +3348,7 @@ <h4>sh:class</h4>
33563348
<div class="turtle">
33573349
ex:ClassListExampleShape
33583350
a sh:NodeShape ;
3359-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
3351+
sh:targetClass ex:Person ;
33603352
sh:property [
33613353
sh:path ex:pet ;
33623354
sh:class ( ex:Cat ex:Dog ) ;
@@ -3432,7 +3424,7 @@ <h4>sh:datatype</h4>
34323424
<div class="turtle">
34333425
ex:DatatypeExampleShape
34343426
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 ;
34363428
sh:property [
34373429
sh:path ex:age ;
34383430
sh:datatype xsd:integer ;
@@ -3509,7 +3501,7 @@ <h4>sh:datatype</h4>
35093501
<div class="turtle">
35103502
ex:TextExampleShape
35113503
a sh:NodeShape ;
3512-
<span class="target-can-be-skipped">sh:targetNode ex:Estonia, ex:GreatBritain ;</span>
3504+
sh:targetNode ex:Estonia, ex:GreatBritain ;
35133505
sh:property [
35143506
sh:path rdfs:label ;
35153507
sh:datatype ( xsd:string rdf:langString ) ;
@@ -3578,7 +3570,7 @@ <h4>sh:nodeKind</h4>
35783570
<div class="turtle">
35793571
ex:NodeKindExampleShape
35803572
a sh:NodeShape ;
3581-
<span class="target-can-be-skipped">sh:targetObjectsOf ex:knows ;</span>
3573+
sh:targetObjectsOf ex:knows ;
35823574
sh:nodeKind sh:IRI .
35833575
</div>
35843576
<div class="jsonld">
@@ -3669,7 +3661,7 @@ <h4>sh:minCount</h4>
36693661
<div class="turtle">
36703662
ex:MinCountExampleShape
36713663
a sh:PropertyShape ;
3672-
<span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob ;</span>
3664+
sh:targetNode ex:Alice, ex:Bob ;
36733665
sh:path ex:name ;
36743666
sh:minCount 1 .
36753667
</div>
@@ -3762,7 +3754,7 @@ <h4>sh:maxCount</h4>
37623754
<div class="turtle">
37633755
ex:MaxCountExampleShape
37643756
a sh:NodeShape ;
3765-
<span class="target-can-be-skipped">sh:targetNode ex:Bob ;</span>
3757+
sh:targetNode ex:Bob ;
37663758
sh:property [
37673759
sh:path ex:birthDate ;
37683760
sh:maxCount 1 ;
@@ -3817,7 +3809,7 @@ <h3>Value Range Constraint Components</h3>
38173809
<div class="turtle">
38183810
ex:NumericRangeExampleShape
38193811
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 ;
38213813
sh:property [
38223814
sh:path ex:age ;
38233815
sh:minInclusive 0 ;
@@ -4125,7 +4117,7 @@ <h4>sh:maxLength</h4>
41254117
<div class="turtle">
41264118
ex:PasswordExampleShape
41274119
a sh:NodeShape ;
4128-
<span class="target-can-be-skipped">sh:targetNode ex:Bob, ex:Alice ;</span>
4120+
sh:targetNode ex:Bob, ex:Alice ;
41294121
sh:property [
41304122
sh:path ex:password ;
41314123
sh:minLength 8 ;
@@ -4238,7 +4230,7 @@ <h4>sh:pattern</h4>
42384230
<div class="turtle">
42394231
ex:PatternExampleShape
42404232
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 ;
42424234
sh:property [
42434235
sh:path ex:bCode ;
42444236
sh:pattern "^B" ; # starts with 'B'
@@ -4462,7 +4454,7 @@ <h4>sh:languageIn</h4>
44624454
<div class="turtle">
44634455
ex:NewZealandLanguagesShape
44644456
a sh:NodeShape ;
4465-
<span class="target-can-be-skipped">sh:targetNode ex:Mountain, ex:Berg ;</span>
4457+
sh:targetNode ex:Mountain, ex:Berg ;
44664458
sh:property [
44674459
sh:path ex:prefLabel ;
44684460
sh:languageIn ( "en" "mi" ) ;
@@ -4595,7 +4587,7 @@ <h4>sh:uniqueLang</h4>
45954587
<div class="turtle">
45964588
ex:UniqueLangExampleShape
45974589
a sh:NodeShape ;
4598-
<span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob ;</span>
4590+
sh:targetNode ex:Alice, ex:Bob ;
45994591
sh:property [
46004592
sh:path ex:label ;
46014593
sh:uniqueLang true ;
@@ -4733,7 +4725,7 @@ <h4>sh:memberShape</h4>
47334725
<div class="turtle">
47344726
ex:AgendaShape
47354727
a sh:NodeShape ;
4736-
<span class="target-can-be-skipped">sh:targetClass ex:Agenda ;</span>
4728+
sh:targetClass ex:Agenda ;
47374729
sh:property [
47384730
sh:path ex:speakerOrder ;
47394731
sh:memberShape [
@@ -4856,7 +4848,7 @@ <h4>sh:minListLength</h4>
48564848
<div class="turtle">
48574849
ex:PersonShape
48584850
a sh:NodeShape ;
4859-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
4851+
sh:targetClass ex:Person ;
48604852
sh:property [
48614853
sh:path ex:skills ;
48624854
sh:minListLength 1 ;
@@ -4961,7 +4953,7 @@ <h4>sh:maxListLength</h4>
49614953
<div class="turtle">
49624954
ex:PersonShape
49634955
a sh:NodeShape ;
4964-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
4956+
sh:targetClass ex:Person ;
49654957
sh:property [
49664958
sh:path ex:hobbies ;
49674959
sh:maxListLength 2 ;
@@ -5074,7 +5066,7 @@ <h4>sh:uniqueMembers</h4>
50745066
<div class="turtle">
50755067
ex:PersonShape
50765068
a sh:NodeShape ;
5077-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
5069+
sh:targetClass ex:Person ;
50785070
sh:property [
50795071
sh:path ex:preferences ;
50805072
sh:uniqueMembers true ;
@@ -5195,7 +5187,7 @@ <h4>sh:equals</h4>
51955187
<div class="turtle">
51965188
ex:EqualExampleShape
51975189
a sh:NodeShape ;
5198-
<span class="target-can-be-skipped">sh:targetNode ex:Bob ;</span>
5190+
sh:targetNode ex:Bob ;
51995191
sh:property [
52005192
sh:path ex:firstName ;
52015193
sh:equals ex:givenName ;
@@ -5286,7 +5278,7 @@ <h4>sh:disjoint</h4>
52865278
<div class="turtle">
52875279
ex:DisjointExampleShape
52885280
a sh:NodeShape ;
5289-
<span class="target-can-be-skipped">sh:targetNode ex:USA, ex:Germany ;</span>
5281+
sh:targetNode ex:USA, ex:Germany ;
52905282
sh:property [
52915283
sh:path ex:prefLabel ;
52925284
sh:disjoint ex:altLabel ;
@@ -5511,7 +5503,7 @@ <h3>sh:not</h3>
55115503
<div class="turtle">
55125504
ex:NotExampleShape
55135505
a sh:NodeShape ;
5514-
<span class="target-can-be-skipped">sh:targetNode ex:InvalidInstance1 ;</span>
5506+
sh:targetNode ex:InvalidInstance1 ;
55155507
sh:not [
55165508
a sh:PropertyShape ;
55175509
sh:path ex:property ;
@@ -5615,7 +5607,7 @@ <h4>sh:and</h4>
56155607

56165608
ex:ExampleAndShape
56175609
a sh:NodeShape ;
5618-
<span class="target-can-be-skipped">sh:targetNode ex:ValidInstance, ex:InvalidInstance ;</span>
5610+
sh:targetNode ex:ValidInstance, ex:InvalidInstance ;
56195611
sh:and (
56205612
ex:SuperShape
56215613
[
@@ -5757,7 +5749,7 @@ <h4>sh:or</h4>
57575749
<div class="turtle">
57585750
ex:OrConstraintExampleShape
57595751
a sh:NodeShape ;
5760-
<span class="target-can-be-skipped">sh:targetNode ex:Bob ;</span>
5752+
sh:targetNode ex:Bob ;
57615753
sh:or (
57625754
[
57635755
sh:path ex:firstName ;
@@ -5823,7 +5815,7 @@ <h4>sh:or</h4>
58235815
<div class="turtle">
58245816
ex:PersonAddressShape
58255817
a sh:NodeShape ;
5826-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
5818+
sh:targetClass ex:Person ;
58275819
sh:property [
58285820
sh:path ex:address ;
58295821
sh:or (
@@ -5981,7 +5973,7 @@ <h4>sh:xone</h4>
59815973
<div class="turtle">
59825974
ex:XoneConstraintExampleShape
59835975
a sh:NodeShape ;
5984-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
5976+
sh:targetClass ex:Person ;
59855977
sh:xone (
59865978
[
59875979
sh:property [
@@ -6150,7 +6142,7 @@ <h4>sh:node</h4>
61506142

61516143
ex:PersonShape
61526144
a sh:NodeShape ;
6153-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
6145+
sh:targetClass ex:Person ;
61546146
sh:property [ # _:b1
61556147
sh:path ex:address ;
61566148
sh:minCount 1 ;
@@ -6451,7 +6443,7 @@ <h4>sh:qualifiedValueShape, sh:qualifiedMinCount, sh:qualifiedMaxCount</h4>
64516443
<div class="turtle">
64526444
ex:QualifiedValueShapeExampleShape
64536445
a sh:NodeShape ;
6454-
<span class="target-can-be-skipped">sh:targetNode ex:QualifiedValueShapeExampleValidResource ;</span>
6446+
sh:targetNode ex:QualifiedValueShapeExampleValidResource ;
64556447
sh:property [
64566448
sh:path ex:parent ;
64576449
sh:minCount 2 ;
@@ -6553,7 +6545,7 @@ <h4>sh:qualifiedValueShape, sh:qualifiedMinCount, sh:qualifiedMaxCount</h4>
65536545
<div class="turtle">
65546546
ex:HandShape
65556547
a sh:NodeShape ;
6556-
<span class="target-can-be-skipped">sh:targetClass ex:Hand ;</span>
6548+
sh:targetClass ex:Hand ;
65576549
sh:property [
65586550
sh:path ex:digit ;
65596551
sh:maxCount 5 ;
@@ -6903,7 +6895,7 @@ <h4>sh:nodeByExpression</h4>
69036895

69046896
ex:PersonShape
69056897
a sh:NodeShape ;
6906-
<span class="target-can-be-skipped">sh:targetClass ex:Person ;</span>
6898+
sh:targetClass ex:Person ;
69076899
sh:property [ # _:b1
69086900
sh:path ex:address ;
69096901
sh:minCount 1 ;
@@ -7151,7 +7143,7 @@ <h3>sh:closed, sh:ignoredProperties</h3>
71517143
<div class="turtle">
71527144
ex:ClosedShapeExampleShape
71537145
a sh:NodeShape ;
7154-
<span class="target-can-be-skipped">sh:targetNode ex:Alice, ex:Bob ;</span>
7146+
sh:targetNode ex:Alice, ex:Bob ;
71557147
sh:closed true ;
71567148
sh:ignoredProperties (rdf:type) ;
71577149
sh:property [
@@ -7278,7 +7270,7 @@ <h4>sh:hasValue</h4>
72787270
<div class="turtle">
72797271
ex:StanfordGraduate
72807272
a sh:NodeShape ;
7281-
<span class="target-can-be-skipped">sh:targetNode ex:Alice ;</span>
7273+
sh:targetNode ex:Alice ;
72827274
sh:property [
72837275
sh:path ex:alumniOf ;
72847276
sh:hasValue ex:Stanford ;
@@ -7372,7 +7364,7 @@ <h4>sh:in</h4>
73727364
<div class="turtle">
73737365
ex:InExampleShape
73747366
a sh:NodeShape ;
7375-
<span class="target-can-be-skipped">sh:targetNode ex:RainbowPony ;</span>
7367+
sh:targetNode ex:RainbowPony ;
73767368
sh:property [
73777369
sh:path ex:color ;
73787370
sh:in ( ex:Pink ex:Purple ) ;
@@ -7980,19 +7972,5 @@ <h2>Changes between SHACL 1.0 Core and SHACL 1.2 Core</h2>
79807972
<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>
79817973
</ul>
79827974
</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-
79977975

79987976
</body></html>

0 commit comments

Comments
 (0)