summaryrefslogtreecommitdiff
path: root/tests/functional-tests/test-ontologies/add-prop/91-test.ontology
blob: 77a94287719ce161e632bde98fd6f6dfc9e42a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
@prefix test: <http://example.org/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .

#
# Note: If you modify this ontology remember to replicate the changes in the other
#   91 ontologies
#
#
#       A (with props for string and int, string n-cardinality, )
#      / \
#     B   C
#
test: a tracker:Namespace, tracker:Ontology ;
        tracker:lastModified "2010-03-24T11:00:04Z" ;
        tracker:prefix "test" .

test:A a rdfs:Class .

test:a_string a rdf:Property ;
    rdfs:comment "Property to test the conversions from string" ;
    rdfs:domain test:A ;
    rdfs:range  xsd:string ;
    nrl:maxCardinality 1 .

test:a_datetime a rdf:Property ;
    rdfs:comment "Property to test the changes string/date" ;
    rdfs:domain test:A ;
    rdfs:range  xsd:dateTime ;
    nrl:maxCardinality 1 .

test:a_int a rdf:Property ;
    rdfs:comment "Property to test the changes string/int" ;
    rdfs:domain test:A ;
    rdfs:range  xsd:integer ;
    nrl:maxCardinality 1 .

test:a_n_cardinality a rdf:Property ;
    rdfs:comment "Property to test the cardinality changes" ;
    rdfs:domain test:A ;
    rdfs:range xsd:string .
# Max cardinality N because is not specified

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 ;
    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 .

test:b_property a rdf:Property ;
    rdfs:comment "A plain property in B class";
    rdfs:domain test:B ;
    rdfs:range xsd:string ;
    nrl:maxCardinality 1 .

test:b_property_n a rdf:Property ;
    rdfs:comment "A plain property in B class";
    rdfs:domain test:B ;
    rdfs:range xsd:string .

test:C a rdfs:Class ;
    rdfs:subClassOf test:A .

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 .

# ***** TEST CHANGE *****

test:new_prop_int  a rdf:Property ;
    rdfs:label "Adding a single-valued int property" ;
    rdfs:comment "x" ;
    rdfs:domain test:A ;
    rdfs:range xsd:integer ;
    nrl:maxCardinality 1 .

test:new_prop_int_n a rdf:Property ;
    rdfs:label "test:new_prop_int_n" ;
    rdfs:comment "Adding a n-valued int property" ;
    rdfs:domain test:A ;
    rdfs:range  xsd:integer .

test:new_prop_string a rdf:Property ;
    rdfs:label "test:new_prop_string" ;
    rdfs:comment "Adding a single valued string property" ;
    rdfs:domain test:A ;
    rdfs:range  xsd:string ;
    nrl:maxCardinality 1 .

test:new_prop_string_n a rdf:Property ;
    rdfs:label "test:new_prop_string_n" ;
    rdfs:comment "Adding a n-valued string property" ;
    rdfs:domain test:A ;
    rdfs:range  xsd:string .

test:new_subprop_string a rdf:Property ;
    rdfs:label "test:new_subprop_string" ;
    rdfs:comment "Addind a single-value string subproperty of a prop already in the ontology" ;
    rdfs:domain test:B ;
    rdfs:range  xsd:string ;
    rdfs:subPropertyOf test:a_superprop ;
    nrl:maxCardinality 1 .

test:new_subprop_string_n a rdf:Property ;
    rdfs:label "test:new_subprop_string" ;
    rdfs:comment "Addind a n-value string subproperty of a prop already in the ontology" ;
    rdfs:domain test:B ;
    rdfs:range  xsd:string ;
    rdfs:subPropertyOf test:a_superprop_n .

# ***********************