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 2026/05/31 20:55:16 UTC
(jena) 05/06: Update rdf-tests-cg
This is an automated email from the ASF dual-hosted git repository.
afs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
commit 61d03eea97762c60f03c59172b2fa317f37ebb00
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Fri May 29 14:37:45 2026 +0100
Update rdf-tests-cg
---
jena-arq/testing/rdf-tests-cg/rdf/.gitattributes | 2 +-
.../rdf/rdf11/rdf-n-quads/manifest.ttl | 4 +-
.../rdf-tests-cg/rdf/rdf11/rdf-trig/manifest.ttl | 4 +-
.../rdf-tests-cg/rdf/rdf11/rdf-turtle/manifest.ttl | 4 +-
.../rdf/rdf12/rdf-n-quads/manifest.ttl | 2 +-
.../rdf/rdf12/rdf-n-triples/manifest.ttl | 2 +-
.../rdf-tests-cg/rdf/rdf12/rdf-semantics/README | 49 -
.../rdf-semantics/canonical-literal-control.ttl | 4 -
.../rdf/rdf12/rdf-semantics/canonical-literal.ttl | 4 -
.../rdf/rdf12/rdf-semantics/control-sameas-a.ttl | 5 -
.../rdf/rdf12/rdf-semantics/control-sameas-r.ttl | 3 -
.../rdf-semantics/double-9007199254740990-5.ttl | 4 -
.../rdf-semantics/double-9007199254740991-5.ttl | 4 -
.../rdf-semantics/double-9007199254740992-5.ttl | 4 -
.../rdf/rdf12/rdf-semantics/double-e400.ttl | 4 -
.../rdf/rdf12/rdf-semantics/double-e401.ttl | 4 -
.../rdf12/rdf-semantics/double-negative-zero.ttl | 4 -
.../rdf12/rdf-semantics/double-positive-zero.ttl | 4 -
.../rdf/rdf12/rdf-semantics/float-16777205-5.ttl | 4 -
.../rdf/rdf12/rdf-semantics/float-16777206-5.ttl | 4 -
.../rdf/rdf12/rdf-semantics/float-16777207-5.ttl | 4 -
.../rdf/rdf12/rdf-semantics/float-e400.ttl | 4 -
.../rdf/rdf12/rdf-semantics/float-e401.ttl | 4 -
.../rdf12/rdf-semantics/float-negative-zero.ttl | 4 -
.../rdf12/rdf-semantics/float-positive-zero.ttl | 4 -
.../rdf-semantics/json-9007199254740990-5.ttl | 4 -
.../rdf-semantics/json-9007199254740991-5.ttl | 4 -
.../rdf-semantics/json-9007199254740992-5.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-array-1.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-array-2.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-e400.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-e401.ttl | 4 -
.../rdf-semantics/json-negative-zero-array.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-negative-zero.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-object-1.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-object-2.ttl | 4 -
.../rdf-semantics/json-positive-zero-array.ttl | 4 -
.../rdf/rdf12/rdf-semantics/json-positive-zero.ttl | 4 -
.../lowercase-dir-language-string-control.ttl | 4 -
.../lowercase-dir-language-string.ttl | 4 -
.../lowercase-language-string-control.ttl | 4 -
.../rdf-semantics/lowercase-language-string.ttl | 4 -
.../rdf12/rdf-semantics/malformed-literal-2a.ttl | 5 -
.../rdf12/rdf-semantics/malformed-literal-3r.ttl | 5 -
.../rdf-semantics/malformed-literal-control.ttl | 4 -
.../rdf-semantics/malformed-literal-other.ttl | 4 -
.../rdf/rdf12/rdf-semantics/manifest-frame.jsonld | 23 -
.../rdf/rdf12/rdf-semantics/manifest.ttl | 547 -----
.../non-canonical-literal-control.ttl | 4 -
.../rdf12/rdf-semantics/non-canonical-literal.ttl | 4 -
.../rdf/rdf12/rdf-semantics/reifies-rangea.ttl | 4 -
.../rdf/rdf12/rdf-semantics/reifies-ranger.ttl | 5 -
.../rdf/rdf12/rdf-semantics/superman.ttl | 5 -
.../superman_undesired_entailment.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test001a.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test001r.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test002a.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test002or.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test002pgr.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test002sbr.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test002sor.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test002sr.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test003a.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test004a.ttl | 5 -
.../rdf/rdf12/rdf-semantics/test004fr.ttl | 4 -
.../rdf/rdf12/rdf-semantics/test004or.ttl | 4 -
.../rdf/rdf12/rdf-semantics/test004sr.ttl | 4 -
.../rdf/rdf12/rdf-semantics/test005.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test006a.ttl | 5 -
.../rdf/rdf12/rdf-semantics/test006r.ttl | 5 -
.../rdf/rdf12/rdf-semantics/test007a.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test007a2.ttl | 4 -
.../rdf/rdf12/rdf-semantics/test007r1.ttl | 3 -
.../rdf/rdf12/rdf-semantics/test007r2.ttl | 3 -
.../rdf-semantics/triple-terms-propositions.ttl | 6 -
.../uppercase-dir-language-string-control.ttl | 3 -
.../uppercase-dir-language-string.ttl | 3 -
.../uppercase-language-string-control.ttl | 3 -
.../rdf-semantics/uppercase-language-string.ttl | 3 -
.../rdf/rdf12/rdf-trig/eval/manifest.ttl | 6 -
.../rdf/rdf12/rdf-turtle/syntax/manifest.ttl | 80 +-
.../syntax/turtle12-surrogate-pair-bad-01.ttl | 2 +
.../syntax/turtle12-surrogate-pair-bad-02.ttl | 2 +
.../syntax/turtle12-surrogates-bad-01.ttl | 3 +
.../syntax/turtle12-surrogates-bad-02.ttl | 3 +
.../syntax/turtle12-surrogates-bad-03.ttl | 3 +
.../syntax/turtle12-surrogates-bad-04.ttl | 2 +
.../syntax/turtle12-surrogates-bad-05.ttl | 2 +
.../rdf-turtle/syntax/turtle12-syntax-basic-05.ttl | 4 +
.../rdf-turtle/syntax/turtle12-syntax-basic-06.ttl | 4 +
.../rdf-turtle/syntax/turtle12-syntax-basic-07.ttl | 3 +
.../rdf-turtle/syntax/turtle12-syntax-basic-08.ttl | 4 +
.../rdf-turtle/syntax/turtle12-version-08.ttl | 6 +-
.../rdf/rdf12/rdf-xml/eval/manifest.ttl | 8 +
.../rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.nt | 6 +
.../rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.rdf | 8 +
.../testing/rdf-tests-cg/sparql/.gitattributes | 7 +
.../rdf-tests-cg/sparql/manifest-frame.jsonld | 40 +
.../expr-builtin/case-insensitive-booleans.rq | 1 +
.../expr-builtin/case-insensitive-booleans.srx | 16 +
.../sparql/sparql10/expr-builtin/manifest.ttl | 10 +
.../sparql/sparql10/expr-ops/data-numbers.ttl | 7 +
.../sparql/sparql10/expr-ops/manifest.ttl | 62 +
.../sparql/sparql10/expr-ops/query-add-literals.rq | 3 +
.../sparql10/expr-ops/query-add-numbers-cast.rq | 5 +
.../sparql10/expr-ops/query-divide-numbers-cast.rq | 5 +
.../expr-ops/query-multiply-numbers-cast.rq | 5 +
.../expr-ops/query-subtract-numbers-cast.rq | 5 +
.../sparql/sparql10/expr-ops/query-unminus-2.rq | 4 +
.../sparql/sparql10/expr-ops/query-unplus-2.rq | 4 +
.../sparql10/expr-ops/result-add-literals.srx | 6 +
.../sparql10/expr-ops/result-add-numbers-cast.srx | 187 ++
.../expr-ops/result-divide-numbers-cast.srx | 187 ++
.../expr-ops/result-multiply-numbers-cast.srx | 187 ++
.../expr-ops/result-subtract-numbers-cast.srx | 187 ++
.../sparql/sparql10/expr-ops/result-unminus-2.srx | 42 +
.../sparql/sparql10/expr-ops/result-unplus-2.srx | 42 +
.../sparql/sparql10/graph/data-optional.ttl | 4 +
.../sparql/sparql10/graph/data-variable-join.ttl | 3 +
.../sparql/sparql10/graph/graph-optional.rq | 5 +
.../sparql/sparql10/graph/graph-optional.ttl | 13 +
.../sparql/sparql10/graph/graph-variable-join.rq | 5 +
.../sparql/sparql10/graph/graph-variable-join.ttl | 9 +
.../sparql/sparql10/graph/graph-variable-scope.rq | 3 +
.../sparql/sparql10/graph/graph-variable-scope.ttl | 5 +
.../sparql/sparql10/graph/manifest.ttl | 36 +
.../sparql10/sort/data-sort-not-projected.ttl | 5 +
.../rdf-tests-cg/sparql/sparql10/sort/manifest.ttl | 8 +
.../sparql10/sort/result-sort-not-projected.ttl | 22 +
.../sparql/sparql10/sort/sort-not-projected.rq | 3 +
.../sparql/sparql11/aggregates/index.html | 1232 ----------
.../sparql/sparql11/aggregates/manifest.ttl | 1 +
.../data-empty.ttl => sparql11/bindings/empty.ttl} | 0
.../rdf-tests-cg/sparql/sparql11/bindings/graph.rq | 5 +
.../sparql/sparql11/bindings/graph.ttl | 26 +
.../sparql/sparql11/bindings/manifest.ttl | 12 +
.../sparql11/exists/exists-graph-variable.rq | 6 +
.../sparql11/exists/exists-graph-variable.srx | 13 +
.../sparql11/exists/exists-graph-variable.ttl | 4 +
.../sparql/sparql11/exists/manifest.ttl | 18 +-
.../sparql/sparql11/functions/coalesce-empty.rq | 1 +
.../sparql/sparql11/functions/coalesce-empty.srx | 11 +
.../sparql/sparql11/functions/iri02.rq | 3 +
.../sparql/sparql11/functions/iri02.srx | 14 +
.../sparql/sparql11/functions/manifest.ttl | 53 +-
.../sparql11/functions/replace-case-insensitive.rq | 1 +
.../functions/replace-case-insensitive.srx | 11 +
.../sparql/sparql11/functions/sha384-01.rq | 4 +
.../sparql/sparql11/functions/sha384-01.srx | 11 +
.../sparql/sparql11/functions/sha384-02.rq | 4 +
.../sparql/sparql11/functions/sha384-02.srx | 11 +
.../sparql11/http-rdf-update/manifest-frame.jsonld | 28 -
.../sparql/sparql11/http-rdf-update/manifest.ttl | 324 ++-
.../sparql/sparql11/negation/graph-minus.rq | 10 +
.../sparql/sparql11/negation/graph-minus.srx | 13 +
.../sparql/sparql11/negation/graph-minus.ttl | 3 +
.../sparql/sparql11/negation/manifest.ttl | 8 +
.../sparql/sparql11/property-path/manifest.ttl | 49 +-
.../sparql/sparql11/property-path/nps_a.rq | 4 +
.../sparql/sparql11/property-path/nps_a.srx | 17 +
.../sparql/sparql11/property-path/nps_a.ttl | 3 +
.../sparql/sparql11/property-path/nps_a_inverse.rq | 4 +
.../sparql11/property-path/nps_a_inverse.srx | 17 +
.../sparql11/property-path/nps_a_inverse.ttl | 3 +
.../sparql11/property-path/zero_or_more_set_end.rq | 2 +
.../property-path/zero_or_more_set_end.srx | 13 +
.../property-path/zero_or_more_set_start.rq | 2 +
.../property-path/zero_or_more_set_start.srx | 13 +
.../sparql11/property-path/zero_or_one_set_end.rq | 2 +
.../sparql11/property-path/zero_or_one_set_end.srx | 13 +
.../property-path/zero_or_one_set_start.rq | 2 +
.../property-path/zero_or_one_set_start.srx | 13 +
.../rdf-tests-cg/sparql/sparql11/protocol/data1.nt | 1 +
.../rdf-tests-cg/sparql/sparql11/protocol/data2.nt | 1 +
.../rdf-tests-cg/sparql/sparql11/protocol/data3.nt | 1 +
.../sparql/sparql11/protocol/manifest.ttl | 2110 ++++++++++-------
.../sparql/sparql12/codepoint-escapes/manifest.ttl | 4 +-
.../sparql/sparql12/eval-triple-terms/basic-7.rq | 5 +
.../sparql/sparql12/eval-triple-terms/basic-7.srj | 45 +
.../sparql/sparql12/eval-triple-terms/basic-8.rq | 11 +
.../sparql/sparql12/eval-triple-terms/basic-8.srj | 20 +
.../sparql/sparql12/eval-triple-terms/basic-9.rq | 6 +
.../sparql/sparql12/eval-triple-terms/basic-9.srj | 20 +
.../sparql/sparql12/eval-triple-terms/data-10.ttl | 7 +
.../sparql/sparql12/eval-triple-terms/data-8.ttl | 3 +
.../sparql/sparql12/eval-triple-terms/data-9.ttl | 8 +
.../sparql/sparql12/eval-triple-terms/manifest.ttl | 67 +-
.../sparql/sparql12/eval-triple-terms/op-3.rq | 8 -
.../sparql/sparql12/eval-triple-terms/op-3.srj | 27 -
.../sparql/sparql12/eval-triple-terms/op-4.rq | 8 -
.../sparql/sparql12/eval-triple-terms/op-4.srj | 319 ---
.../sparql12/eval-triple-terms/pattern-10.rq | 13 +
.../sparql12/eval-triple-terms/pattern-10.srj | 23 +
.../sparql12/eval-triple-terms/pattern-11.rq | 11 +
.../sparql12/eval-triple-terms/pattern-11.srj | 20 +
.../sparql/sparql12/expression/manifest.ttl | 46 +-
.../sparql12/expression/triple-on-literals.rq | 18 +
.../sparql12/expression/triple-on-literals.srj | 234 ++
.../sparql12/expression/triple-on-str-literals.rq | 18 +
.../sparql12/expression/triple-on-str-literals.srj | 234 ++
.../sparql12/expression/triple-on-triple-terms.rq | 15 +
.../sparql12/expression/triple-on-triple-terms.srj | 267 +++
.../sparql/sparql12/expression/triple-on-undefs.rq | 12 +
.../sparql12/expression/triple-on-undefs.srj | 75 +
.../sparql/sparql12/grouping/manifest.ttl | 12 +-
.../sparql12/grouping/select-variable-reuse.rq | 3 +
.../sparql12/grouping/select-variable-reuse.srx | 17 +
.../sparql/sparql12/lang-basedir/concat.rq | 9 +
.../sparql/sparql12/lang-basedir/concat.srj | 17 +
.../sparql/sparql12/lang-basedir/contains.rq | 1 +
.../sparql/sparql12/lang-basedir/contains.srj | 4 +
.../sparql/sparql12/lang-basedir/datatype.rq | 1 +
.../sparql/sparql12/lang-basedir/datatype.srj | 12 +
.../lang-basedir/langdir-literal-invalid.rq | 1 +
.../sparql12/lang-basedir/langdir-literal.rq | 5 +
.../sparql12/lang-basedir/langdir-literal.srj | 20 +
.../sparql/sparql12/lang-basedir/manifest.ttl | 56 +-
.../rdf-tests-cg/sparql/sparql12/manifest.ttl | 2 +
.../sparql/sparql12/rdf11/manifest.ttl | 4 +-
.../syntax-triple-terms-negative/index.html | 1267 -----------
.../syntax-triple-terms-positive/index.html | 2367 --------------------
.../sparql12/syntax/duplicated-values-variable.rq | 1 +
.../sparql/sparql12/syntax/group-by-scope-1.rq | 5 +
.../sparql/sparql12/syntax/group-by-scope-bad-1.rq | 4 +
.../sparql/sparql12/syntax/group-by-scope-bad-2.rq | 3 +
.../sparql/sparql12/syntax/group-by-scope-bad-3.rq | 5 +
.../sparql/sparql12/syntax/manifest.ttl | 43 +
.../sparql12/syntax/nested-aggregate-functions.rq | 1 +
.../sparql/sparql12/version/manifest.ttl | 76 +
.../sparql/sparql12/version/version-01.rq | 6 +
.../sparql/sparql12/version/version-02.rq | 6 +
.../sparql/sparql12/version/version-03.rq | 6 +
.../sparql/sparql12/version/version-04.rq | 6 +
.../sparql/sparql12/version/version-05.rq | 6 +
.../sparql/sparql12/version/version-06.rq | 8 +
.../sparql/sparql12/version/version-bad-01.rq | 6 +
.../sparql/sparql12/version/version-bad-02.rq | 6 +
.../sparql/sparql12/version/version-bad-03.rq | 6 +
238 files changed, 4582 insertions(+), 7238 deletions(-)
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/.gitattributes b/jena-arq/testing/rdf-tests-cg/rdf/.gitattributes
index baaaee51bf..a911f84bc2 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/.gitattributes
+++ b/jena-arq/testing/rdf-tests-cg/rdf/.gitattributes
@@ -12,5 +12,5 @@ rdf11/rdf-trig/trig-subm-16.trig text eol=lf
rdf11/rdf-trig/trig-subm-16.nq text eol=lf
rdf11/rdf-trig/literal_with_LINE_FEED.trig text eol=lf
-rdf12/**/c14n/*-c14n.nq text eol=lf
rdf12/**/c14n/*-c14n.nt text eol=lf
+rdf12/**/c14n/*-c14n.nq text eol=lf
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-n-quads/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-n-quads/manifest.ttl
index b4b540372d..de7db23510 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-n-quads/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-n-quads/manifest.ttl
@@ -421,13 +421,13 @@
mf:action <nt-syntax-bad-base-01.nq> ;
.
-<#nt-syntax-bad-bnode-01> a rdft:TestNTriplesNegativeSyntax ;
+<#nt-syntax-bad-bnode-01> a rdft:TestNQuadsNegativeSyntax ;
mf:name "nt-syntax-bad-bnode-01" ;
rdfs:comment "Colon in bnode label not allowed (negative test)" ;
mf:action <nt-syntax-bad-bnode-01.nq> ;
.
-<#nt-syntax-bad-bnode-02> a rdft:TestNTriplesNegativeSyntax ;
+<#nt-syntax-bad-bnode-02> a rdft:TestNQuadsNegativeSyntax ;
mf:name "nt-syntax-bad-bnode-02" ;
rdfs:comment "Colon in bnode label not allowed (negative test)" ;
mf:action <nt-syntax-bad-bnode-02.nq> ;
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-trig/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-trig/manifest.ttl
index 1ce11ca200..9ef4d5874a 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-trig/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-trig/manifest.ttl
@@ -1901,13 +1901,13 @@
mf:action <trig-syntax-bad-base-03.trig> ;
.
-<#trig-syntax-bad-bnode-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+<#trig-syntax-bad-bnode-01> rdf:type rdft:TestTrigNegativeSyntax ;
mf:name "trig-syntax-bad-bnode-01" ;
rdfs:comment "Colon in bnode label not allowed (negative test)" ;
mf:action <trig-syntax-bad-bnode-01.trig> ;
.
-<#trig-syntax-bad-bnode-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+<#trig-syntax-bad-bnode-02> rdf:type rdft:TestTrigNegativeSyntax ;
mf:name "trig-syntax-bad-bnode-02" ;
rdfs:comment "Colon in bnode label not allowed (negative test)" ;
mf:action <trig-syntax-bad-bnode-02.trig> ;
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-turtle/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-turtle/manifest.ttl
index bb8897b08e..68f5869b6e 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-turtle/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf11/rdf-turtle/manifest.ttl
@@ -1773,13 +1773,13 @@
mf:action <turtle-syntax-bad-base-03.ttl> ;
.
-<#turtle-syntax-bad-bnode-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+<#turtle-syntax-bad-bnode-01> rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "turtle-syntax-bad-bnode-01" ;
rdfs:comment "Colon in bnode label not allowed (negative test)" ;
mf:action <turtle-syntax-bad-bnode-01.ttl> ;
.
-<#turtle-syntax-bad-bnode-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+<#turtle-syntax-bad-bnode-02> rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "turtle-syntax-bad-bnode-02" ;
rdfs:comment "Colon in bnode label not allowed (negative test)" ;
mf:action <turtle-syntax-bad-bnode-02.ttl> ;
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-quads/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-quads/manifest.ttl
index 1d728be481..c773989175 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-quads/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-quads/manifest.ttl
@@ -30,7 +30,7 @@ trs:manifest rdf:type mf:Manifest ;
along with the relevant RDF 1.1 tests.
""";
mf:include (
-## <c14n/manifest.ttl>
+ <c14n/manifest.ttl>
<syntax/manifest.ttl>
<../../rdf11/rdf-n-quads/manifest.ttl>
) .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-triples/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-triples/manifest.ttl
index 9509b6d7c0..67a7bf43c7 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-triples/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-n-triples/manifest.ttl
@@ -30,7 +30,7 @@ trs:manifest rdf:type mf:Manifest ;
along with the relevant RDF 1.1 tests.
""";
mf:include (
-## <c14n/manifest.ttl>
+ <c14n/manifest.ttl>
<syntax/manifest.ttl>
<../../rdf11/rdf-n-triples/manifest.ttl>
) .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/README b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/README
deleted file mode 100644
index 7d97c9aa47..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/README
+++ /dev/null
@@ -1,49 +0,0 @@
-This README is for the RDF-star Semantics test suite,
-by the W3C RDF-DEV Community Group task force on RDF*.
-This test suite contains two kinds of tests:
-
- Positive Entailment Tests (PositiveEntailmentTest)
- Negative Entailment Tests (NegativeEntailmentTest)
-
-The manifest.jsonld file in this directory lists all of the approved tests in the
-RDF WG's RDF Entailment test suite.
-
-Each test is one of the above kinds of tests. All tests have
-- a name (name),
-- an input RDF graph URL (action),
-- an output RDF graph URL or the special marker false (result),
-- an entailment regime, which is "simple", "RDF", "RDFS" or "RDFS-Plus" (entailmentRegime),
-- a list of recognized datatypes (recognizedDatatypes),
-- a list of unrecognized datatypes (unrecognizedDatatypes).
-
-An implementation passes a Positive (Negative) Entailment Test if, when
-configured to
-1/ perform entailment under the entailment regime of the test or some
- entailment regime that is stronger (weaker) than the entailment regime and
-2/ recognize all the datatypes in the list of recognized datatypes and
- none of the datatypes in the list of unrecognized datatypes,
-- for tests that have an output graph, determines that the input RDF graph
- entails (does not entail) the output RDF graph
-- for tests that have false as output, either determines that the input
- RDF graph entails (does not entail) an inconsistent RDF graph or that the
- input RDF graph is inconsistent (consistent).
-
-An implementation also passes a test if when configured differently from a
-correct configuration as given above nonetheless produces the given result,
-and the result is correct in the configured entailment regime with the
-configured recognized datatypes.
-
-The home of the test suite should eventually be
-<http://w3c.github.io/rdf-star/tests/semantics/>.
-Per RFC 3986 section 5.1.3, the base IRI for parsing each file is the
-retrieval IRI for that file, but changing base IRIs should not affect any
-testing results.
-
-
-Test results should be submitted as EARL reports. See
-http://www.w3.org/TR/EARL10-Schema/ for information on EARL.
-
-A document on the results of the testing will eventually be at
-http://w3c.github.io/rdf-star/tests/reports.html .
-This document will have more information on submitting reports, including examples
-of what the reports should contain.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/canonical-literal-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/canonical-literal-control.ttl
deleted file mode 100644
index 58a3308b4e..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/canonical-literal-control.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a :b "42"^^xsd:integer.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/canonical-literal.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/canonical-literal.ttl
deleted file mode 100644
index f720f6bfa2..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/canonical-literal.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "42"^^xsd:integer )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/control-sameas-a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/control-sameas-a.ttl
deleted file mode 100644
index f4a867669e..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/control-sameas-a.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix owl: <http://www.w3.org/2002/07/owl#>
-
-:superman :can :fly .
-:clark owl:sameAs :superman.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/control-sameas-r.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/control-sameas-r.ttl
deleted file mode 100644
index f7c36a71fb..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/control-sameas-r.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:clark :can :fly .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740990-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740990-5.ttl
deleted file mode 100644
index d31c0b1cc7..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740990-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "9007199254740990.5"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740991-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740991-5.ttl
deleted file mode 100644
index ba2808319a..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740991-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "9007199254740991.5"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740992-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740992-5.ttl
deleted file mode 100644
index 47dbda33df..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-9007199254740992-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "9007199254740992.5"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-e400.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-e400.ttl
deleted file mode 100644
index 7cd86920b7..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-e400.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "1E400"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-e401.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-e401.ttl
deleted file mode 100644
index 5719d3a3a8..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-e401.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "1E401"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-negative-zero.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-negative-zero.ttl
deleted file mode 100644
index 474df8a634..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-negative-zero.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "-0"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-positive-zero.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-positive-zero.ttl
deleted file mode 100644
index 88f7472591..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/double-positive-zero.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "0"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777205-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777205-5.ttl
deleted file mode 100644
index 2a781d4ebb..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777205-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "16777205.5"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777206-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777206-5.ttl
deleted file mode 100644
index 86c645adb2..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777206-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "16777206.5"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777207-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777207-5.ttl
deleted file mode 100644
index 61c38760ee..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-16777207-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "16777207.5"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-e400.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-e400.ttl
deleted file mode 100644
index 08bc7f3f85..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-e400.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "1E400"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-e401.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-e401.ttl
deleted file mode 100644
index 9befd16afb..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-e401.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "1E401"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-negative-zero.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-negative-zero.ttl
deleted file mode 100644
index a60e8b0b28..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-negative-zero.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "-0"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-positive-zero.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-positive-zero.ttl
deleted file mode 100644
index d99489f004..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/float-positive-zero.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "0"^^xsd:float .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740990-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740990-5.ttl
deleted file mode 100644
index b342ce5d80..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740990-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "9007199254740990.5"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740991-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740991-5.ttl
deleted file mode 100644
index ec3f41f599..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740991-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "9007199254740991.5"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740992-5.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740992-5.ttl
deleted file mode 100644
index 390786e0ee..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-9007199254740992-5.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "9007199254740992.5"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-array-1.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-array-1.ttl
deleted file mode 100644
index b4dd6784a9..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-array-1.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "[ -0, 0 ]"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-array-2.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-array-2.ttl
deleted file mode 100644
index 756e795346..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-array-2.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "[ 0, -0 ]"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-e400.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-e400.ttl
deleted file mode 100644
index 2e9feeb0a1..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-e400.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "1E400"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-e401.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-e401.ttl
deleted file mode 100644
index 12e08c6b9e..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-e401.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "1E401"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-negative-zero-array.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-negative-zero-array.ttl
deleted file mode 100644
index 5773428830..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-negative-zero-array.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "[ -0 ]"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-negative-zero.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-negative-zero.ttl
deleted file mode 100644
index 9eb1d6677c..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-negative-zero.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "-0"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-object-1.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-object-1.ttl
deleted file mode 100644
index 1d4eda1043..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-object-1.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b '{ "a":0, "b":1 }'^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-object-2.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-object-2.ttl
deleted file mode 100644
index b373836b4b..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-object-2.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b '{ "b":1, "a":0 }'^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-positive-zero-array.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-positive-zero-array.ttl
deleted file mode 100644
index 1a9a0d5e49..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-positive-zero-array.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "[ 0 ]"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-positive-zero.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-positive-zero.ttl
deleted file mode 100644
index 4c46c3f32e..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/json-positive-zero.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a :b "0"^^rdf:JSON .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-dir-language-string-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-dir-language-string-control.ttl
deleted file mode 100644
index 7e566d80d4..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-dir-language-string-control.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a :b "hello"@en-us--ltr.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-dir-language-string.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-dir-language-string.ttl
deleted file mode 100644
index b475119e18..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-dir-language-string.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "hello"@en-us--ltr )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-language-string-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-language-string-control.ttl
deleted file mode 100644
index 68fe7659cd..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-language-string-control.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a :b "hello"@en-us.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-language-string.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-language-string.ttl
deleted file mode 100644
index aadd5270a2..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/lowercase-language-string.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "hello"@en-us )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-2a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-2a.ttl
deleted file mode 100644
index f3833732ae..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-2a.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "c"^^xsd:integer )>>.
-:a2 :p2 <<( :d :b "c"^^xsd:integer )>>.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-3r.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-3r.ttl
deleted file mode 100644
index f92d9d5369..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-3r.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b _:x )>>.
-:a2 :p2 <<( :d :b _:x )>>.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-control.ttl
deleted file mode 100644
index bf8fbd0739..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-control.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a :b "c"^^xsd:integer.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-other.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-other.ttl
deleted file mode 100644
index b6a51bc07f..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/malformed-literal-other.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "d"^^xsd:integer )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/manifest-frame.jsonld b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/manifest-frame.jsonld
deleted file mode 100644
index e0b6f696b7..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/manifest-frame.jsonld
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "@context": {
- "xsd": "http://www.w3.org/2001/XMLSchema#",
- "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
- "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",
- "mq": "http://www.w3.org/2001/sw/DataAccess/tests/test-query#",
- "rdft": "http://www.w3.org/ns/rdftest#",
-
- "comment": "rdfs:comment",
- "entries": {"@id": "mf:entries", "@container": "@list", "@type": "@id"},
- "label": "rdfs:label",
- "name": "mf:name",
- "action": {"@id": "mf:action", "@type": "@id"},
- "result": {"@id": "mf:result", "@type": "@id"},
- "approval": {"@id": "rdft:approval", "@type": "@id"},
-
- "entailmentRegime": {"@id": "mf:entailmentRegime"},
- "recognizedDatatypes": {"@id": "mf:recognizedDatatypes", "@type": "@id", "@container": "@list"},
- "unrecognizedDatatypes": {"@id": "mf:unrecognizedDatatypes", "@type": "@id", "@container": "@list"}
- },
- "@type": "mf:Manifest",
- "entries": {"@embed": true}
-}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/manifest.ttl
deleted file mode 100644
index b808a8de8e..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/manifest.ttl
+++ /dev/null
@@ -1,547 +0,0 @@
-## Distributed under both the "W3C Test Suite License" [1]
-## and the "W3C 3-clause BSD License".
-## [1] https://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-## [2] https://www.w3.org/Consortium/Legal/2008/03-bsd-license
-
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
-PREFIX mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#>
-PREFIX rdft: <http://www.w3.org/ns/rdftest#>
-PREFIX trs: <https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-semantics#>
-PREFIX dct: <http://purl.org/dc/terms/>
-PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
-PREFIX foaf: <http://xmlns.com/foaf/0.1/>
-PREFIX rdft: <http://www.w3.org/ns/rdftest#>
-PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
-
-
-trs:manifest a mf:Manifest;
- rdfs:label "RDF 1.2 Semantics tests"@en ;
- skos:prefLabel "La suite des tests pour la sémantique de RDF 1.2"@fr;
- skos:prefLabel "Conjunto de pruebas para la semántica de RDF 1.2"@es;
- mf:assumedTestBase <https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-semantics/> ;
- dct:issued "2023-07-20"^^xsd:date ;
- dct:modified "2023-07-20"^^xsd:date ;
- dct:licence <https://www.w3.org/Consortium/Legal/2008/03-bsd-license> ;
- dct:creator [ foaf:homepage <https://w3c.github.io/rdf-star-wg/> ; foaf:name "W3C RDF & SPARQL Working Group" ] ;
- rdfs:comment """
- These test suites are a product of the [W3C RDF & SPARQL Working Group](https://www.w3.org/groups/wg/rdf-star/) as well as the
- RDF-Star Interest Group within the W3C RDF-DEV Community Group,
- and has been maintained by the
- [RDF Test Curation Community Group](https://www.w3.org/community/rdf-tests/)
- at [https://github.com/w3c/rdf-tests/tree/main/rdf/rdf11](https://github.com/w3c/rdf-tests/tree/main/rdf/rdf11/).
-
- Conformance with RDF 1.2 specifications can be determined via successfully running the
- tests for relevant specifications
- along with the relevant RDF 1.1 tests.
- """;
- rdfs:seeAlso <README>;
- mf:entries (
- trs:all-identical-triple-terms-are-the-same
- trs:triple-terms-no-spurious
- trs:bnodes-in-triple-term-subject
- trs:bnodes-in-triple-term-object
- trs:bnodes-in-triple-term-subject-and-object
- trs:bnodes-in-triple-term-subject-and-object-fail
- trs:same-bnode-same-triple-term
- trs:different-bnodes-same-triple-term
- trs:constrained-bnodes-in-triple-term-subject
- trs:constrained-bnodes-in-triple-term-object
- trs:constrained-bnodes-in-triple-term-fail
- trs:constrained-bnodes-on-literal
- trs:malformed-literal-control
- trs:malformed-literal
- trs:malformed-literal-accepted
- trs:malformed-literal-no-spurious
- trs:malformed-literal-bnode-neg
- trs:opaque-literal-control
- trs:opaque-literal
- trs:opaque-language-string-control
- trs:opaque-language-string
- trs:opaque-dir-language-string-control
- trs:opaque-dir-language-string
- trs:opaque-iri-control
- trs:opaque-iri
- trs:triple-term-not-asserted
- trs:annotated-asserted
- trs:annotation
- trs:annotation-unfolded
- trs:json-array-ordered
- trs:json-object-unordered
- trs:json-zero
- trs:json-zero-array
- trs:json-round-different
- trs:json-round-same
- trs:json-infinity
- trs:float-zero
- trs:float-round-different
- trs:float-round-same
- trs:float-infinity
- trs:double-zero
- trs:double-round-different
- trs:double-round-same
- trs:double-infinity
- trs:triple-terms-propositions
- trs:reifies-range
- ) .
-
-trs:all-identical-triple-terms-are-the-same a mf:PositiveEntailmentTest;
- rdfs:comment "Multiple occurrences of the same triple term are the same domain element.";
- mf:action <test001a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "all-identical-triple-terms-are-the-same";
- mf:recognizedDatatypes ();
- mf:result <test001r.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:annotated-asserted a mf:PositiveEntailmentTest;
- rdfs:comment "Annotated triples are asserted. This is about shorthand expansion, and is not really a semantics test.";
- mf:action <test007a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "annotated-asserted";
- mf:recognizedDatatypes ();
- mf:result <test007r1.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:annotation a mf:PositiveEntailmentTest;
- rdfs:comment "Annotations are about the reifying triple. This is about shorthand expansion, and is not really a semantics test.";
- mf:action <test007a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "annotation";
- mf:recognizedDatatypes ();
- mf:result <test007r2.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:annotation-unfolded a mf:PositiveEntailmentTest;
- rdfs:comment "Annotations are the same as separate assertions. This is about shorthand expansion, and is not really a semantics test.";
- mf:action <test007a2.ttl>;
- mf:entailmentRegime "simple";
- mf:name "annotation-unfolded";
- mf:recognizedDatatypes ();
- mf:result <test007a.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:bnodes-in-triple-term-object a mf:PositiveEntailmentTest;
- rdfs:comment "Terms inside triple terms can be replaced by fresh bnodes.";
- mf:action <test002a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "bnodes-in-triple-term-object";
- mf:recognizedDatatypes ();
- mf:result <test002or.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:bnodes-in-triple-term-subject a mf:PositiveEntailmentTest;
- rdfs:comment "Terms inside triple terms can be replaced by fresh bnodes.";
- mf:action <test002a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "bnodes-in-triple-term-subject";
- mf:recognizedDatatypes ();
- mf:result <test002sr.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:bnodes-in-triple-term-subject-and-object a mf:PositiveEntailmentTest;
- rdfs:comment "Terms inside triple terms can be replaced by fresh bnodes.";
- mf:action <test002a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "bnodes-in-triple-term-subject-and-object";
- mf:recognizedDatatypes ();
- mf:result <test002sor.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:bnodes-in-triple-term-subject-and-object-fail a mf:NegativeEntailmentTest;
- rdfs:comment "The same bnode can not match different triple terms.";
- mf:action <test002a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "bnodes-in-triple-term-subject-and-object-fail";
- mf:recognizedDatatypes ();
- mf:result <test002sbr.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:constrained-bnodes-in-triple-term-fail a mf:NegativeEntailmentTest;
- rdfs:comment "Quoted bnode identifiers share the same scope as non-quoted ones. A bnode that occurs both inside triple terms and inside asserted triples must satisfy all occurrences at the same time.";
- mf:action <test004a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "constrained-bnodes-in-triple-term-fail";
- mf:recognizedDatatypes ();
- mf:result <test004fr.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:constrained-bnodes-in-triple-term-object a mf:PositiveEntailmentTest;
- rdfs:comment "Terms inside and outside triple terms can be replaced by fresh bnodes.";
- mf:action <test004a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "constrained-bnodes-in-triple-term-object";
- mf:recognizedDatatypes ();
- mf:result <test004or.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:constrained-bnodes-in-triple-term-subject a mf:PositiveEntailmentTest;
- rdfs:comment "Terms inside and outside triple terms can be replaced by fresh bnodes";
- mf:action <test004a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "constrained-bnodes-in-triple-term-subject";
- mf:recognizedDatatypes ();
- mf:result <test004sr.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:constrained-bnodes-on-literal a mf:PositiveEntailmentTest;
- rdfs:comment "Literals inside and outside triple terms can be replaced by fresh bnodes.";
- mf:action <test006a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "constrained-bnodes-on-literal";
- mf:recognizedDatatypes ();
- mf:result <test006r.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:different-bnodes-same-triple-term a mf:PositiveEntailmentTest;
- rdfs:comment "Different bnodes can match identical triple terms.";
- mf:action <test003a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "different-bnodes-same-triple-term";
- mf:recognizedDatatypes ();
- mf:result <test002sor.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:triple-term-not-asserted a mf:NegativeEntailmentTest;
- rdfs:comment "Triple terms are not asserted.";
- mf:action <test002a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "triple-term-not-asserted";
- mf:recognizedDatatypes ();
- mf:result <test002pgr.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:triple-terms-no-spurious a mf:NegativeEntailmentTest;
- rdfs:comment "This test ensures that other entailments are not spurious.";
- mf:action <test002a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "triple-terms-no-spurious";
- mf:recognizedDatatypes ();
- mf:result <test005.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:malformed-literal a mf:PositiveEntailmentTest;
- rdfs:comment "Malformed literals are allowed in triple terms, but cause inconsistency.";
- mf:action <malformed-literal.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "malformed-literal";
- mf:recognizedDatatypes (xsd:integer);
- mf:result false;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:malformed-literal-accepted a mf:PositiveEntailmentTest;
- rdfs:comment "Malformed literals are allowed when in triple terms.";
- mf:action <malformed-literal.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "malformed-literal-accepted";
- mf:recognizedDatatypes (xsd:integer);
- mf:result <malformed-literal.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:malformed-literal-bnode-neg a mf:NegativeEntailmentTest;
- rdfs:comment "Malformed literals cannot be replaced by blank nodes.";
- mf:action <malformed-literal.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "malformed-literal-bnode-neg";
- mf:recognizedDatatypes (xsd:integer);
- mf:result <test002or.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:malformed-literal-control a mf:PositiveEntailmentTest;
- rdfs:comment "Checks that xsd:integer is indeed recognized, to ensure that malformed-literal-* tests do not pass spuriously.";
- mf:action <malformed-literal-control.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "malformed-literal-control";
- mf:recognizedDatatypes (xsd:integer);
- mf:result false;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:malformed-literal-no-spurious a mf:NegativeEntailmentTest;
- rdfs:comment "Malformed literals within triple terms do not lead to spurious entailment.";
- mf:action <malformed-literal.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "malformed-literal-no-spurious";
- mf:recognizedDatatypes (xsd:integer);
- mf:result <malformed-literal-other.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-iri a mf:PositiveEntailmentTest;
- rdfs:comment "Triple term IRIs are transparent.";
- mf:action <superman.ttl>;
- mf:entailmentRegime "RDFS-Plus";
- mf:name "opaque-iri";
- mf:recognizedDatatypes ();
- mf:result <superman_undesired_entailment.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-iri-control a mf:PositiveEntailmentTest;
- rdfs:comment "Check that owl:sameAs works as expected; was to ensure that opaque-iri did not pass spuriously.";
- mf:action <control-sameas-a.ttl>;
- mf:entailmentRegime "RDFS-Plus";
- mf:name "opaque-iri-control";
- mf:recognizedDatatypes ();
- mf:result <control-sameas-r.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-language-string a mf:PositiveEntailmentTest;
- rdfs:comment "Literals within reifying terms (including language strings) are transparent.";
- mf:action <lowercase-language-string.ttl>;
- mf:entailmentRegime "simple";
- mf:name "opaque-language-string";
- mf:recognizedDatatypes ();
- mf:result <uppercase-language-string.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-language-string-control a mf:PositiveEntailmentTest;
- rdfs:comment "Checks that language strings are indeed recognized; was to ensure that opaque-language-string did not pass spuriously.";
- mf:action <lowercase-language-string-control.ttl>;
- mf:entailmentRegime "simple";
- mf:name "opaque-language-string-control";
- mf:recognizedDatatypes ();
- mf:result <uppercase-language-string-control.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-dir-language-string a mf:NegativeEntailmentTest;
- rdfs:comment "Literals within reifying terms (including directional language strings) are opaque, even when their datatype is recognized.";
- mf:action <lowercase-dir-language-string.ttl>;
- mf:entailmentRegime "simple";
- mf:name "opaque-dir-language-string";
- mf:recognizedDatatypes ();
- mf:result <uppercase-dir-language-string.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-dir-language-string-control a mf:PositiveEntailmentTest;
- rdfs:comment "Checks that directional language strings are indeed recognized, to ensure that opaque-dir-language-string does not pass spuriously.";
- mf:action <lowercase-dir-language-string-control.ttl>;
- mf:entailmentRegime "simple";
- mf:name "opaque-dir-language-string-control";
- mf:recognizedDatatypes ();
- mf:result <uppercase-dir-language-string-control.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-literal a mf:PositiveEntailmentTest;
- rdfs:comment "Literals within triple terms are transparent.";
- mf:action <non-canonical-literal.ttl>;
- mf:entailmentRegime "simple";
- mf:name "opaque-literal";
- mf:recognizedDatatypes (xsd:integer);
- mf:result <canonical-literal.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:opaque-literal-control a mf:PositiveEntailmentTest;
- rdfs:comment "Checks that xsd:integer is indeed recognized; was to ensure that opaque-literal did not pass spuriously.";
- mf:action <non-canonical-literal-control.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "opaque-literal-control";
- mf:recognizedDatatypes (xsd:integer);
- mf:result <canonical-literal-control.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:same-bnode-same-triple-term a mf:PositiveEntailmentTest;
- rdfs:comment "Identical triple term can be replaced by the same fresh bnode multiple times.";
- mf:action <test003a.ttl>;
- mf:entailmentRegime "simple";
- mf:name "same-bnode-same-quoted-term";
- mf:recognizedDatatypes ();
- mf:result <test002sbr.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-array-ordered a mf:NegativeEntailmentTest;
- rdfs:comment "Arrays are ordered in rdf:JSON.";
- mf:action <json-array-1.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-array-unordered";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-array-2.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-object-unordered a mf:PositiveEntailmentTest;
- rdfs:comment "Objects are unordered in rdf:JSON.";
- mf:action <json-object-1.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-object-unordered";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-object-2.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-zero a mf:NegativeEntailmentTest;
- rdfs:comment "Positive zero and negative zero are different in rdf:JSON.";
- mf:action <json-positive-zero.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-zero";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-negative-zero.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-zero-array a mf:NegativeEntailmentTest;
- rdfs:comment "Positive zero and negative zero are different in rdf:JSON inside arrays.";
- mf:action <json-positive-zero-array.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-zero-array";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-negative-zero-array.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-round-different a mf:NegativeEntailmentTest;
- rdfs:comment "Rounding to different even rdf:JSON.";
- mf:action <json-9007199254740990-5.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-round-different";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-9007199254740991-5.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-round-same a mf:PositiveEntailmentTest;
- rdfs:comment "Rounding to same even rdf:JSON.";
- mf:action <json-9007199254740992-5.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-round-same";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-9007199254740991-5.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:json-infinity a mf:PositiveEntailmentTest;
- rdfs:comment "Large rdf:JSON number values are infinity.";
- mf:action <json-e400.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "json-infinity";
- mf:recognizedDatatypes (rdf:JSON);
- mf:result <json-e401.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:float-zero a mf:NegativeEntailmentTest;
- rdfs:comment "Positive zero and negative zero are different in xsd:float.";
- mf:action <float-positive-zero.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "float-zero";
- mf:recognizedDatatypes (xsd:float);
- mf:result <float-negative-zero.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:float-round-different a mf:NegativeEntailmentTest;
- rdfs:comment "Rounding to different even xsd:float.";
- mf:action <float-16777206-5.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "float-round-different";
- mf:recognizedDatatypes (xsd:float);
- mf:result <float-16777207-5.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:float-round-same a mf:PositiveEntailmentTest;
- rdfs:comment "Rounding to same even xsd:float.";
- mf:action <float-16777206-5.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "float-round-same";
- mf:recognizedDatatypes (xsd:float);
- mf:result <float-16777205-5.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:float-infinity a mf:PositiveEntailmentTest;
- rdfs:comment "Large xsd:float values are infinity.";
- mf:action <float-e400.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "float-infinity";
- mf:recognizedDatatypes (xsd:float);
- mf:result <float-e401.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-
-trs:double-zero a mf:NegativeEntailmentTest;
- rdfs:comment "Positive zero and negative zero are different in xsd:double.";
- mf:action <double-positive-zero.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "double-zero";
- mf:recognizedDatatypes (xsd:double);
- mf:result <double-negative-zero.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:double-round-different a mf:NegativeEntailmentTest;
- rdfs:comment "Rounding to different even xsd:double.";
- mf:action <double-9007199254740990-5.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "double-round-different";
- mf:recognizedDatatypes (xsd:double);
- mf:result <double-9007199254740991-5.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:double-round-same a mf:PositiveEntailmentTest;
- rdfs:comment "Rounding to same even xsd:double.";
- mf:action <double-9007199254740992-5.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "double-round-same";
- mf:recognizedDatatypes (xsd:double);
- mf:result <double-9007199254740991-5.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:double-infinity a mf:PositiveEntailmentTest;
- rdfs:comment "Large xsd:double values are infinity.";
- mf:action <double-e400.ttl>;
- mf:entailmentRegime "RDF";
- mf:name "double-infinity";
- mf:recognizedDatatypes (xsd:double);
- mf:result <double-e401.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:triple-terms-propositions a mf:PositiveEntailmentTest;
- rdfs:comment "Triple terms denote instances of rdfs:Proposition.";
- mf:action <test001a.ttl>;
- mf:entailmentRegime "RDFS";
- mf:name "triple-terms-propositions";
- mf:recognizedDatatypes ();
- mf:result <triple-terms-propositions.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
-
-trs:reifies-range a mf:PositiveEntailmentTest;
- rdfs:comment "Range of rdf:reifies is rdfs:Proposition.";
- mf:action <reifies-rangea.ttl>;
- mf:entailmentRegime "RDFS";
- mf:name "reifies-range";
- mf:recognizedDatatypes ();
- mf:result <reifies-ranger.ttl>;
- mf:unrecognizedDatatypes ();
- rdft:approval rdft:NotClassified .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/non-canonical-literal-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/non-canonical-literal-control.ttl
deleted file mode 100644
index 6dcada5be3..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/non-canonical-literal-control.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a :b "042"^^xsd:integer.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/non-canonical-literal.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/non-canonical-literal.ttl
deleted file mode 100644
index c3102193be..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/non-canonical-literal.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "042"^^xsd:integer )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/reifies-rangea.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/reifies-rangea.ttl
deleted file mode 100644
index a463f119f6..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/reifies-rangea.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX : <http://example.com/ns#>
-
-:a rdf:reifies :b .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/reifies-ranger.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/reifies-ranger.ttl
deleted file mode 100644
index 0a62fc82ac..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/reifies-ranger.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
-PREFIX : <http://example.com/ns#>
-
-:b rdf:type rdfs:Proposition .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/superman.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/superman.ttl
deleted file mode 100644
index cf2f30ecf5..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/superman.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix owl: <http://www.w3.org/2002/07/owl#>
-
-:clark :reports <<( :superman :can :fly )>>.
-:clark owl:sameAs :superman.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/superman_undesired_entailment.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/superman_undesired_entailment.ttl
deleted file mode 100644
index 73e85d5021..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/superman_undesired_entailment.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:clark :reports <<( :clark :can :fly )>>.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test001a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test001a.ttl
deleted file mode 100644
index 11833da543..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test001a.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :c )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test001r.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test001r.ttl
deleted file mode 100644
index 11833da543..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test001r.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :c )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002a.ttl
deleted file mode 100644
index 11833da543..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002a.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :c )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002or.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002or.ttl
deleted file mode 100644
index c1148eb7aa..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002or.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b _:x )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002pgr.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002pgr.ttl
deleted file mode 100644
index 06ab38e375..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002pgr.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a :b :c.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sbr.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sbr.ttl
deleted file mode 100644
index 3a80c73705..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sbr.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( _:x :b _:x )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sor.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sor.ttl
deleted file mode 100644
index 2dca2d06d9..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sor.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( _:x :b _:y )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sr.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sr.ttl
deleted file mode 100644
index b4aa692c87..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test002sr.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( _:x :b :c )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test003a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test003a.ttl
deleted file mode 100644
index 051cce4b3a..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test003a.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :a )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004a.ttl
deleted file mode 100644
index 43bcfeb1cb..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004a.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :c )>>.
-:a :label "A".
-:c :label "C".
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004fr.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004fr.ttl
deleted file mode 100644
index 31ba19bd27..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004fr.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( _:x :b :c )>>.
-_:x :label "C".
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004or.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004or.ttl
deleted file mode 100644
index 247a82ac7f..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004or.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b _:x )>>.
-_:x :label "C".
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004sr.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004sr.ttl
deleted file mode 100644
index 9fce76b707..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test004sr.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( _:x :b :c )>>.
-_:x :label "A".
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test005.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test005.ttl
deleted file mode 100644
index 31ac99b04b..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test005.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :d )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test006a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test006a.ttl
deleted file mode 100644
index 475626db33..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test006a.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b "42"^^xsd:integer )>>.
-:s2 :p2 "42"^^xsd:integer.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test006r.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test006r.ttl
deleted file mode 100644
index de36f45c77..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test006r.ttl
+++ /dev/null
@@ -1,5 +0,0 @@
-prefix : <http://example.com/ns#>
-prefix xsd: <http://www.w3.org/2001/XMLSchema#>
-
-:a1 :p1 <<( :a :b _:x )>>.
-:s2 :p2 _:x.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007a.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007a.ttl
deleted file mode 100644
index 9e916fd7b9..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007a.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a :b :c {| :p1 :o1 |}.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007a2.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007a2.ttl
deleted file mode 100644
index e58bbedfb8..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007a2.ttl
+++ /dev/null
@@ -1,4 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a :b :c.
-:a1 :p1 <<( :a :b :c )>>.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007r1.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007r1.ttl
deleted file mode 100644
index 06ab38e375..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007r1.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a :b :c.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007r2.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007r2.ttl
deleted file mode 100644
index 69a4b89b1e..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/test007r2.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b :c )>>.
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/triple-terms-propositions.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/triple-terms-propositions.ttl
deleted file mode 100644
index b08fa43eeb..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/triple-terms-propositions.ttl
+++ /dev/null
@@ -1,6 +0,0 @@
-PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
-PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
-PREFIX : <http://example.com/ns#>
-
-:a1 :p1 _:pp .
-_:pp rdf:type rdfs:Proposition .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-dir-language-string-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-dir-language-string-control.ttl
deleted file mode 100644
index 29e3cb7e2c..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-dir-language-string-control.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a :b "hello"@en-US--ltr.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-dir-language-string.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-dir-language-string.ttl
deleted file mode 100644
index f8cc00ad82..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-dir-language-string.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b "hello"@en-US--ltr )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-language-string-control.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-language-string-control.ttl
deleted file mode 100644
index c7aeb86397..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-language-string-control.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a :b "hello"@en-US.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-language-string.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-language-string.ttl
deleted file mode 100644
index ff82c9810f..0000000000
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-semantics/uppercase-language-string.ttl
+++ /dev/null
@@ -1,3 +0,0 @@
-prefix : <http://example.com/ns#>
-
-:a1 :p1 <<( :a :b "hello"@en-US )>>.
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-trig/eval/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-trig/eval/manifest.ttl
index 76057c301c..6c56f38b40 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-trig/eval/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-trig/eval/manifest.ttl
@@ -101,12 +101,6 @@ trs:trig12-rt-08 rdf:type rdft:TestTrigEval ;
mf:result <trig12-eval-rt-08.nq> ;
.
-trs:trig12-4 rdf:type rdft:TestTrigEval ;
- mf:name "TriG 1.2 - object reification with identifier" ;
- mf:action <trig12-eval-04.trig> ;
- mf:result <trig12-eval-04.nq> ;
- .
-
trs:trig12-bnode-1 rdf:type rdft:TestTrigEval ;
mf:name "TriG 1.2 - blank node label" ;
mf:action <trig12-eval-bnode-1.trig> ;
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/manifest.ttl
index 542b15ccc0..0eff8ff4ac 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/manifest.ttl
@@ -28,6 +28,10 @@ trs:manifest rdf:type mf:Manifest ;
trs:turtle12-2
trs:turtle12-3
trs:turtle12-4
+ trs:turtle12-5
+ trs:turtle12-6
+ trs:turtle12-7
+ trs:turtle12-8
trs:turtle12-inside-1
trs:turtle12-inside-2
@@ -109,6 +113,15 @@ trs:manifest rdf:type mf:Manifest ;
trs:turtle12-version-bad-04
trs:turtle12-version-bad-05
trs:turtle12-version-bad-06
+
+## Surrogate handling
+ trs:turtle12-surrogate-pair-bad-01
+ trs:turtle12-surrogate-pair-bad-02
+ trs:turtle12-surrogates-bad-01
+ trs:turtle12-surrogates-bad-02
+ trs:turtle12-surrogates-bad-03
+ trs:turtle12-surrogates-bad-04
+ trs:turtle12-surrogates-bad-05
) .
## Good Syntax
@@ -133,6 +146,26 @@ trs:turtle12-4 rdf:type rdft:TestTurtlePositiveSyntax ;
mf:action <turtle12-syntax-basic-04.ttl> ;
.
+trs:turtle12-5 rdf:type rdft:TestTurtlePositiveSyntax ;
+ mf:name "Turtle 1.2 - reified triple with literal object" ;
+ mf:action <turtle12-syntax-basic-05.ttl> ;
+ .
+
+trs:turtle12-6 rdf:type rdft:TestTurtlePositiveSyntax ;
+ mf:name "Turtle 1.2 - reified triple with keyword object" ;
+ mf:action <turtle12-syntax-basic-06.ttl> ;
+ .
+
+trs:turtle12-7 rdf:type rdft:TestTurtlePositiveSyntax ;
+ mf:name "Turtle 1.2 - triple term with literal object" ;
+ mf:action <turtle12-syntax-basic-07.ttl> ;
+ .
+
+trs:turtle12-8 rdf:type rdft:TestTurtlePositiveSyntax ;
+ mf:name "Turtle 1.2 - triple term with keyword object" ;
+ mf:action <turtle12-syntax-basic-08.ttl> ;
+ .
+
trs:turtle12-inside-1 rdf:type rdft:TestTurtlePositiveSyntax ;
mf:name "Turtle 1.2 - reified triple inside blankNodePropertyList" ;
mf:action <turtle12-syntax-inside-01.ttl> ;
@@ -344,22 +377,22 @@ trs:nt-ttl12-bad-05 rdf:type rdft:TestTurtleNegativeSyntax ;
mf:action <nt-ttl12-bad-syntax-05.ttl> ;
.
-trs:nt-ttl12-bad-06 rdf:type rdft:TestNTriplesNegativeSyntax ;
+trs:nt-ttl12-bad-06 rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "N-Triples 1.2 as Turtle 1.2 - Bad - reified triple as predicate" ;
mf:action <nt-ttl12-bad-syntax-06.ttl> ;
.
-trs:nt-ttl12-bad-07 rdf:type rdft:TestNTriplesNegativeSyntax ;
+trs:nt-ttl12-bad-07 rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "N-Triples 1.2 as Turtle 1.2 - Bad - reified triple, literal subject" ;
mf:action <nt-ttl12-bad-syntax-07.ttl> ;
.
-trs:nt-ttl12-bad-08 rdf:type rdft:TestNTriplesNegativeSyntax ;
+trs:nt-ttl12-bad-08 rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "N-Triples 1.2 as Turtle 1.2 - Bad - reified triple, literal predicate" ;
mf:action <nt-ttl12-bad-syntax-08.ttl> ;
.
-trs:nt-ttl12-bad-09 rdf:type rdft:TestNTriplesNegativeSyntax ;
+trs:nt-ttl12-bad-09 rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "N-Triples 1.2 as Turtle 1.2 - Bad - reified triple, blank node predicate" ;
mf:action <nt-ttl12-bad-syntax-09.ttl> ;
.
@@ -387,7 +420,7 @@ trs:turtle12-version-02 rdf:type rdft:TestTurtlePositiveSyntax ;
.
trs:turtle12-version-03 rdf:type rdft:TestTurtlePositiveSyntax ;
- mf:name "Turtle 1.2 - VERSION in data " ;
+ mf:name "Turtle 1.2 - VERSION in data" ;
mf:action <turtle12-version-03.ttl> ;
.
@@ -446,3 +479,40 @@ trs:turtle12-version-bad-06 rdf:type rdft:TestTurtleNegativeSyntax ;
mf:action <turtle12-version-bad-06.ttl> ;
.
+## Surrogates
+
+
+trs:turtle12-surrogate-pair-bad-01 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogate pair numeric escape sequence" ;
+ mf:action <turtle12-surrogate-pair-bad-01.ttl>
+ .
+
+trs:turtle12-surrogate-pair-bad-02 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogate pair via numeric escape sequence" ;
+ mf:action <turtle12-surrogate-pair-bad-02.ttl>
+ .
+
+trs:turtle12-surrogates-bad-01 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogates - wrong order" ;
+ mf:action <turtle12-surrogates-bad-01.ttl>;
+ .
+
+trs:turtle12-surrogates-bad-02 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogates - high-high" ;
+ mf:action <turtle12-surrogates-bad-02.ttl>;
+ .
+
+trs:turtle12-surrogates-bad-03 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogates - low-low" ;
+ mf:action <turtle12-surrogates-bad-03.ttl>;
+ .
+
+trs:turtle12-surrogates-bad-04 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogates - lone high surrogate" ;
+ mf:action <turtle12-surrogates-bad-04.ttl>;
+ .
+
+trs:turtle12-surrogates-bad-05 rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "Turtle 1.2 - Bad - Surrogates - lone low surrogate" ;
+ mf:action <turtle12-surrogates-bad-05.ttl>;
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogate-pair-bad-01.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogate-pair-bad-01.ttl
new file mode 100644
index 0000000000..f5608af9c5
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogate-pair-bad-01.ttl
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+:s :p "\uD83C\uDCA1" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogate-pair-bad-02.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogate-pair-bad-02.ttl
new file mode 100644
index 0000000000..d38d031c2a
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogate-pair-bad-02.ttl
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+:s :p 'Ace of spades : \uD83C\uDCA1' .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-01.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-01.ttl
new file mode 100644
index 0000000000..5965530a91
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-01.ttl
@@ -0,0 +1,3 @@
+PREFIX : <http://example/>
+# Bad low-high, not high-low
+:s :p "\uDCA1\uD83C" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-02.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-02.ttl
new file mode 100644
index 0000000000..3431abce8f
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-02.ttl
@@ -0,0 +1,3 @@
+PREFIX : <http://example/>
+## Surrogates : high-high
+:s :p "\uD83C\uD83D" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-03.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-03.ttl
new file mode 100644
index 0000000000..5c53668271
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-03.ttl
@@ -0,0 +1,3 @@
+PREFIX : <http://example/>
+## Surrogates : low-low
+:s :p "\uDCA1\uDCA2" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-04.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-04.ttl
new file mode 100644
index 0000000000..8a0c4000d0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-04.ttl
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+:s :p "Single high surrogate (\uD83C)" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-05.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-05.ttl
new file mode 100644
index 0000000000..d1103ed908
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-surrogates-bad-05.ttl
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+:s :p "Single low surrogate (\uDCA1)" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-05.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-05.ttl
new file mode 100644
index 0000000000..b23c537ac2
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-05.ttl
@@ -0,0 +1,4 @@
+PREFIX : <http://example/>
+
+:s1 :p "abc" .
+<<:s1 :p "abc">> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-06.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-06.ttl
new file mode 100644
index 0000000000..15d666efa6
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-06.ttl
@@ -0,0 +1,4 @@
+PREFIX : <http://example/>
+
+:s1 :p true .
+<<:s1 :p true>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-07.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-07.ttl
new file mode 100644
index 0000000000..6f8136176b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-07.ttl
@@ -0,0 +1,3 @@
+PREFIX : <http://example/>
+
+:s :p <<( :x :q "abc" )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-08.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-08.ttl
new file mode 100644
index 0000000000..016bea409d
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-syntax-basic-08.ttl
@@ -0,0 +1,4 @@
+PREFIX : <http://example/>
+
+:s1 :p true .
+:s2 :p <<(:s1 :p true)>> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-version-08.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-version-08.ttl
index d5f40ef76d..0b7b59841b 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-version-08.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-turtle/syntax/turtle12-version-08.ttl
@@ -12,8 +12,8 @@ version '1.2'
:s :p 2 .
-VERSION "abc"
-version "abc"
-@version "abc" .
+VERSION "1.2-basic"
+version "1.2-basic"
+@version "1.2-basic" .
:s :p 3 .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/manifest.ttl b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/manifest.ttl
index 0e9c80f4a2..6e9f70f266 100644
--- a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/manifest.ttl
@@ -58,6 +58,8 @@ trs:manifest rdf:type mf:Manifest ;
trs:rdf12-xml-an-14
trs:rdf12-xml-an-15
trs:rdf12-xml-an-16
+
+ trs:rdf12-xml-an-reif-01
) .
# Initial Text Direction
@@ -242,3 +244,9 @@ trs:rdf12-xml-an-16 rdf:type rdft:TestXMLEval;
mf:comment """rdf:annotationNodeID and parseType="Collection".""";
mf:action <rdf12-xml-an-16.rdf>;
mf:result <rdf12-xml-an-16.nt> .
+
+trs:rdf12-xml-an-reif-01 rdf:type rdft:TestXMLEval;
+ mf:name "rdf12-xml-an-reif-01.rdf";
+ mf:comment "RDF 1.1 reification and RDF 1.2 annotation";
+ mf:action <rdf12-xml-an-reif-01.rdf>;
+ mf:result <rdf12-xml-an-reif-01.nt> .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.nt b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.nt
new file mode 100644
index 0000000000..8e59238cb2
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.nt
@@ -0,0 +1,6 @@
+<http://example.org/> <http://example.org/stuff/1.0/prop> "blah" .
+<http://example.org/triple1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> <<( <http://example.org/> <http://example.org/stuff/1.0/prop> "blah" )>> .
+<http://example.org/triples/#reif> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
+<http://example.org/triples/#reif> <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/> .
+<http://example.org/triples/#reif> <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/stuff/1.0/prop> .
+<http://example.org/triples/#reif> <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> "blah" .
diff --git a/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.rdf b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.rdf
new file mode 100644
index 0000000000..8e9b1a4ac0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/rdf/rdf12/rdf-xml/eval/rdf12-xml-an-reif-01.rdf
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:ex="http://example.org/stuff/1.0/"
+ xml:base="http://example.org/triples/">
+ <rdf:Description rdf:about="http://example.org/">
+ <ex:prop rdf:ID="reif" rdf:annotation="http://example.org/triple1">blah</ex:prop>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/.gitattributes b/jena-arq/testing/rdf-tests-cg/sparql/.gitattributes
new file mode 100644
index 0000000000..87da5608d6
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/.gitattributes
@@ -0,0 +1,7 @@
+# Files needing the exact end-of-line as LF given in the file.
+
+sparql10/regex/regex-dot-all.srx text eol=lf
+sparql10/regex/regex-start-end-multiline.srx text eol=lf
+sparql10/regex/regex-char-class-expression.srx text eol=lf
+sparql10/regex/regex-negative-char-class-expression.srx text eol=lf
+sparql10/regex/regex-ignore-whitespaces-class-expression.srx text eol=lf
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/manifest-frame.jsonld b/jena-arq/testing/rdf-tests-cg/sparql/manifest-frame.jsonld
new file mode 100644
index 0000000000..046b3ce527
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/manifest-frame.jsonld
@@ -0,0 +1,40 @@
+{
+ "@context": {
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
+ "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
+ "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",
+ "mq": "http://www.w3.org/2001/sw/DataAccess/tests/test-query#",
+ "rdft": "http://www.w3.org/ns/rdftest#",
+ "dawgt": "http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#",
+ "ut": "http://www.w3.org/2009/sparql/tests/test-update#",
+
+ "action": {"@id": "mf:action", "@type": "@id"},
+ "comment": "rdfs:comment",
+ "entries": {"@id": "mf:entries", "@container": "@list", "@type": "@id"},
+ "include": {"@id": "mf:include", "@container": "@list", "@type": "@id"},
+ "label": "rdfs:label",
+ "name": "mf:name",
+ "result": {"@id": "mf:result", "@type": "@id"},
+
+ "entailmentRegime": {"@id": "mf:entailmentRegime"},
+ "recognizedDatatypes": {"@id": "mf:recognizedDatatypes", "@type": "@id", "@container": "@list"},
+ "unrecognizedDatatypes": {"@id": "mf:unrecognizedDatatypes", "@type": "@id", "@container": "@list"},
+
+ "approval": {"@id": "dawgt:approval", "@type": "@id"},
+ "approvedBy": {"@id": "dawgt:approvedBy", "@type": "@id"},
+ "data": {"@id": "mq:data", "@type": "@id"},
+ "feature": {"@id": "mf:feature", "@type": "@vocab"},
+ "graphData": {"@id": "mq:graphData", "@type": "@id", "@container": "@set"},
+ "notable": {"@id": "mf:notable", "@type": "@vocab"},
+ "query": {"@id": "mq:query", "@type": "@id"},
+ "queryForm": {"@id": "mq:queryForm", "@type": "@vocab"},
+ "requires": {"@id": "mf:requires", "@type": "@vocab", "@container": "@set"},
+ "ut:data": {"@id": "ut:data", "@type": "@id"},
+ "ut:graphData": {"@id": "ut:graphData", "@container": "@set"},
+ "ut:graph": {"@id": "ut:graph", "@type": "@id"},
+ "ut:request": {"@id": "ut:request", "@type": "@id"}
+ },
+ "@type": "mf:Manifest",
+ "entries": {"@embed": true}
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/case-insensitive-booleans.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/case-insensitive-booleans.rq
new file mode 100644
index 0000000000..3d87b95787
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/case-insensitive-booleans.rq
@@ -0,0 +1 @@
+SELECT (TRUE as ?t) (False as ?f) {}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/case-insensitive-booleans.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/case-insensitive-booleans.srx
new file mode 100644
index 0000000000..818ba68075
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/case-insensitive-booleans.srx
@@ -0,0 +1,16 @@
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="t" />
+ <variable name="f" />
+ </head>
+ <results>
+ <result>
+ <binding name="t">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#boolean">true</literal>
+ </binding>
+ <binding name="f">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#boolean">false</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/manifest.ttl
index 5c40f2ce14..3a13970748 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-builtin/manifest.ttl
@@ -19,6 +19,7 @@
:lang-case-insensitive-eq
:lang-case-insensitive-ne
:sameTerm-simple :sameTerm-eq :sameTerm-not-eq
+ :case-insensitive-booleans
).
:dawg-isLiteral-1 a mf:QueryEvaluationTest ;
@@ -270,3 +271,12 @@
dawgt:approval dawgt:Approved ;
dawgt:approvedBy <http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html> ;
mf:result <result-sameTerm-not-eq.ttl> .
+
+:case-insensitive-booleans rdf:type mf:QueryEvaluationTest ;
+ mf:name "case-insensitive booleans";
+ rdfs:comment "Boolean keywords are case insensitive, and produce valid boolean literals" ;
+ dawgt:approval dawgt:Proposed ;
+ mf:action
+ [ qt:query <case-insensitive-booleans.rq> ] ;
+ mf:result <case-insensitive-booleans.srx>
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/data-numbers.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/data-numbers.ttl
new file mode 100644
index 0000000000..827c5f83ce
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/data-numbers.ttl
@@ -0,0 +1,7 @@
+@prefix : <http://example.org/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+:integer :p "3"^^xsd:integer .
+:decimal :p "3"^^xsd:decimal .
+:float :p "3"^^xsd:float .
+:fdouble :p "3"^^xsd:double .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/manifest.ttl
index 6a13f1f65a..85878c6866 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/manifest.ttl
@@ -15,6 +15,13 @@
:dateTime-ge-2
:dateTime-lt-2
:dateTime-gt-2
+ :add-numbers-cast
+ :subtract-numbers-cast
+ :multiply-numbers-cast
+ :divide-numbers-cast
+ :unplus-2
+ :unminus-2
+ :add-literals
).
@@ -126,3 +133,58 @@
qt:data <data-dateTime.ttl> ] ;
mf:result <result-dateTime-gt-2.srx>
.
+
+:add-numbers-cast a mf:QueryEvaluationTest ;
+ mf:name "+ operator on number mixed datatypes" ;
+ mf:action
+ [ qt:query <query-add-numbers-cast.rq> ;
+ qt:data <data-numbers.ttl> ] ;
+ mf:result <result-add-numbers-cast.srx>
+ .
+
+:subtract-numbers-cast a mf:QueryEvaluationTest ;
+ mf:name "- operator on number mixed datatypes" ;
+ mf:action
+ [ qt:query <query-subtract-numbers-cast.rq> ;
+ qt:data <data-numbers.ttl> ] ;
+ mf:result <result-subtract-numbers-cast.srx>
+ .
+
+:multiply-numbers-cast a mf:QueryEvaluationTest ;
+ mf:name "* operator on number mixed datatypes" ;
+ mf:action
+ [ qt:query <query-multiply-numbers-cast.rq> ;
+ qt:data <data-numbers.ttl> ] ;
+ mf:result <result-multiply-numbers-cast.srx>
+ .
+
+:divide-numbers-cast a mf:QueryEvaluationTest ;
+ mf:name "/ operator on number mixed datatypes" ;
+ mf:action
+ [ qt:query <query-divide-numbers-cast.rq> ;
+ qt:data <data-numbers.ttl> ] ;
+ mf:result <result-divide-numbers-cast.srx>
+ .
+
+:unplus-2 a mf:QueryEvaluationTest ;
+ mf:name "Unary Plus with various datatype" ;
+ mf:action
+ [ qt:query <query-unplus-2.rq> ;
+ qt:data <data-numbers.ttl> ] ;
+ mf:result <result-unplus-2.srx>
+ .
+
+:unminus-2 a mf:QueryEvaluationTest ;
+ mf:name "Unary Minus with various datatype" ;
+ mf:action
+ [ qt:query <query-unminus-2.rq> ;
+ qt:data <data-numbers.ttl> ] ;
+ mf:result <result-unminus-2.srx>
+ .
+
+:add-literals a mf:QueryEvaluationTest ;
+ mf:name "Add literal numbers with + and - prefixes" ;
+ mf:action
+ [ qt:query <query-add-literals.rq> ] ;
+ mf:result <result-add-literals.srx>
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-add-literals.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-add-literals.rq
new file mode 100644
index 0000000000..f08d1e2eae
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-add-literals.rq
@@ -0,0 +1,3 @@
+ASK {
+ FILTER((+1 + -1 + +2.0 + -2.0 + +3e0 + -3e0) = 0)
+}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-add-numbers-cast.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-add-numbers-cast.rq
new file mode 100644
index 0000000000..dd13a998bb
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-add-numbers-cast.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example.org/>
+SELECT ?left ?right (?left + ?right AS ?result) WHERE {
+ _:l :p ?left .
+ _:r :p ?right .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-divide-numbers-cast.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-divide-numbers-cast.rq
new file mode 100644
index 0000000000..753fe17e41
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-divide-numbers-cast.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example.org/>
+SELECT ?left ?right (?left / ?right AS ?result) WHERE {
+ _:l :p ?left .
+ _:r :p ?right .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-multiply-numbers-cast.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-multiply-numbers-cast.rq
new file mode 100644
index 0000000000..25f65bd065
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-multiply-numbers-cast.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example.org/>
+SELECT ?left ?right (?left * ?right AS ?result) WHERE {
+ _:l :p ?left .
+ _:r :p ?right .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-subtract-numbers-cast.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-subtract-numbers-cast.rq
new file mode 100644
index 0000000000..f44872344c
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-subtract-numbers-cast.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example.org/>
+SELECT ?left ?right (?left - ?right AS ?result) WHERE {
+ _:l :p ?left .
+ _:r :p ?right .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-unminus-2.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-unminus-2.rq
new file mode 100644
index 0000000000..667c06f556
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-unminus-2.rq
@@ -0,0 +1,4 @@
+PREFIX : <http://example.org/>
+SELECT ?v (-?v as ?result) WHERE {
+ _:l :p ?v .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-unplus-2.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-unplus-2.rq
new file mode 100644
index 0000000000..d9071613b7
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/query-unplus-2.rq
@@ -0,0 +1,4 @@
+PREFIX : <http://example.org/>
+SELECT ?v (+?v as ?result) WHERE {
+ _:l :p ?v .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-add-literals.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-add-literals.srx
new file mode 100644
index 0000000000..841ce1660b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-add-literals.srx
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#">
+ <head></head>
+ <boolean>true</boolean>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-add-numbers-cast.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-add-numbers-cast.srx
new file mode 100644
index 0000000000..a5dd77f886
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-add-numbers-cast.srx
@@ -0,0 +1,187 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="left"/>
+ <variable name="right"/>
+ <variable name="result"/>
+ </head>
+ <results>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">6</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">6</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-divide-numbers-cast.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-divide-numbers-cast.srx
new file mode 100644
index 0000000000..8e6707e948
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-divide-numbers-cast.srx
@@ -0,0 +1,187 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="left"/>
+ <variable name="right"/>
+ <variable name="result"/>
+ </head>
+ <results>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">1</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-multiply-numbers-cast.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-multiply-numbers-cast.srx
new file mode 100644
index 0000000000..6e431ad98d
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-multiply-numbers-cast.srx
@@ -0,0 +1,187 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="left"/>
+ <variable name="right"/>
+ <variable name="result"/>
+ </head>
+ <results>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">9</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">9</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-subtract-numbers-cast.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-subtract-numbers-cast.srx
new file mode 100644
index 0000000000..939830be74
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-subtract-numbers-cast.srx
@@ -0,0 +1,187 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="left"/>
+ <variable name="right"/>
+ <variable name="result"/>
+ </head>
+ <results>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">0</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="left">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="right">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">0</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-unminus-2.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-unminus-2.srx
new file mode 100644
index 0000000000..68931760af
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-unminus-2.srx
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="v"/>
+ <variable name="result"/>
+ </head>
+ <results>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">-3</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">-3</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">-3</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">-3</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-unplus-2.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-unplus-2.srx
new file mode 100644
index 0000000000..978509c647
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/expr-ops/result-unplus-2.srx
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="v"/>
+ <variable name="result"/>
+ </head>
+ <results>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#double">3</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#float">3</literal>
+ </binding>
+ </result>
+ <result>
+ <binding name="v">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ <binding name="result">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/data-optional.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/data-optional.ttl
new file mode 100644
index 0000000000..0f0cbcc73b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/data-optional.ttl
@@ -0,0 +1,4 @@
+@prefix : <http://example/> .
+
+:s :p :o .
+:s2 :p <> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/data-variable-join.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/data-variable-join.ttl
new file mode 100644
index 0000000000..0e5e910748
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/data-variable-join.ttl
@@ -0,0 +1,3 @@
+@prefix : <http://example/> .
+
+<> :p :o .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-optional.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-optional.rq
new file mode 100644
index 0000000000..a1a7f26e84
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-optional.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example/>
+
+SELECT ?g ?s {
+ GRAPH ?g { ?s ?p ?o OPTIONAL { ?s ?p ?g } }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-optional.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-optional.ttl
new file mode 100644
index 0000000000..0f44308bda
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-optional.ttl
@@ -0,0 +1,13 @@
+@prefix : <http://example/> .
+@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[] rdf:type rs:ResultSet ;
+ rs:resultVariable "g" , "s" ;
+ rs:solution [ rs:binding [ rs:value <data-optional.ttl> ;
+ rs:variable "g"
+ ] ;
+ rs:binding [ rs:value :s2 ;
+ rs:variable "s"
+ ]
+ ] .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-join.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-join.rq
new file mode 100644
index 0000000000..303b689a55
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-join.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example/>
+
+SELECT ?g {
+ GRAPH ?g { ?g :p ?o }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-join.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-join.ttl
new file mode 100644
index 0000000000..9a5488c952
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-join.ttl
@@ -0,0 +1,9 @@
+@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[] rdf:type rs:ResultSet ;
+ rs:resultVariable "g" ;
+ rs:solution [ rs:binding [ rs:value <data-variable-join.ttl> ;
+ rs:variable "g"
+ ]
+ ] .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-scope.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-scope.rq
new file mode 100644
index 0000000000..6613e115f9
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-scope.rq
@@ -0,0 +1,3 @@
+SELECT * {
+ GRAPH ?g { FILTER (BOUND(?g)) }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-scope.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-scope.ttl
new file mode 100644
index 0000000000..378676d96e
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/graph-variable-scope.ttl
@@ -0,0 +1,5 @@
+@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+[] rdf:type rs:ResultSet ;
+ rs:resultVariable "g" .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/manifest.ttl
index f99d656aa4..15f948b2b9 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/graph/manifest.ttl
@@ -24,6 +24,9 @@
:graph-empty
:graph-exist
:graph-not-exist
+ :graph-variable-scope
+ :graph-variable-join
+ :graph-optional
).
:dawg-graph-01 rdf:type mf:QueryEvaluationTest ;
@@ -202,3 +205,36 @@
] ;
mf:result <graph-empty-not-exist.ttl> ;
.
+
+:graph-variable-scope rdf:type mf:QueryEvaluationTest ;
+ mf:name "graph-variable-scope" ;
+ rdfs:comment "The variable bound by the GRAPH operator is not in-scope inside it" ;
+ mf:action
+ [ qt:query <graph-variable-scope.rq> ;
+ qt:data <data-g1.ttl> ;
+ qt:graphData <data-g1.ttl> ;
+ qt:graphData <data-g2.ttl> ;
+ ] ;
+ mf:result <graph-variable-scope.ttl> ;
+ .
+
+:graph-variable-join rdf:type mf:QueryEvaluationTest ;
+ mf:name "graph-variable-join" ;
+ rdfs:comment "The variable bound by the GRAPH operator is also used in the graph pattern" ;
+ mf:action
+ [ qt:query <graph-variable-join.rq> ;
+ qt:graphData <data-variable-join.ttl> ;
+ qt:graphData <data-g1.ttl>
+ ] ;
+ mf:result <graph-variable-join.ttl> ;
+ .
+:graph-optional rdf:type mf:QueryEvaluationTest ;
+ mf:name "graph-optional" ;
+ rdfs:comment "The variable bound by the GRAPH operator is not used when evaluating a nested OPTIONAL" ;
+ mf:action
+ [ qt:query <graph-optional.rq> ;
+ qt:graphData <data-optional.ttl> ;
+ qt:graphData <data-g1.ttl>
+ ] ;
+ mf:result <graph-optional.ttl> ;
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/data-sort-not-projected.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/data-sort-not-projected.ttl
new file mode 100644
index 0000000000..f3bbdb4f63
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/data-sort-not-projected.ttl
@@ -0,0 +1,5 @@
+@prefix : <http://example/> .
+
+:s1 :p 1 .
+:s2 :p 2 .
+:s3 :p 3 .
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/manifest.ttl
index 248a8cef23..0466c011c5 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/manifest.ttl
@@ -15,6 +15,7 @@
:dawg-sort-numbers
:dawg-sort-builtin
:dawg-sort-function
+ :sort-not-projected
).
:dawg-sort-1 a mf:QueryEvaluationTest;
@@ -147,3 +148,10 @@
dawgt:approval dawgt:Approved ;
mf:result <result-sort-function.ttl> .
+:sort-not-projected a mf:QueryEvaluationTest;
+ mf:name "sort on a non-projected variable" ;
+ rdfs:comment "ORDER BY is applied before the projection so can access non-projected variables" ;
+ mf:action
+ [ qt:query <sort-not-projected.rq> ;
+ qt:data <data-sort-not-projected.ttl> ] ;
+ mf:result <result-sort-not-projected.ttl> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/result-sort-not-projected.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/result-sort-not-projected.ttl
new file mode 100644
index 0000000000..fdfc781fa9
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/result-sort-not-projected.ttl
@@ -0,0 +1,22 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+@prefix : <http://example/> .
+
+[] rdf:type rs:ResultSet ;
+ rs:resultVariable
+ "s" ;
+ rs:solution [ rs:binding [ rs:value :s1 ;
+ rs:variable "s"
+ ] ;
+ rs:index 1
+ ] ;
+ rs:solution [ rs:binding [ rs:value :s2 ;
+ rs:variable "s"
+ ] ;
+ rs:index 2
+ ] ;
+ rs:solution [ rs:binding [ rs:value :s3 ;
+ rs:variable "s"
+ ] ;
+ rs:index 3
+ ] .
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/sort-not-projected.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/sort-not-projected.rq
new file mode 100644
index 0000000000..e449e62454
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql10/sort/sort-not-projected.rq
@@ -0,0 +1,3 @@
+PREFIX : <http://example/>
+
+SELECT ?s WHERE { ?s :p ?o } ORDER BY ?o
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/index.html b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/index.html
deleted file mode 100644
index e3b2fddc22..0000000000
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/index.html
+++ /dev/null
@@ -1,1232 +0,0 @@
-<!DOCTYPE html>
-<html lang='en' prefix='dawgt: http://www.w3.org/2001/sw/DataAccess/tests/test-dawg# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest# mfx: http://jena.hpl.hp.com/2005/05/test-manifest-extra# qt: http://www.w3.org/2001/sw/DataAccess/tests/test-query# sd: http://www.w3.org/ns/sparql-service-description# ut: http://www.w3.org/2009/sparql/tests/test-update#'>
- <head>
- <meta content='text/html;charset=utf-8' http-equiv='Content-Type'>
- <meta content='width=device-width, initial-scale=1.0' name='viewport'>
- <link href='https://www.w3.org/StyleSheets/TR/base' rel='stylesheet' type='text/css'>
- <style>
- body {background-image: none;}
- dl.editor>dd {
- margin: 0 0 0 40px;
- }
- dl.test-detail {
- padding: 0.5em;
- }
- dl.test-detail>dt {
- float: left;
- clear: left;
- text-align: right;
- font-weight: bold;
- color: green;
- }
- dl.test-detail>dt:after {content: ": "}
- dl.test-detail>dd {
- margin: 0 0 0 110px;
- padding: 0 0 0.5em 0;
- }
- dl.test-description>dt {margin-top: 2em;}
- dd {margin-left: 0;}
- dd code {display: inline;}
- footer {text-align: center;}
- </style>
- <title>
- Aggregates
- </title>
- <style>
- em.rfc2119 {
- text-transform: lowercase;
- font-variant: small-caps;
- font-style: normal;
- color: #900;
- }
- a.testlink {
- color: inherit;
- text-decoration: none;
- }
- a.testlink:hover {
- text-decoration: underline;
- }
- .warning {color: orange;}
- .error {color: red;}
- </style>
- </head>
- <body resource='./' typeof='mf:Manifest'>
- <p>
- <a href='http://www.w3.org/'>
- <img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
- </a>
- </p>
- <h1 property='rdfs:label'>Aggregates</h1>
- <p><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2010 <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights [...]
- <hr title='Separator for header'>
- <div>
- <h2 id='abstract'>Abstract</h2>
- <p property='rdfs:comment'>
- </p>
- <p>This page describes W3C SPARQL Working Group's SPARQL 1.1 test suite.</p>
- <h3 id='contributing-tests'>Contributing Tests</h3>
- <p>The test manifests and entries are built automatically from <a href="manifest.ttl">manifest.ttl</a> using a Rake task. Tests may be contributed via pull request to <a href="https://github.com/w3c/rdf-tests">https://github.com/w3c/rdf-tests</a> with suitable changes to the <a href="manifest.ttl">manifest.ttl</a> and referenced files.</p>
- <h3 id='distribution'>Distribution</h3>
- <p>Distributed under both the <a href="http://www.w3.org/Consortium/Legal/2008/04-testsuite-license">W3C Test Suite License</a> and the <a href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license">W3C 3-clause BSD License</a>. To contribute to a W3C Test Suite, see the <a href="http://www.w3.org/2004/10/27-testcases">policies and contribution forms</a>.</p>
- <h3 id='disclaimer'>Disclaimer</h3>
- <p>UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PA [...]
- COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.</p>
- </div>
- <div>
- <h2>
- Test Descriptions
- </h2>
- <dl class='test-description'>
- <dt id='agg01'>
- <a class='testlink' href='#agg01'>
- agg01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg01' property='mf:name'>COUNT 1</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Simple count</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg01.srx' property='mf:result'>agg01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg02'>
- <a class='testlink' href='#agg02'>
- agg02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg02' property='mf:name'>COUNT 2</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Count with grouping</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg02.srx' property='mf:result'>agg02.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg03'>
- <a class='testlink' href='#agg03'>
- agg03:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg03' property='mf:name'>COUNT 3</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg03' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Count with grouping and HAVING clause</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg03.srx' property='mf:result'>agg03.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg04'>
- <a class='testlink' href='#agg04'>
- agg04:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg04' property='mf:name'>COUNT 4</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg04' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Count(*)</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg04.srx' property='mf:result'>agg04.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg05'>
- <a class='testlink' href='#agg05'>
- agg05:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg05' property='mf:name'>COUNT 5</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg05' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Count(*) with grouping</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg05.srx' property='mf:result'>agg05.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg06'>
- <a class='testlink' href='#agg06'>
- agg06:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg06' property='mf:name'>COUNT 6</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg06' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Count(<em>) with HAVING Count(</em>)</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg06.srx' property='mf:result'>agg06.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg07'>
- <a class='testlink' href='#agg07'>
- agg07:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg07' property='mf:name'>COUNT 7</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg07' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Count(<em>) with grouping and HAVING Count(</em>)</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg07.srx' property='mf:result'>agg07.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg08'>
- <a class='testlink' href='#agg08'>
- agg08:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg08' property='mf:name'>COUNT 8</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg08' typeof='mf:NegativeSyntaxTest11'>
- <div property='rdfs:comment'>
- <p>grouping by expression, done wrong</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:NegativeSyntaxTest11</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <a href='agg08.rq' property='mf:action'>agg08.rq</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg08b'>
- <a class='testlink' href='#agg08b'>
- agg08b:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg08b' property='mf:name'>COUNT 8b</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg08b' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>grouping by expression, done correctly</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg08b.srx' property='mf:result'>agg08b.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg09'>
- <a class='testlink' href='#agg09'>
- agg09:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg09' property='mf:name'>COUNT 9</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg09' typeof='mf:NegativeSyntaxTest11'>
- <div property='rdfs:comment'>
- <p>Projection of an ungrouped variable (not appearing in the GROUP BY expression)</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:NegativeSyntaxTest11</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <a href='agg09.rq' property='mf:action'>agg09.rq</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg10'>
- <a class='testlink' href='#agg10'>
- agg10:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg10' property='mf:name'>COUNT 10</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg10' typeof='mf:NegativeSyntaxTest11'>
- <div property='rdfs:comment'>
- <p>Projection of an ungrouped variable (no GROUP BY expression at all)</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:NegativeSyntaxTest11</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <a href='agg10.rq' property='mf:action'>agg10.rq</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg11'>
- <a class='testlink' href='#agg11'>
- agg11:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg11' property='mf:name'>COUNT 11</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg11' typeof='mf:NegativeSyntaxTest11'>
- <div property='rdfs:comment'>
- <p>Use of an ungrouped variable in a project expression</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:NegativeSyntaxTest11</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <a href='agg11.rq' property='mf:action'>agg11.rq</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg12'>
- <a class='testlink' href='#agg12'>
- agg12:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg12' property='mf:name'>COUNT 12</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg12' typeof='mf:NegativeSyntaxTest11'>
- <div property='rdfs:comment'>
- <p>Use of an ungrouped variable in a project expression, where the variable appears in a GROUP BY expression</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:NegativeSyntaxTest11</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <a href='agg12.rq' property='mf:action'>agg12.rq</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-groupconcat-01'>
- <a class='testlink' href='#agg-groupconcat-01'>
- agg-groupconcat-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-01' property='mf:name'>GROUP_CONCAT 1</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-groupconcat-1.srx' property='mf:result'>agg-groupconcat-1.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-groupconcat-02'>
- <a class='testlink' href='#agg-groupconcat-02'>
- agg-groupconcat-02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-02' property='mf:name'>GROUP_CONCAT 2</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-groupconcat-2.srx' property='mf:result'>agg-groupconcat-2.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-groupconcat-03'>
- <a class='testlink' href='#agg-groupconcat-03'>
- agg-groupconcat-03:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-03' property='mf:name'>GROUP_CONCAT with SEPARATOR</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-03' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-groupconcat-3.srx' property='mf:result'>agg-groupconcat-3.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-groupconcat-04'>
- <a class='testlink' href='#agg-groupconcat-04'>
- agg-groupconcat-04:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-04' property='mf:name'>GROUP_CONCAT with same language tag</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-04' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-groupconcat-4.srx' property='mf:result'>agg-groupconcat-4.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-groupconcat-05'>
- <a class='testlink' href='#agg-groupconcat-05'>
- agg-groupconcat-05:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-05' property='mf:name'>GROUP_CONCAT with different language tags</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-05' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-groupconcat-5.srx' property='mf:result'>agg-groupconcat-5.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-sum-01'>
- <a class='testlink' href='#agg-sum-01'>
- agg-sum-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sum-01' property='mf:name'>SUM</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sum-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-sum-01.srx' property='mf:result'>agg-sum-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-sum-02'>
- <a class='testlink' href='#agg-sum-02'>
- agg-sum-02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sum-02' property='mf:name'>SUM with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sum-02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-sum-02.srx' property='mf:result'>agg-sum-02.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-avg-01'>
- <a class='testlink' href='#agg-avg-01'>
- agg-avg-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-01' property='mf:name'>AVG</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-avg-01.srx' property='mf:result'>agg-avg-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-avg-02'>
- <a class='testlink' href='#agg-avg-02'>
- agg-avg-02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-02' property='mf:name'>AVG with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-avg-02.srx' property='mf:result'>agg-avg-02.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-avg-03'>
- <a class='testlink' href='#agg-avg-03'>
- agg-avg-03:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-03' property='mf:name'>AVG with empty group (value defined to be 0)</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-03' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-avg-03.srx' property='mf:result'>agg-avg-03.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-min-01'>
- <a class='testlink' href='#agg-min-01'>
- agg-min-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-min-01' property='mf:name'>MIN</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-min-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-min-01.srx' property='mf:result'>agg-min-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-min-02'>
- <a class='testlink' href='#agg-min-02'>
- agg-min-02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-min-02' property='mf:name'>MIN with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-min-02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-min-02.srx' property='mf:result'>agg-min-02.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-max-01'>
- <a class='testlink' href='#agg-max-01'>
- agg-max-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-max-01' property='mf:name'>MAX</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-max-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-max-01.srx' property='mf:result'>agg-max-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-max-02'>
- <a class='testlink' href='#agg-max-02'>
- agg-max-02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-max-02' property='mf:name'>MAX with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-max-02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-max-02.srx' property='mf:result'>agg-max-02.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-sample-01'>
- <a class='testlink' href='#agg-sample-01'>
- agg-sample-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sample-01' property='mf:name'>SAMPLE</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sample-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-sample-01.srx' property='mf:result'>agg-sample-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-err-01'>
- <a class='testlink' href='#agg-err-01'>
- agg-err-01:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-err-01' property='mf:name'>Error in AVG</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-err-01' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Error in AVG return no binding</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-err-01.srx' property='mf:result'>agg-err-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-err-02'>
- <a class='testlink' href='#agg-err-02'>
- agg-err-02:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-err-02' property='mf:name'>Protect from error in AVG</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-err-02' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>Protect from error in AVG using IF and COALESCE</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-err-02.srx' property='mf:result'>agg-err-02.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-empty-group-max-1'>
- <a class='testlink' href='#agg-empty-group-max-1'>
- agg-empty-group-max-1:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-max-1' property='mf:name'>agg on empty set, explicit grouping</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-max-1' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>aggregating empty results returns no rows, as there are no grouped results.</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-empty-group-max-1.srx' property='mf:result'>agg-empty-group-max-1.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-empty-group-max-2'>
- <a class='testlink' href='#agg-empty-group-max-2'>
- agg-empty-group-max-2:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-max-2' property='mf:name'>agg on empty set, no grouping</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-max-2' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>aggregating empty results with no group-by always returns a single result.</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-empty-group-max-2.srx' property='mf:result'>agg-empty-group-max-2.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-empty-group-count-1'>
- <a class='testlink' href='#agg-empty-group-count-1'>
- agg-empty-group-count-1:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-count-1' property='mf:name'>COUNT: no match, with group</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-count-1' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>counting no results with grouping returns no results.</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-empty-group-count-1.srj' property='mf:result'>agg-empty-group-count-1.srj</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-empty-group-count-2'>
- <a class='testlink' href='#agg-empty-group-count-2'>
- agg-empty-group-count-2:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-count-2' property='mf:name'>COUNT: no match, no group</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-count-2' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>counting no results without grouping always returns a single result.</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-empty-group-count-2.srj' property='mf:result'>agg-empty-group-count-2.srj</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-empty-group-count-graph'>
- <a class='testlink' href='#agg-empty-group-count-graph'>
- agg-empty-group-count-graph:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-count-graph' property='mf:name'>COUNT: no GROUP BY inside of GRAPH</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group-count-graph' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>counting no results without grouping always returns a single result per named graph.</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-empty-group-count-graph.ttl' property='mf:result'>agg-empty-group-count-graph.ttl</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-multiple-having'>
- <a class='testlink' href='#agg-multiple-having'>
- agg-multiple-having:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-multiple-having' property='mf:name'>HAVING: multiple conditions</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-multiple-having' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- <p>HAVING can contain multiple conditions.</p>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-multiple-having.srx' property='mf:result'>agg-multiple-having.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-group-fn'>
- <a class='testlink' href='#agg-group-fn'>
- agg-group-fn:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-group-fn' property='mf:name'>GROUP BY with a function</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-group-fn' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-group-fn.srx' property='mf:result'>agg-group-fn.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-group-builtin'>
- <a class='testlink' href='#agg-group-builtin'>
- agg-group-builtin:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-group-builtin' property='mf:name'>GROUP BY with a built-in function</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-group-builtin' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-group-builtin.srx' property='mf:result'>agg-group-builtin.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-avg-distinct'>
- <a class='testlink' href='#agg-avg-distinct'>
- agg-avg-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-distinct' property='mf:name'>AVG DISTINCT with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-avg-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-avg-distinct.srx' property='mf:result'>agg-avg-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-count-distinct'>
- <a class='testlink' href='#agg-count-distinct'>
- agg-count-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-count-distinct' property='mf:name'>COUNT DISTINCT with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-count-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-count-distinct.srx' property='mf:result'>agg-count-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-count-rows-distinct'>
- <a class='testlink' href='#agg-count-rows-distinct'>
- agg-count-rows-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-count-rows-distinct' property='mf:name'>COUNT(DISTINCT *) with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-count-rows-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-count-rows-distinct.srx' property='mf:result'>agg-count-rows-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-groupconcat-distinct'>
- <a class='testlink' href='#agg-groupconcat-distinct'>
- agg-groupconcat-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-distinct' property='mf:name'>GROUP_CONCAT DISTINCT</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-groupconcat-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-groupconcat-distinct.srx' property='mf:result'>agg-groupconcat-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-max-distinct'>
- <a class='testlink' href='#agg-max-distinct'>
- agg-max-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-max-distinct' property='mf:name'>MAX DISTINCT with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-max-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-max-distinct.srx' property='mf:result'>agg-max-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-min-distinct'>
- <a class='testlink' href='#agg-min-distinct'>
- agg-min-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-min-distinct' property='mf:name'>MIN DISTINCT with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-min-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-min-distinct.srx' property='mf:result'>agg-min-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-sample-distinct'>
- <a class='testlink' href='#agg-sample-distinct'>
- agg-sample-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sample-distinct' property='mf:name'>SAMPLE DISTINCT</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sample-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-sample-01.srx' property='mf:result'>agg-sample-01.srx</a>
- </dd>
- </dl>
- </dd>
- <dt id='agg-sum-distinct'>
- <a class='testlink' href='#agg-sum-distinct'>
- agg-sum-distinct:
- </a>
- <span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sum-distinct' property='mf:name'>SUM DISTINCT with GROUP BY</span>
- </dt>
- <dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-sum-distinct' typeof='mf:QueryEvaluationTest'>
- <div property='rdfs:comment'>
- </div>
- <dl class='test-detail'>
- <dt>type</dt>
- <dd>mf:QueryEvaluationTest</dd>
- <dt>approval</dt>
- <dd property='mf:approval' resource=''></dd>
- <dt>action</dt>
- <dd>
- <dl class='test-detail' property='mf:action' resource=''>
- </dl>
- </dd>
- <dt>result</dt>
- <dd>
- <a href='agg-sum-distinct.srx' property='mf:result'>agg-sum-distinct.srx</a>
- </dd>
- </dl>
- </dd>
- </dl>
- </div>
- <footer>
- <p><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright ©</a> 2015 <a href="http://www.w3.org/">W3C</a>® (<a href="http://www.csail.mit.edu/">MIT</a>, <a href="http://www.ercim.org/">ERCIM</a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>). W3C® <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> a [...]
- </footer>
- </body>
-</html>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/manifest.ttl
index 8bce5b64fd..a5517abfa2 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/aggregates/manifest.ttl
@@ -28,6 +28,7 @@
:agg-groupconcat-03
:agg-groupconcat-04
:agg-groupconcat-05
+ :agg-groupconcat-06
:agg-sum-01
:agg-sum-02
:agg-avg-01
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/lang-basedir/data-empty.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/empty.ttl
similarity index 100%
rename from jena-arq/testing/rdf-tests-cg/sparql/sparql12/lang-basedir/data-empty.ttl
rename to jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/empty.ttl
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/graph.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/graph.rq
new file mode 100644
index 0000000000..26bf48ab3b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/graph.rq
@@ -0,0 +1,5 @@
+SELECT ?g ?t {
+ GRAPH ?g {
+ VALUES (?g ?t) { (UNDEF "foo") ( <empty.ttl> "bar") }
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/graph.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/graph.ttl
new file mode 100644
index 0000000000..c6a492dc34
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/graph.ttl
@@ -0,0 +1,26 @@
+@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
+
+[] a rs:ResultSet ;
+ rs:resultVariable
+ "g" , "t" ;
+ rs:solution [ rs:binding [ rs:value <empty.ttl> ;
+ rs:variable "g"
+ ] ;
+ rs:binding [ rs:value "foo";
+ rs:variable "t"
+ ]
+ ] ;
+ rs:solution [ rs:binding [ rs:value <empty.ttl> ;
+ rs:variable "g"
+ ] ;
+ rs:binding [ rs:value "bar";
+ rs:variable "t"
+ ]
+ ] ;
+ rs:solution [ rs:binding [ rs:value <data02.ttl> ;
+ rs:variable "g"
+ ] ;
+ rs:binding [ rs:value "foo";
+ rs:variable "t"
+ ]
+ ] .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/manifest.ttl
index 8903b55a05..9b358f3b00 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/bindings/manifest.ttl
@@ -19,6 +19,7 @@
:values8
:inline1
:inline2
+ :graph
).
@@ -134,5 +135,16 @@
] ;
mf:result <inline02.srx> .
+:graph rdf:type mf:QueryEvaluationTest ;
+ mf:name "VALUES inside GRAPH binding the same variable as the graph name" ;
+ mf:action
+ [
+ qt:query <graph.rq> ;
+ qt:data <empty.ttl> ;
+ qt:graphData <empty.ttl> ;
+ qt:graphData <data02.ttl>
+ ] ;
+ mf:result <graph.ttl> .
+
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.rq
new file mode 100644
index 0000000000..2b44478120
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.rq
@@ -0,0 +1,6 @@
+PREFIX : <http://www.example.org/>
+
+SELECT ?s WHERE {
+ ?s :p ?g .
+ FILTER EXISTS { GRAPH ?g { ?s2 :p ?o2 } }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.srx
new file mode 100644
index 0000000000..3fbf955eff
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.srx
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
+ <head>
+ <variable name="s"/>
+ </head>
+ <results>
+ <result>
+ <binding name="s">
+ <uri>http://www.example.org/s1</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.ttl
new file mode 100644
index 0000000000..8766994ee8
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/exists-graph-variable.ttl
@@ -0,0 +1,4 @@
+@prefix : <http://www.example.org/> .
+
+:s1 :p <> .
+:s2 :p :o2 .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/manifest.ttl
index f4addfcc31..b7b672cddf 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/exists/manifest.ttl
@@ -15,6 +15,7 @@
:exists03
:exists04
:exists05
+ :exists-graph-variable
).
@@ -77,6 +78,17 @@
[ qt:query <exists05.rq> ;
qt:data <exists01.ttl> ;
] ;
- mf:result <exists05.srx>
- .
-
+ mf:result <exists05.srx>
+ .
+
+:exists-graph-variable rdf:type mf:QueryEvaluationTest ;
+ mf:name "GRAPH variable inside of EXISTS is bound to external variable";
+ mf:feature sparql:exists ;
+ mf:action
+ [ qt:query <exists-graph-variable.rq> ;
+ qt:data <exists-graph-variable.ttl> ;
+ qt:graphData <exists-graph-variable.ttl>
+ ] ;
+ mf:result <exists-graph-variable.srx>
+ .
+
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/coalesce-empty.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/coalesce-empty.rq
new file mode 100644
index 0000000000..5452f7cb85
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/coalesce-empty.rq
@@ -0,0 +1 @@
+SELECT (COALESCE() AS ?err) WHERE {}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/coalesce-empty.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/coalesce-empty.srx
new file mode 100644
index 0000000000..bf80b885f0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/coalesce-empty.srx
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+<head>
+ <variable name="err"/>
+</head>
+<results>
+ <result>
+ </result>
+</results>
+</sparql>
+
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/iri02.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/iri02.rq
new file mode 100644
index 0000000000..d8261a2951
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/iri02.rq
@@ -0,0 +1,3 @@
+BASE <http://example.org/>
+SELECT (URI(<uri>) AS ?uri) (IRI(<iri>) AS ?iri)
+WHERE {}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/iri02.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/iri02.srx
new file mode 100644
index 0000000000..b43c560245
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/iri02.srx
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+<head>
+ <variable name="uri"/>
+ <variable name="iri"/>
+</head>
+<results>
+ <result>
+ <binding name="uri"><uri>http://example.org/uri</uri></binding>
+ <binding name="iri"><uri>http://example.org/iri</uri></binding>
+ </result>
+</results>
+</sparql>
+
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/manifest.ttl
index e4a94da4ff..763c2c9a5c 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/manifest.ttl
@@ -48,6 +48,8 @@
:sha1-02
:sha256-01
:sha256-02
+ :sha384-01
+ :sha384-02
:sha512-01
:sha512-02
:minutes
@@ -67,9 +69,11 @@
:now01
:rand01
:iri01
+ :iri02
:if01
:if02
:coalesce01
+ :coalesce-empty
:strbefore01a
:strbefore02
:strafter01a
@@ -77,6 +81,7 @@
:replace01
:replace02
:replace03
+ :replace-case-insensitive
:uuid01
:uuid02
:struuid01
@@ -485,6 +490,26 @@
mf:result <sha256-02.srx> ;
.
+:sha384-01 rdf:type mf:QueryEvaluationTest ;
+ mf:name "SHA384()" ;
+ mf:feature sparql:sha384 ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-01-31#resolution_3> ;
+ mf:action
+ [ qt:query <sha384-01.rq> ;
+ qt:data <data.ttl> ] ;
+ mf:result <sha384-01.srx> ;
+ .
+
+:sha384-02 rdf:type mf:QueryEvaluationTest ;
+ mf:name "SHA384() on Unicode data" ;
+ mf:feature sparql:sha384 ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-01-31#resolution_3> ;
+ mf:action
+ [ qt:query <sha384-02.rq> ;
+ qt:data <hash-unicode.ttl> ] ;
+ mf:result <sha384-02.srx> ;
+ .
+
:sha512-01 rdf:type mf:QueryEvaluationTest ;
mf:name "SHA512()" ;
mf:feature sparql:sha512 ;
@@ -697,6 +722,16 @@
mf:result <iri01.srx> ;
.
+:iri02 rdf:type mf:QueryEvaluationTest ;
+ mf:name "IRI()/URI() when the input is an IRI" ;
+ mf:feature sparql:iri ;
+ mf:feature sparql:uri ;
+ mf:action
+ [ qt:query <iri02.rq> ;
+ qt:data <data.ttl> ] ;
+ mf:result <iri02.srx> ;
+ .
+
:if01 rdf:type mf:QueryEvaluationTest ;
mf:name "IF()" ;
mf:feature sparql:if ;
@@ -730,6 +765,15 @@
mf:result <coalesce01.srx> ;
.
+:coalesce-empty rdf:type mf:QueryEvaluationTest ;
+ mf:name "COALESCE() without arguments" ;
+ mf:feature sparql:coalesce ;
+ mf:action
+ [ qt:query <coalesce-empty.rq> ;
+ qt:data <data-coalesce.ttl> ] ;
+ mf:result <coalesce-empty.srx> ;
+ .
+
:strbefore01a rdf:type mf:QueryEvaluationTest ;
mf:name "STRBEFORE()" ;
mf:feature sparql:strbefore ;
@@ -807,6 +851,14 @@
mf:result <replace03.srx> ;
.
+:replace-case-insensitive rdf:type mf:QueryEvaluationTest ;
+ mf:name "REPLACE() with the 'i' option" ;
+ mf:feature sparql:replace ;
+ mf:action
+ [ qt:query <replace-case-insensitive.rq> ] ;
+ mf:result <replace-case-insensitive.srx> ;
+ .
+
:uuid01 rdf:type mf:QueryEvaluationTest ;
mf:name "UUID() pattern match" ;
mf:feature sparql:uuid ;
@@ -840,4 +892,3 @@
qt:data <data-empty.nt> ] ;
mf:result <struuid01.srx> ;
.
-
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/replace-case-insensitive.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/replace-case-insensitive.rq
new file mode 100644
index 0000000000..7f98ba5019
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/replace-case-insensitive.rq
@@ -0,0 +1 @@
+SELECT (REPLACE("aAbBaC", "a", "~/", "i") AS ?new) WHERE {}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/replace-case-insensitive.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/replace-case-insensitive.srx
new file mode 100644
index 0000000000..c04a8f6ea6
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/replace-case-insensitive.srx
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+<head>
+ <variable name="new"/>
+</head>
+<results>
+ <result>
+ <binding name="new"><literal>~/~/bB~/C</literal></binding>
+ </result>
+</results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-01.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-01.rq
new file mode 100644
index 0000000000..feee6416de
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-01.rq
@@ -0,0 +1,4 @@
+PREFIX : <http://example.org/>
+SELECT (SHA384(?l) AS ?hash) WHERE {
+ :s1 :str ?l
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-01.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-01.srx
new file mode 100644
index 0000000000..c09ad2d458
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-01.srx
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+<head>
+ <variable name="hash"/>
+</head>
+<results>
+ <result>
+ <binding name="hash"><literal>98c11ffdfdd540676b1a137cb1a22b2a70350c9a44171d6b1180c6be5cbb2ee3f79d532c8a1dd9ef2e8e08e752a3babb</literal></binding>
+ </result>
+</results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-02.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-02.rq
new file mode 100644
index 0000000000..2ad2700c58
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-02.rq
@@ -0,0 +1,4 @@
+PREFIX : <http://example.org/>
+SELECT (SHA384(?l) AS ?hash) WHERE {
+ :s8 :str ?l
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-02.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-02.srx
new file mode 100644
index 0000000000..e74a02aab0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/functions/sha384-02.srx
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+<head>
+ <variable name="hash"/>
+</head>
+<results>
+ <result>
+ <binding name="hash"><literal>adfda7e9ad8789b391855038d0d74dce3efe3af1eefcea35d50b91d6c244a0c546375445b518c9fb61e03e6a060bc95d</literal></binding>
+ </result>
+</results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest-frame.jsonld b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest-frame.jsonld
deleted file mode 100644
index c7b8c82941..0000000000
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest-frame.jsonld
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "@context": {
- "dawgt": "http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#",
- "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",
- "mq": "http://www.w3.org/2001/sw/DataAccess/tests/test-query#",
- "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
- "xsd": "http://www.w3.org/2001/XMLSchema#",
-
- "action": {"@id": "mf:action", "@type": "@id"},
- "approval": {"@id": "dawgt:approval", "@type": "@id"},
- "approvedBy": {"@id": "dawgt:approvedBy", "@type": "@id"},
- "comment": {"@id": "rdfs:comment"},
- "data": {"@id": "mq:data", "@type": "@id"},
- "entries": {"@id": "mf:entries", "@container": "@list", "@type": "@id"},
- "feature": {"@id": "mf:feature", "@type": "@vocab"},
- "graphData": {"@id": "mq:graphData", "@type": "@id"},
- "include": {"@id": "mf:include", "@container": "@list", "@type": "@id"},
- "label": {"@id": "rdfs:label"},
- "name": {"@id": "mf:name"},
- "notable": {"@id": "mf:notable", "@type": "@vocab"},
- "query": {"@id": "mq:query", "@type": "@id"},
- "queryForm": {"@id": "mq:queryForm", "@type": "@vocab"},
- "requires": {"@id": "mf:requires", "@type": "@vocab", "@container": "@set"},
- "result": {"@id": "mf:result", "@type": "@id"}
- },
- "@type": "mf:Manifest",
- "entries": {"@embed": true}
-}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest.ttl
index 7499fcb913..20ecd6f49b 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/http-rdf-update/manifest.ttl
@@ -15,7 +15,6 @@
gsp:get_of_put__graph_already_in_store
gsp:put__default_graph
gsp:get_of_put__default_graph
- gsp:put__mismatched_payload
gsp:delete__existing_graph
gsp:get_of_delete__existing_graph
gsp:delete__nonexistent_graph
@@ -29,59 +28,40 @@
gsp:head_on_an_existing_graph
gsp:head_on_a_nonexisting_graph ) .
-gsp:delete__existing_graph a mf:GraphStoreProtocolTest;
+gsp:put__initial_state a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "DELETE - existing graph" ;
+ mf:name "PUT - Initial state" ;
rdfs:comment """
#### Request
- DELETE $GRAPHSTORE$/person/2.ttl HTTP/1.1
- Host: $HOST$
-
-#### Response
-
- 200 OK
- """ .
-
-gsp:delete__nonexistent_graph a mf:GraphStoreProtocolTest;
- dawg:approval dawg:Approved;
- dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "DELETE - non-existent graph" ;
- rdfs:comment """
-#### Request
- DELETE $GRAPHSTORE$/person/2.ttl HTTP/1.1
+ PUT $GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
+ Content-Type: text/turtle; charset=utf-8
-#### Response
-
- 404 Not Found
- """ .
-
-gsp:get_of_delete__existing_graph a mf:GraphStoreProtocolTest;
- dawg:approval dawg:Approved;
- dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of DELETE - existing graph" ;
- rdfs:comment """
-#### Request
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+ @prefix v: <http://www.w3.org/2006/vcard/ns#> .
- GET $GRAPHSTORE$/person/2.ttl HTTP/1.1
- Host: $HOST$
+ <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ foaf:businessCard [
+ a v:VCard;
+ v:fn "John Doe"
+ ].
#### Response
- 404 Not Found
+ 201 Created
""" .
-gsp:get_of_post__after_noop a mf:GraphStoreProtocolTest;
+gsp:get_of_put__initial_state a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of POST - after noop" ;
+ mf:name "GET of PUT - Initial state" ;
rdfs:comment """
#### Request
- GET $NEWPATH$ HTTP/1.1
+ GET $GRAPHSTORE$?graph=http://$HOST$/$GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
Accept: text/turtle
@@ -94,87 +74,88 @@ gsp:get_of_post__after_noop a mf:GraphStoreProtocolTest;
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- [] a foaf:Person;
- foaf:businessCard [
+ <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ foaf:businessCard [
a v:VCard;
- v:given-name "Alice"
- ] .
+ v:fn "John Doe"
+ ].
""" .
-gsp:get_of_post__create__new_graph a mf:GraphStoreProtocolTest;
+gsp:put__graph_already_in_store a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of POST - create new graph" ;
+ mf:name "PUT - graph already in store" ;
rdfs:comment """
#### Request
- GET $NEWPATH$ HTTP/1.1
+ PUT $GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
- Accept: text/turtle
-
-#### Response
-
- 200 OK
Content-Type: text/turtle; charset=utf-8
- Content-Length: ...
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- [] a foaf:Person;
+ <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
foaf:businessCard [
a v:VCard;
- v:given-name "Alice"
- ] .
+ v:fn "Jane Doe"
+ ].
+
+#### Response
+
+ 204 No Content
""" .
-gsp:get_of_post__existing_graph a mf:GraphStoreProtocolTest;
+gsp:get_of_put__graph_already_in_store a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of POST - existing graph" ;
+ mf:name "GET of PUT - graph already in store" ;
rdfs:comment """
#### Request
- POST $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ GET $GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
- Content-Type: text/turtle; charset=utf-8
-
- @prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
- <http://$HOST$/$GRAPHSTORE$/person/1> foaf:name "Jane Doe"
+ Accept: text/turtle
#### Response
200 OK
+ Content-Type: text/turtle; charset=utf-8
+ Content-Length: ...
+
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+ @prefix v: <http://www.w3.org/2006/vcard/ns#> .
+
+ <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ foaf:businessCard [
+ a v:VCard;
+ v:fn "Jane Doe"
+ ] .
""" .
-gsp:get_of_post__multipart_formdata a mf:GraphStoreProtocolTest;
+gsp:put__default_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of POST - multipart/form-data" ;
+ mf:name "PUT - default graph" ;
rdfs:comment """
#### Request
- GET $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ PUT $GRAPHSTORE$?default HTTP/1.1
Host: $HOST$
-
-#### Response
-
- 200 OK
Content-Type: text/turtle; charset=utf-8
- Content-Length: ...
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
- foaf:name "Jane Doe";
- foaf:givenName "Jane";
- foaf:familyName "Doe";
+ [] a foaf:Person;
foaf:businessCard [
- a v:VCard;
- v:fn "Jane Doe"
+ a v:VCard;
+ v:given-name "Alice"
] .
+
+#### Response
+
+ 201 Created
""" .
gsp:get_of_put__default_graph a mf:GraphStoreProtocolTest;
@@ -204,68 +185,44 @@ gsp:get_of_put__default_graph a mf:GraphStoreProtocolTest;
] .
""" .
-gsp:get_of_put__graph_already_in_store a mf:GraphStoreProtocolTest;
+gsp:delete__existing_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of PUT - graph already in store" ;
+ mf:name "DELETE - existing graph" ;
rdfs:comment """
#### Request
- GET $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ DELETE $GRAPHSTORE$/person/2.ttl HTTP/1.1
Host: $HOST$
- Accept: text/turtle
#### Response
200 OK
- Content-Type: text/turtle; charset=utf-8
- Content-Length: ...
-
- @prefix foaf: <http://xmlns.com/foaf/0.1/> .
- @prefix v: <http://www.w3.org/2006/vcard/ns#> .
-
- <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
- foaf:businessCard [
- a v:VCard;
- v:fn "Jane Doe"
- ] .
""" .
-gsp:get_of_put__initial_state a mf:GraphStoreProtocolTest;
+gsp:get_of_delete__existing_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "GET of PUT - Initial state" ;
+ mf:name "GET of DELETE - existing graph" ;
rdfs:comment """
#### Request
- GET $GRAPHSTORE$?graph=http://$HOST$/$GRAPHSTORE$/person/1.ttl HTTP/1.1
+ GET $GRAPHSTORE$/person/2.ttl HTTP/1.1
Host: $HOST$
- Accept: text/turtle
#### Response
- 200 OK
- Content-Type: text/turtle; charset=utf-8
- Content-Length: ...
-
- @prefix foaf: <http://xmlns.com/foaf/0.1/> .
- @prefix v: <http://www.w3.org/2006/vcard/ns#> .
-
- <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
- foaf:businessCard [
- a v:VCard;
- v:fn "John Doe"
- ].
+ 404 Not Found
""" .
-gsp:head_on_a_nonexisting_graph a mf:GraphStoreProtocolTest;
+gsp:delete__nonexistent_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "HEAD on a non-existing graph" ;
+ mf:name "DELETE - non-existent graph" ;
rdfs:comment """
#### Request
- HEAD $GRAPHSTORE$/person/4.ttl HTTP/1.1
+ DELETE $GRAPHSTORE$/person/2.ttl HTTP/1.1
Host: $HOST$
#### Response
@@ -273,54 +230,53 @@ gsp:head_on_a_nonexisting_graph a mf:GraphStoreProtocolTest;
404 Not Found
""" .
-gsp:head_on_an_existing_graph a mf:GraphStoreProtocolTest;
+gsp:post__existing_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "HEAD on an existing graph" ;
+ mf:name "POST - existing graph" ;
rdfs:comment """
#### Request
- HEAD $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ POST $GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
+ Content-Type: text/turtle; charset=utf-8
+
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+ <http://$HOST$/$GRAPHSTORE$/person/1> foaf:name "Jane Doe"
#### Response
200 OK
- Content-Type: text/turtle; charset=utf-8
- Content-Length: ...
""" .
-gsp:post__create__new_graph a mf:GraphStoreProtocolTest;
+gsp:get_of_post__existing_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "POST - create new graph" ;
+ mf:name "GET of POST - existing graph" ;
rdfs:comment """
#### Request
- POST $GRAPHSTORE$ HTTP/1.1
+ GET $GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
+ Accept: text/turtle
+
+#### Response
+
+ 200 OK
Content-Type: text/turtle; charset=utf-8
+ Content-Length: ...
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- [] a foaf:Person;
- foaf:businessCard [
+ <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ foaf:businessCard [
a v:VCard;
- v:given-name "Alice"
- ] .
-
-#### Response
-
- 201 Created
- Location: $NEWPATH$
+ v:fn "John Doe"
+ ] .
""" .
-gsp:post__existing_graph a mf:GraphStoreProtocolTest;
- dawg:approval dawg:Approved;
- dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "POST - existing graph" .
-
gsp:post__multipart_formdata a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
@@ -353,104 +309,144 @@ gsp:post__multipart_formdata a mf:GraphStoreProtocolTest;
200 OK
""" .
-gsp:put__default_graph a mf:GraphStoreProtocolTest;
+gsp:get_of_post__multipart_formdata a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "PUT - default graph" ;
+ mf:name "GET of POST - multipart/form-data" ;
rdfs:comment """
#### Request
- PUT $GRAPHSTORE$?default HTTP/1.1
+ GET $GRAPHSTORE$/person/1.ttl HTTP/1.1
Host: $HOST$
+
+#### Response
+
+ 200 OK
Content-Type: text/turtle; charset=utf-8
+ Content-Length: ...
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- [] a foaf:Person;
+ <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ foaf:name "Jane Doe";
+ foaf:givenName "Jane";
+ foaf:familyName "Doe";
foaf:businessCard [
- a v:VCard;
- v:given-name "Alice"
+ a v:VCard;
+ v:fn "Jane Doe"
] .
-
-#### Response
-
- 201 Created
""" .
-gsp:put__graph_already_in_store a mf:GraphStoreProtocolTest;
+gsp:post__create__new_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "PUT - graph already in store" ;
+ mf:name "POST - create new graph" ;
rdfs:comment """
#### Request
- PUT $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ POST $GRAPHSTORE$ HTTP/1.1
Host: $HOST$
Content-Type: text/turtle; charset=utf-8
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ [] a foaf:Person;
foaf:businessCard [
a v:VCard;
- v:fn "Jane Doe"
- ].
+ v:given-name "Alice"
+ ] .
#### Response
- 204 No Content
+ 201 Created
+ Location: $NEWPATH$
""" .
-gsp:put__initial_state a mf:GraphStoreProtocolTest;
+gsp:get_of_post__create__new_graph a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "PUT - Initial state" ;
+ mf:name "GET of POST - create new graph" ;
rdfs:comment """
#### Request
-
- PUT $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ GET $NEWPATH$ HTTP/1.1
Host: $HOST$
+ Accept: text/turtle
+
+#### Response
+
+ 200 OK
Content-Type: text/turtle; charset=utf-8
+ Content-Length: ...
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ [] a foaf:Person;
foaf:businessCard [
a v:VCard;
- v:fn "John Doe"
- ].
-
-#### Response
-
-`201 Created`
+ v:given-name "Alice"
+ ] .
""" .
-gsp:put__mismatched_payload a mf:GraphStoreProtocolTest;
+gsp:get_of_post__after_noop a mf:GraphStoreProtocolTest;
dawg:approval dawg:Approved;
dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
- mf:name "PUT - mismatched payload" ;
+ mf:name "GET of POST - after noop" ;
rdfs:comment """
#### Request
- PUT $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ GET $NEWPATH$ HTTP/1.1
Host: $HOST$
+ Accept: text/turtle
+
+#### Response
+
+ 200 OK
Content-Type: text/turtle; charset=utf-8
+ Content-Length: ...
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
- <http://$HOST$/$GRAPHSTORE$/person/1> a foaf:Person;
+ [] a foaf:Person;
foaf:businessCard [
a v:VCard;
- v:fn "Jane Doe"
- ].
+ v:given-name "Alice"
+ ] .
+ """ .
+
+gsp:head_on_an_existing_graph a mf:GraphStoreProtocolTest;
+ dawg:approval dawg:Approved;
+ dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
+ mf:name "HEAD on an existing graph" ;
+ rdfs:comment """
+#### Request
+
+ HEAD $GRAPHSTORE$/person/1.ttl HTTP/1.1
+ Host: $HOST$
#### Response
- 400 Bad Request
+ 200 OK
+ Content-Type: text/turtle; charset=utf-8
+ Content-Length: ...
+ """ .
+
+gsp:head_on_a_nonexisting_graph a mf:GraphStoreProtocolTest;
+ dawg:approval dawg:Approved;
+ dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-27#resolution_3>;
+ mf:name "HEAD on a non-existing graph" ;
+ rdfs:comment """
+#### Request
+
+ HEAD $GRAPHSTORE$/person/4.ttl HTTP/1.1
+ Host: $HOST$
+
+#### Response
+
+ 404 Not Found
""" .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.rq
new file mode 100644
index 0000000000..8cb12d0e00
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.rq
@@ -0,0 +1,10 @@
+prefix : <http://example/>
+
+SELECT ?a WHERE {
+ GRAPH ?g {
+ ?a :p :o
+ MINUS {
+ ?b :p :o
+ }
+ }
+}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.srx
new file mode 100644
index 0000000000..93f32878dc
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.srx
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="a"/>
+ </head>
+ <results>
+ <result>
+ <binding name="a">
+ <uri>http://example/a</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.ttl
new file mode 100644
index 0000000000..799b40e0bd
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/graph-minus.ttl
@@ -0,0 +1,3 @@
+@prefix : <http://example/> .
+
+:a :p :o .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/manifest.ttl
index cee35508bb..7078da7169 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/negation/manifest.ttl
@@ -20,6 +20,7 @@
:exists-02
:full-minuend
:partial-minuend
+ :graph-minus
) .
@@ -120,3 +121,10 @@
qt:data <part-minuend.ttl> ] ;
mf:result <part-minuend.srx> .
+:graph-minus rdf:type mf:QueryEvaluationTest ;
+ mf:name "outer GRAPH operator does not affect MINUS disjointness" ;
+ mf:description "The outer GRAPH operator variable is not implied when checking that sides of the MINUS are disjoint." ;
+ mf:action
+ [ qt:query <graph-minus.rq> ;
+ qt:graphData <graph-minus.ttl> ] ;
+ mf:result <graph-minus.srx> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/manifest.ttl
index 2db528d037..d11608ece9 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/manifest.ttl
@@ -41,6 +41,12 @@
:values_and_path
:nps_inverse
:nps_direct_and_inverse
+ :nps_a
+ :nps_a_inverse
+ :zero_or_more_set_start
+ :zero_or_more_set_end
+ :zero_or_one_set_start
+ :zero_or_one_set_end
) .
@@ -304,10 +310,51 @@
qt:data <nps_inverse.ttl> ] ;
mf:result <nps_inverse.srx> .
-
:nps_direct_and_inverse rdf:type mf:QueryEvaluationTest ;
mf:name "Negated Property Set with both direct and inverse properties" ;
mf:action
[ qt:query <nps_direct_and_inverse.rq> ;
qt:data <nps_direct_and_inverse.ttl> ] ;
mf:result <nps_direct_and_inverse.srx> .
+
+:nps_a_inverse rdf:type mf:QueryEvaluationTest ;
+ mf:name "Negated Property Set with the inverse rdf:type property written using '^a'" ;
+ mf:action
+ [ qt:query <nps_a_inverse.rq> ;
+ qt:data <nps_a_inverse.ttl> ] ;
+ mf:result <nps_a_inverse.srx> .
+
+:nps_a rdf:type mf:QueryEvaluationTest ;
+ mf:name "Negated Property Set with the rdf:type property written using 'a'" ;
+ mf:action
+ [ qt:query <nps_a.rq> ;
+ qt:data <nps_a.ttl> ] ;
+ mf:result <nps_a.srx> .
+
+:zero_or_more_set_start rdf:type mf:QueryEvaluationTest ;
+ mf:name "* with start being a constant on the empty dataset" ;
+ mf:action
+ [ qt:query <zero_or_more_set_start.rq> ;
+ qt:data <empty.ttl> ] ;
+ mf:result <zero_or_more_set_start.srx> .
+
+:zero_or_more_set_end rdf:type mf:QueryEvaluationTest ;
+ mf:name "* with end being a constant on the empty dataset" ;
+ mf:action
+ [ qt:query <zero_or_more_set_end.rq> ;
+ qt:data <empty.ttl> ] ;
+ mf:result <zero_or_more_set_end.srx> .
+
+:zero_or_one_set_start rdf:type mf:QueryEvaluationTest ;
+ mf:name "? with start being a constant on the empty dataset" ;
+ mf:action
+ [ qt:query <zero_or_one_set_start.rq> ;
+ qt:data <empty.ttl> ] ;
+ mf:result <zero_or_one_set_start.srx> .
+
+:zero_or_one_set_end rdf:type mf:QueryEvaluationTest ;
+ mf:name "? with end being a constant on the empty dataset" ;
+ mf:action
+ [ qt:query <zero_or_one_set_end.rq> ;
+ qt:data <empty.ttl> ] ;
+ mf:result <zero_or_one_set_end.srx> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.rq
new file mode 100644
index 0000000000..95cd4d2b9a
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.rq
@@ -0,0 +1,4 @@
+PREFIX ex: <http://example.org/>
+SELECT ?s ?o WHERE {
+ ?s !a ?o
+}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.srx
new file mode 100644
index 0000000000..8a26fc2bc0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.srx
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="s"/>
+ <variable name="o"/>
+ </head>
+ <results>
+ <result>
+ <binding name="s">
+ <uri>http://example.org/sp</uri>
+ </binding>
+ <binding name="o">
+ <uri>http://example.org/op</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.ttl
new file mode 100644
index 0000000000..013d18110b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a.ttl
@@ -0,0 +1,3 @@
+@prefix ex: <http://example.org/> .
+ex:sa a ex:oa .
+ex:sp ex:p ex:op .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.rq
new file mode 100644
index 0000000000..989e184ae0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.rq
@@ -0,0 +1,4 @@
+PREFIX ex: <http://example.org/>
+SELECT ?s ?o WHERE {
+ ?s !^a ?o
+}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.srx
new file mode 100644
index 0000000000..ff6d9e6162
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.srx
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="s"/>
+ <variable name="o"/>
+ </head>
+ <results>
+ <result>
+ <binding name="s">
+ <uri>http://example.org/op</uri>
+ </binding>
+ <binding name="o">
+ <uri>http://example.org/sp</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.ttl
new file mode 100644
index 0000000000..013d18110b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/nps_a_inverse.ttl
@@ -0,0 +1,3 @@
+@prefix ex: <http://example.org/> .
+ex:sa a ex:oa .
+ex:sp ex:p ex:op .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_end.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_end.rq
new file mode 100644
index 0000000000..6982c8c98e
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_end.rq
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+SELECT ?o WHERE { :s :p* ?o }
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_end.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_end.srx
new file mode 100644
index 0000000000..60c3670dbb
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_end.srx
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="o"/>
+ </head>
+ <results>
+ <result>
+ <binding name="o">
+ <uri>http://example/s</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_start.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_start.rq
new file mode 100644
index 0000000000..42a9f58bc9
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_start.rq
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+SELECT ?s WHERE { ?s :p* :o }
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_start.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_start.srx
new file mode 100644
index 0000000000..0d4ac03bcb
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_more_set_start.srx
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="s"/>
+ </head>
+ <results>
+ <result>
+ <binding name="s">
+ <uri>http://example/o</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_end.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_end.rq
new file mode 100644
index 0000000000..5675ece688
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_end.rq
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+SELECT ?o WHERE { :s :p? ?o }
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_end.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_end.srx
new file mode 100644
index 0000000000..60c3670dbb
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_end.srx
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="o"/>
+ </head>
+ <results>
+ <result>
+ <binding name="o">
+ <uri>http://example/s</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_start.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_start.rq
new file mode 100644
index 0000000000..ac1649ba78
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_start.rq
@@ -0,0 +1,2 @@
+PREFIX : <http://example/>
+SELECT ?s WHERE { ?s :p? :o }
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_start.srx b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_start.srx
new file mode 100644
index 0000000000..0d4ac03bcb
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/property-path/zero_or_one_set_start.srx
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sparql xmlns="http://www.w3.org/2005/sparql-results#">
+ <head>
+ <variable name="s"/>
+ </head>
+ <results>
+ <result>
+ <binding name="s">
+ <uri>http://example/o</uri>
+ </binding>
+ </result>
+ </results>
+</sparql>
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data1.nt b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data1.nt
new file mode 100644
index 0000000000..fbd90e4954
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data1.nt
@@ -0,0 +1 @@
+<http://kasei.us/2009/09/sparql/data/data1.rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data2.nt b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data2.nt
new file mode 100644
index 0000000000..92de7e0dcd
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data2.nt
@@ -0,0 +1 @@
+<http://kasei.us/2009/09/sparql/data/data2.rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data3.nt b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data3.nt
new file mode 100644
index 0000000000..40f5288858
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/data3.nt
@@ -0,0 +1 @@
+<http://kasei.us/2009/09/sparql/data/data3.rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/manifest.ttl
index a13cb34be5..f00cd4656d 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql11/protocol/manifest.ttl
@@ -1,961 +1,1343 @@
-@prefix : <http://www.w3.org/2009/sparql/docs/tests/data-sparql11/protocol/manifest#> .
+@prefix : <http://www.w3.org/2009/sparql/docs/tests/data-sparql11/protocol/manifest#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
@prefix dawgt: <http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#> .
+@prefix cnt: <http://www.w3.org/2011/content#> .
+@prefix ht: <http://www.w3.org/2011/http#> .
+@prefix hts: <http://www.w3.org/2011/http-statusCodes#> .
+@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
+@prefix ut: <http://www.w3.org/2009/sparql/tests/test-update#> .
<> rdf:type mf:Manifest ;
rdfs:label "SPARQL Protocol" ;
+ rdfs:comment """
+ This manifest encodes tests for the SPARQL Protocol. Each test record
+ has one or more ht:Requests that must be run in order to produce the
+ expected results.
+
+ Expected results are encoded in the ht:Response using one of four new
+ terms:
+
+ * `mf:expectedStatus` - Expected HTTP status code (pointing to values
+ like `hts:StatusCode2xx`);
+ * `mf:expectedBoolean` - Expected results for ASK queries.
+ * `mf:expectedFormat` - Expected serialization format of the results;
+ the range here is one of the literals: `"boolean"`, `"tabular"`,
+ or `"RDF"`
+
+ Each request has a ht:absolutePath value that starts with `/sparql/`.
+ A program using this manifest data to run the tests must replace this
+ value with whatever path prefix is appropriate for the endpoint being
+ tested. Every ht:absolutePath value in this manifest starts with
+ `/sparql/`, but and endpoint being tested may require different
+ endpoints to be used for Query and Update requests.
+ """ ;
mf:entries
(
- :query_post_form
- :query_dataset_default_graphs_get
- :query_dataset_default_graphs_post
- :query_dataset_named_graphs_post
- :query_dataset_named_graphs_get
- :query_dataset_full
- :query_multiple_dataset
- :query_get
- :query_content_type_select
- :query_content_type_ask
- :query_content_type_describe
- :query_content_type_construct
- :update_dataset_default_graph
- :update_dataset_default_graphs
- :update_dataset_named_graphs
- :update_dataset_full
- :update_post_form
- :update_post_direct
- :update_base_uri
- :query_post_direct
- :bad_query_method
- :bad_multiple_queries
- :bad_query_wrong_media_type
- :bad_query_missing_form_type
- :bad_query_missing_direct_type
- :bad_query_non_utf8
- :bad_query_syntax
- :bad_update_get
- :bad_multiple_updates
- :bad_update_wrong_media_type
- :bad_update_missing_form_type
- :bad_update_non_utf8
- :bad_update_syntax
- :bad_update_dataset_conflict
- ) .
+ :query_post_form
+ :query_dataset_default_graphs_get
+ :query_dataset_default_graphs_post
+ :query_dataset_named_graphs_post
+ :query_dataset_named_graphs_get
+ :query_dataset_full
+ :query_multiple_dataset
+ :query_get
+ :query_content_type_select
+ :query_content_type_ask
+ :query_content_type_describe
+ :query_content_type_construct
+ :update_dataset_default_graph
+ :update_dataset_default_graphs
+ :update_dataset_named_graphs
+ :update_dataset_full
+ :update_post_form
+ :update_post_direct
+ :update_base_uri
+ :query_post_direct
+ :bad_query_method
+ :bad_multiple_queries
+ :bad_query_wrong_media_type
+ :bad_query_missing_form_type
+ :bad_query_missing_direct_type
+ :bad_query_non_utf8
+ :bad_query_syntax
+ :bad_update_get
+ :bad_multiple_updates
+ :bad_update_wrong_media_type
+ :bad_update_missing_form_type
+ :bad_update_non_utf8
+ :bad_update_syntax
+ :bad_update_dataset_conflict
+ ) .
:query_post_form rdf:type mf:ProtocolTest ;
- mf:name "query via URL-encoded POST" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/x-www-form-urlencoded
- Content-Length: XXX
-
- query=ASK%20%7B%7D
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query via URL-encoded POST" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "query=ASK%20%7B%7D"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/x-www-form-urlencoded"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_dataset_default_graphs_get rdf:type mf:ProtocolTest ;
- mf:name "GET query with protocol-specified default graph" ;
- rdfs:comment """
-#### Request
-
- GET /sparql?query=ASK%20%7B%20%3Chttp%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf%3E%20a%20%3Ftype%20.%20%3Chttp%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf%3E%20a%20%3Ftype%20.%20%7D&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf
- Host: www.example
- User-agent: sparql-client/0.1
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "GET query with protocol-specified default graph" ;
+ ut:graphData [ ut:graph <data1.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data1.rdf" ] ;
+ ut:graphData [ ut:graph <data2.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data2.rdf" ] ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?query=ASK%20%7B%20%3Chttp%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf%3E%20a%20%3Ftype%20.%20%3Chttp%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf%3E%20a%20%3Ftype%20.%20%7D&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "GET" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_dataset_default_graphs_post rdf:type mf:ProtocolTest ;
- mf:name "POST query with protocol-specified default graphs" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK { <http://kasei.us/2009/09/sparql/data/data1.rdf> ?p ?o . <http://kasei.us/2009/09/sparql/data/data2.rdf> ?p ?o }
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "POST query with protocol-specified default graphs" ;
+ ut:graphData [ ut:graph <data1.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data1.rdf" ] ;
+ ut:graphData [ ut:graph <data2.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data2.rdf" ] ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK { <http://kasei.us/2009/09/sparql/data/data1.rdf> a ?type . <http://kasei.us/2009/09/sparql/data/data2.rdf> a ?type . }"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_dataset_named_graphs_post rdf:type mf:ProtocolTest ;
- mf:name "POST query with protocol-specified named graphs" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/?named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK { GRAPH ?g { ?s ?p ?o } }
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "POST query with protocol-specified named graphs" ;
+ ut:graphData [ ut:graph <data1.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data1.rdf" ] ;
+ ut:graphData [ ut:graph <data2.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data2.rdf" ] ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK { GRAPH ?g1 { <http://kasei.us/2009/09/sparql/data/data1.rdf> a ?type } GRAPH ?g2 { <http://kasei.us/2009/09/sparql/data/data2.rdf> a ?type } }"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_dataset_named_graphs_get rdf:type mf:ProtocolTest ;
- mf:name "GET query with protocol-specified named graphs" ;
- rdfs:comment """
-#### Request
-
- GET /sparql/?named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf&query=ASK%20%7B%20GRAPH%20%3Fg%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%20%7D HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "GET query with protocol-specified named graphs" ;
+ ut:graphData [ ut:graph <data1.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data1.rdf" ] ;
+ ut:graphData [ ut:graph <data2.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data2.rdf" ] ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?query=ASK%20%7B%20GRAPH%20%3Fg1%20%7B%20%3Chttp%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf%3E%20a%20%3Ftype%20%7D%20GRAPH%20%3Fg2%20%7B%20%3Chttp%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf%3E%20a%20%3Ftype%20%7D%20%7D&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "GET" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_dataset_full rdf:type mf:ProtocolTest ;
- mf:name "query with protocol-specified dataset (both named and default graphs)" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata3.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- SELECT ?g ?x ?s { ?x ?y ?o GRAPH ?g { ?s ?p ?o } }
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query with protocol-specified dataset (both named and default graphs)" ;
+ ut:graphData [ ut:graph <data1.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data1.rdf" ] ;
+ ut:graphData [ ut:graph <data2.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data2.rdf" ] ;
+ ut:graphData [ ut:graph <data3.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data3.rdf" ] ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata3.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """ASK {
+ <http://kasei.us/2009/09/sparql/data/data3.rdf> a ?type
+ GRAPH ?g1 { <http://kasei.us/2009/09/sparql/data/data1.rdf> a ?type }
+ GRAPH ?g2 { <http://kasei.us/2009/09/sparql/data/data2.rdf> a ?type }
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_multiple_dataset rdf:type mf:ProtocolTest ;
- mf:name "query specifying dataset in both query string and protocol; test for use of protocol-specified dataset" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK FROM <http://kasei.us/2009/09/sparql/data/data1.rdf> { <data1.rdf> ?p ?o }
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query specifying dataset in both query string and protocol; test for use of protocol-specified dataset" ;
+ ut:graphData [ ut:graph <data1.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data1.rdf" ] ;
+ ut:graphData [ ut:graph <data2.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data2.rdf" ] ;
+ ut:graphData [ ut:graph <data3.nt> ; rdfs:label "http://kasei.us/2009/09/sparql/data/data3.rdf" ] ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK FROM <http://kasei.us/2009/09/sparql/data/data3.rdf> { GRAPH ?g1 { <http://kasei.us/2009/09/sparql/data/data1.rdf> a ?type } GRAPH ?g2 { <http://kasei.us/2009/09/sparql/data/data2.rdf> a ?type } }"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_get rdf:type mf:ProtocolTest ;
- mf:name "query via GET" ;
- rdfs:comment """
-#### Request
-
- GET /sparql?query=ASK%20%7B%7D
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query via GET" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?query=ASK%20%7B%7D&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "GET" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_content_type_select rdf:type mf:ProtocolTest ;
- mf:name "query appropriate content type (expect one of: XML, JSON, CSV, TSV)" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- SELECT (1 AS ?value) {}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml, application/sparql-results+json, text/tab-separated-values, or text/csv
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query appropriate content type (expect one of: XML, JSON, CSV, TSV)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "SELECT (1 AS ?value) {}"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedFormat "tabular" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_content_type_ask rdf:type mf:ProtocolTest ;
- mf:name "query appropriate content type (expect one of: XML, JSON)" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK {}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query appropriate content type (expect one of: XML, JSON)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK {}"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_content_type_describe rdf:type mf:ProtocolTest ;
- mf:name "query appropriate content type (expect one of: RDF/XML, Turtle, N-Triples, RDFa)" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- DESCRIBE <http://example.org/>
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/rdf+xml, application/rdf+json or text/turtle
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query appropriate content type (expect one of: RDF/XML, Turtle, N-Triples, RDFa)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "DESCRIBE <http://example.org/>"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedFormat "RDF" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_content_type_construct rdf:type mf:ProtocolTest ;
- mf:name "query appropriate content type (expect one of: RDF/XML, Turtle, N-Triples, RDFa)" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- CONSTRUCT { <s> <p> 1 } WHERE {}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/rdf+xml, application/rdf+json or text/turtle
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query appropriate content type (expect one of: RDF/XML, Turtle, N-Triples, RDFa)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "CONSTRUCT { <s> <p> 1 } WHERE {}"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedFormat "RDF" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_dataset_default_graph rdf:type mf:ProtocolTest ;
- mf:name "update with protocol-specified default graph" ;
- rdfs:comment """
-#### Request
-
- POST /sparql?using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update
- Content-Length: XXX
-
- PREFIX dc: <http://purl.org/dc/terms/>
- PREFIX foaf: <http://xmlns.com/foaf/0.1/>
- CLEAR ALL ;
- INSERT DATA {
- GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> {
- <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document
- }
- } ;
- INSERT {
- GRAPH <http://example.org/protocol-update-dataset-test/> {
- ?s a dc:BibliographicResource
- }
+ mf:name "update with protocol-specified default graph" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """PREFIX dc: <http://purl.org/dc/terms/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+CLEAR ALL ;
+INSERT DATA {
+ GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> {
+ <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document
}
- WHERE {
- ?s a foaf:Document
+} ;
+INSERT {
+ GRAPH <http://example.org/protocol-update-dataset-test/> {
+ ?s a dc:BibliographicResource
}
-
-#### Response
-
- 2xx or 3xx response
-
-followed by
-
-#### Request
-
- POST /sparql HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Accept: application/sparql-results+xml
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK {
- GRAPH <http://example.org/protocol-update-dataset-test/> {
- <http://kasei.us/2009/09/sparql/data/data1.rdf> a <http://purl.org/dc/terms/BibliographicResource>
- }
+}
+WHERE {
+ ?s a foaf:Document
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ [
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """ASK {
+ GRAPH <http://example.org/protocol-update-dataset-test/> {
+ <http://kasei.us/2009/09/sparql/data/data1.rdf> a <http://purl.org/dc/terms/BibliographicResource>
}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_dataset_default_graphs rdf:type mf:ProtocolTest ;
- mf:name "update with protocol-specified default graphs" ;
- rdfs:comment """
-#### Request
-
- POST /sparql?using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update
- Content-Length: XXX
-
- PREFIX dc: <http://purl.org/dc/terms/>
- PREFIX foaf: <http://xmlns.com/foaf/0.1/>
- CLEAR ALL ;
- INSERT DATA {
- GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> { <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document }
- GRAPH <http://kasei.us/2009/09/sparql/data/data2.rdf> { <http://kasei.us/2009/09/sparql/data/data2.rdf> a foaf:Document }
- GRAPH <http://kasei.us/2009/09/sparql/data/data3.rdf> { <http://kasei.us/2009/09/sparql/data/data3.rdf> a foaf:Document }
- } ;
- INSERT {
- GRAPH <http://example.org/protocol-update-dataset-graphs-test/> {
- ?s a dc:BibliographicResource
- }
+ mf:name "update with protocol-specified default graphs" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """PREFIX dc: <http://purl.org/dc/terms/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+DROP ALL ;
+INSERT DATA {
+ GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> { <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document }
+ GRAPH <http://kasei.us/2009/09/sparql/data/data2.rdf> { <http://kasei.us/2009/09/sparql/data/data2.rdf> a foaf:Document }
+ GRAPH <http://kasei.us/2009/09/sparql/data/data3.rdf> { <http://kasei.us/2009/09/sparql/data/data3.rdf> a foaf:Document }
+} ;
+INSERT {
+ GRAPH <http://example.org/protocol-update-dataset-graphs-test/> {
+ ?s a dc:BibliographicResource
}
- WHERE {
- ?s a foaf:Document
+}
+WHERE {
+ ?s a foaf:Document
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ [
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """ASK {
+ GRAPH <http://example.org/protocol-update-dataset-graphs-test/> {
+ <http://kasei.us/2009/09/sparql/data/data1.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
+ <http://kasei.us/2009/09/sparql/data/data2.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
}
-
-#### Response
-
- 2xx or 3xx response
-
-followed by
-
-#### Request
-
- POST /sparql HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Accept: application/sparql-results+xml
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK {
+ FILTER NOT EXISTS {
GRAPH <http://example.org/protocol-update-dataset-graphs-test/> {
- <http://kasei.us/2009/09/sparql/data/data1.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
- <http://kasei.us/2009/09/sparql/data/data2.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
- }
- FILTER NOT EXISTS {
- GRAPH <http://example.org/protocol-update-dataset-graphs-test/> {
- <http://kasei.us/2009/09/sparql/data/data3.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
- }
+ <http://kasei.us/2009/09/sparql/data/data3.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
}
}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_dataset_named_graphs rdf:type mf:ProtocolTest ;
- mf:name "update with protocol-specified named graphs" ;
- rdfs:comment """
-#### Request
-
- POST /sparql?using-named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&using-named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update
- Content-Length: XXX
-
- PREFIX dc: <http://purl.org/dc/terms/>
- PREFIX foaf: <http://xmlns.com/foaf/0.1/>
- CLEAR ALL ;
- INSERT DATA {
- GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> { <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document }
- GRAPH <http://kasei.us/2009/09/sparql/data/data2.rdf> { <http://kasei.us/2009/09/sparql/data/data2.rdf> a foaf:Document }
- GRAPH <http://kasei.us/2009/09/sparql/data/data3.rdf> { <http://kasei.us/2009/09/sparql/data/data3.rdf> a foaf:Document }
- } ;
- INSERT {
- GRAPH <http://example.org/protocol-update-dataset-named-graphs-test/> {
- ?s a dc:BibliographicResource
- }
+ mf:name "update with protocol-specified named graphs" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?using-named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&using-named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """PREFIX dc: <http://purl.org/dc/terms/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+DROP ALL ;
+INSERT DATA {
+ GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> { <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document }
+ GRAPH <http://kasei.us/2009/09/sparql/data/data2.rdf> { <http://kasei.us/2009/09/sparql/data/data2.rdf> a foaf:Document }
+ GRAPH <http://kasei.us/2009/09/sparql/data/data3.rdf> { <http://kasei.us/2009/09/sparql/data/data3.rdf> a foaf:Document }
+} ;
+INSERT {
+ GRAPH <http://example.org/protocol-update-dataset-named-graphs-test/> {
+ ?s a dc:BibliographicResource
}
- WHERE {
- GRAPH ?g {
- ?s a foaf:Document
- }
+}
+WHERE {
+ GRAPH ?g {
+ ?s a foaf:Document
}
-
-#### Response
-
- 2xx or 3xx response
-
-followed by
-
-#### Request
-
- POST /sparql HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Accept: application/sparql-results+xml
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK {
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ [
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """ASK {
+ GRAPH <http://example.org/protocol-update-dataset-named-graphs-test/> {
+ <http://kasei.us/2009/09/sparql/data/data1.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
+ <http://kasei.us/2009/09/sparql/data/data2.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
+ }
+ FILTER NOT EXISTS {
GRAPH <http://example.org/protocol-update-dataset-named-graphs-test/> {
- <http://kasei.us/2009/09/sparql/data/data1.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
- <http://kasei.us/2009/09/sparql/data/data2.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
- }
- FILTER NOT EXISTS {
- GRAPH <http://example.org/protocol-update-dataset-named-graphs-test/> {
- <http://kasei.us/2009/09/sparql/data/data3.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
- }
+ <http://kasei.us/2009/09/sparql/data/data3.rdf> a <http://purl.org/dc/terms/BibliographicResource> .
}
}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_dataset_full rdf:type mf:ProtocolTest ;
- mf:name "update with protocol-specified dataset (both named and default graphs)" ;
- rdfs:comment """
-#### Request
-
- POST /sparql?using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&using-named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update
- Content-Length: XXX
-
- PREFIX dc: <http://purl.org/dc/terms/>
- PREFIX foaf: <http://xmlns.com/foaf/0.1/>
- CLEAR ALL ;
- INSERT DATA {
- GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> { <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document }
- GRAPH <http://kasei.us/2009/09/sparql/data/data2.rdf> { <http://kasei.us/2009/09/sparql/data/data2.rdf> a foaf:Document }
- GRAPH <http://kasei.us/2009/09/sparql/data/data3.rdf> { <http://kasei.us/2009/09/sparql/data/data3.rdf> a foaf:Document }
- } ;
- INSERT {
- GRAPH <http://example.org/protocol-update-dataset-full-test/> {
- ?s <http://example.org/in> ?in
- }
+ mf:name "update with protocol-specified dataset (both named and default graphs)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?using-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata1.rdf&using-named-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata2.rdf" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """PREFIX dc: <http://purl.org/dc/terms/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+DROP ALL ;
+INSERT DATA {
+ GRAPH <http://kasei.us/2009/09/sparql/data/data1.rdf> { <http://kasei.us/2009/09/sparql/data/data1.rdf> a foaf:Document }
+ GRAPH <http://kasei.us/2009/09/sparql/data/data2.rdf> { <http://kasei.us/2009/09/sparql/data/data2.rdf> a foaf:Document }
+ GRAPH <http://kasei.us/2009/09/sparql/data/data3.rdf> { <http://kasei.us/2009/09/sparql/data/data3.rdf> a foaf:Document }
+} ;
+INSERT {
+ GRAPH <http://example.org/protocol-update-dataset-full-test/> {
+ ?s <http://example.org/in> ?in
}
- WHERE {
- {
- GRAPH ?g { ?s a foaf:Document }
- BIND(?g AS ?in)
- }
- UNION
- {
- ?s a foaf:Document .
- BIND("default" AS ?in)
- }
+}
+WHERE {
+ {
+ GRAPH ?g { ?s a foaf:Document }
+ BIND(?g AS ?in)
}
-
-#### Response
-
- 2xx or 3xx response
-
-followed by
-
-#### Request
-
- POST /sparql HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Accept: application/sparql-results+xml
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK {
+ UNION
+ {
+ ?s a foaf:Document .
+ BIND(\"default\" AS ?in)
+ }
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ [
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """ASK {
+ GRAPH <http://example.org/protocol-update-dataset-full-test/> {
+ <http://kasei.us/2009/09/sparql/data/data1.rdf> <http://example.org/in> \"default\" .
+ <http://kasei.us/2009/09/sparql/data/data2.rdf> <http://example.org/in> <http://kasei.us/2009/09/sparql/data/data2.rdf> .
+ }
+ FILTER NOT EXISTS {
GRAPH <http://example.org/protocol-update-dataset-full-test/> {
- <http://kasei.us/2009/09/sparql/data/data1.rdf> <http://example.org/in> "default" .
- <http://kasei.us/2009/09/sparql/data/data2.rdf> <http://example.org/in> <http://kasei.us/2009/09/sparql/data/data2.rdf> .
- }
- FILTER NOT EXISTS {
- GRAPH <http://example.org/protocol-update-dataset-full-test/> {
- <http://kasei.us/2009/09/sparql/data/data3.rdf> ?p ?o
- }
+ <http://kasei.us/2009/09/sparql/data/data3.rdf> ?p ?o
}
}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_post_form rdf:type mf:ProtocolTest ;
- mf:name "update via URL-encoded POST" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/x-www-form-urlencoded
- Content-Length: XXX
-
- update=CLEAR%20ALL
-
-#### Response
-
- 2xx or 3xx response
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "update via URL-encoded POST" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "update=CLEAR+ALL"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/x-www-form-urlencoded"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_post_direct rdf:type mf:ProtocolTest ;
- mf:name "update via POST directly" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update
- Content-Length: XXX
-
- CLEAR ALL
-
-#### Response
-
- 2xx or 3xx response
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "update via POST directly" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "CLEAR ALL"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:update_base_uri rdf:type mf:ProtocolTest ;
- mf:name "test for service-defined BASE URI (\"which MAY be the service endpoint\")" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update
- Content-Length: XXX
-
- CLEAR GRAPH <http://example.org/protocol-base-test/> ;
- INSERT DATA { GRAPH <http://example.org/protocol-base-test/> { <http://example.org/s> <http://example.org/p> <test> } }
-
-#### Response
-
- 2xx or 3xx response
-
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Accept: application/sparql-results+xml
- Content-Length: XXX
-
- SELECT ?o WHERE {
- GRAPH <http://example.org/protocol-base-test/> {
- <http://example.org/s> <http://example.org/p> ?o
- }
+ mf:name "test for service-defined BASE URI (\"which MAY be the service endpoint\")" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """CLEAR SILENT GRAPH <http://example.org/protocol-base-test/> ;
+INSERT DATA { GRAPH <http://example.org/protocol-base-test/> { <http://example.org/s> <http://example.org/p> <test> } }"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ [
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """ASK {
+ GRAPH <http://example.org/protocol-base-test/> {
+ <http://example.org/s> <http://example.org/p> ?o
+ FILTER (isIRI(?o) && STR(?o) != "test")
}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml
-
- one result with `?o` bound to an IRI that is _not_ `<test>`
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:query_post_direct rdf:type mf:ProtocolTest ;
- mf:name "query via POST directly" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query
- Content-Length: XXX
-
- ASK {}
-
-#### Response
-
- 2xx or 3xx response
- Content-Type: application/sparql-results+xml or application/sparql-results+json
-
- true
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "query via POST directly" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK {}"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedBoolean true ;
+ mf:expectedFormat "boolean" ;
+ mf:expectedStatus hts:StatusCode2xx, hts:StatusCode3xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_query_method rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with a method other than GET or POST" ;
- rdfs:comment """
-#### Request
-
- PUT /sparql?query=ASK%20%7B%7D
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with a method other than GET or POST" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?query=ASK%20%7B%7D&default-graph-uri=http%3A%2F%2Fkasei.us%2F2009%2F09%2Fsparql%2Fdata%2Fdata0.rdf" ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/x-www-form-urlencoded"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "PUT" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_multiple_queries rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with more than one query string" ;
- rdfs:comment """
-#### Request
-
- GET /sparql?query=ASK%20%7B%7D&query=SELECT%20%2A%20%7B%7D
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with more than one query string" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?query=ASK%20%7B%7D&query=SELECT%20%2A%20%7B%7D" ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "GET" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_query_wrong_media_type rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with a POST with media type that's not url-encoded or application/sparql-query" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: text/plain
- Content-Length: XXX
-
- ASK {}
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with a POST with media type that's not url-encoded or application/sparql-query" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK {}"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "text/plain"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_query_missing_form_type rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with url-encoded body, but without application/x-www-form-urlencoded media type" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Length: XXX
-
- query=ASK%20%7B%7D
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with url-encoded body, but without application/x-www-form-urlencoded media type" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "query=ASK%20%7B%7D"
+ ] ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_query_missing_direct_type rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with SPARQL body, but without application/sparql-query media type" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Length: XXX
-
- ASK {}
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with SPARQL body, but without application/sparql-query media type" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "ASK {}"
+ ] ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_query_non_utf8 rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with direct POST, but with a non-UTF8 encoding (UTF-16)" ;
- rdfs:comment """
-(content body encoded in utf-16)
-
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-query; charset=UTF-16
- Content-Length: XXX
-
- ASK {}
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with direct POST, but with a non-UTF8 encoding (UTF-16)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-16" ;
+ cnt:chars "ASK {}"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-query; charset=UTF-16"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_query_syntax rdf:type mf:ProtocolTest ;
- mf:name "invoke query operation with invalid query syntax (4XX result)" ;
- rdfs:comment """
-#### Request
-
- GET /sparql?query=ASK%20%7B
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke query operation with invalid query syntax (4XX result)" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?query=ASK%20%7B" ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "GET" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_update_get rdf:type mf:ProtocolTest ;
- mf:name "invoke update operation with GET" ;
- rdfs:comment """
-#### Request
-
- GET /sparql?update=CLEAR%20ALL
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update operation with GET" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?update=CLEAR%20ALL" ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "GET" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_multiple_updates rdf:type mf:ProtocolTest ;
- mf:name "invoke update operation with more than one update string" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/x-www-form-urlencoded
- Content-Length: XXX
-
- update=CLEAR%20NAMED&update=CLEAR%20DEFAULT
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update operation with more than one update string" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "update=CLEAR%20NAMED&update=CLEAR%20DEFAULT"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/x-www-form-urlencoded"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_update_wrong_media_type rdf:type mf:ProtocolTest ;
- mf:name "invoke update operation with a POST with media type that's not url-encoded or application/sparql-update" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: text/plain
- Content-Length: XXX
-
- CLEAR NAMED
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update operation with a POST with media type that's not url-encoded or application/sparql-update" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "CLEAR NAMED"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "text/plain"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_update_missing_form_type rdf:type mf:ProtocolTest ;
- mf:name "invoke update operation with url-encoded body, but without application/x-www-form-urlencoded media type" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Length: XXX
-
- update=CLEAR%20NAMED
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update operation with url-encoded body, but without application/x-www-form-urlencoded media type" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "update=CLEAR%20NAMED"
+ ] ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_update_non_utf8 rdf:type mf:ProtocolTest ;
- mf:name "invoke update operation with direct POST, but with a non-UTF8 encoding" ;
- rdfs:comment """
-(content body encoded in utf-16)
-
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/sparql-update; charset=UTF-16
- Content-Length: XXX
-
- CLEAR NAMED
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update operation with direct POST, but with a non-UTF8 encoding" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-16" ;
+ cnt:chars "CLEAR NAMED"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update; charset=UTF-16"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_update_syntax rdf:type mf:ProtocolTest ;
- mf:name "invoke update operation with invalid update syntax" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/x-www-form-urlencoded
- Content-Length: XXX
-
- update=CLEAR%20XYZ
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update operation with invalid update syntax" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars "update=CLEAR%20XYZ"
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/x-www-form-urlencoded"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
:bad_update_dataset_conflict rdf:type mf:ProtocolTest ;
- mf:name "invoke update with both using-graph-uri/using-named-graph-uri parameter and USING/WITH clause" ;
- rdfs:comment """
-#### Request
-
- POST /sparql/ HTTP/1.1
- Host: www.example
- User-agent: sparql-client/0.1
- Content-Type: application/x-www-form-urlencoded
- Content-Length: XXX
-
- using-named-graph-uri=http%3A%2F%2Fexample%2Fpeople&update=%09%09PREFIX%20foaf%3A%20%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0A%09%09WITH%20%3Chttp%3A%2F%2Fexample%2Faddresses%3E%0A%09%09DELETE%20%7B%20%3Fperson%20foaf%3AgivenName%20%27Bill%27%20%7D%0A%09%09INSERT%20%7B%20%3Fperson%20foaf%3AgivenName%20%27William%27%20%7D%0A%09%09WHERE%20%7B%0A%09%09%09%3Fperson%20foaf%3AgivenName%20%27Bill%27%0A%09%09%7D%0A
-
-#### Response
-
- 4xx
- """ ;
- dawgt:approval dawgt:Approved ;
- dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
- .
+ mf:name "invoke update with both using-graph-uri/using-named-graph-uri parameter and USING/WITH clause" ;
+ mf:action [
+ a ht:Connection ;
+ ht:connectionAuthority "www.example" ;
+ ht:requests ([
+ a ht:Request ;
+ ht:absolutePath "/sparql/?using-named-graph-uri=http%3A%2F%2Fexample%2Fpeople" ;
+ ht:body [
+ a cnt:ContentAsText ;
+ cnt:characterEncoding "UTF-8" ;
+ cnt:chars """PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+WITH <http://example/addresses>
+DELETE { ?person foaf:givenName 'Bill' }
+INSERT { ?person foaf:givenName 'William' }
+WHERE {
+ ?person foaf:givenName 'Bill'
+}"""
+ ] ;
+ ht:headers ([
+ a ht:RequestHeader ;
+ ht:fieldName "content-type" ;
+ ht:fieldValue "application/sparql-update"
+ ]
+ ) ;
+ ht:httpVersion "1.1" ;
+ ht:methodName "POST" ;
+ ht:resp [
+ a ht:Response ;
+ mf:expectedStatus hts:StatusCode4xx
+ ]
+ ]
+ )
+ ] ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3> ;
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/codepoint-escapes/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/codepoint-escapes/manifest.ttl
index 3f0e074685..66e4acc99c 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/codepoint-escapes/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/codepoint-escapes/manifest.ttl
@@ -1,11 +1,11 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix : <https://w3c.github.io/rdf-tests/sparql/sparql12/codepoint-escapes#> .
+@prefix : <https://w3c.github.io/rdf-tests/sparql/sparql12/codepoint-escapes/manifest#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
@prefix dawgt: <http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#> .
-:manifest rdf:type mf:Manifest ;
+<> rdf:type mf:Manifest ;
rdfs:label "SPARQL Codepoint-Escaping Tests" ;
mf:entries
(
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-7.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-7.rq
new file mode 100644
index 0000000000..23bba32d45
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-7.rq
@@ -0,0 +1,5 @@
+PREFIX : <http://example/>
+
+SELECT * {
+ :a :b :c {| ?p ?o |}
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-7.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-7.srj
new file mode 100644
index 0000000000..91448a27cf
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-7.srj
@@ -0,0 +1,45 @@
+{
+ "head": {
+ "vars": [
+ "o",
+ "p"
+ ]
+ },
+ "results": {
+ "bindings": [
+ {
+ "o": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "p": {
+ "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies",
+ "type": "uri"
+ }
+ },
+ {
+ "o": {
+ "value": "http://example/z",
+ "type": "uri"
+ },
+ "p": {
+ "value": "http://example/q",
+ "type": "uri"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-8.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-8.rq
new file mode 100644
index 0000000000..728bec75b2
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-8.rq
@@ -0,0 +1,11 @@
+PREFIX : <http://example/>
+
+SELECT ?s WHERE {
+ VALUES ?o {
+ <<( :s :p "o" )>>
+ <<( :s :p 1 )>>
+ <<( :s :p true )>>
+ <<( :s :p <<( :st :pt :ot )>> )>>
+ }
+ ?s :p ?o .
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-8.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-8.srj
new file mode 100644
index 0000000000..ecfc91ca95
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-8.srj
@@ -0,0 +1,20 @@
+{ "head": {
+ "vars": [ "s" ]
+ } ,
+ "results": {
+ "bindings": [
+ {
+ "s": { "type": "uri" , "value": "http://example/s1" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s2" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s3" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s4" }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-9.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-9.rq
new file mode 100644
index 0000000000..5bcd61c163
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-9.rq
@@ -0,0 +1,6 @@
+PREFIX : <http://example/>
+
+SELECT ?s WHERE {
+ ?s :p ?o .
+ FILTER (?o IN (<<( :s :p "o" )>>, <<( :s :p 1 )>>, <<( :s :p true )>>, <<( :s :p <<( :st :pt :ot )>> )>>))
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-9.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-9.srj
new file mode 100644
index 0000000000..ecfc91ca95
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/basic-9.srj
@@ -0,0 +1,20 @@
+{ "head": {
+ "vars": [ "s" ]
+ } ,
+ "results": {
+ "bindings": [
+ {
+ "s": { "type": "uri" , "value": "http://example/s1" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s2" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s3" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s4" }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-10.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-10.ttl
new file mode 100644
index 0000000000..c4f099f72f
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-10.ttl
@@ -0,0 +1,7 @@
+PREFIX : <http://example/>
+
+:s0 :p <<( :s :p :o )>> .
+:s1 :p <<( :s :p "o" )>> .
+:s2 :p <<( :s :p 1 )>> .
+:s3 :p <<( :s :p true )>> .
+:s4 :p <<( :s :p <<( :st :pt :ot )>> )>> .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-8.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-8.ttl
new file mode 100644
index 0000000000..d7f05a2dc0
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-8.ttl
@@ -0,0 +1,3 @@
+PREFIX : <http://example/>
+
+:a :b :c {| :q :z |} .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-9.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-9.ttl
new file mode 100644
index 0000000000..7343a1e9ed
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/data-9.ttl
@@ -0,0 +1,8 @@
+PREFIX : <http://example/>
+
+<<:s0 :p :o>> :q :z .
+<<:s1 :p "o">> :q :z .
+<<:s2 :p 1>> :q :z .
+<<:s3 :p true>> :q :z .
+<<:s4 :p <<( :s2 :p2 :o2 )>> >> :q :z .
+<<:s5 :p << :s2 :p2 :o2 >> >> :q :z .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/manifest.ttl
index 99adadd71c..fce7a23145 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/manifest.ttl
@@ -21,6 +21,9 @@
:basic-4
:basic-5
:basic-6
+ :basic-7
+ :basic-8
+ :basic-9
:pattern-1
:pattern-2
@@ -33,6 +36,8 @@
:pattern-8
:pattern-8-nomatch
:pattern-9
+ :pattern-10
+ :pattern-11
:construct-1
:construct-2
@@ -48,8 +53,6 @@
:op-1
:op-2
- :op-3
- :op-4
:order-1
:order-2
@@ -149,6 +152,32 @@
mf:result <basic-6.srj>
.
+:basic-7 rdf:type mf:QueryEvaluationTest ;
+ dawgt:approval dawgt:Proposed ;
+ mf:name "Annotated triple - match constant reified triple" ;
+ mf:action [
+ qt:query <basic-7.rq> ;
+ qt:data <data-8.ttl>
+ ] ;
+ mf:result <basic-7.srj>
+ .
+
+:basic-8 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Triple terms - in VALUES" ;
+ mf:action
+ [ qt:query <basic-8.rq> ;
+ qt:data <data-10.ttl> ] ;
+ mf:result <basic-8.srj>
+ .
+
+:basic-9 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Triple terms - in expressions and equality" ;
+ mf:action
+ [ qt:query <basic-9.rq> ;
+ qt:data <data-10.ttl> ] ;
+ mf:result <basic-9.srj>
+ .
+
:pattern-1 rdf:type mf:QueryEvaluationTest ;
dawgt:approval dawgt:Proposed ;
mf:name "Reified triples - Asserted and reified triple" ;
@@ -248,6 +277,22 @@
mf:result <pattern-09.srj>
.
+:pattern-10 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Reified triples - Pattern - literals or triple terms" ;
+ mf:action
+ [ qt:query <pattern-10.rq> ;
+ qt:data <data-9.ttl> ] ;
+ mf:result <pattern-10.srj>
+ .
+
+:pattern-11 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Triple terms - Pattern - literals or triple terms" ;
+ mf:action
+ [ qt:query <pattern-11.rq> ;
+ qt:data <data-10.ttl> ] ;
+ mf:result <pattern-11.srj>
+ .
+
## CONSTRUCT
:construct-1 rdf:type mf:QueryEvaluationTest ;
@@ -353,24 +398,6 @@
mf:result <op-2.srj> ;
.
-:op-3 rdf:type mf:QueryEvaluationTest ;
- dawgt:approval dawgt:Proposed ;
- mf:name "Reified triples - Embedded triple - value-inequality" ;
- mf:action
- [ qt:query <op-3.rq> ;
- qt:data <data-7.ttl> ] ;
- mf:result <op-3.srj> ;
- .
-
-:op-4 rdf:type mf:QueryEvaluationTest ;
- dawgt:approval dawgt:Proposed ;
- mf:name "Reified triples - Embedded triple - value-inequality" ;
- mf:action
- [ qt:query <op-4.rq> ;
- qt:data <data-7.ttl> ] ;
- mf:result <op-4.srj> ;
- .
-
## ORDER BY
## These use the same query on different data.
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-3.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-3.rq
deleted file mode 100644
index cf15586b72..0000000000
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-3.rq
+++ /dev/null
@@ -1,8 +0,0 @@
-PREFIX : <http://example/>
-
-SELECT * {
- ?x :left ?left .
- ?x :right ?right .
- FILTER ( ?left < ?right )
- FILTER ( ?right > ?left )
-}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-3.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-3.srj
deleted file mode 100644
index ea87953b8b..0000000000
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-3.srj
+++ /dev/null
@@ -1,27 +0,0 @@
-{ "head": {
- "vars": [ "x" , "left" , "right" ]
- } ,
- "results": {
- "bindings": [
- {
- "x": { "type": "uri" , "value": "http://example/x7" } ,
- "left": {
- "type": "triple" ,
- "value": {
- "subject": { "type": "uri" , "value": "http://example/a" } ,
- "predicate": { "type": "uri" , "value": "http://example/b" } ,
- "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "value": "9" }
- }
- } ,
- "right": {
- "type": "triple" ,
- "value": {
- "subject": { "type": "uri" , "value": "http://example/a" } ,
- "predicate": { "type": "uri" , "value": "http://example/b" } ,
- "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "value": "123" }
- }
- }
- }
- ]
- }
-}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-4.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-4.rq
deleted file mode 100644
index 9b091c1d09..0000000000
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-4.rq
+++ /dev/null
@@ -1,8 +0,0 @@
-PREFIX : <http://example/>
-
-SELECT * {
- ?x :left ?left .
- ?x :right ?right .
- FILTER ( ?left <= ?right )
- FILTER ( ?right >= ?left )
-}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-4.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-4.srj
deleted file mode 100644
index 62abe3575f..0000000000
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/op-4.srj
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "head": {
- "vars": [
- "left",
- "right",
- "x"
- ]
- },
- "results": {
- "bindings": [
- {
- "x": {
- "value": "http://example/x1",
- "type": "uri"
- },
- "left": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- },
- "right": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123.0",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#decimal"
- }
- },
- "type": "triple"
- }
- },
- {
- "x": {
- "value": "http://example/x2",
- "type": "uri"
- },
- "left": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- },
- "right": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- }
- },
- {
- "x": {
- "value": "http://example/x7",
- "type": "uri"
- },
- "left": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "9",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- },
- "right": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- }
- },
- {
- "x": {
- "value": "http://example/x3",
- "type": "uri"
- },
- "left": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/q",
- "type": "uri"
- },
- "object": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- }
- },
- "type": "triple"
- },
- "right": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/q",
- "type": "uri"
- },
- "object": {
- "value": {
- "subject": {
- "value": "http://example/a",
- "type": "uri"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123.0",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#decimal"
- }
- },
- "type": "triple"
- }
- },
- "type": "triple"
- }
- },
- {
- "x": {
- "value": "http://example/x5",
- "type": "uri"
- },
- "left": {
- "value": {
- "subject": {
- "value": "bc_0_b0_bnode1",
- "type": "bnode"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- },
- "right": {
- "value": {
- "subject": {
- "value": "bc_0_b0_bnode1",
- "type": "bnode"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- }
- },
- {
- "x": {
- "value": "http://example/x6",
- "type": "uri"
- },
- "left": {
- "value": {
- "subject": {
- "value": "bc_0_b0_bnode2",
- "type": "bnode"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123e0",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#double"
- }
- },
- "type": "triple"
- },
- "right": {
- "value": {
- "subject": {
- "value": "bc_0_b0_bnode2",
- "type": "bnode"
- },
- "predicate": {
- "value": "http://example/b",
- "type": "uri"
- },
- "object": {
- "value": "123",
- "type": "literal",
- "datatype": "http://www.w3.org/2001/XMLSchema#integer"
- }
- },
- "type": "triple"
- }
- },
- {
- "x": {
- "value": "http://example/x9",
- "type": "uri"
- },
- "left": {
- "value": "http://example/irireifier",
- "type": "uri"
- },
- "right": {
- "value": "http://example/irireifier",
- "type": "uri"
- }
- },
- {
- "x": {
- "value": "http://example/x10",
- "type": "uri"
- },
- "left": {
- "value": "bc_0_b0_bnodereifier",
- "type": "bnode"
- },
- "right": {
- "value": "bc_0_b0_bnodereifier",
- "type": "bnode"
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-10.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-10.rq
new file mode 100644
index 0000000000..90007a9d88
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-10.rq
@@ -0,0 +1,13 @@
+PREFIX : <http://example/>
+
+SELECT DISTINCT ?s WHERE {
+ { <<?s ?p "o">> ?p2 ?z }
+ UNION
+ { <<?s ?p 1>> ?p2 ?z }
+ UNION
+ { <<?s ?p true>> ?p2 ?z }
+ UNION
+ { <<?s ?p << ?st ?pt ?ot >> >> ?p2 ?z }
+ UNION
+ { <<?s ?p <<( ?st ?pt ?ot )>> >> ?p2 ?z }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-10.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-10.srj
new file mode 100644
index 0000000000..f1ac7f6f5b
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-10.srj
@@ -0,0 +1,23 @@
+{ "head": {
+ "vars": [ "s" ]
+ } ,
+ "results": {
+ "bindings": [
+ {
+ "s": { "type": "uri" , "value": "http://example/s1" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s2" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s3" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s4" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s5" }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-11.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-11.rq
new file mode 100644
index 0000000000..7b07fcb0a7
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-11.rq
@@ -0,0 +1,11 @@
+PREFIX : <http://example/>
+
+SELECT ?s WHERE {
+ { ?s ?p <<( ?st ?pt "o" )>> }
+ UNION
+ { ?s ?p <<( ?st ?pt 1 )>> }
+ UNION
+ { ?s ?p <<( ?st ?pt true )>> }
+ UNION
+ { ?s ?p <<( ?st ?pt <<( ?st2 ?pt2 ?ot2 )>> )>> }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-11.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-11.srj
new file mode 100644
index 0000000000..ecfc91ca95
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/eval-triple-terms/pattern-11.srj
@@ -0,0 +1,20 @@
+{ "head": {
+ "vars": [ "s" ]
+ } ,
+ "results": {
+ "bindings": [
+ {
+ "s": { "type": "uri" , "value": "http://example/s1" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s2" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s3" }
+ },
+ {
+ "s": { "type": "uri" , "value": "http://example/s4" }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/manifest.ttl
index 43837f86d5..6f257b4372 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/manifest.ttl
@@ -1,15 +1,19 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix : <https://w3c.github.io/rdf-tests/sparql/sparql12/grouping#> .
+@prefix : <https://w3c.github.io/rdf-tests/sparql/sparql12/expression/manifest#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
@prefix dawgt: <http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#> .
-:manifest rdf:type mf:Manifest ;
+<> rdf:type mf:Manifest ;
rdfs:label "Expression" ;
mf:entries
- (
+ (
:not-not
+ :triple-on-literals
+ :triple-on-str-literals
+ :triple-on-triple-terms
+ :triple-on-undefs
) .
@@ -21,3 +25,39 @@
[ qt:query <not-not.rq> ] ;
mf:result <not-not.srx>
.
+
+:triple-on-literals rdf:type mf:QueryEvaluationTest ;
+ mf:name "triple on literals";
+ rdfs:comment "Evaluation of TRIPLE builtin on literals" ;
+ dawgt:approval dawgt:Proposed ;
+ mf:action
+ [ qt:query <triple-on-literals.rq> ] ;
+ mf:result <triple-on-literals.srj>
+ .
+
+:triple-on-str-literals rdf:type mf:QueryEvaluationTest ;
+ mf:name "triple on string literals";
+ rdfs:comment "Evaluation of TRIPLE builtin on string literals" ;
+ dawgt:approval dawgt:Proposed ;
+ mf:action
+ [ qt:query <triple-on-str-literals.rq> ] ;
+ mf:result <triple-on-str-literals.srj>
+ .
+
+:triple-on-triple-terms rdf:type mf:QueryEvaluationTest ;
+ mf:name "triple on triple terms";
+ rdfs:comment "Evaluation of TRIPLE builtin on triple terms" ;
+ dawgt:approval dawgt:Proposed ;
+ mf:action
+ [ qt:query <triple-on-triple-terms.rq> ] ;
+ mf:result <triple-on-triple-terms.srj>
+ .
+
+:triple-on-undefs rdf:type mf:QueryEvaluationTest ;
+ mf:name "triple on undefs";
+ rdfs:comment "Evaluation of TRIPLE builtin on UNDEFs" ;
+ dawgt:approval dawgt:Proposed ;
+ mf:action
+ [ qt:query <triple-on-undefs.rq> ] ;
+ mf:result <triple-on-undefs.srj>
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-literals.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-literals.rq
new file mode 100644
index 0000000000..75e27c5ef7
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-literals.rq
@@ -0,0 +1,18 @@
+PREFIX : <http://example/>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+
+SELECT ?subject ?predicate ?object ?triple {
+ VALUES (?subject ?predicate ?object) {
+ (:a :b :c)
+ (true :b :c)
+ (:a true :c)
+ (:a :b true)
+ (1 :b :c)
+ (:a 2 :c)
+ (:a :b 3)
+ ("a"^^:type :b :c)
+ (:a "b"^^:type :c)
+ (:a :b "c"^^:type)
+ }
+ BIND(TRIPLE(?subject, ?predicate, ?object) AS ?triple)
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-literals.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-literals.srj
new file mode 100644
index 0000000000..fd80d6dfa9
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-literals.srj
@@ -0,0 +1,234 @@
+{
+ "head": {
+ "vars": [
+ "subject",
+ "predicate",
+ "object",
+ "triple"
+ ]
+ },
+ "results": {
+ "bindings": [
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": "true",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#boolean"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "true",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#boolean"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "true",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#boolean"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "true",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#boolean"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": "1",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#integer"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "2",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#integer"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "3",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#integer"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "3",
+ "type": "literal",
+ "datatype": "http://www.w3.org/2001/XMLSchema#integer"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": "a",
+ "type": "literal",
+ "datatype": "http://example/type"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "b",
+ "type": "literal",
+ "datatype": "http://example/type"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal",
+ "datatype": "http://example/type"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal",
+ "datatype": "http://example/type"
+ }
+ },
+ "type": "triple"
+ }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-str-literals.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-str-literals.rq
new file mode 100644
index 0000000000..c43743f847
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-str-literals.rq
@@ -0,0 +1,18 @@
+PREFIX : <http://example/>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+
+SELECT ?subject ?predicate ?object ?triple {
+ VALUES (?subject ?predicate ?object) {
+ (:a :b :c)
+ ("a" :b :c)
+ (:a "b" :c)
+ (:a :b "c")
+ ("a"@nl :b :c)
+ (:a "b"@nl :c)
+ (:a :b "c"@nl)
+ ("a"@nl--ltr :b :c)
+ (:a "b"@nl--ltr :c)
+ (:a :b "c"@nl--ltr)
+ }
+ BIND(TRIPLE(?subject, ?predicate, ?object) AS ?triple)
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-str-literals.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-str-literals.srj
new file mode 100644
index 0000000000..c73552f1da
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-str-literals.srj
@@ -0,0 +1,234 @@
+{
+ "head": {
+ "vars": [
+ "subject",
+ "predicate",
+ "object",
+ "triple"
+ ]
+ },
+ "results": {
+ "bindings": [
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": "a",
+ "type": "literal"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "b",
+ "type": "literal"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": "a",
+ "type": "literal",
+ "xml:lang": "nl"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "b",
+ "type": "literal",
+ "xml:lang": "nl"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal",
+ "xml:lang": "nl"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal",
+ "xml:lang": "nl"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": "a",
+ "type": "literal",
+ "xml:lang": "nl",
+ "its:dir": "ltr"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "b",
+ "type": "literal",
+ "xml:lang": "nl",
+ "its:dir": "ltr"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal",
+ "xml:lang": "nl",
+ "its:dir": "ltr"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "c",
+ "type": "literal",
+ "xml:lang": "nl",
+ "its:dir": "ltr"
+ }
+ },
+ "type": "triple"
+ }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-triple-terms.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-triple-terms.rq
new file mode 100644
index 0000000000..b485cb8ace
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-triple-terms.rq
@@ -0,0 +1,15 @@
+PREFIX : <http://example/>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+
+SELECT ?subject ?predicate ?object ?triple {
+ VALUES (?subject ?predicate ?object) {
+ (:a :b :c)
+ (<<(:x :y :z)>> :b :c)
+ (:a <<(:x :y :z)>> :c)
+ (:a :b <<(:x :y :z)>>)
+ (<<(:x a :z)>> :b :c)
+ (:a <<(:x a :z)>> :c)
+ (:a :b <<(:x a :z)>>)
+ }
+ BIND(TRIPLE(?subject, ?predicate, ?object) AS ?triple)
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-triple-terms.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-triple-terms.srj
new file mode 100644
index 0000000000..030d9db9a7
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-triple-terms.srj
@@ -0,0 +1,267 @@
+{
+ "head": {
+ "vars": [
+ "subject",
+ "predicate",
+ "object",
+ "triple"
+ ]
+ },
+ "results": {
+ "bindings": [
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/y",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/y",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/y",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/y",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "subject": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": {
+ "subject": {
+ "value": "http://example/x",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/z",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ "type": "triple"
+ }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-undefs.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-undefs.rq
new file mode 100644
index 0000000000..e3c446a0da
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-undefs.rq
@@ -0,0 +1,12 @@
+PREFIX : <http://example/>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+
+SELECT ?subject ?predicate ?object ?triple {
+ VALUES (?subject ?predicate ?object) {
+ (:a :b :c)
+ (UNDEF :b :c)
+ (:a UNDEF :c)
+ (:a :b UNDEF)
+ }
+ BIND(TRIPLE(?subject, ?predicate, ?object) AS ?triple)
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-undefs.srj b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-undefs.srj
new file mode 100644
index 0000000000..c1ba1b6065
--- /dev/null
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/expression/triple-on-undefs.srj
@@ -0,0 +1,75 @@
+{
+ "head": {
+ "vars": [
+ "subject",
+ "predicate",
+ "object",
+ "triple"
+ ]
+ },
+ "results": {
+ "bindings": [
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ },
+ "triple": {
+ "value": {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ "type": "triple"
+ }
+ },
+ {
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "object": {
+ "value": "http://example/c",
+ "type": "uri"
+ }
+ },
+ {
+ "subject": {
+ "value": "http://example/a",
+ "type": "uri"
+ },
+ "predicate": {
+ "value": "http://example/b",
+ "type": "uri"
+ }
+ }
+ ]
+ }
+}
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/grouping/manifest.ttl b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/grouping/manifest.ttl
index 71ba5771dd..c735171e63 100644
--- a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/grouping/manifest.ttl
+++ b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/grouping/manifest.ttl
@@ -1,15 +1,16 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix : <https://w3c.github.io/rdf-tests/sparql/sparql12/grouping#> .
+@prefix : <https://w3c.github.io/rdf-tests/sparql/sparql12/grouping/manifest#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
@prefix dawgt: <http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#> .
-:manifest rdf:type mf:Manifest ;
+<> rdf:type mf:Manifest ;
rdfs:label "Grouping" ;
mf:entries
(
:group01
+ :select-variable-reuse
) .
@@ -23,3 +24,10 @@
mf:result <group01.srx> ;
mf:requires mf:NoCanonicalizationOfNumerics
.
+
+:select-variable-reuse rdf:type mf:QueryEvaluationTest ;
+ mf:name "Reuse of SELECT variable in an aggregating query";
+ mf:action
+ [ qt:query <select-variable-reuse.rq> ] ;
+ mf:result <select-variable-reuse.srx>
+ .
diff --git a/jena-arq/testing/rdf-tests-cg/sparql/sparql12/grouping/select-variable-reuse.rq b/jena-arq/testing/rdf-tests-cg/sparql/sparql12/grouping/select-variable-reuse.rq
new file mode 100644
... 4225 lines suppressed ...