diff --git a/shacl12-sparql/index.html b/shacl12-sparql/index.html
index 63651b24..1c7c9fb2 100644
--- a/shacl12-sparql/index.html
+++ b/shacl12-sparql/index.html
@@ -1713,7 +1713,7 @@
Select Expressions
sh:name "full name" ;
sh:path ex:fullName ;
sh:values [
- sh:prefixes <http://example.org/ns> ;
+ sh:prefixes <http://example.com/ns> ;
sh:select """
SELECT ?fullName
WHERE {
@@ -1725,11 +1725,11 @@ Select Expressions
] ;
sh:datatype xsd:string .
-<http://example.org/ns>
+<http://example.com/ns>
a owl:Ontology ;
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://example.org/ns#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
@@ -1747,18 +1747,18 @@
Select Expressions
},
"sh:values": {
"sh:prefixes": {
- "@id": "http://example.org/ns"
+ "@id": "http://example.com/ns"
},
"sh:select": "\n\t\t\tSELECT ?fullName\n\t\t\tWHERE {\n\t\t\t\t$this ex:firstName ?firstName .\n\t\t\t\t$this ex:lastName ?lastName .\n\t\t\t\tBIND (CONCAT(?firstName, \" \", ?lastName) AS ?fullName) .\n\t\t\t}\n\t\t"
}
},
{
- "@id": "http://example.org/ns",
+ "@id": "http://example.com/ns",
"@type": "owl:Ontology",
"sh:declare": {
"sh:namespace": {
"@type": "xsd:anyURI",
- "@value": "http://example.org/ns#"
+ "@value": "http://example.com/ns#"
},
"sh:prefix": "ex"
}
@@ -1785,7 +1785,7 @@ Select Expressions
rdfs:comment "This shape applies to all persons under 18 years of age." ;
sh:targetNode [
sh:select """
- PREFIX ex: <http://example.org/ns#>
+ PREFIX ex: <http://example.com/ns#>
SELECT ?person
WHERE {
?person a/rdfs:subClassOf* ex:Person .
@@ -1802,7 +1802,7 @@ Select Expressions
"rdfs:comment": "This shape applies to all persons under 18 years of age.",
"rdfs:label": "Child shape",
"sh:targetNode": {
- "sh:select": "\n\t\t\tPREFIX ex: <http://example.org/ns#>\n\t\t\tSELECT ?person\n\t\t\tWHERE {\n\t\t\t\t?person a/rdfs:subClassOf* ex:Person .\n\t\t\t\t?person ex:age ?age .\n\t\t\t\tFILTER (?age < 18) .\n\t\t\t}\n\t\t"
+ "sh:select": "\n\t\t\tPREFIX ex: <http://example.com/ns#>\n\t\t\tSELECT ?person\n\t\t\tWHERE {\n\t\t\t\t?person a/rdfs:subClassOf* ex:Person .\n\t\t\t\t?person ex:age ?age .\n\t\t\t\tFILTER (?age < 18) .\n\t\t\t}\n\t\t"
}
}
@@ -1920,7 +1920,7 @@ SPARQL Expr Expressions
- When applied to a focus node with URI http://example.org/ns#Test the result will be 26.
+ When applied to a focus node with URI http://example.com/ns#Test the result will be 26.
This produces the same results as this variation:
diff --git a/shacl12-test-suite/tests/sparql/node/prefixes-001.ttl b/shacl12-test-suite/tests/sparql/node/prefixes-001.ttl
index 2ce1846a..38df97a3 100644
--- a/shacl12-test-suite/tests/sparql/node/prefixes-001.ttl
+++ b/shacl12-test-suite/tests/sparql/node/prefixes-001.ttl
@@ -11,7 +11,7 @@
sh:declare [
rdf:type sh:PrefixDeclaration ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/node/prefixes-001.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
sh:prefix "ex" ;
] ;
.
diff --git a/shacl12-test-suite/tests/sparql/node/sparql-001.ttl b/shacl12-test-suite/tests/sparql/node/sparql-001.ttl
index aef13fdd..7a9c1991 100644
--- a/shacl12-test-suite/tests/sparql/node/sparql-001.ttl
+++ b/shacl12-test-suite/tests/sparql/node/sparql-001.ttl
@@ -27,12 +27,11 @@ ex:TestShape
.
ex:TestShape-sparql
sh:message "Cannot have a label" ;
- sh:prefixes ;
- sh:select """
- SELECT $this ?path ?value
- WHERE {
- $this ?path ?value .
- FILTER (?path = ) .
+ sh:select """
+ SELECT $this ?path ?value
+ WHERE {
+ $this ?path ?value .
+ FILTER (?path = ) .
}""" ;
.
ex:ValidResource1
diff --git a/shacl12-test-suite/tests/sparql/node/sparql-002.ttl b/shacl12-test-suite/tests/sparql/node/sparql-002.ttl
index 9b29f1bd..6a865e26 100644
--- a/shacl12-test-suite/tests/sparql/node/sparql-002.ttl
+++ b/shacl12-test-suite/tests/sparql/node/sparql-002.ttl
@@ -11,7 +11,7 @@
sh:declare [
rdf:type sh:PrefixDeclaration ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/node/sparql-002.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
sh:prefix "ex" ;
] ;
.
diff --git a/shacl12-test-suite/tests/sparql/node/sparql-003.ttl b/shacl12-test-suite/tests/sparql/node/sparql-003.ttl
index f046dfe0..f1bba443 100644
--- a/shacl12-test-suite/tests/sparql/node/sparql-003.ttl
+++ b/shacl12-test-suite/tests/sparql/node/sparql-003.ttl
@@ -11,7 +11,7 @@
sh:declare [
rdf:type sh:PrefixDeclaration ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/node/sparql-003.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
sh:prefix "ex" ;
] ;
.
@@ -24,12 +24,12 @@ ex:LanguageExampleShape
rdf:type sh:SPARQLConstraint ;
sh:message "Values are literals with German language tag." ;
sh:prefixes ;
- sh:select """
- SELECT $this (ex:germanLabel AS ?path)
- WHERE {
- $this ex:germanLabel ?value .
- FILTER (!isLiteral(?value) || !langMatches(lang(?value), \"de\"))
- }
+ sh:select """
+ SELECT $this (ex:germanLabel AS ?path)
+ WHERE {
+ $this ex:germanLabel ?value .
+ FILTER (!isLiteral(?value) || !langMatches(lang(?value), \"de\"))
+ }
""" ;
sh:severity sh:Warning ;
sh:sparql ex:LanguageExampleShape ;
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-001.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-001.ttl
index 3a4c8767..65d4de8e 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-001.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-001.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-001.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:TestShape
@@ -23,10 +23,10 @@ ex:TestShape
ex:TestShape-sparql
sh:message "Test message" ;
sh:prefixes ex: ;
- sh:select """
- SELECT $this
- WHERE {
- FILTER ($this = ex:InvalidResource) .
+ sh:select """
+ SELECT $this
+ WHERE {
+ FILTER ($this = ex:InvalidResource) .
}""" ;
.
ex:ValidResource1
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-002.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-002.ttl
index 14795910..d634f70e 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-002.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-002.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-002.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:TestShape
@@ -22,16 +22,16 @@ ex:TestShape
.
ex:TestShape-sparql
sh:prefixes ex: ;
- sh:select """
- SELECT $this
+ sh:select """
+ SELECT $this
WHERE {
{
FILTER (false) .
}
UNION
- {
+ {
FILTER ($this = ex:InvalidResource) .
- }
+ }
}""" ;
.
ex:ValidResource1
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-003.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-003.ttl
index 8ef1801b..7b759d7e 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-003.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-003.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-003.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:TestShape
@@ -22,8 +22,8 @@ ex:TestShape
.
ex:TestShape-sparql
sh:prefixes ex: ;
- sh:select """
- SELECT $this
+ sh:select """
+ SELECT $this
WHERE {
{
{
@@ -31,7 +31,7 @@ ex:TestShape-sparql
}
FILTER bound($this) .
}
- FILTER (true) .
+ FILTER (true) .
}""" ;
.
ex:ValidResource1
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-004.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-004.ttl
index 01dbd91a..26a76864 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-004.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-004.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-004.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:TestShape
@@ -22,8 +22,8 @@ ex:TestShape
.
ex:TestShape-sparql
sh:prefixes ex: ;
- sh:select """
- SELECT $this
+ sh:select """
+ SELECT $this
WHERE {
BIND ($this AS ?that) .
FILTER (?that = ex:InvalidResource) .
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-005.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-005.ttl
index 056746e2..ce20772a 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-005.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-005.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-005.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:InvalidResource
@@ -25,8 +25,8 @@ ex:TestShape
.
ex:TestShape-sparql
sh:prefixes ex: ;
- sh:select """
- SELECT $this
+ sh:select """
+ SELECT $this
WHERE {
{
FILTER (bound($this))
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-006.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-006.ttl
index 62286073..92128d7b 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-006.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-006.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-006.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:TestShape
@@ -22,8 +22,8 @@ ex:TestShape
.
ex:TestShape-sparql
sh:prefixes ex: ;
- sh:select """
- SELECT $this
+ sh:select """
+ SELECT $this
WHERE {
{
SELECT *
diff --git a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-007.ttl b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-007.ttl
index c0f1d105..8e05b711 100644
--- a/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-007.ttl
+++ b/shacl12-test-suite/tests/sparql/pre-binding/pre-binding-007.ttl
@@ -11,7 +11,7 @@
ex:
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://datashapes.org/sh/tests/sparql/pre-binding/pre-binding-007.test#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:TestShape
diff --git a/shacl12-test-suite/tests/sparql/property/property-select-001.ttl b/shacl12-test-suite/tests/sparql/property/property-select-001.ttl
index c215f26b..0444aed0 100644
--- a/shacl12-test-suite/tests/sparql/property/property-select-001.ttl
+++ b/shacl12-test-suite/tests/sparql/property/property-select-001.ttl
@@ -14,7 +14,7 @@ ex:Person-fullName
sh:name "full name" ;
sh:path ex:fullName ;
sh:values [
- sh:prefixes ;
+ sh:prefixes ;
sh:select """
SELECT ?fullName
WHERE {
@@ -27,11 +27,11 @@ ex:Person-fullName
sh:datatype xsd:string ;
sh:hasValue "John Muir" .
-
+
a owl:Ontology ;
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://example.org/ns#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
ex:JohnMuir
diff --git a/shacl12-test-suite/tests/sparql/property/property-sparqlExpr-001.ttl b/shacl12-test-suite/tests/sparql/property/property-sparqlExpr-001.ttl
index a337de7d..7eb5667c 100644
--- a/shacl12-test-suite/tests/sparql/property/property-sparqlExpr-001.ttl
+++ b/shacl12-test-suite/tests/sparql/property/property-sparqlExpr-001.ttl
@@ -9,24 +9,23 @@
@prefix xsd: .
ex:Resource-uriLength
- a sh:PropertyShape ;
- sh:targetNode ex:Invalid ; # The URI of this has 29 chars
- sh:targetNode ex:Valid ; # The URI of this has 27 chars
- sh:name "URI length" ;
-
+ a sh:PropertyShape ;
+ sh:targetNode ex:Invalid ; # The URI of this has 29 chars
+ sh:targetNode ex:Valid ; # The URI of this has 27 chars
+ sh:name "URI length" ;
sh:path ex:uriLength ;
sh:values [
+ sh:prefixes ;
sh:sparqlExpr "STRLEN(STR($this))" ;
- sh:prefixes ;
] ;
sh:datatype xsd:integer ;
sh:hasValue 27 .
-
+
a owl:Ontology ;
sh:declare [
sh:prefix "ex" ;
- sh:namespace "http://example.org/ns#"^^xsd:anyURI ;
+ sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
<>