Skip to content

Commit 7d17a61

Browse files
#649: Added link to #defn_sparqlSolutionMapping (#695)
Also replaced direct hyperlinks with data-cite and removed unnecessary / before #
1 parent 2eec171 commit 7d17a61

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

shacl12-core/index.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,10 @@ <h3>Terminology</h3>
273273
The phrase "Every value of P in graph G ..." means "Every object of a triple in G with predicate P ...".
274274
(In this document, the verbs <em>specify</em> or <em>declare</em> are sometimes used to express the fact that an RDF term has values for a given predicate in a graph.)
275275
<br>
276-
<dfn data-lt="SPARQL property path">SPARQL property paths</dfn> are defined as in <a href="https://www.w3.org/TR/sparql12-query/#pp-language">SPARQL 1.2</a>.
276+
<dfn data-lt="SPARQL property path">SPARQL property paths</dfn> are defined as in <a data-cite="sparql12-query#pp-language">SPARQL 1.2</a>.
277277
An RDF term <code>n</code> has value <code>v</code> for <a>SPARQL property path</a> expression
278-
<code>p</code> in an RDF graph <code>G</code> if there is a solution mapping in the result of the SPARQL query
278+
<code>p</code> in an RDF graph <code>G</code> if there is a
279+
<a data-cite="sparql12-query#defn_sparqlSolutionMapping">solution mapping</a> in the result of the SPARQL query
279280
<code>SELECT ?s ?o WHERE { ?s p' ?o }</code> on <code>G</code> that binds <code>?s</code> to
280281
<code>n</code> and <code>?o</code> to <code>v</code>, where <code>p'</code> is SPARQL surface syntax for <code>p</code>.
281282
</div>
@@ -1833,7 +1834,7 @@ <h2>SHACL Property Paths</h2>
18331834
</p>
18341835
<p>
18351836
The following sub-sections provide syntax rules of <a>well-formed</a> <a>SHACL property paths</a>
1836-
together with mapping rules to <a href="https://www.w3.org/TR/sparql12-query/#pp-language">SPARQL 1.2 property paths</a>.
1837+
together with mapping rules to <a data-cite="sparql12-query#pp-language">SPARQL 1.2 property paths</a>.
18371838
These rules define the <dfn>path mapping</dfn> <code>path(p,G)</code> in an RDF graph <code>G</code> of an RDF term <code>p</code> that is a SHACL property path in <code>G</code>.
18381839
Two SHACL property paths are considered <dfn>equivalent paths</dfn> when they map to the exact same SPARQL property paths.
18391840
</p>
@@ -2733,7 +2734,7 @@ <h4>sh:datatype</h4>
27332734
For each <a>value node</a>
27342735
that is not a <a>literal</a>, or is a <a>literal</a> with a datatype that matches none of the <code>datatypes</code>,
27352736
there is a <a>validation result</a> with the <a>value node</a> as <code>sh:value</code>.<br><br>
2736-
The datatype of a literal is determined following the <a data-cite="sparql12-query/#func-datatype">datatype</a> function of SPARQL 1.2.
2737+
The datatype of a literal is determined following the <a data-cite="sparql12-query#func-datatype">datatype</a> function of SPARQL 1.2.
27372738
A <a>literal</a> matches a datatype if the <a>literal</a>'s datatype has the same <a>IRI</a>
27382739
and, for the datatypes supported by SPARQL 1.2, is not an <a data-cite="rdf12-concepts#section-Graph-Literal">ill-typed</a> literal.
27392740
</div>
@@ -3236,8 +3237,8 @@ <h4>sh:minLength</h4>
32363237
<div class="def-text-body" data-validator="MinLength">
32373238
Let <code>$minLength</code> be a <a>parameter value</a> for <code>sh:minLength</code>.
32383239
For each <a>value node</a> <code>v</code>
3239-
where the length (as defined by the <a data-cite="sparql12-query/#func-strlen">SPARQL STRLEN function</a>)
3240-
of the string representation of <code>v</code> (as defined by the <a data-cite="sparql12-query/#func-str">SPARQL str function</a>)
3240+
where the length (as defined by the <a data-cite="sparql12-query#func-strlen">SPARQL STRLEN function</a>)
3241+
of the string representation of <code>v</code> (as defined by the <a data-cite="sparql12-query#func-str">SPARQL str function</a>)
32413242
is less than <code>$minLength</code>, or where <code>v</code> is a <a>blank node</a>,
32423243
there is a <a>validation result</a> with <code>v</code> as <code>sh:value</code>.
32433244
</div>
@@ -3283,8 +3284,8 @@ <h4>sh:maxLength</h4>
32833284
<div class="def-text-body" data-validator="MaxLength">
32843285
Let <code>$maxLength</code> be a <a>parameter value</a> for <code>sh:maxLength</code>.
32853286
For each <a>value node</a> <code>v</code>
3286-
where the length (as defined by the <a data-cite="sparql12-query/#func-strlen">SPARQL STRLEN function</a>)
3287-
of the string representation of <code>v</code> (as defined by the <a data-cite="sparql12-query/#func-str">SPARQL str function</a>)
3287+
where the length (as defined by the <a data-cite="sparql12-query#func-strlen">SPARQL STRLEN function</a>)
3288+
of the string representation of <code>v</code> (as defined by the <a data-cite="sparql12-query#func-str">SPARQL str function</a>)
32883289
is greater than <code>$maxLength</code>, or where <code>v</code> is a <a>blank node</a>,
32893290
there is a <a>validation result</a> with <code>v</code> as <code>sh:value</code>.
32903291
</div>
@@ -3338,13 +3339,13 @@ <h4>sh:pattern</h4>
33383339
<td>
33393340
A regular expression that all value nodes need to match.
33403341
<span data-syntax-rule="pattern-datatype">The values of <code>sh:pattern</code> in a shape are literals with datatype <code>xsd:string</code>.</span>
3341-
<span data-syntax-rule="pattern-regex">The values of <code>sh:pattern</code> in a shape are valid pattern arguments for the <a data-cite="sparql12-query/#func-regex">SPARQL REGEX function</a>.</span>
3342+
<span data-syntax-rule="pattern-regex">The values of <code>sh:pattern</code> in a shape are valid pattern arguments for the <a data-cite="sparql12-query#func-regex">SPARQL REGEX function</a>.</span>
33423343
</td>
33433344
</tr>
33443345
<tr>
33453346
<td><code>sh:flags</code></td>
33463347
<td>
3347-
An optional string of flags, interpreted as in <a data-cite="sparql12-query/#func-regex">SPARQL 1.2 REGEX</a>.
3348+
An optional string of flags, interpreted as in <a data-cite="sparql12-query#func-regex">SPARQL 1.2 REGEX</a>.
33483349
<span data-syntax-rule="flags-datatype">The values of <code>sh:flags</code> in a shape are literals with datatype <code>xsd:string</code>.</span>
33493350
</td>
33503351
</tr>
@@ -3357,8 +3358,8 @@ <h4>sh:pattern</h4>
33573358
Let <code>$flags</code> be a <a>parameter value</a> for <code>sh:flags</code>.
33583359
For each <a>value node</a>
33593360
that is a blank node or
3360-
where the string representation (as defined by the <a data-cite="sparql12-query/#func-str">SPARQL str function</a>)
3361-
does not match the regular expression <code>$pattern</code> (as defined by the <a data-cite="sparql12-query/#func-regex">SPARQL REGEX function</a>),
3361+
where the string representation (as defined by the <a data-cite="sparql12-query#func-str">SPARQL str function</a>)
3362+
does not match the regular expression <code>$pattern</code> (as defined by the <a data-cite="sparql12-query#func-regex">SPARQL REGEX function</a>),
33623363
there is a <a>validation result</a> with the <a>value node</a> as <code>sh:value</code>.
33633364
If <code>$flags</code> has a value then the matching MUST follow the definition of the 3-argument variant of the SPARQL REGEX function, using <code>$flags</code> as third argument.
33643365
</div>
@@ -3429,7 +3430,7 @@ <h4>sh:singleLine</h4>
34293430
<div class="def-text-body" data-validator="SingleLine">
34303431
Let <code>$singleLine</code> be a <a>parameter value</a> for <code>sh:singleLine</code>.
34313432
If <code>$singleLine</code> is <code>true</code>, then, for each <a>value node</a> that is a literal where the lexical form matches the
3432-
regular expression (as defined by the <a data-cite="sparql12-query/#func-regex">SPARQL REGEX function</a>) <code>[\f\r\n\v]</code>, there is a validation result.
3433+
regular expression (as defined by the <a data-cite="sparql12-query#func-regex">SPARQL REGEX function</a>) <code>[\f\r\n\v]</code>, there is a validation result.
34333434
</div>
34343435
</div>
34353436
<p><em>The remainder of this section is informative.</em></p>
@@ -3499,7 +3500,7 @@ <h4>sh:languageIn</h4>
34993500
For each <a>value node</a>
35003501
that is either not a <a>literal</a> or that does not have a language tag
35013502
matching any of the basic language ranges that are the <a>members</a> of <code>$languageIn</code>
3502-
following the filtering schema defined by the <a data-cite="sparql12-query/#func-langMatches">SPARQL langMatches</a> function,
3503+
following the filtering schema defined by the <a data-cite="sparql12-query#func-langMatches">SPARQL langMatches</a> function,
35033504
there is a <a>validation result</a> with the <a>value node</a> as <code>sh:value</code>.
35043505
</div>
35053506
</div>

0 commit comments

Comments
 (0)