You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2022/01/28 21:04:41 UTC

[jena-site] 01/02: SHACLC: Sections for extensions

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena-site.git

commit 929b32312b2de5aef0759e6d456de55dd0d9eab3
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Fri Jan 21 10:23:11 2022 +0000

    SHACLC: Sections for extensions
---
 source/documentation/shacl/__index.md | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/source/documentation/shacl/__index.md b/source/documentation/shacl/__index.md
index 755c8b4..7030574 100644
--- a/source/documentation/shacl/__index.md
+++ b/source/documentation/shacl/__index.md
@@ -8,8 +8,8 @@ W3C [Shapes Constraint Language (SHACL)](https://www.w3.org/TR/shacl/).
 It implements SHACL Core and SHACL SPARQL Constraints.
 
 In addition, it provides:
-* [SHACL Compact Syntax](https://w3c.github.io/shacl/shacl-compact-syntax/)
-* [SPARQL-based targets](https://w3c.github.io/shacl/shacl-af/#SPARQLTarget)
+* [SHACL Compact Syntax](#shacl-compact-syntax)
+* [SPARQL-based targets](#sparql-based-targets)
 
 ## Command line
 
@@ -149,3 +149,24 @@ Extensions:
 * The `nodeParam` grammar rule supports "targetClass" (normally written 
   with the shorthand `->`) as well as the defined
   "targetNode", "targetObjectsOf", "targetSubjectsOf"
+
+## SPARQL-based targets
+
+SPARQL-based targets allow the target nodes to be calculated with a SPARQL
+`SELECT` query.
+
+See [SPARQL-based targets](https://w3c.github.io/shacl/shacl-af/#SPARQLTarget)
+for details.
+
+```
+ex:example
+    sh:target [
+        a sh:SPARQLTarget ;
+        sh:select """
+            SELECT ?this
+            WHERE {
+              ...
+            }
+            """ ;
+    ] ;
+```