[tracker/wip/carlosg/sparql1.1: 123/145] tests: Use single group explicitly in property paths test data
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/sparql1.1: 123/145] tests: Use single group explicitly in property paths test data
- Date: Thu, 18 Jul 2019 22:34:22 +0000 (UTC)
commit c486321809fbeb8b0b048cc69e8e10435bec1543
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 9 14:55:34 2019 +0200
tests: Use single group explicitly in property paths test data
TrackerDataManager used to coalesce blank nodes that contained the same
data within the same transaction. And some property path tests relied
on these implications.
This broke since we no longer coalesce those (as blank nodes cannot be
related to each other like that).
Use named bnode, so this singleness is made explicit, and
property-paths/mixed-recursive-and-alternative-2 is happy again.
tests/libtracker-data/property-paths/data.ttl | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-data/property-paths/data.ttl b/tests/libtracker-data/property-paths/data.ttl
index 5088a80d3..6eedc6b3d 100644
--- a/tests/libtracker-data/property-paths/data.ttl
+++ b/tests/libtracker-data/property-paths/data.ttl
@@ -2,12 +2,17 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+_:group
+ rdf:type foaf:Group ;
+ foaf:name "Foo"
+ .
+
_:alice
rdf:type foaf:Person ;
foaf:name "Alice" ;
foaf:mbox <mailto:alice@work> ;
foaf:knows _:bob ;
- foaf:member [ a foaf:Group ; foaf:name "Foo" ] ;
+ foaf:member _:group ;
.
_:bob
@@ -16,7 +21,7 @@ _:bob
foaf:knows _:alice ;
foaf:mbox <mailto:bob@work> ;
foaf:mbox <mailto:bob@home> ;
- foaf:member [ a foaf:Group ; foaf:name "Foo" ] ;
+ foaf:member _:group ;
.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]