diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-12-19 12:14:27 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2022-12-20 23:44:52 +0100 |
commit | 186919fc202b18c1d1262c357ce9233f87b04079 (patch) | |
tree | 32317ba312b658e6c4a5d549bcd12667aff0c314 /tests | |
parent | b3717fbce317b8e5398d6c72e0412a4fc70a862b (diff) | |
download | tracker-186919fc202b18c1d1262c357ce9233f87b04079.tar.gz |
core: Use raw object value when querying for unrestricted predicates
Avoid the string conversion performed by the tracker_triples table,
and rely on the additional object type hints we get along with it.
This coincidentally also fixes isBlank() for these objects, when the
type is a non-literal (e.g. a link to a rdfs:Resource).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/functions/functions-datatypes-1.out | 28 | ||||
-rw-r--r-- | tests/core/functions/functions-datatypes-2.out | 12 | ||||
-rw-r--r-- | tests/core/functions/functions-datatypes-3.out | 16 | ||||
-rw-r--r-- | tests/core/functions/functions-datatypes-4.out | 40 |
4 files changed, 48 insertions, 48 deletions
diff --git a/tests/core/functions/functions-datatypes-1.out b/tests/core/functions/functions-datatypes-1.out index b35e5f901..be09ab9b7 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" "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/e" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/e" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/q" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/q" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/r" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/r" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/w" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/w" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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" +"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" diff --git a/tests/core/functions/functions-datatypes-2.out b/tests/core/functions/functions-datatypes-2.out index 4f57b8253..7e63c071c 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" "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/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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" +"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" diff --git a/tests/core/functions/functions-datatypes-3.out b/tests/core/functions/functions-datatypes-3.out index 177c5feac..8a8e9b564 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" "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/c" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/c" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/x" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/y" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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" +"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/z" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" diff --git a/tests/core/functions/functions-datatypes-4.out b/tests/core/functions/functions-datatypes-4.out index 8bc02502a..4695c119f 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" "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/p1" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p1" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p10" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p10" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p2" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p2" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p3" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p3" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p4" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p4" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p5" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p5" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p6" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p6" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p7" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p7" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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/p8" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p8" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" "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" +"http://example/p9" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" +"http://example/p9" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "false" "true" "true" "false" "false" |