[tracker/parser] libtracker-data: Add algebra/var-scope-join-1 test
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/parser] libtracker-data: Add algebra/var-scope-join-1 test
- Date: Fri, 14 Aug 2009 10:05:27 +0000 (UTC)
commit a3c14bc0f7e73f5014a3162444b22574abb3d4c1
Author: Jürg Billeter <j bitron ch>
Date: Fri Aug 14 12:04:11 2009 +0200
libtracker-data: Add algebra/var-scope-join-1 test
.../algebra/var-scope-join-1.ontology | 28 ++++++++++++++++++++
tests/libtracker-data/algebra/var-scope-join-1.rq | 8 +++++
tests/libtracker-data/algebra/var-scope-join-1.ttl | 20 ++++++++++++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
4 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/algebra/var-scope-join-1.ontology b/tests/libtracker-data/algebra/var-scope-join-1.ontology
new file mode 100644
index 0000000..84864e3
--- /dev/null
+++ b/tests/libtracker-data/algebra/var-scope-join-1.ontology
@@ -0,0 +1,28 @@
+ prefix example: <http://example/> .
+ prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+ prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+ prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
+ prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+example: a tracker:Namespace ;
+ tracker:prefix "example" .
+
+example:A a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+example:name a rdf:Property ;
+ rdfs:domain example:A ;
+ rdfs:range xsd:string .
+
+example:phone a rdf:Property ;
+ rdfs:domain example:A ;
+ rdfs:range xsd:string .
+
+example:email a rdf:Property ;
+ rdfs:domain example:A ;
+ rdfs:range xsd:string .
+
+example:webPage a rdf:Property ;
+ rdfs:domain example:A ;
+ rdfs:range xsd:string .
+
diff --git a/tests/libtracker-data/algebra/var-scope-join-1.out b/tests/libtracker-data/algebra/var-scope-join-1.out
new file mode 100644
index 0000000..e69de29
diff --git a/tests/libtracker-data/algebra/var-scope-join-1.rq b/tests/libtracker-data/algebra/var-scope-join-1.rq
new file mode 100644
index 0000000..fa856a4
--- /dev/null
+++ b/tests/libtracker-data/algebra/var-scope-join-1.rq
@@ -0,0 +1,8 @@
+PREFIX : <http://example/>
+
+SELECT *
+{
+ ?X :name "paul"
+ {?Y :name "george" . OPTIONAL { ?X :email ?Z } }
+}
+
diff --git a/tests/libtracker-data/algebra/var-scope-join-1.ttl b/tests/libtracker-data/algebra/var-scope-join-1.ttl
new file mode 100644
index 0000000..1b27711
--- /dev/null
+++ b/tests/libtracker-data/algebra/var-scope-join-1.ttl
@@ -0,0 +1,20 @@
+ prefix : <http://example/> .
+
+_:B1 a _:A .
+_:B2 a _:A .
+_:B3 a _:A .
+_:B4 a _:A .
+
+_:B1 :name "paul" .
+_:B1 :phone "777-3426".
+
+_:B2 :name "john" .
+_:B2 :email <mailto:john acd edu> .
+
+_:B3 :name "george".
+_:B3 :webPage <http://www.george.edu/> .
+
+_:B4 :name "ringo".
+_:B4 :email <mailto:ringo acd edu> .
+_:B4 :webPage <http://www.starr.edu/> .
+_:B4 :phone "888-4537".
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 49bf59f..498ab75 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -49,6 +49,7 @@ const TestInfo tests[] = {
{ "algebra/filter-nested-1", "algebra/data-1" },
{ "algebra/filter-nested-2", "algebra/data-1" },
{ "algebra/filter-scope-1", "algebra/data-2" },
+ { "algebra/var-scope-join-1", "algebra/var-scope-join-1" },
{ "bnode-coreference/query", "bnode-coreference/data" },
{ "bound/bound1", "bound/data" },
{ "expr-ops/query-ge-1", "expr-ops/data" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]