Showing
3 changed files
with
309 additions
and
2 deletions
... | @@ -125,7 +125,7 @@ owl:Class | ... | @@ -125,7 +125,7 @@ owl:Class |
125 | ] ; | 125 | ] ; |
126 | spin:rule | 126 | spin:rule |
127 | [ rdf:type sp:Construct ; | 127 | [ rdf:type sp:Construct ; |
128 | - rdfs:comment "0002 Handle subclasses"^^xsd:string ; | 128 | + rdfs:comment "0003 Handle subclasses"^^xsd:string ; |
129 | sp:templates ([ sp:object ISO-15926-2_2003:Specialization ; | 129 | sp:templates ([ sp:object ISO-15926-2_2003:Specialization ; |
130 | sp:predicate rdf:type ; | 130 | sp:predicate rdf:type ; |
131 | sp:subject | 131 | sp:subject |
... | @@ -192,7 +192,7 @@ owl:Class | ... | @@ -192,7 +192,7 @@ owl:Class |
192 | ] ; | 192 | ] ; |
193 | spin:rule | 193 | spin:rule |
194 | [ rdf:type sp:Construct ; | 194 | [ rdf:type sp:Construct ; |
195 | - rdfs:comment "0003 Set Part 2 Class of EHR RD Class"^^xsd:string ; | 195 | + rdfs:comment "0004 Set Part 2 Class of EHR RD Class"^^xsd:string ; |
196 | sp:templates ([ sp:object | 196 | sp:templates ([ sp:object |
197 | [ sp:varName "p2class"^^xsd:string | 197 | [ sp:varName "p2class"^^xsd:string |
198 | ] ; | 198 | ] ; | ... | ... |
1 | +# baseURI: http://www.reportinghub.no/refdata/transform/objprop2rd | ||
2 | +# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003 | ||
3 | +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations | ||
4 | +# imports: http://spinrdf.org/spin | ||
5 | +# imports: http://www.reportinghub.no/ep/schema/1.0/drilling | ||
6 | +# imports: http://www.reportinghub.no/refdata/DrillingClasses | ||
7 | + | ||
8 | +@prefix : <http://www.reportinghub.no/refdata/transform/objprop2rd#> . | ||
9 | +@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . | ||
10 | +@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . | ||
11 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
12 | +@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . | ||
13 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
14 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
15 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
16 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
17 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
18 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
19 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
20 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
21 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
22 | + | ||
23 | +<http://www.reportinghub.no/refdata/transform/objprop2rd> | ||
24 | + rdf:type owl:Ontology ; | ||
25 | + owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/drilling> , <http://www.reportinghub.no/refdata/DrillingClasses> ; | ||
26 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
27 | + | ||
28 | +owl:ObjectProperty | ||
29 | + spin:rule | ||
30 | + [ rdf:type sp:Construct ; | ||
31 | + rdfs:comment "0001 Set URI and designation for EHR RD from Object Property NOT Class of Indirect Property"^^xsd:string ; | ||
32 | + sp:templates ([ sp:object | ||
33 | + [ sp:varName "thisrduri"^^xsd:string | ||
34 | + ] ; | ||
35 | + sp:predicate owl:sameAs ; | ||
36 | + sp:subject spin:_this | ||
37 | + ] [ sp:object | ||
38 | + [ sp:varName "desigation"^^xsd:string | ||
39 | + ] ; | ||
40 | + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ; | ||
41 | + sp:subject | ||
42 | + [ sp:varName "thisrduri"^^xsd:string | ||
43 | + ] | ||
44 | + ] [ sp:object | ||
45 | + [ sp:varName "definition"^^xsd:string | ||
46 | + ] ; | ||
47 | + sp:predicate <http://posccaesar.org/rdl/hasDefinition> ; | ||
48 | + sp:subject | ||
49 | + [ sp:varName "thisrduri"^^xsd:string | ||
50 | + ] | ||
51 | + ] [ sp:object | ||
52 | + [ sp:varName "pcaid"^^xsd:string | ||
53 | + ] ; | ||
54 | + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ; | ||
55 | + sp:subject | ||
56 | + [ sp:varName "thisrduri"^^xsd:string | ||
57 | + ] | ||
58 | + ]) ; | ||
59 | + sp:where ([ rdf:type sp:NotExists ; | ||
60 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; | ||
61 | + sp:predicate rdf:type ; | ||
62 | + sp:subject spin:_this | ||
63 | + ]) | ||
64 | + ] [ rdf:type sp:NotExists ; | ||
65 | + sp:elements ([ sp:object | ||
66 | + [ sp:varName "same"^^xsd:string | ||
67 | + ] ; | ||
68 | + sp:predicate owl:sameAs ; | ||
69 | + sp:subject spin:_this | ||
70 | + ]) | ||
71 | + ] [ rdf:type sp:NotExists ; | ||
72 | + sp:elements ([ sp:object | ||
73 | + [ sp:varName "seerd"^^xsd:string | ||
74 | + ] ; | ||
75 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
76 | + sp:subject spin:_this | ||
77 | + ]) | ||
78 | + ] [ rdf:type sp:Filter ; | ||
79 | + sp:expression | ||
80 | + [ rdf:type sp:ne ; | ||
81 | + sp:arg1 [ rdf:type afn:namespace ; | ||
82 | + sp:arg1 spin:_this | ||
83 | + ] ; | ||
84 | + sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
85 | + ] | ||
86 | + ] [ rdf:type sp:Filter ; | ||
87 | + sp:expression | ||
88 | + [ rdf:type sp:ne ; | ||
89 | + sp:arg1 [ rdf:type afn:namespace ; | ||
90 | + sp:arg1 spin:_this | ||
91 | + ] ; | ||
92 | + sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
93 | + ] | ||
94 | + ] [ sp:object | ||
95 | + [ sp:varName "definition"^^xsd:string | ||
96 | + ] ; | ||
97 | + sp:predicate rdfs:comment ; | ||
98 | + sp:subject spin:_this | ||
99 | + ] [ sp:object | ||
100 | + [ sp:varName "label"^^xsd:string | ||
101 | + ] ; | ||
102 | + sp:predicate rdfs:label ; | ||
103 | + sp:subject spin:_this | ||
104 | + ] [ rdf:type sp:Bind ; | ||
105 | + sp:expression | ||
106 | + [ rdf:type spif:generateUUID | ||
107 | + ] ; | ||
108 | + sp:variable | ||
109 | + [ sp:varName "uuid"^^xsd:string | ||
110 | + ] | ||
111 | + ] [ rdf:type sp:Bind ; | ||
112 | + sp:expression | ||
113 | + [ rdf:type fn:concat ; | ||
114 | + sp:arg1 "ERH" ; | ||
115 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
116 | + ] | ||
117 | + ] ; | ||
118 | + sp:variable | ||
119 | + [ sp:varName "pcaid"^^xsd:string | ||
120 | + ] | ||
121 | + ] [ rdf:type sp:Bind ; | ||
122 | + sp:expression | ||
123 | + [ rdf:type spif:buildURI ; | ||
124 | + sp:arg1 "<http://posccaesar.org/{?pcaid}>" | ||
125 | + ] ; | ||
126 | + sp:variable | ||
127 | + [ sp:varName "thisrduri"^^xsd:string | ||
128 | + ] | ||
129 | + ] [ rdf:type sp:Bind ; | ||
130 | + sp:expression | ||
131 | + [ rdf:type fn:upper-case ; | ||
132 | + sp:arg1 [ sp:varName "label"^^xsd:string | ||
133 | + ] | ||
134 | + ] ; | ||
135 | + sp:variable | ||
136 | + [ sp:varName "desigation"^^xsd:string | ||
137 | + ] | ||
138 | + ]) | ||
139 | + ] ; | ||
140 | + spin:rule | ||
141 | + [ rdf:type sp:Construct ; | ||
142 | + rdfs:comment "0002 Set URI and designation for EHR RD from Object Property Class of Indirect Property"^^xsd:string ; | ||
143 | + sp:templates ([ sp:object | ||
144 | + [ sp:varName "thisrduri"^^xsd:string | ||
145 | + ] ; | ||
146 | + sp:predicate owl:sameAs ; | ||
147 | + sp:subject spin:_this | ||
148 | + ] [ sp:object | ||
149 | + [ sp:varName "desigation"^^xsd:string | ||
150 | + ] ; | ||
151 | + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ; | ||
152 | + sp:subject | ||
153 | + [ sp:varName "thisrduri"^^xsd:string | ||
154 | + ] | ||
155 | + ] [ sp:object | ||
156 | + [ sp:varName "definition"^^xsd:string | ||
157 | + ] ; | ||
158 | + sp:predicate <http://posccaesar.org/rdl/hasDefinition> ; | ||
159 | + sp:subject | ||
160 | + [ sp:varName "thisrduri"^^xsd:string | ||
161 | + ] | ||
162 | + ] [ sp:object | ||
163 | + [ sp:varName "pcaid"^^xsd:string | ||
164 | + ] ; | ||
165 | + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ; | ||
166 | + sp:subject | ||
167 | + [ sp:varName "thisrduri"^^xsd:string | ||
168 | + ] | ||
169 | + ] [ sp:object ISO-15926-2_2003:ClassOfIndirectProperty ; | ||
170 | + sp:predicate rdf:type ; | ||
171 | + sp:subject | ||
172 | + [ sp:varName "thisrduri"^^xsd:string | ||
173 | + ] | ||
174 | + ]) ; | ||
175 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; | ||
176 | + sp:predicate rdf:type ; | ||
177 | + sp:subject spin:_this | ||
178 | + ] [ rdf:type sp:NotExists ; | ||
179 | + sp:elements ([ sp:object | ||
180 | + [ sp:varName "same"^^xsd:string | ||
181 | + ] ; | ||
182 | + sp:predicate owl:sameAs ; | ||
183 | + sp:subject spin:_this | ||
184 | + ]) | ||
185 | + ] [ rdf:type sp:NotExists ; | ||
186 | + sp:elements ([ sp:object | ||
187 | + [ sp:varName "seerd"^^xsd:string | ||
188 | + ] ; | ||
189 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
190 | + sp:subject spin:_this | ||
191 | + ]) | ||
192 | + ] [ rdf:type sp:Filter ; | ||
193 | + sp:expression | ||
194 | + [ rdf:type sp:ne ; | ||
195 | + sp:arg1 [ rdf:type afn:namespace ; | ||
196 | + sp:arg1 spin:_this | ||
197 | + ] ; | ||
198 | + sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
199 | + ] | ||
200 | + ] [ rdf:type sp:Filter ; | ||
201 | + sp:expression | ||
202 | + [ rdf:type sp:ne ; | ||
203 | + sp:arg1 [ rdf:type afn:namespace ; | ||
204 | + sp:arg1 spin:_this | ||
205 | + ] ; | ||
206 | + sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
207 | + ] | ||
208 | + ] [ sp:object | ||
209 | + [ sp:varName "definition"^^xsd:string | ||
210 | + ] ; | ||
211 | + sp:predicate rdfs:comment ; | ||
212 | + sp:subject spin:_this | ||
213 | + ] [ sp:object | ||
214 | + [ sp:varName "label"^^xsd:string | ||
215 | + ] ; | ||
216 | + sp:predicate rdfs:label ; | ||
217 | + sp:subject spin:_this | ||
218 | + ] [ rdf:type sp:Bind ; | ||
219 | + sp:expression | ||
220 | + [ rdf:type spif:generateUUID | ||
221 | + ] ; | ||
222 | + sp:variable | ||
223 | + [ sp:varName "uuid"^^xsd:string | ||
224 | + ] | ||
225 | + ] [ rdf:type sp:Bind ; | ||
226 | + sp:expression | ||
227 | + [ rdf:type fn:concat ; | ||
228 | + sp:arg1 "ERH" ; | ||
229 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
230 | + ] | ||
231 | + ] ; | ||
232 | + sp:variable | ||
233 | + [ sp:varName "pcaid"^^xsd:string | ||
234 | + ] | ||
235 | + ] [ rdf:type sp:Bind ; | ||
236 | + sp:expression | ||
237 | + [ rdf:type spif:buildURI ; | ||
238 | + sp:arg1 "<http://posccaesar.org/{?pcaid}>" | ||
239 | + ] ; | ||
240 | + sp:variable | ||
241 | + [ sp:varName "thisrduri"^^xsd:string | ||
242 | + ] | ||
243 | + ] [ rdf:type sp:Bind ; | ||
244 | + sp:expression | ||
245 | + [ rdf:type fn:upper-case ; | ||
246 | + sp:arg1 [ sp:varName "label"^^xsd:string | ||
247 | + ] | ||
248 | + ] ; | ||
249 | + sp:variable | ||
250 | + [ sp:varName "desigation"^^xsd:string | ||
251 | + ] | ||
252 | + ]) | ||
253 | + ] ; | ||
254 | + spin:rule | ||
255 | + [ rdf:type sp:Construct ; | ||
256 | + rdfs:comment "0004 Set Class of Indirect Property Possessor"^^xsd:string ; | ||
257 | + sp:templates ([ sp:object | ||
258 | + [ sp:varName "possessor"^^xsd:string | ||
259 | + ] ; | ||
260 | + sp:predicate ISO-15926-2_2003:hasClassOfPossessor ; | ||
261 | + sp:subject | ||
262 | + [ sp:varName "rdproperty"^^xsd:string | ||
263 | + ] | ||
264 | + ]) ; | ||
265 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; | ||
266 | + sp:predicate rdf:type ; | ||
267 | + sp:subject spin:_this | ||
268 | + ] [ sp:object | ||
269 | + [ sp:varName "rdproperty"^^xsd:string | ||
270 | + ] ; | ||
271 | + sp:predicate owl:sameAs ; | ||
272 | + sp:subject spin:_this | ||
273 | + ] [ sp:object | ||
274 | + [ sp:varName "domain"^^xsd:string | ||
275 | + ] ; | ||
276 | + sp:predicate rdfs:domain ; | ||
277 | + sp:subject spin:_this | ||
278 | + ] [ sp:object | ||
279 | + [ sp:varName "possessor"^^xsd:string | ||
280 | + ] ; | ||
281 | + sp:predicate owl:sameAs ; | ||
282 | + sp:subject | ||
283 | + [ sp:varName "domain"^^xsd:string | ||
284 | + ] | ||
285 | + ]) | ||
286 | + ] . |
1 | +# baseURI: null | ||
2 | + | ||
3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
11 | + | ||
12 | +<http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfIndirectProperty> | ||
13 | + forms:keyProperties (rdfs:label rdfs:comment <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasPossessor>) . | ||
14 | + | ||
15 | +[] rdf:type inference:Configuration ; | ||
16 | + composite:child | ||
17 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
18 | + <http://spinrdf.org/spin#topSPINOptions> | ||
19 | + "singlePass" ; | ||
20 | + composite:index "0"^^xsd:int | ||
21 | + ] . |
-
Please register or login to post a comment