[tracker/property-changes] tests/libtracker-data: Added unit test for tracker:indexed ontology changes



commit cbbebc4bde2b2aba0444c540621ba56b7a1b5b80
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Mar 31 15:47:14 2010 +0200

    tests/libtracker-data: Added unit test for tracker:indexed ontology changes

 .../change/source/99-example.ontology.v2           |    3 ++-
 .../change/source/99-example.ontology.v3           |    3 ++-
 .../change/source/99-example.ontology.v4           |    7 +++++++
 .../change/updates/99-example.queries.v3           |    2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v2 b/tests/libtracker-data/change/source/99-example.ontology.v2
index fefb68f..10bdbb2 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v2
+++ b/tests/libtracker-data/change/source/99-example.ontology.v2
@@ -17,5 +17,6 @@ example:B a rdfs:Class ;
 
 example:b a rdf:Property ;
 	rdfs:domain example:A ;
-	rdfs:range example:B .
+	rdfs:range example:B ;
+	tracker:indexed true .
 
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v3 b/tests/libtracker-data/change/source/99-example.ontology.v3
index 4c626bc..5048df1 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v3
+++ b/tests/libtracker-data/change/source/99-example.ontology.v3
@@ -31,4 +31,5 @@ example:i2 a rdf:Property ;
 example:single1 a rdf:Property ;
 	rdfs:domain example:A ;
 	rdfs:range xsd:integer ;
-	nrl:maxCardinality 1 .
+	nrl:maxCardinality 1 ;
+	tracker:indexed true .
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v4 b/tests/libtracker-data/change/source/99-example.ontology.v4
index 706d77c..08b0a28 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v4
+++ b/tests/libtracker-data/change/source/99-example.ontology.v4
@@ -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:04Z" ;
@@ -27,6 +28,12 @@ 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 ;
+	tracker:indexed false .
+
 example:ib a rdf:Property ;
 	rdfs:domain example:B ;
 	rdfs:range xsd:integer .
diff --git a/tests/libtracker-data/change/updates/99-example.queries.v3 b/tests/libtracker-data/change/updates/99-example.queries.v3
index 62d1b07..45b4a55 100644
--- a/tests/libtracker-data/change/updates/99-example.queries.v3
+++ b/tests/libtracker-data/change/updates/99-example.queries.v3
@@ -4,6 +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 }
+insert { <a01> example:single1 2 }
 delete { <a01> example:single1 1 }
 insert { <a01> example:single1 2 }



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