summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-12-19 11:18:13 +0100
committerCarlos Garnacho <carlosg@gnome.org>2022-12-20 23:44:52 +0100
commitb1443508c9115babe664cdc83fc99ebff3c1e1db (patch)
tree6497a016727c6a9a52a7157472dc75dcc8ebb08e /tests
parent5aced14eb4080925037cf9fffec127119207a0d5 (diff)
downloadtracker-b1443508c9115babe664cdc83fc99ebff3c1e1db.tar.gz
core: Fix isBlank() SPARQL function
This function should return true/false, as per https://www.w3.org/TR/sparql11-query/#func-isBlank, we were returning true/unbound. This is a partial fix though, as "SELECT isBlank(?o) { ?s ?p ?o }" would still return an unbound value for non-literal properties.
Diffstat (limited to 'tests')
-rw-r--r--tests/core/functions/functions-datatypes-1.out26
-rw-r--r--tests/core/functions/functions-datatypes-2.out8
-rw-r--r--tests/core/functions/functions-datatypes-3.out24
-rw-r--r--tests/core/functions/functions-datatypes-4.out64
4 files changed, 61 insertions, 61 deletions
diff --git a/tests/core/functions/functions-datatypes-1.out b/tests/core/functions/functions-datatypes-1.out
index b10f3540c..b35e5f901 100644
--- a/tests/core/functions/functions-datatypes-1.out
+++ b/tests/core/functions/functions-datatypes-1.out
@@ -1,27 +1,27 @@
-"http://example/e" "http://example/s" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/e" "http://example/s" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/e" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/e" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/q" "http://example/s" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/q" "http://example/t" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/q" "http://example/s" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/q" "http://example/t" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/q" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/q" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/r" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/r" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/w" "http://example/s" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/w" "http://example/t" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/w" "http://example/s" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/w" "http://example/t" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/w" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/w" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/x" "http://example/s" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/x" "http://example/t" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/x" "http://example/u" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/x" "http://example/s" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/x" "http://example/t" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/x" "http://example/u" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/y" "http://example/s" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/y" "http://example/t" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/y" "http://example/s" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/y" "http://example/t" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/z" "http://example/s" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/z" "http://example/t" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/z" "http://example/u" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/z" "http://example/s" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/z" "http://example/t" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/z" "http://example/u" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
diff --git a/tests/core/functions/functions-datatypes-2.out b/tests/core/functions/functions-datatypes-2.out
index 8075bd9e2..4f57b8253 100644
--- a/tests/core/functions/functions-datatypes-2.out
+++ b/tests/core/functions/functions-datatypes-2.out
@@ -1,10 +1,10 @@
-"http://example/x" "http://example/filename" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/x" "http://example/title" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/x" "http://example/filename" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/x" "http://example/title" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/y" "http://example/filename" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/y" "http://example/filename" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/z" "http://example/filename" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/z" "http://example/filename" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
diff --git a/tests/core/functions/functions-datatypes-3.out b/tests/core/functions/functions-datatypes-3.out
index 11d758678..177c5feac 100644
--- a/tests/core/functions/functions-datatypes-3.out
+++ b/tests/core/functions/functions-datatypes-3.out
@@ -1,20 +1,20 @@
-"http://example/c" "http://example/latitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/c" "http://example/longitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/c" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/c" "http://example/latitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/c" "http://example/longitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/c" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/c" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/c" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/x" "http://example/latitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/x" "http://example/longitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/x" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/x" "http://example/latitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/x" "http://example/longitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/x" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/y" "http://example/latitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/y" "http://example/longitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/y" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/y" "http://example/latitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/y" "http://example/longitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/y" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/z" "http://example/latitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/z" "http://example/longitude" "true" "false" "false" "true" "http://www.w3.org/2001/XMLSchema#double"
-"http://example/z" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/z" "http://example/latitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/z" "http://example/longitude" "true" "false" "false" "true" "false" "http://www.w3.org/2001/XMLSchema#double"
+"http://example/z" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
diff --git a/tests/core/functions/functions-datatypes-4.out b/tests/core/functions/functions-datatypes-4.out
index 761d9bb4b..8bc02502a 100644
--- a/tests/core/functions/functions-datatypes-4.out
+++ b/tests/core/functions/functions-datatypes-4.out
@@ -1,52 +1,52 @@
-"http://example/p1" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p1" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p1" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p1" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p1" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p1" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p1" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p1" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p10" "http://example/description" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p10" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p10" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p10" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p10" "http://example/description" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p10" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p10" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p10" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p10" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p10" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p2" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p2" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p2" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p2" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p2" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p2" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p2" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p2" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p3" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p3" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p3" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p3" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p3" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p3" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p3" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p3" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p4" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p4" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p4" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p4" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p4" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p4" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p4" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p4" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p5" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p5" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p5" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p5" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p5" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p5" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p5" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p5" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p6" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p6" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p6" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p6" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p6" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p6" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p6" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p6" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p7" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p7" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p7" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p7" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p7" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p7" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p7" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p7" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p8" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p8" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p8" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p8" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p8" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p8" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p8" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p8" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
-"http://example/p9" "http://example/description" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p9" "http://example/familyName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p9" "http://example/givenName" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
-"http://example/p9" "http://example/name" "true" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p9" "http://example/description" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p9" "http://example/familyName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p9" "http://example/givenName" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
+"http://example/p9" "http://example/name" "true" "false" "false" "false" "false" "http://www.w3.org/2001/XMLSchema#string"
"http://example/p9" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"
"http://example/p9" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false"