[tracker/rss-enclosures] functional-tests: add prop/subprop with cardinality n in the basic ontology



commit d546a3c5a2baea56355766de87a035abd8176a3c
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]