Optimized DDR ingest rules with ?this - removing duplicate 'basisOf'
traces.
Showing
1 changed file
with
368 additions
and
387 deletions
1 | -# Saved by TopBraid on Fri Aug 05 18:05:47 PDT 2011 | 1 | +# Saved by TopBraid on Fri Aug 05 18:46:24 PDT 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr |
3 | # imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr | 3 | # imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr |
4 | # imports: http://spinrdf.org/spin | 4 | # imports: http://spinrdf.org/spin |
... | @@ -20,10 +20,19 @@ | ... | @@ -20,10 +20,19 @@ |
20 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 20 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
21 | 21 | ||
22 | ddr:Cs_activity | 22 | ddr:Cs_activity |
23 | + spin:rule | ||
24 | + [ rdf:type sp:Construct ; | ||
25 | + rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ; | ||
26 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ; | ||
27 | + sp:predicate rdf:type ; | ||
28 | + sp:subject spin:_this | ||
29 | + ]) ; | ||
30 | + sp:where () | ||
31 | + ] ; | ||
23 | sxml:element "witsml:activity"^^xsd:string . | 32 | sxml:element "witsml:activity"^^xsd:string . |
24 | 33 | ||
25 | ddr:Cs_alias | 34 | ddr:Cs_alias |
26 | - sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string . | 35 | + sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" . |
27 | 36 | ||
28 | ddr:Cs_bitRecord | 37 | ddr:Cs_bitRecord |
29 | sxml:element "witsml:bitRecord" . | 38 | sxml:element "witsml:bitRecord" . |
... | @@ -71,7 +80,7 @@ ddr:Cs_drillReportPorePressure | ... | @@ -71,7 +80,7 @@ ddr:Cs_drillReportPorePressure |
71 | sxml:element "witsml:drillReportPorePressure" . | 80 | sxml:element "witsml:drillReportPorePressure" . |
72 | 81 | ||
73 | ddr:Cs_drillReportStatusInfo | 82 | ddr:Cs_drillReportStatusInfo |
74 | - sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string . | 83 | + sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" . |
75 | 84 | ||
76 | ddr:Cs_drillReportStratInfo | 85 | ddr:Cs_drillReportStratInfo |
77 | sxml:element "witsml:drillReportStratInfo" . | 86 | sxml:element "witsml:drillReportStratInfo" . |
... | @@ -107,7 +116,7 @@ ddr:Cs_refWellWellboreRig | ... | @@ -107,7 +116,7 @@ ddr:Cs_refWellWellboreRig |
107 | sxml:element "witsml:refWellWellboreRig" . | 116 | sxml:element "witsml:refWellWellboreRig" . |
108 | 117 | ||
109 | ddr:Cs_wellAlias | 118 | ddr:Cs_wellAlias |
110 | - sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias" . | 119 | + sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string . |
111 | 120 | ||
112 | ddr:Cs_wellCRS | 121 | ddr:Cs_wellCRS |
113 | sxml:element "witsml:wellCRS" . | 122 | sxml:element "witsml:wellCRS" . |
... | @@ -124,265 +133,300 @@ ddr:Obj_drillReport | ... | @@ -124,265 +133,300 @@ ddr:Obj_drillReport |
124 | ddr:Thing | 133 | ddr:Thing |
125 | spin:rule | 134 | spin:rule |
126 | [ rdf:type sp:Construct ; | 135 | [ rdf:type sp:Construct ; |
127 | - rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; | 136 | + rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; |
128 | sp:templates ([ sp:object _:b1 ; | 137 | sp:templates ([ sp:object _:b1 ; |
138 | + sp:predicate _:b2 ; | ||
139 | + sp:subject spin:_this | ||
140 | + ] [ sp:object rdf:Statement ; | ||
129 | sp:predicate rdf:type ; | 141 | sp:predicate rdf:type ; |
130 | - sp:subject _:b2 | 142 | + sp:subject _:b3 |
143 | + ] [ sp:object spin:_this ; | ||
144 | + sp:predicate rdf:subject ; | ||
145 | + sp:subject _:b3 | ||
146 | + ] [ sp:object _:b2 ; | ||
147 | + sp:predicate rdf:predicate ; | ||
148 | + sp:subject _:b3 | ||
149 | + ] [ sp:object _:b1 ; | ||
150 | + sp:predicate rdf:object ; | ||
151 | + sp:subject _:b3 | ||
131 | ] [ sp:object _:b3 ; | 152 | ] [ sp:object _:b3 ; |
132 | - sp:predicate ddr:uom ; | 153 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
133 | - sp:subject _:b2 | 154 | + sp:subject _:b1 |
134 | - ] [ sp:object _:b4 ; | 155 | + ]) ; |
135 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 156 | + sp:where ([ sp:object _:b4 ; |
136 | - sp:subject _:b2 | 157 | + sp:predicate owl:allValuesFrom ; |
158 | + sp:subject _:b5 | ||
137 | ] [ sp:object _:b2 ; | 159 | ] [ sp:object _:b2 ; |
138 | - sp:predicate _:b5 ; | 160 | + sp:predicate owl:onProperty ; |
161 | + sp:subject _:b5 | ||
162 | + ] [ sp:object _:b4 ; | ||
163 | + sp:predicate rdf:type ; | ||
164 | + sp:subject _:b1 | ||
165 | + ] [ sp:object _:b1 ; | ||
166 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
167 | + sp:subject spin:_this | ||
168 | + ] [ sp:object _:b6 ; | ||
169 | + sp:predicate rdf:type ; | ||
170 | + sp:subject spin:_this | ||
171 | + ] [ sp:object _:b5 ; | ||
172 | + sp:predicate rdfs:subClassOf ; | ||
139 | sp:subject _:b6 | 173 | sp:subject _:b6 |
174 | + ]) | ||
175 | + ] ; | ||
176 | + spin:rule | ||
177 | + [ rdf:type sp:Construct ; | ||
178 | + rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; | ||
179 | + sp:templates ([ sp:object _:b7 ; | ||
180 | + sp:predicate rdf:type ; | ||
181 | + sp:subject _:b8 | ||
182 | + ] [ sp:object _:b9 ; | ||
183 | + sp:predicate ddr:uom ; | ||
184 | + sp:subject _:b8 | ||
185 | + ] [ sp:object _:b10 ; | ||
186 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
187 | + sp:subject _:b8 | ||
188 | + ] [ sp:object _:b8 ; | ||
189 | + sp:predicate _:b11 ; | ||
190 | + sp:subject spin:_this | ||
140 | ] [ sp:object rdf:Statement ; | 191 | ] [ sp:object rdf:Statement ; |
141 | sp:predicate rdf:type ; | 192 | sp:predicate rdf:type ; |
142 | - sp:subject _:b7 | 193 | + sp:subject _:b12 |
143 | - ] [ sp:object _:b6 ; | 194 | + ] [ sp:object spin:_this ; |
144 | sp:predicate rdf:subject ; | 195 | sp:predicate rdf:subject ; |
145 | - sp:subject _:b7 | 196 | + sp:subject _:b12 |
146 | - ] [ sp:object _:b5 ; | 197 | + ] [ sp:object _:b11 ; |
147 | sp:predicate rdf:predicate ; | 198 | sp:predicate rdf:predicate ; |
148 | - sp:subject _:b7 | 199 | + sp:subject _:b12 |
149 | - ] [ sp:object _:b4 ; | 200 | + ] [ sp:object _:b10 ; |
150 | sp:predicate rdf:object ; | 201 | sp:predicate rdf:object ; |
151 | - sp:subject _:b7 | 202 | + sp:subject _:b12 |
152 | - ] [ sp:object _:b7 ; | 203 | + ] [ sp:object _:b12 ; |
153 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 204 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
154 | - sp:subject _:b8 | 205 | + sp:subject _:b13 |
155 | ]) ; | 206 | ]) ; |
156 | - sp:where ([ sp:object _:b8 ; | 207 | + sp:where ([ sp:object _:b13 ; |
157 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 208 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
158 | - sp:subject _:b6 | 209 | + sp:subject spin:_this |
159 | - ] [ sp:object _:b9 ; | 210 | + ] [ sp:object _:b14 ; |
160 | sp:predicate rdf:type ; | 211 | sp:predicate rdf:type ; |
161 | - sp:subject _:b8 | 212 | + sp:subject _:b13 |
162 | - ] [ sp:object _:b3 ; | 213 | + ] [ sp:object _:b9 ; |
163 | sp:predicate ddr:uom ; | 214 | sp:predicate ddr:uom ; |
164 | - sp:subject _:b8 | 215 | + sp:subject _:b13 |
165 | ] [ rdf:type sp:NotExists ; | 216 | ] [ rdf:type sp:NotExists ; |
166 | sp:elements ([ sp:object | 217 | sp:elements ([ sp:object |
167 | [ sp:varName "aNode"^^xsd:string | 218 | [ sp:varName "aNode"^^xsd:string |
168 | ] ; | 219 | ] ; |
169 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 220 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
170 | - sp:subject _:b8 | 221 | + sp:subject _:b13 |
171 | ]) | 222 | ]) |
172 | ] [ rdf:type sp:Bind ; | 223 | ] [ rdf:type sp:Bind ; |
173 | sp:expression | 224 | sp:expression |
174 | [ rdf:type afn:localname ; | 225 | [ rdf:type afn:localname ; |
175 | - sp:arg1 _:b9 | 226 | + sp:arg1 _:b14 |
176 | ] ; | 227 | ] ; |
177 | - sp:variable _:b10 | 228 | + sp:variable _:b15 |
178 | ] [ rdf:type sp:Bind ; | 229 | ] [ rdf:type sp:Bind ; |
179 | sp:expression | 230 | sp:expression |
180 | [ rdf:type smf:buildURI ; | 231 | [ rdf:type smf:buildURI ; |
181 | sp:arg1 [ rdf:type fn:concat ; | 232 | sp:arg1 [ rdf:type fn:concat ; |
182 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; | 233 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; |
183 | sp:arg2 [ rdf:type smf:titleCase ; | 234 | sp:arg2 [ rdf:type smf:titleCase ; |
184 | - sp:arg1 _:b10 | 235 | + sp:arg1 _:b15 |
185 | ] | 236 | ] |
186 | ] | 237 | ] |
187 | ] ; | 238 | ] ; |
188 | - sp:variable _:b5 | 239 | + sp:variable _:b11 |
189 | ] [ sp:object owl:ObjectProperty ; | 240 | ] [ sp:object owl:ObjectProperty ; |
190 | sp:predicate rdf:type ; | 241 | sp:predicate rdf:type ; |
191 | - sp:subject _:b5 | ||
192 | - ] [ sp:object _:b5 ; | ||
193 | - sp:predicate owl:onProperty ; | ||
194 | sp:subject _:b11 | 242 | sp:subject _:b11 |
195 | - ] [ sp:object _:b1 ; | 243 | + ] [ sp:object _:b11 ; |
244 | + sp:predicate owl:onProperty ; | ||
245 | + sp:subject _:b16 | ||
246 | + ] [ sp:object _:b7 ; | ||
196 | sp:predicate owl:allValuesFrom ; | 247 | sp:predicate owl:allValuesFrom ; |
197 | - sp:subject _:b11 | 248 | + sp:subject _:b16 |
198 | - ] [ sp:object _:b12 ; | 249 | + ] [ sp:object _:b17 ; |
199 | sp:predicate rdf:type ; | 250 | sp:predicate rdf:type ; |
200 | - sp:subject _:b6 | 251 | + sp:subject spin:_this |
201 | ] [ rdf:type sp:TriplePath ; | 252 | ] [ rdf:type sp:TriplePath ; |
202 | - sp:object _:b11 ; | 253 | + sp:object _:b16 ; |
203 | sp:path [ rdf:type sp:ModPath ; | 254 | sp:path [ rdf:type sp:ModPath ; |
204 | sp:modMax -2 ; | 255 | sp:modMax -2 ; |
205 | sp:modMin 0 ; | 256 | sp:modMin 0 ; |
206 | sp:subPath rdfs:subClassOf | 257 | sp:subPath rdfs:subClassOf |
207 | ] ; | 258 | ] ; |
208 | - sp:subject _:b12 | 259 | + sp:subject _:b17 |
209 | - ] [ sp:object _:b13 ; | 260 | + ] [ sp:object _:b18 ; |
210 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 261 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
211 | - sp:subject _:b8 | 262 | + sp:subject _:b13 |
212 | ] [ sp:object sxml:TextNode ; | 263 | ] [ sp:object sxml:TextNode ; |
213 | sp:predicate rdf:type ; | 264 | sp:predicate rdf:type ; |
214 | - sp:subject _:b13 | 265 | + sp:subject _:b18 |
215 | - ] [ sp:object _:b14 ; | 266 | + ] [ sp:object _:b19 ; |
216 | sp:predicate sxml:text ; | 267 | sp:predicate sxml:text ; |
217 | - sp:subject _:b13 | 268 | + sp:subject _:b18 |
218 | ] [ rdf:type sp:Bind ; | 269 | ] [ rdf:type sp:Bind ; |
219 | sp:expression | 270 | sp:expression |
220 | [ rdf:type xsd:double ; | 271 | [ rdf:type xsd:double ; |
221 | - sp:arg1 _:b14 | 272 | + sp:arg1 _:b19 |
222 | ] ; | 273 | ] ; |
223 | - sp:variable _:b4 | 274 | + sp:variable _:b10 |
224 | ]) | 275 | ]) |
225 | ] ; | 276 | ] ; |
226 | spin:rule | 277 | spin:rule |
227 | [ rdf:type sp:Construct ; | 278 | [ rdf:type sp:Construct ; |
228 | - rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; | 279 | + rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; |
229 | - sp:templates ([ sp:object _:b15 ; | 280 | + sp:templates ([ sp:object _:b20 ; |
230 | - sp:predicate _:b16 ; | 281 | + sp:predicate _:b21 ; |
231 | - sp:subject _:b17 | 282 | + sp:subject spin:_this |
232 | ] [ sp:object rdf:Statement ; | 283 | ] [ sp:object rdf:Statement ; |
233 | sp:predicate rdf:type ; | 284 | sp:predicate rdf:type ; |
234 | - sp:subject _:b18 | 285 | + sp:subject _:b22 |
235 | - ] [ sp:object _:b17 ; | 286 | + ] [ sp:object spin:_this ; |
236 | sp:predicate rdf:subject ; | 287 | sp:predicate rdf:subject ; |
237 | - sp:subject _:b18 | 288 | + sp:subject _:b22 |
238 | - ] [ sp:object _:b16 ; | 289 | + ] [ sp:object _:b21 ; |
239 | sp:predicate rdf:predicate ; | 290 | sp:predicate rdf:predicate ; |
240 | - sp:subject _:b18 | 291 | + sp:subject _:b22 |
241 | - ] [ sp:object _:b15 ; | 292 | + ] [ sp:object _:b20 ; |
242 | sp:predicate rdf:object ; | 293 | sp:predicate rdf:object ; |
243 | - sp:subject _:b18 | 294 | + sp:subject _:b22 |
244 | - ] [ sp:object _:b18 ; | 295 | + ] [ sp:object _:b22 ; |
245 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 296 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
246 | - sp:subject _:b19 | 297 | + sp:subject _:b23 |
247 | ]) ; | 298 | ]) ; |
248 | - sp:where ([ sp:object _:b19 ; | 299 | + sp:where ([ sp:object _:b23 ; |
249 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 300 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
250 | - sp:subject _:b17 | 301 | + sp:subject |
251 | - ] [ sp:object _:b20 ; | 302 | + [ sp:varName "inst"^^xsd:string |
303 | + ] | ||
304 | + ] [ sp:object _:b24 ; | ||
252 | sp:predicate rdf:type ; | 305 | sp:predicate rdf:type ; |
253 | - sp:subject _:b19 | 306 | + sp:subject _:b23 |
254 | ] [ rdf:type sp:NotExists ; | 307 | ] [ rdf:type sp:NotExists ; |
255 | sp:elements ([ sp:object | 308 | sp:elements ([ sp:object |
256 | [ sp:varName "uom"^^xsd:string | 309 | [ sp:varName "uom"^^xsd:string |
257 | ] ; | 310 | ] ; |
258 | sp:predicate ddr:uom ; | 311 | sp:predicate ddr:uom ; |
259 | - sp:subject _:b19 | 312 | + sp:subject _:b23 |
260 | ]) | 313 | ]) |
261 | ] [ rdf:type sp:Bind ; | 314 | ] [ rdf:type sp:Bind ; |
262 | sp:expression | 315 | sp:expression |
263 | - [ rdf:type afn:localname ; | 316 | + [ rdf:type smf:titleCase ; |
264 | - sp:arg1 _:b20 | 317 | + sp:arg1 [ rdf:type afn:localname ; |
318 | + sp:arg1 _:b24 | ||
319 | + ] | ||
265 | ] ; | 320 | ] ; |
266 | - sp:variable _:b21 | 321 | + sp:variable _:b25 |
267 | ] [ rdf:type sp:Bind ; | 322 | ] [ rdf:type sp:Bind ; |
268 | sp:expression | 323 | sp:expression |
269 | [ rdf:type smf:buildURI ; | 324 | [ rdf:type smf:buildURI ; |
270 | sp:arg1 [ rdf:type fn:concat ; | 325 | sp:arg1 [ rdf:type fn:concat ; |
271 | - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; | 326 | + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; |
272 | - sp:arg2 _:b21 | 327 | + sp:arg2 _:b25 |
273 | ] | 328 | ] |
274 | ] ; | 329 | ] ; |
275 | - sp:variable _:b16 | 330 | + sp:variable _:b21 |
276 | - ] [ sp:object owl:DatatypeProperty ; | 331 | + ] [ sp:object owl:ObjectProperty ; |
277 | sp:predicate rdf:type ; | 332 | sp:predicate rdf:type ; |
278 | - sp:subject _:b16 | 333 | + sp:subject _:b21 |
279 | - ] [ sp:object _:b16 ; | 334 | + ] [ sp:object _:b21 ; |
280 | sp:predicate owl:onProperty ; | 335 | sp:predicate owl:onProperty ; |
281 | - sp:subject _:b22 | 336 | + sp:subject _:b26 |
282 | - ] [ sp:object _:b23 ; | 337 | + ] [ sp:object _:b27 ; |
283 | sp:predicate owl:allValuesFrom ; | 338 | sp:predicate owl:allValuesFrom ; |
284 | - sp:subject _:b22 | 339 | + sp:subject _:b26 |
340 | + ] [ sp:object _:b28 ; | ||
341 | + sp:predicate rdf:type ; | ||
342 | + sp:subject spin:_this | ||
343 | + ] [ sp:object _:b26 ; | ||
344 | + sp:predicate rdfs:subClassOf ; | ||
345 | + sp:subject _:b28 | ||
285 | ] [ rdf:type sp:TriplePath ; | 346 | ] [ rdf:type sp:TriplePath ; |
286 | - sp:object xsd:string ; | 347 | + sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; |
287 | sp:path [ rdf:type sp:ModPath ; | 348 | sp:path [ rdf:type sp:ModPath ; |
288 | sp:modMax -2 ; | 349 | sp:modMax -2 ; |
289 | sp:modMin 0 ; | 350 | sp:modMin 0 ; |
290 | sp:subPath rdfs:subClassOf | 351 | sp:subPath rdfs:subClassOf |
291 | ] ; | 352 | ] ; |
292 | - sp:subject _:b23 | 353 | + sp:subject _:b27 |
293 | - ] [ sp:object _:b24 ; | 354 | + ] [ sp:object _:b29 ; |
294 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 355 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
295 | - sp:subject _:b19 | 356 | + sp:subject _:b23 |
296 | ] [ sp:object sxml:TextNode ; | 357 | ] [ sp:object sxml:TextNode ; |
297 | sp:predicate rdf:type ; | 358 | sp:predicate rdf:type ; |
298 | - sp:subject _:b24 | 359 | + sp:subject _:b29 |
299 | - ] [ sp:object _:b15 ; | 360 | + ] [ sp:object _:b30 ; |
300 | sp:predicate sxml:text ; | 361 | sp:predicate sxml:text ; |
301 | - sp:subject _:b24 | 362 | + sp:subject _:b29 |
302 | - ] [ sp:object _:b25 ; | 363 | + ] [ sp:object _:b27 ; |
303 | - sp:predicate rdf:type ; | ||
304 | - sp:subject _:b17 | ||
305 | - ] [ rdf:type sp:TriplePath ; | ||
306 | - sp:object _:b22 ; | ||
307 | - sp:path [ rdf:type sp:ModPath ; | ||
308 | - sp:modMax -2 ; | ||
309 | - sp:modMin 0 ; | ||
310 | - sp:subPath rdfs:subClassOf | ||
311 | - ] ; | ||
312 | - sp:subject _:b25 | ||
313 | - ]) | ||
314 | - ] ; | ||
315 | - spin:rule | ||
316 | - [ rdf:type sp:Construct ; | ||
317 | - rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ; | ||
318 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ; | ||
319 | - sp:predicate rdf:type ; | ||
320 | - sp:subject _:b26 | ||
321 | - ]) ; | ||
322 | - sp:where ([ sp:object ddr:Cs_activity ; | ||
323 | sp:predicate rdf:type ; | 364 | sp:predicate rdf:type ; |
324 | - sp:subject _:b26 | 365 | + sp:subject _:b20 |
366 | + ] [ sp:object _:b30 ; | ||
367 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
368 | + sp:subject _:b20 | ||
325 | ]) | 369 | ]) |
326 | ] ; | 370 | ] ; |
327 | spin:rule | 371 | spin:rule |
328 | [ rdf:type sp:Construct ; | 372 | [ rdf:type sp:Construct ; |
329 | rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; | 373 | rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; |
330 | - sp:templates ([ sp:object _:b27 ; | 374 | + sp:templates ([ sp:object _:b31 ; |
331 | - sp:predicate _:b28 ; | 375 | + sp:predicate _:b32 ; |
332 | - sp:subject _:b29 | 376 | + sp:subject spin:_this |
333 | ] [ sp:object rdf:Statement ; | 377 | ] [ sp:object rdf:Statement ; |
334 | sp:predicate rdf:type ; | 378 | sp:predicate rdf:type ; |
335 | - sp:subject _:b30 | 379 | + sp:subject _:b33 |
336 | - ] [ sp:object _:b29 ; | 380 | + ] [ sp:object spin:_this ; |
337 | sp:predicate rdf:subject ; | 381 | sp:predicate rdf:subject ; |
338 | - sp:subject _:b30 | 382 | + sp:subject _:b33 |
339 | - ] [ sp:object _:b28 ; | 383 | + ] [ sp:object _:b32 ; |
340 | sp:predicate rdf:predicate ; | 384 | sp:predicate rdf:predicate ; |
341 | - sp:subject _:b30 | 385 | + sp:subject _:b33 |
342 | - ] [ sp:object _:b27 ; | 386 | + ] [ sp:object _:b31 ; |
343 | sp:predicate rdf:object ; | 387 | sp:predicate rdf:object ; |
344 | - sp:subject _:b30 | 388 | + sp:subject _:b33 |
345 | - ] [ sp:object _:b30 ; | 389 | + ] [ sp:object _:b33 ; |
346 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 390 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
347 | - sp:subject _:b31 | 391 | + sp:subject _:b34 |
348 | ]) ; | 392 | ]) ; |
349 | - sp:where ([ sp:object _:b31 ; | 393 | + sp:where ([ sp:object _:b34 ; |
350 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 394 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
351 | - sp:subject _:b29 | 395 | + sp:subject spin:_this |
352 | - ] [ sp:object _:b32 ; | 396 | + ] [ sp:object _:b35 ; |
353 | sp:predicate rdf:type ; | 397 | sp:predicate rdf:type ; |
354 | - sp:subject _:b31 | 398 | + sp:subject _:b34 |
355 | ] [ rdf:type sp:NotExists ; | 399 | ] [ rdf:type sp:NotExists ; |
356 | sp:elements ([ sp:object | 400 | sp:elements ([ sp:object |
357 | [ sp:varName "uom"^^xsd:string | 401 | [ sp:varName "uom"^^xsd:string |
358 | ] ; | 402 | ] ; |
359 | sp:predicate ddr:uom ; | 403 | sp:predicate ddr:uom ; |
360 | - sp:subject _:b31 | 404 | + sp:subject _:b34 |
361 | ]) | 405 | ]) |
362 | ] [ rdf:type sp:Bind ; | 406 | ] [ rdf:type sp:Bind ; |
363 | sp:expression | 407 | sp:expression |
364 | [ rdf:type afn:localname ; | 408 | [ rdf:type afn:localname ; |
365 | - sp:arg1 _:b32 | 409 | + sp:arg1 _:b35 |
366 | ] ; | 410 | ] ; |
367 | - sp:variable _:b33 | 411 | + sp:variable _:b36 |
368 | ] [ rdf:type sp:Bind ; | 412 | ] [ rdf:type sp:Bind ; |
369 | sp:expression | 413 | sp:expression |
370 | [ rdf:type smf:buildURI ; | 414 | [ rdf:type smf:buildURI ; |
371 | sp:arg1 [ rdf:type fn:concat ; | 415 | sp:arg1 [ rdf:type fn:concat ; |
372 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; | 416 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; |
373 | - sp:arg2 _:b33 | 417 | + sp:arg2 _:b36 |
374 | ] | 418 | ] |
375 | ] ; | 419 | ] ; |
376 | - sp:variable _:b28 | 420 | + sp:variable _:b32 |
377 | ] [ sp:object owl:DatatypeProperty ; | 421 | ] [ sp:object owl:DatatypeProperty ; |
378 | sp:predicate rdf:type ; | 422 | sp:predicate rdf:type ; |
379 | - sp:subject _:b28 | 423 | + sp:subject _:b32 |
380 | - ] [ sp:object _:b28 ; | 424 | + ] [ sp:object _:b32 ; |
381 | sp:predicate owl:onProperty ; | 425 | sp:predicate owl:onProperty ; |
382 | - sp:subject _:b34 | 426 | + sp:subject _:b37 |
383 | - ] [ sp:object _:b35 ; | 427 | + ] [ sp:object _:b38 ; |
384 | sp:predicate owl:allValuesFrom ; | 428 | sp:predicate owl:allValuesFrom ; |
385 | - sp:subject _:b34 | 429 | + sp:subject _:b37 |
386 | ] [ rdf:type sp:TriplePath ; | 430 | ] [ rdf:type sp:TriplePath ; |
387 | sp:object xsd:dateTime ; | 431 | sp:object xsd:dateTime ; |
388 | sp:path [ rdf:type sp:ModPath ; | 432 | sp:path [ rdf:type sp:ModPath ; |
... | @@ -390,167 +434,122 @@ ddr:Thing | ... | @@ -390,167 +434,122 @@ ddr:Thing |
390 | sp:modMin 0 ; | 434 | sp:modMin 0 ; |
391 | sp:subPath rdfs:subClassOf | 435 | sp:subPath rdfs:subClassOf |
392 | ] ; | 436 | ] ; |
393 | - sp:subject _:b35 | 437 | + sp:subject _:b38 |
394 | - ] [ sp:object _:b36 ; | 438 | + ] [ sp:object _:b39 ; |
395 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 439 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
396 | - sp:subject _:b31 | 440 | + sp:subject _:b34 |
397 | ] [ sp:object sxml:TextNode ; | 441 | ] [ sp:object sxml:TextNode ; |
398 | sp:predicate rdf:type ; | 442 | sp:predicate rdf:type ; |
399 | - sp:subject _:b36 | 443 | + sp:subject _:b39 |
400 | - ] [ sp:object _:b37 ; | 444 | + ] [ sp:object _:b40 ; |
401 | sp:predicate sxml:text ; | 445 | sp:predicate sxml:text ; |
402 | - sp:subject _:b36 | 446 | + sp:subject _:b39 |
403 | - ] [ sp:object _:b38 ; | 447 | + ] [ sp:object _:b41 ; |
404 | sp:predicate rdf:type ; | 448 | sp:predicate rdf:type ; |
405 | - sp:subject _:b29 | 449 | + sp:subject spin:_this |
406 | ] [ rdf:type sp:TriplePath ; | 450 | ] [ rdf:type sp:TriplePath ; |
407 | - sp:object _:b34 ; | 451 | + sp:object _:b37 ; |
408 | sp:path [ rdf:type sp:ModPath ; | 452 | sp:path [ rdf:type sp:ModPath ; |
409 | sp:modMax -2 ; | 453 | sp:modMax -2 ; |
410 | sp:modMin 0 ; | 454 | sp:modMin 0 ; |
411 | sp:subPath rdfs:subClassOf | 455 | sp:subPath rdfs:subClassOf |
412 | ] ; | 456 | ] ; |
413 | - sp:subject _:b38 | 457 | + sp:subject _:b41 |
414 | ] [ rdf:type sp:Bind ; | 458 | ] [ rdf:type sp:Bind ; |
415 | sp:expression | 459 | sp:expression |
416 | [ rdf:type xsd:dateTime ; | 460 | [ rdf:type xsd:dateTime ; |
417 | - sp:arg1 _:b37 | 461 | + sp:arg1 _:b40 |
418 | ] ; | 462 | ] ; |
419 | - sp:variable _:b27 | 463 | + sp:variable _:b31 |
420 | ]) | 464 | ]) |
421 | ] ; | 465 | ] ; |
422 | spin:rule | 466 | spin:rule |
423 | [ rdf:type sp:Construct ; | 467 | [ rdf:type sp:Construct ; |
424 | - rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; | 468 | + rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; |
425 | - sp:templates ([ sp:object _:b39 ; | 469 | + sp:templates ([ sp:object _:b42 ; |
426 | - sp:predicate _:b40 ; | 470 | + sp:predicate _:b43 ; |
427 | - sp:subject _:b41 | 471 | + sp:subject spin:_this |
428 | ] [ sp:object rdf:Statement ; | 472 | ] [ sp:object rdf:Statement ; |
429 | sp:predicate rdf:type ; | 473 | sp:predicate rdf:type ; |
430 | - sp:subject _:b42 | 474 | + sp:subject _:b44 |
431 | - ] [ sp:object _:b41 ; | 475 | + ] [ sp:object spin:_this ; |
432 | sp:predicate rdf:subject ; | 476 | sp:predicate rdf:subject ; |
433 | - sp:subject _:b42 | 477 | + sp:subject _:b44 |
434 | - ] [ sp:object _:b40 ; | 478 | + ] [ sp:object _:b43 ; |
435 | sp:predicate rdf:predicate ; | 479 | sp:predicate rdf:predicate ; |
436 | - sp:subject _:b42 | 480 | + sp:subject _:b44 |
437 | - ] [ sp:object _:b39 ; | ||
438 | - sp:predicate rdf:object ; | ||
439 | - sp:subject _:b42 | ||
440 | ] [ sp:object _:b42 ; | 481 | ] [ sp:object _:b42 ; |
482 | + sp:predicate rdf:object ; | ||
483 | + sp:subject _:b44 | ||
484 | + ] [ sp:object _:b44 ; | ||
441 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 485 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
442 | - sp:subject _:b43 | 486 | + sp:subject _:b45 |
443 | ]) ; | 487 | ]) ; |
444 | - sp:where ([ sp:object _:b43 ; | 488 | + sp:where ([ sp:object _:b45 ; |
445 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 489 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
446 | - sp:subject _:b41 | 490 | + sp:subject spin:_this |
447 | - ] [ sp:object _:b44 ; | 491 | + ] [ sp:object _:b46 ; |
448 | sp:predicate rdf:type ; | 492 | sp:predicate rdf:type ; |
449 | - sp:subject _:b43 | 493 | + sp:subject _:b45 |
450 | ] [ rdf:type sp:NotExists ; | 494 | ] [ rdf:type sp:NotExists ; |
451 | sp:elements ([ sp:object | 495 | sp:elements ([ sp:object |
452 | [ sp:varName "uom"^^xsd:string | 496 | [ sp:varName "uom"^^xsd:string |
453 | ] ; | 497 | ] ; |
454 | sp:predicate ddr:uom ; | 498 | sp:predicate ddr:uom ; |
455 | - sp:subject _:b43 | 499 | + sp:subject _:b45 |
456 | ]) | 500 | ]) |
457 | ] [ rdf:type sp:Bind ; | 501 | ] [ rdf:type sp:Bind ; |
458 | sp:expression | 502 | sp:expression |
459 | - [ rdf:type smf:titleCase ; | 503 | + [ rdf:type afn:localname ; |
460 | - sp:arg1 [ rdf:type afn:localname ; | 504 | + sp:arg1 _:b46 |
461 | - sp:arg1 _:b44 | ||
462 | - ] | ||
463 | ] ; | 505 | ] ; |
464 | - sp:variable _:b45 | 506 | + sp:variable _:b47 |
465 | ] [ rdf:type sp:Bind ; | 507 | ] [ rdf:type sp:Bind ; |
466 | sp:expression | 508 | sp:expression |
467 | [ rdf:type smf:buildURI ; | 509 | [ rdf:type smf:buildURI ; |
468 | sp:arg1 [ rdf:type fn:concat ; | 510 | sp:arg1 [ rdf:type fn:concat ; |
469 | - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; | 511 | + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; |
470 | - sp:arg2 _:b45 | 512 | + sp:arg2 _:b47 |
471 | ] | 513 | ] |
472 | ] ; | 514 | ] ; |
473 | - sp:variable _:b40 | 515 | + sp:variable _:b43 |
474 | - ] [ sp:object owl:ObjectProperty ; | 516 | + ] [ sp:object owl:DatatypeProperty ; |
475 | sp:predicate rdf:type ; | 517 | sp:predicate rdf:type ; |
476 | - sp:subject _:b40 | 518 | + sp:subject _:b43 |
477 | - ] [ sp:object _:b40 ; | 519 | + ] [ sp:object _:b43 ; |
478 | sp:predicate owl:onProperty ; | 520 | sp:predicate owl:onProperty ; |
479 | - sp:subject _:b46 | 521 | + sp:subject _:b48 |
480 | - ] [ sp:object _:b47 ; | 522 | + ] [ sp:object _:b49 ; |
481 | sp:predicate owl:allValuesFrom ; | 523 | sp:predicate owl:allValuesFrom ; |
482 | - sp:subject _:b46 | ||
483 | - ] [ sp:object _:b48 ; | ||
484 | - sp:predicate rdf:type ; | ||
485 | - sp:subject _:b41 | ||
486 | - ] [ sp:object _:b46 ; | ||
487 | - sp:predicate rdfs:subClassOf ; | ||
488 | sp:subject _:b48 | 524 | sp:subject _:b48 |
489 | ] [ rdf:type sp:TriplePath ; | 525 | ] [ rdf:type sp:TriplePath ; |
490 | - sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; | 526 | + sp:object xsd:string ; |
491 | sp:path [ rdf:type sp:ModPath ; | 527 | sp:path [ rdf:type sp:ModPath ; |
492 | sp:modMax -2 ; | 528 | sp:modMax -2 ; |
493 | sp:modMin 0 ; | 529 | sp:modMin 0 ; |
494 | sp:subPath rdfs:subClassOf | 530 | sp:subPath rdfs:subClassOf |
495 | ] ; | 531 | ] ; |
496 | - sp:subject _:b47 | 532 | + sp:subject _:b49 |
497 | - ] [ sp:object _:b49 ; | 533 | + ] [ sp:object _:b50 ; |
498 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 534 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
499 | - sp:subject _:b43 | 535 | + sp:subject _:b45 |
500 | ] [ sp:object sxml:TextNode ; | 536 | ] [ sp:object sxml:TextNode ; |
501 | sp:predicate rdf:type ; | 537 | sp:predicate rdf:type ; |
502 | - sp:subject _:b49 | 538 | + sp:subject _:b50 |
503 | - ] [ sp:object _:b50 ; | 539 | + ] [ sp:object _:b42 ; |
504 | sp:predicate sxml:text ; | 540 | sp:predicate sxml:text ; |
505 | - sp:subject _:b49 | 541 | + sp:subject _:b50 |
506 | - ] [ sp:object _:b47 ; | ||
507 | - sp:predicate rdf:type ; | ||
508 | - sp:subject _:b39 | ||
509 | - ] [ sp:object _:b50 ; | ||
510 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
511 | - sp:subject _:b39 | ||
512 | - ]) | ||
513 | - ] ; | ||
514 | - spin:rule | ||
515 | - [ rdf:type sp:Construct ; | ||
516 | - rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; | ||
517 | - sp:templates ([ sp:object _:b51 ; | ||
518 | - sp:predicate _:b52 ; | ||
519 | - sp:subject _:b53 | ||
520 | - ] [ sp:object rdf:Statement ; | ||
521 | - sp:predicate rdf:type ; | ||
522 | - sp:subject _:b54 | ||
523 | - ] [ sp:object _:b53 ; | ||
524 | - sp:predicate rdf:subject ; | ||
525 | - sp:subject _:b54 | ||
526 | - ] [ sp:object _:b52 ; | ||
527 | - sp:predicate rdf:predicate ; | ||
528 | - sp:subject _:b54 | ||
529 | ] [ sp:object _:b51 ; | 542 | ] [ sp:object _:b51 ; |
530 | - sp:predicate rdf:object ; | ||
531 | - sp:subject _:b54 | ||
532 | - ] [ sp:object _:b54 ; | ||
533 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | ||
534 | - sp:subject _:b51 | ||
535 | - ]) ; | ||
536 | - sp:where ([ sp:object _:b55 ; | ||
537 | - sp:predicate owl:allValuesFrom ; | ||
538 | - sp:subject _:b56 | ||
539 | - ] [ sp:object _:b52 ; | ||
540 | - sp:predicate owl:onProperty ; | ||
541 | - sp:subject _:b56 | ||
542 | - ] [ sp:object _:b55 ; | ||
543 | sp:predicate rdf:type ; | 543 | sp:predicate rdf:type ; |
544 | + sp:subject spin:_this | ||
545 | + ] [ rdf:type sp:TriplePath ; | ||
546 | + sp:object _:b48 ; | ||
547 | + sp:path [ rdf:type sp:ModPath ; | ||
548 | + sp:modMax -2 ; | ||
549 | + sp:modMin 0 ; | ||
550 | + sp:subPath rdfs:subClassOf | ||
551 | + ] ; | ||
544 | sp:subject _:b51 | 552 | sp:subject _:b51 |
545 | - ] [ sp:object _:b51 ; | ||
546 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
547 | - sp:subject _:b53 | ||
548 | - ] [ sp:object _:b57 ; | ||
549 | - sp:predicate rdf:type ; | ||
550 | - sp:subject _:b53 | ||
551 | - ] [ sp:object _:b56 ; | ||
552 | - sp:predicate rdfs:subClassOf ; | ||
553 | - sp:subject _:b57 | ||
554 | ]) | 553 | ]) |
555 | ] . | 554 | ] . |
556 | 555 | ||
... | @@ -567,284 +566,266 @@ ddr:version | ... | @@ -567,284 +566,266 @@ ddr:version |
567 | 566 | ||
568 | <http://www.reportinghub.no/ep/transform/1.1/ddr> | 567 | <http://www.reportinghub.no/ep/transform/1.1/ddr> |
569 | rdf:type owl:Ontology ; | 568 | rdf:type owl:Ontology ; |
570 | - owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ; | 569 | + owl:imports <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://topbraid.org/sxml> , <http://spinrdf.org/spin> ; |
571 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 570 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
572 | 571 | ||
573 | owl:Thing | 572 | owl:Thing |
574 | spin:query | 573 | spin:query |
575 | [ rdf:type sp:Select ; | 574 | [ rdf:type sp:Select ; |
576 | - sp:resultVariables (_:b58 _:b59 _:b60 _:b61) ; | 575 | + sp:resultVariables (_:b52 _:b53 _:b54 _:b55) ; |
577 | - sp:where ([ sp:object _:b61 ; | ||
578 | - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; | ||
579 | - sp:subject _:b60 | ||
580 | - ] [ sp:object _:b60 ; | ||
581 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
582 | - sp:subject _:b59 | ||
583 | - ] [ rdf:type sp:Union ; | ||
584 | - sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ; | ||
585 | - sp:predicate rdf:type ; | ||
586 | - sp:subject _:b59 | ||
587 | - ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ; | ||
588 | - sp:predicate rdf:type ; | ||
589 | - sp:subject _:b59 | ||
590 | - ])) | ||
591 | - ] [ sp:object _:b59 ; | ||
592 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
593 | - sp:subject _:b58 | ||
594 | - ]) | ||
595 | - ] ; | ||
596 | - spin:query | ||
597 | - [ rdf:type sp:Select ; | ||
598 | - sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ; | ||
599 | sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; | 576 | sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; |
600 | sp:predicate rdf:type ; | 577 | sp:predicate rdf:type ; |
601 | - sp:subject _:b66 | 578 | + sp:subject _:b56 |
602 | ] [ rdf:type sp:TriplePath ; | 579 | ] [ rdf:type sp:TriplePath ; |
603 | - sp:object _:b67 ; | 580 | + sp:object _:b57 ; |
604 | sp:path [ rdf:type sp:ModPath ; | 581 | sp:path [ rdf:type sp:ModPath ; |
605 | sp:modMax -2 ; | 582 | sp:modMax -2 ; |
606 | sp:modMin 0 ; | 583 | sp:modMin 0 ; |
607 | sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> | 584 | sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> |
608 | ] ; | 585 | ] ; |
609 | - sp:subject _:b66 | 586 | + sp:subject _:b56 |
610 | - ] [ sp:object _:b68 ; | 587 | + ] [ sp:object _:b58 ; |
611 | sp:predicate <http://topbraid.org/sxsd#name> ; | 588 | sp:predicate <http://topbraid.org/sxsd#name> ; |
612 | - sp:subject _:b66 | 589 | + sp:subject _:b56 |
613 | - ] [ sp:object _:b65 ; | 590 | + ] [ sp:object _:b55 ; |
614 | sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; | 591 | sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; |
615 | - sp:subject _:b67 | 592 | + sp:subject _:b57 |
616 | - ] [ sp:object _:b69 ; | 593 | + ] [ sp:object _:b59 ; |
617 | sp:predicate <http://topbraid.org/sxsd#name> ; | 594 | sp:predicate <http://topbraid.org/sxsd#name> ; |
618 | - sp:subject _:b67 | 595 | + sp:subject _:b57 |
619 | ] [ rdf:type sp:Bind ; | 596 | ] [ rdf:type sp:Bind ; |
620 | sp:expression | 597 | sp:expression |
621 | [ rdf:type spif:titleCase ; | 598 | [ rdf:type spif:titleCase ; |
622 | - sp:arg1 _:b69 | 599 | + sp:arg1 _:b59 |
623 | ] ; | 600 | ] ; |
624 | - sp:variable _:b70 | 601 | + sp:variable _:b60 |
625 | ] [ rdf:type sp:Bind ; | 602 | ] [ rdf:type sp:Bind ; |
626 | sp:expression | 603 | sp:expression |
627 | [ rdf:type smf:buildURI ; | 604 | [ rdf:type smf:buildURI ; |
628 | sp:arg1 [ rdf:type fn:concat ; | 605 | sp:arg1 [ rdf:type fn:concat ; |
629 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; | 606 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; |
630 | - sp:arg2 _:b70 | 607 | + sp:arg2 _:b60 |
631 | ] | 608 | ] |
632 | ] ; | 609 | ] ; |
633 | - sp:variable _:b64 | 610 | + sp:variable _:b54 |
634 | ] [ rdf:type sp:Bind ; | 611 | ] [ rdf:type sp:Bind ; |
635 | sp:expression | 612 | sp:expression |
636 | [ rdf:type spif:titleCase ; | 613 | [ rdf:type spif:titleCase ; |
637 | - sp:arg1 _:b68 ; | 614 | + sp:arg1 _:b58 ; |
638 | sp:arg2 "[a-z]s" | 615 | sp:arg2 "[a-z]s" |
639 | ] ; | 616 | ] ; |
640 | - sp:variable _:b71 | 617 | + sp:variable _:b61 |
641 | ] [ rdf:type sp:Bind ; | 618 | ] [ rdf:type sp:Bind ; |
642 | sp:expression | 619 | sp:expression |
643 | [ rdf:type smf:buildURI ; | 620 | [ rdf:type smf:buildURI ; |
644 | sp:arg1 [ rdf:type fn:concat ; | 621 | sp:arg1 [ rdf:type fn:concat ; |
645 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; | 622 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; |
646 | - sp:arg2 _:b71 | 623 | + sp:arg2 _:b61 |
647 | ] | 624 | ] |
648 | ] ; | 625 | ] ; |
649 | - sp:variable _:b63 | 626 | + sp:variable _:b53 |
650 | ] [ rdf:type sp:Bind ; | 627 | ] [ rdf:type sp:Bind ; |
651 | sp:expression | 628 | sp:expression |
652 | [ rdf:type smf:buildURI ; | 629 | [ rdf:type smf:buildURI ; |
653 | sp:arg1 [ rdf:type fn:concat ; | 630 | sp:arg1 [ rdf:type fn:concat ; |
654 | sp:arg1 "http://www.reportinghub.no/map/ddr#" ; | 631 | sp:arg1 "http://www.reportinghub.no/map/ddr#" ; |
655 | - sp:arg2 _:b71 ; | 632 | + sp:arg2 _:b61 ; |
656 | sp:arg3 "-has" ; | 633 | sp:arg3 "-has" ; |
657 | - sp:arg4 _:b70 | 634 | + sp:arg4 _:b60 |
658 | ] | 635 | ] |
659 | ] ; | 636 | ] ; |
660 | - sp:variable _:b62 | 637 | + sp:variable _:b52 |
638 | + ]) | ||
639 | + ] ; | ||
640 | + spin:query | ||
641 | + [ rdf:type sp:Select ; | ||
642 | + sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ; | ||
643 | + sp:where ([ sp:object _:b65 ; | ||
644 | + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; | ||
645 | + sp:subject _:b64 | ||
646 | + ] [ sp:object _:b64 ; | ||
647 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
648 | + sp:subject _:b63 | ||
649 | + ] [ rdf:type sp:Union ; | ||
650 | + sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ; | ||
651 | + sp:predicate rdf:type ; | ||
652 | + sp:subject _:b63 | ||
653 | + ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ; | ||
654 | + sp:predicate rdf:type ; | ||
655 | + sp:subject _:b63 | ||
656 | + ])) | ||
657 | + ] [ sp:object _:b63 ; | ||
658 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
659 | + sp:subject _:b62 | ||
661 | ]) | 660 | ]) |
662 | ] . | 661 | ] . |
663 | 662 | ||
664 | -_:b51 | 663 | +_:b62 |
665 | - sp:varName "child"^^xsd:string . | 664 | + sp:varName "pp"^^xsd:string . |
665 | + | ||
666 | +_:b63 | ||
667 | + sp:varName "p"^^xsd:string . | ||
668 | + | ||
669 | +_:b64 | ||
670 | + sp:varName "s"^^xsd:string . | ||
671 | + | ||
672 | +_:b65 | ||
673 | + sp:varName "e"^^xsd:string . | ||
666 | 674 | ||
667 | _:b52 | 675 | _:b52 |
668 | - sp:varName "formalProperty"^^xsd:string . | 676 | + sp:varName "ddrCPU"^^xsd:string . |
669 | 677 | ||
670 | _:b53 | 678 | _:b53 |
671 | - sp:varName "inst"^^xsd:string . | 679 | + sp:varName "ddrCU"^^xsd:string . |
680 | + | ||
681 | +_:b54 | ||
682 | + sp:varName "ddrPU"^^xsd:string . | ||
672 | 683 | ||
673 | _:b55 | 684 | _:b55 |
674 | - sp:varName "childType"^^xsd:string . | 685 | + sp:varName "mre"^^xsd:string . |
675 | 686 | ||
676 | _:b56 | 687 | _:b56 |
677 | - sp:varName "valuesRestriction"^^xsd:string . | 688 | + sp:varName "s"^^xsd:string . |
678 | 689 | ||
679 | _:b57 | 690 | _:b57 |
680 | - sp:varName "instType"^^xsd:string . | 691 | + sp:varName "c"^^xsd:string . |
681 | 692 | ||
682 | -_:b39 | 693 | +_:b58 |
683 | - sp:varName "enumeratedValue"^^xsd:string . | 694 | + sp:varName "name"^^xsd:string . |
684 | 695 | ||
685 | -_:b40 | 696 | +_:b59 |
686 | - sp:varName "opnameU"^^xsd:string . | 697 | + sp:varName "pname"^^xsd:string . |
687 | 698 | ||
688 | -_:b41 | 699 | +_:b60 |
689 | - sp:varName "inst"^^xsd:string . | 700 | + sp:varName "tcpname"^^xsd:string . |
690 | 701 | ||
691 | -_:b43 | 702 | +_:b61 |
703 | + sp:varName "tcname"^^xsd:string . | ||
704 | + | ||
705 | +_:b34 | ||
692 | sp:varName "child"^^xsd:string . | 706 | sp:varName "child"^^xsd:string . |
693 | 707 | ||
694 | -_:b44 | 708 | +_:b35 |
695 | sp:varName "childType"^^xsd:string . | 709 | sp:varName "childType"^^xsd:string . |
696 | 710 | ||
697 | -_:b45 | 711 | +_:b36 |
698 | sp:varName "childLocalName"^^xsd:string . | 712 | sp:varName "childLocalName"^^xsd:string . |
699 | 713 | ||
700 | -_:b46 | 714 | +_:b32 |
701 | - sp:varName "valuesRestriction"^^xsd:string . | 715 | + sp:varName "dtpnameU"^^xsd:string . |
702 | 716 | ||
703 | -_:b47 | 717 | +_:b37 |
704 | - sp:varName "rangeU"^^xsd:string . | 718 | + sp:varName "valuesRestriction"^^xsd:string . |
705 | 719 | ||
706 | -_:b48 | 720 | +_:b38 |
707 | - sp:varName "instType"^^xsd:string . | 721 | + sp:varName "rangeType"^^xsd:string . |
708 | 722 | ||
709 | -_:b49 | 723 | +_:b39 |
710 | sp:varName "textNode"^^xsd:string . | 724 | sp:varName "textNode"^^xsd:string . |
711 | 725 | ||
712 | -_:b50 | 726 | +_:b40 |
713 | sp:varName "text"^^xsd:string . | 727 | sp:varName "text"^^xsd:string . |
714 | 728 | ||
715 | -_:b27 | 729 | +_:b41 |
716 | - sp:varName "dateTime"^^xsd:string . | 730 | + sp:varName "instType"^^xsd:string . |
717 | - | ||
718 | -_:b28 | ||
719 | - sp:varName "dtpnameU"^^xsd:string . | ||
720 | - | ||
721 | -_:b29 | ||
722 | - sp:varName "inst"^^xsd:string . | ||
723 | 731 | ||
724 | _:b31 | 732 | _:b31 |
733 | + sp:varName "dateTime"^^xsd:string . | ||
734 | + | ||
735 | +_:b45 | ||
725 | sp:varName "child"^^xsd:string . | 736 | sp:varName "child"^^xsd:string . |
726 | 737 | ||
727 | -_:b32 | 738 | +_:b46 |
728 | sp:varName "childType"^^xsd:string . | 739 | sp:varName "childType"^^xsd:string . |
729 | 740 | ||
730 | -_:b33 | 741 | +_:b47 |
731 | sp:varName "childLocalName"^^xsd:string . | 742 | sp:varName "childLocalName"^^xsd:string . |
732 | 743 | ||
733 | -_:b34 | 744 | +_:b43 |
745 | + sp:varName "dtpnameU"^^xsd:string . | ||
746 | + | ||
747 | +_:b48 | ||
734 | sp:varName "valuesRestriction"^^xsd:string . | 748 | sp:varName "valuesRestriction"^^xsd:string . |
735 | 749 | ||
736 | -_:b35 | 750 | +_:b49 |
737 | sp:varName "rangeType"^^xsd:string . | 751 | sp:varName "rangeType"^^xsd:string . |
738 | 752 | ||
739 | -_:b36 | 753 | +_:b50 |
740 | sp:varName "textNode"^^xsd:string . | 754 | sp:varName "textNode"^^xsd:string . |
741 | 755 | ||
742 | -_:b37 | 756 | +_:b42 |
743 | sp:varName "text"^^xsd:string . | 757 | sp:varName "text"^^xsd:string . |
744 | 758 | ||
745 | -_:b38 | 759 | +_:b51 |
746 | sp:varName "instType"^^xsd:string . | 760 | sp:varName "instType"^^xsd:string . |
747 | 761 | ||
748 | -_:b1 sp:varName "rangeU"^^xsd:string . | 762 | +_:b13 |
749 | - | 763 | + sp:varName "child"^^xsd:string . |
750 | -_:b3 sp:varName "uom"^^xsd:string . | ||
751 | - | ||
752 | -_:b4 sp:varName "value"^^xsd:string . | ||
753 | - | ||
754 | -_:b5 sp:varName "opnameU"^^xsd:string . | ||
755 | - | ||
756 | -_:b6 sp:varName "inst"^^xsd:string . | ||
757 | 764 | ||
758 | -_:b8 sp:varName "child"^^xsd:string . | 765 | +_:b14 |
766 | + sp:varName "childType"^^xsd:string . | ||
759 | 767 | ||
760 | -_:b9 sp:varName "childType"^^xsd:string . | 768 | +_:b9 sp:varName "uom"^^xsd:string . |
761 | 769 | ||
762 | -_:b10 | 770 | +_:b15 |
763 | sp:varName "childLocalName"^^xsd:string . | 771 | sp:varName "childLocalName"^^xsd:string . |
764 | 772 | ||
765 | _:b11 | 773 | _:b11 |
774 | + sp:varName "opnameU"^^xsd:string . | ||
775 | + | ||
776 | +_:b16 | ||
766 | sp:varName "allValuesRestriction"^^xsd:string . | 777 | sp:varName "allValuesRestriction"^^xsd:string . |
767 | 778 | ||
768 | -_:b12 | 779 | +_:b7 sp:varName "rangeU"^^xsd:string . |
780 | + | ||
781 | +_:b17 | ||
769 | sp:varName "instType"^^xsd:string . | 782 | sp:varName "instType"^^xsd:string . |
770 | 783 | ||
771 | -_:b13 | 784 | +_:b18 |
772 | sp:varName "textNode"^^xsd:string . | 785 | sp:varName "textNode"^^xsd:string . |
773 | 786 | ||
774 | -_:b14 | 787 | +_:b19 |
775 | - sp:varName "text"^^xsd:string . | ||
776 | - | ||
777 | -_:b15 | ||
778 | sp:varName "text"^^xsd:string . | 788 | sp:varName "text"^^xsd:string . |
779 | 789 | ||
780 | -_:b16 | 790 | +_:b10 |
781 | - sp:varName "dtpnameU"^^xsd:string . | 791 | + sp:varName "value"^^xsd:string . |
782 | - | ||
783 | -_:b17 | ||
784 | - sp:varName "inst"^^xsd:string . | ||
785 | 792 | ||
786 | -_:b19 | 793 | +_:b23 |
787 | sp:varName "child"^^xsd:string . | 794 | sp:varName "child"^^xsd:string . |
788 | 795 | ||
789 | -_:b20 | 796 | +_:b24 |
790 | sp:varName "childType"^^xsd:string . | 797 | sp:varName "childType"^^xsd:string . |
791 | 798 | ||
792 | -_:b21 | 799 | +_:b25 |
793 | sp:varName "childLocalName"^^xsd:string . | 800 | sp:varName "childLocalName"^^xsd:string . |
794 | 801 | ||
795 | -_:b22 | 802 | +_:b21 |
796 | - sp:varName "valuesRestriction"^^xsd:string . | 803 | + sp:varName "opnameU"^^xsd:string . |
797 | - | ||
798 | -_:b23 | ||
799 | - sp:varName "rangeType"^^xsd:string . | ||
800 | - | ||
801 | -_:b24 | ||
802 | - sp:varName "textNode"^^xsd:string . | ||
803 | - | ||
804 | -_:b25 | ||
805 | - sp:varName "instType"^^xsd:string . | ||
806 | 804 | ||
807 | _:b26 | 805 | _:b26 |
808 | - sp:varName "activity"^^xsd:string . | 806 | + sp:varName "valuesRestriction"^^xsd:string . |
809 | - | ||
810 | -_:b62 | ||
811 | - sp:varName "ddrCPU"^^xsd:string . | ||
812 | - | ||
813 | -_:b63 | ||
814 | - sp:varName "ddrCU"^^xsd:string . | ||
815 | - | ||
816 | -_:b64 | ||
817 | - sp:varName "ddrPU"^^xsd:string . | ||
818 | - | ||
819 | -_:b65 | ||
820 | - sp:varName "mre"^^xsd:string . | ||
821 | 807 | ||
822 | -_:b66 | 808 | +_:b27 |
823 | - sp:varName "s"^^xsd:string . | 809 | + sp:varName "rangeU"^^xsd:string . |
824 | 810 | ||
825 | -_:b67 | 811 | +_:b28 |
826 | - sp:varName "c"^^xsd:string . | 812 | + sp:varName "instType"^^xsd:string . |
827 | 813 | ||
828 | -_:b68 | 814 | +_:b29 |
829 | - sp:varName "name"^^xsd:string . | 815 | + sp:varName "textNode"^^xsd:string . |
830 | 816 | ||
831 | -_:b69 | 817 | +_:b30 |
832 | - sp:varName "pname"^^xsd:string . | 818 | + sp:varName "text"^^xsd:string . |
833 | 819 | ||
834 | -_:b70 | 820 | +_:b20 |
835 | - sp:varName "tcpname"^^xsd:string . | 821 | + sp:varName "enumeratedValue"^^xsd:string . |
836 | 822 | ||
837 | -_:b71 | 823 | +_:b5 sp:varName "valuesRestriction"^^xsd:string . |
838 | - sp:varName "tcname"^^xsd:string . | ||
839 | 824 | ||
840 | -_:b58 | 825 | +_:b4 sp:varName "childType"^^xsd:string . |
841 | - sp:varName "pp"^^xsd:string . | ||
842 | 826 | ||
843 | -_:b59 | 827 | +_:b2 sp:varName "formalProperty"^^xsd:string . |
844 | - sp:varName "p"^^xsd:string . | ||
845 | 828 | ||
846 | -_:b60 | 829 | +_:b1 sp:varName "child"^^xsd:string . |
847 | - sp:varName "s"^^xsd:string . | ||
848 | 830 | ||
849 | -_:b61 | 831 | +_:b6 sp:varName "instType"^^xsd:string . |
850 | - sp:varName "e"^^xsd:string . | ... | ... |
-
Please register or login to post a comment