[tracker] functional-tests: add prop/subprop with cardinality n in the basic ontology
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] functional-tests: add prop/subprop with cardinality n in the basic ontology
- Date: Wed, 20 Oct 2010 10:53:35 +0000 (UTC)
commit 51021d8755c9ec3d9b49728395ed775bfe08a119
Author: Ivan Frade <ivan frade nokia com>
Date: Wed Oct 20 11:40:23 2010 +0300
functional-tests: add prop/subprop with cardinality n in the basic ontology
Needed to test the addition removal of super/sub properties
.../test-ontologies/basic/91-test.ontology | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/test-ontologies/basic/91-test.ontology b/tests/functional-tests/test-ontologies/basic/91-test.ontology
index d365b91..a83b2c5 100644
--- a/tests/functional-tests/test-ontologies/basic/91-test.ontology
+++ b/tests/functional-tests/test-ontologies/basic/91-test.ontology
@@ -48,8 +48,14 @@ test:a_n_cardinality a rdf:Property ;
test:a_superprop a rdf:Property ;
rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
rdfs:domain test:A ;
- rdfs:range xsd:string .
-
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
test:B a rdfs:Class ;
rdfs:subClassOf test:A .
@@ -61,4 +67,11 @@ test:c_subprop a rdf:Property ;
rdfs:comment "To test changes in the superproperty" ;
rdfs:subPropertyOf test:a_superprop ;
rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
rdfs:range xsd:string .
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]