[tracker/ontology-cope-for-master] tests/libtracker-data: Add coverage for single-value property onto-changes in the tests



commit 1d55780b68350d8db0e7431f6dc4b52474169f6a
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Mar 24 17:53:24 2010 +0100

    tests/libtracker-data: Add coverage for single-value property onto-changes in the tests

 .../change/source/99-example.ontology.v3           |    5 +++++
 tests/libtracker-data/change/test-2.out            |    2 +-
 tests/libtracker-data/change/test-2.rq             |    2 +-
 .../change/updates/99-example.queries.v3           |    3 +++
 4 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v3 b/tests/libtracker-data/change/source/99-example.ontology.v3
index a3abb92..4c626bc 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v3
+++ b/tests/libtracker-data/change/source/99-example.ontology.v3
@@ -4,6 +4,7 @@
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 @prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
+ prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
 
 example: a tracker:Namespace, tracker:Ontology ;
 	nao:lastModified "2010-03-23T11:00:03Z" ;
@@ -27,3 +28,7 @@ example:i2 a rdf:Property ;
 	rdfs:domain example:A ;
 	rdfs:range xsd:integer .
 
+example:single1 a rdf:Property ;
+	rdfs:domain example:A ;
+	rdfs:range xsd:integer ;
+	nrl:maxCardinality 1 .
diff --git a/tests/libtracker-data/change/test-2.out b/tests/libtracker-data/change/test-2.out
index a6550ef..f0af95d 100644
--- a/tests/libtracker-data/change/test-2.out
+++ b/tests/libtracker-data/change/test-2.out
@@ -1 +1 @@
-"2"	"2"
+"2"	"2"	"2"
diff --git a/tests/libtracker-data/change/test-2.rq b/tests/libtracker-data/change/test-2.rq
index 552f800..85121e2 100644
--- a/tests/libtracker-data/change/test-2.rq
+++ b/tests/libtracker-data/change/test-2.rq
@@ -1 +1 @@
-select ?a ?b { <a01> example:i2 ?a ; example:i1 ?b }
+select ?a ?b ?c { <a01> example:i2 ?a ; example:i1 ?b; example:single1 ?c }
diff --git a/tests/libtracker-data/change/updates/99-example.queries.v3 b/tests/libtracker-data/change/updates/99-example.queries.v3
index de01e37..62d1b07 100644
--- a/tests/libtracker-data/change/updates/99-example.queries.v3
+++ b/tests/libtracker-data/change/updates/99-example.queries.v3
@@ -4,3 +4,6 @@ insert { <a01> example:i1 2 }
 insert { <a01> example:i2 1 }
 delete { <a01> example:i2 1 }
 insert { <a01> example:i2 2 }
+insert { <a01> example:single1 1 }
+delete { <a01> example:single1 1 }
+insert { <a01> example:single1 2 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]