Ralph Hodgson

Fixed WellboreAlias and WellAlias issue with rule 018

1 -# Saved by TopBraid on Wed Aug 10 08:36:25 PDT 2011 1 +# Saved by TopBraid on Wed Aug 10 18:50:05 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/transform/1.1/wellAndWellBoreAlias 3 # imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
4 # imports: http://www.reportinghub.no/ep/schema/1.0/report 4 # imports: http://www.reportinghub.no/ep/schema/1.0/report
...@@ -26,6 +26,15 @@ ...@@ -26,6 +26,15 @@
26 @prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . 26 @prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
27 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 27 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
28 28
29 +NPD_1104121247071:r-0-7
30 + sxml:element "witsml:wellAlias"^^xsd:string .
31 +
32 +NPD_1104121247071:r-0-8
33 + sxml:element "witsml:wellboreAlias"^^xsd:string .
34 +
35 +NPD_1104121247071:r-0-9
36 + sxml:element "witsml:wellboreAlias"^^xsd:string .
37 +
29 ddr:Cs_activity 38 ddr:Cs_activity
30 spin:rule 39 spin:rule
31 [ rdf:type sp:Construct ; 40 [ rdf:type sp:Construct ;
...@@ -39,7 +48,7 @@ ddr:Cs_activity ...@@ -39,7 +48,7 @@ ddr:Cs_activity
39 sxml:element "witsml:activity"^^xsd:string . 48 sxml:element "witsml:activity"^^xsd:string .
40 49
41 ddr:Cs_alias 50 ddr:Cs_alias
42 - sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string . 51 + sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" .
43 52
44 ddr:Cs_bitRecord 53 ddr:Cs_bitRecord
45 sxml:element "witsml:bitRecord" . 54 sxml:element "witsml:bitRecord" .
...@@ -87,7 +96,7 @@ ddr:Cs_drillReportPorePressure ...@@ -87,7 +96,7 @@ ddr:Cs_drillReportPorePressure
87 sxml:element "witsml:drillReportPorePressure" . 96 sxml:element "witsml:drillReportPorePressure" .
88 97
89 ddr:Cs_drillReportStatusInfo 98 ddr:Cs_drillReportStatusInfo
90 - sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string . 99 + sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" .
91 100
92 ddr:Cs_drillReportStratInfo 101 ddr:Cs_drillReportStratInfo
93 sxml:element "witsml:drillReportStratInfo" . 102 sxml:element "witsml:drillReportStratInfo" .
...@@ -123,7 +132,7 @@ ddr:Cs_refWellWellboreRig ...@@ -123,7 +132,7 @@ ddr:Cs_refWellWellboreRig
123 sxml:element "witsml:refWellWellboreRig" . 132 sxml:element "witsml:refWellWellboreRig" .
124 133
125 ddr:Cs_wellAlias 134 ddr:Cs_wellAlias
126 - sxml:element "witsml:wellAlias"^^xsd:string , "witsml:wellboreAlias"^^xsd:string . 135 + sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias"^^xsd:string .
127 136
128 ddr:Cs_wellCRS 137 ddr:Cs_wellCRS
129 sxml:element "witsml:wellCRS" . 138 sxml:element "witsml:wellCRS" .
...@@ -140,7 +149,7 @@ ddr:Obj_drillReport ...@@ -140,7 +149,7 @@ ddr:Obj_drillReport
140 ddr:Thing 149 ddr:Thing
141 spin:rule 150 spin:rule
142 [ rdf:type sp:Construct ; 151 [ rdf:type sp:Construct ;
143 - rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; 152 + rdfs:comment "STEP 018 - Construct all other object properties - WIP"^^xsd:string ;
144 sp:templates ([ sp:object _:b1 ; 153 sp:templates ([ sp:object _:b1 ;
145 sp:predicate _:b2 ; 154 sp:predicate _:b2 ;
146 sp:subject spin:_this 155 sp:subject spin:_this
...@@ -158,289 +167,227 @@ ddr:Thing ...@@ -158,289 +167,227 @@ ddr:Thing
158 sp:subject _:b3 167 sp:subject _:b3
159 ] [ sp:object _:b3 ; 168 ] [ sp:object _:b3 ;
160 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 169 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
161 - sp:subject _:b4 170 + sp:subject _:b1
162 ]) ; 171 ]) ;
163 sp:where ([ sp:object _:b4 ; 172 sp:where ([ sp:object _:b4 ;
164 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 173 + sp:predicate owl:allValuesFrom ;
165 - sp:subject spin:_this 174 + sp:subject _:b5
166 - ] [ sp:object _:b5 ; 175 + ] [ sp:object _:b2 ;
167 - sp:predicate rdf:type ; 176 + sp:predicate owl:onProperty ;
168 - sp:subject _:b4 177 + sp:subject _:b5
169 - ] [ rdf:type sp:NotExists ;
170 - sp:elements ([ sp:object
171 - [ sp:varName "uom"^^xsd:string
172 - ] ;
173 - sp:predicate ddr:uom ;
174 - sp:subject _:b4
175 - ])
176 ] [ rdf:type sp:Bind ; 178 ] [ rdf:type sp:Bind ;
177 sp:expression 179 sp:expression
178 [ rdf:type afn:localname ; 180 [ rdf:type afn:localname ;
179 - sp:arg1 _:b5 181 + sp:arg1 _:b2
180 ] ; 182 ] ;
181 sp:variable _:b6 183 sp:variable _:b6
184 + ] [ sp:object _:b4 ;
185 + sp:predicate rdf:type ;
186 + sp:subject _:b1
187 + ] [ sp:object _:b1 ;
188 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
189 + sp:subject spin:_this
190 + ] [ sp:object _:b7 ;
191 + sp:predicate sxml:instanceElement ;
192 + sp:subject _:b1
182 ] [ rdf:type sp:Bind ; 193 ] [ rdf:type sp:Bind ;
183 sp:expression 194 sp:expression
184 - [ rdf:type smf:buildURI ; 195 + [ rdf:type smf:regex ;
185 - sp:arg1 [ rdf:type fn:concat ; 196 + sp:arg1 _:b7 ;
186 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 197 + sp:arg2 "(.*):(.*)" ;
187 - sp:arg2 _:b6 198 + sp:arg3 "$2"
188 - ]
189 - ] ;
190 - sp:variable _:b2
191 - ] [ sp:object owl:DatatypeProperty ;
192 - sp:predicate rdf:type ;
193 - sp:subject _:b2
194 - ] [ sp:object _:b2 ;
195 - sp:predicate owl:onProperty ;
196 - sp:subject _:b7
197 - ] [ sp:object _:b8 ;
198 - sp:predicate owl:allValuesFrom ;
199 - sp:subject _:b7
200 - ] [ rdf:type sp:TriplePath ;
201 - sp:object xsd:string ;
202 - sp:path [ rdf:type sp:ModPath ;
203 - sp:modMax -2 ;
204 - sp:modMin 0 ;
205 - sp:subPath rdfs:subClassOf
206 ] ; 199 ] ;
207 - sp:subject _:b8 200 + sp:variable _:b8
201 + ] [ rdf:type sp:Filter ;
202 + sp:expression
203 + [ rdf:type sp:eq ;
204 + sp:arg1 _:b8 ;
205 + sp:arg2 _:b6
206 + ]
208 ] [ sp:object _:b9 ; 207 ] [ sp:object _:b9 ;
209 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
210 - sp:subject _:b4
211 - ] [ sp:object sxml:TextNode ;
212 - sp:predicate rdf:type ;
213 - sp:subject _:b9
214 - ] [ sp:object _:b1 ;
215 - sp:predicate sxml:text ;
216 - sp:subject _:b9
217 - ] [ sp:object _:b10 ;
218 sp:predicate rdf:type ; 208 sp:predicate rdf:type ;
219 sp:subject spin:_this 209 sp:subject spin:_this
220 ] [ rdf:type sp:TriplePath ; 210 ] [ rdf:type sp:TriplePath ;
221 - sp:object _:b7 ; 211 + sp:object _:b5 ;
222 sp:path [ rdf:type sp:ModPath ; 212 sp:path [ rdf:type sp:ModPath ;
223 sp:modMax -2 ; 213 sp:modMax -2 ;
224 sp:modMin 0 ; 214 sp:modMin 0 ;
225 sp:subPath rdfs:subClassOf 215 sp:subPath rdfs:subClassOf
226 ] ; 216 ] ;
227 - sp:subject _:b10 217 + sp:subject _:b9
228 ]) 218 ])
229 ] ; 219 ] ;
230 spin:rule 220 spin:rule
231 [ rdf:type sp:Construct ; 221 [ rdf:type sp:Construct ;
232 - rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; 222 + rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
233 - sp:templates ([ sp:object _:b11 ; 223 + sp:templates ([ sp:object _:b10 ;
234 - sp:predicate _:b12 ; 224 + sp:predicate rdf:type ;
225 + sp:subject _:b11
226 + ] [ sp:object _:b12 ;
227 + sp:predicate ddr:uom ;
228 + sp:subject _:b11
229 + ] [ sp:object _:b13 ;
230 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
231 + sp:subject _:b11
232 + ] [ sp:object _:b11 ;
233 + sp:predicate _:b14 ;
235 sp:subject spin:_this 234 sp:subject spin:_this
236 ] [ sp:object rdf:Statement ; 235 ] [ sp:object rdf:Statement ;
237 sp:predicate rdf:type ; 236 sp:predicate rdf:type ;
238 - sp:subject _:b13 237 + sp:subject _:b15
239 ] [ sp:object spin:_this ; 238 ] [ sp:object spin:_this ;
240 sp:predicate rdf:subject ; 239 sp:predicate rdf:subject ;
241 - sp:subject _:b13 240 + sp:subject _:b15
242 - ] [ sp:object _:b12 ; 241 + ] [ sp:object _:b14 ;
243 sp:predicate rdf:predicate ; 242 sp:predicate rdf:predicate ;
244 - sp:subject _:b13 243 + sp:subject _:b15
245 - ] [ sp:object _:b11 ;
246 - sp:predicate rdf:object ;
247 - sp:subject _:b13
248 ] [ sp:object _:b13 ; 244 ] [ sp:object _:b13 ;
245 + sp:predicate rdf:object ;
246 + sp:subject _:b15
247 + ] [ sp:object _:b15 ;
249 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 248 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
250 - sp:subject _:b14 249 + sp:subject _:b16
251 ]) ; 250 ]) ;
252 - sp:where ([ sp:object _:b14 ; 251 + sp:where ([ sp:object _:b16 ;
253 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 252 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
254 sp:subject spin:_this 253 sp:subject spin:_this
255 - ] [ sp:object _:b15 ; 254 + ] [ sp:object _:b17 ;
256 sp:predicate rdf:type ; 255 sp:predicate rdf:type ;
257 - sp:subject _:b14 256 + sp:subject _:b16
257 + ] [ sp:object _:b12 ;
258 + sp:predicate ddr:uom ;
259 + sp:subject _:b16
258 ] [ rdf:type sp:NotExists ; 260 ] [ rdf:type sp:NotExists ;
259 sp:elements ([ sp:object 261 sp:elements ([ sp:object
260 - [ sp:varName "uom"^^xsd:string 262 + [ sp:varName "aNode"^^xsd:string
261 ] ; 263 ] ;
262 - sp:predicate ddr:uom ; 264 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
263 - sp:subject _:b14 265 + sp:subject _:b16
264 ]) 266 ])
265 ] [ rdf:type sp:Bind ; 267 ] [ rdf:type sp:Bind ;
266 sp:expression 268 sp:expression
267 [ rdf:type afn:localname ; 269 [ rdf:type afn:localname ;
268 - sp:arg1 _:b15 270 + sp:arg1 _:b17
269 ] ; 271 ] ;
270 - sp:variable _:b16 272 + sp:variable _:b18
271 ] [ rdf:type sp:Bind ; 273 ] [ rdf:type sp:Bind ;
272 sp:expression 274 sp:expression
273 [ rdf:type smf:buildURI ; 275 [ rdf:type smf:buildURI ;
274 sp:arg1 [ rdf:type fn:concat ; 276 sp:arg1 [ rdf:type fn:concat ;
275 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 277 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
276 - sp:arg2 _:b16 278 + sp:arg2 _:b18
277 ] 279 ]
278 ] ; 280 ] ;
279 - sp:variable _:b12 281 + sp:variable _:b14
280 - ] [ sp:object owl:DatatypeProperty ; 282 + ] [ sp:object owl:ObjectProperty ;
281 sp:predicate rdf:type ; 283 sp:predicate rdf:type ;
282 - sp:subject _:b12 284 + sp:subject _:b14
283 - ] [ sp:object _:b12 ; 285 + ] [ sp:object _:b14 ;
284 sp:predicate owl:onProperty ; 286 sp:predicate owl:onProperty ;
285 - sp:subject _:b17 287 + sp:subject _:b19
286 - ] [ sp:object _:b18 ; 288 + ] [ sp:object _:b10 ;
287 sp:predicate owl:allValuesFrom ; 289 sp:predicate owl:allValuesFrom ;
288 - sp:subject _:b17
289 - ] [ rdf:type sp:TriplePath ;
290 - sp:object xsd:dateTime ;
291 - sp:path [ rdf:type sp:ModPath ;
292 - sp:modMax -2 ;
293 - sp:modMin 0 ;
294 - sp:subPath rdfs:subClassOf
295 - ] ;
296 - sp:subject _:b18
297 - ] [ sp:object _:b19 ;
298 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
299 - sp:subject _:b14
300 - ] [ sp:object sxml:TextNode ;
301 - sp:predicate rdf:type ;
302 sp:subject _:b19 290 sp:subject _:b19
303 ] [ sp:object _:b20 ; 291 ] [ sp:object _:b20 ;
304 - sp:predicate sxml:text ;
305 - sp:subject _:b19
306 - ] [ sp:object _:b21 ;
307 sp:predicate rdf:type ; 292 sp:predicate rdf:type ;
308 sp:subject spin:_this 293 sp:subject spin:_this
309 ] [ rdf:type sp:TriplePath ; 294 ] [ rdf:type sp:TriplePath ;
310 - sp:object _:b17 ; 295 + sp:object _:b19 ;
311 sp:path [ rdf:type sp:ModPath ; 296 sp:path [ rdf:type sp:ModPath ;
312 sp:modMax -2 ; 297 sp:modMax -2 ;
313 sp:modMin 0 ; 298 sp:modMin 0 ;
314 sp:subPath rdfs:subClassOf 299 sp:subPath rdfs:subClassOf
315 ] ; 300 ] ;
301 + sp:subject _:b20
302 + ] [ sp:object _:b21 ;
303 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
304 + sp:subject _:b16
305 + ] [ sp:object sxml:TextNode ;
306 + sp:predicate rdf:type ;
307 + sp:subject _:b21
308 + ] [ sp:object _:b22 ;
309 + sp:predicate sxml:text ;
316 sp:subject _:b21 310 sp:subject _:b21
317 ] [ rdf:type sp:Bind ; 311 ] [ rdf:type sp:Bind ;
318 sp:expression 312 sp:expression
319 - [ rdf:type xsd:dateTime ; 313 + [ rdf:type xsd:double ;
320 - sp:arg1 _:b20 314 + sp:arg1 _:b22
321 - ] ;
322 - sp:variable _:b11
323 - ])
324 - ] ;
325 - spin:rule
326 - [ rdf:type sp:Construct ;
327 - rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
328 - sp:templates ([ sp:object _:b22 ;
329 - sp:predicate _:b23 ;
330 - sp:subject spin:_this
331 - ] [ sp:object rdf:Statement ;
332 - sp:predicate rdf:type ;
333 - sp:subject _:b24
334 - ] [ sp:object spin:_this ;
335 - sp:predicate rdf:subject ;
336 - sp:subject _:b24
337 - ] [ sp:object _:b23 ;
338 - sp:predicate rdf:predicate ;
339 - sp:subject _:b24
340 - ] [ sp:object _:b22 ;
341 - sp:predicate rdf:object ;
342 - sp:subject _:b24
343 - ] [ sp:object _:b24 ;
344 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
345 - sp:subject _:b22
346 - ]) ;
347 - sp:where ([ sp:object _:b25 ;
348 - sp:predicate owl:allValuesFrom ;
349 - sp:subject _:b26
350 - ] [ sp:object _:b23 ;
351 - sp:predicate owl:onProperty ;
352 - sp:subject _:b26
353 - ] [ sp:object _:b25 ;
354 - sp:predicate rdf:type ;
355 - sp:subject _:b22
356 - ] [ sp:object _:b22 ;
357 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
358 - sp:subject spin:_this
359 - ] [ sp:object _:b27 ;
360 - sp:predicate rdf:type ;
361 - sp:subject spin:_this
362 - ] [ rdf:type sp:TriplePath ;
363 - sp:object _:b26 ;
364 - sp:path [ rdf:type sp:ModPath ;
365 - sp:modMax -2 ;
366 - sp:modMin 0 ;
367 - sp:subPath rdfs:subClassOf
368 ] ; 315 ] ;
369 - sp:subject _:b27 316 + sp:variable _:b13
370 ]) 317 ])
371 ] ; 318 ] ;
372 spin:rule 319 spin:rule
373 [ rdf:type sp:Construct ; 320 [ rdf:type sp:Construct ;
374 rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; 321 rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
375 - sp:templates ([ sp:object _:b28 ; 322 + sp:templates ([ sp:object _:b23 ;
376 - sp:predicate _:b29 ; 323 + sp:predicate _:b24 ;
377 sp:subject spin:_this 324 sp:subject spin:_this
378 ] [ sp:object rdf:Statement ; 325 ] [ sp:object rdf:Statement ;
379 sp:predicate rdf:type ; 326 sp:predicate rdf:type ;
380 - sp:subject _:b30 327 + sp:subject _:b25
381 ] [ sp:object spin:_this ; 328 ] [ sp:object spin:_this ;
382 sp:predicate rdf:subject ; 329 sp:predicate rdf:subject ;
383 - sp:subject _:b30 330 + sp:subject _:b25
384 - ] [ sp:object _:b29 ; 331 + ] [ sp:object _:b24 ;
385 sp:predicate rdf:predicate ; 332 sp:predicate rdf:predicate ;
386 - sp:subject _:b30 333 + sp:subject _:b25
387 - ] [ sp:object _:b28 ; 334 + ] [ sp:object _:b23 ;
388 sp:predicate rdf:object ; 335 sp:predicate rdf:object ;
389 - sp:subject _:b30 336 + sp:subject _:b25
390 - ] [ sp:object _:b30 ; 337 + ] [ sp:object _:b25 ;
391 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 338 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
392 - sp:subject _:b31 339 + sp:subject _:b26
393 ]) ; 340 ]) ;
394 - sp:where ([ sp:object _:b31 ; 341 + sp:where ([ sp:object _:b26 ;
395 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 342 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
396 sp:subject spin:_this 343 sp:subject spin:_this
397 - ] [ sp:object _:b32 ; 344 + ] [ sp:object _:b27 ;
398 sp:predicate rdf:type ; 345 sp:predicate rdf:type ;
399 - sp:subject _:b31 346 + sp:subject _:b26
400 ] [ rdf:type sp:NotExists ; 347 ] [ rdf:type sp:NotExists ;
401 sp:elements ([ sp:object 348 sp:elements ([ sp:object
402 [ sp:varName "uom"^^xsd:string 349 [ sp:varName "uom"^^xsd:string
403 ] ; 350 ] ;
404 sp:predicate ddr:uom ; 351 sp:predicate ddr:uom ;
405 - sp:subject _:b31 352 + sp:subject _:b26
406 ]) 353 ])
407 ] [ rdf:type sp:Bind ; 354 ] [ rdf:type sp:Bind ;
408 sp:expression 355 sp:expression
409 [ rdf:type smf:titleCase ; 356 [ rdf:type smf:titleCase ;
410 sp:arg1 [ rdf:type afn:localname ; 357 sp:arg1 [ rdf:type afn:localname ;
411 - sp:arg1 _:b32 358 + sp:arg1 _:b27
412 ] 359 ]
413 ] ; 360 ] ;
414 - sp:variable _:b33 361 + sp:variable _:b28
415 ] [ rdf:type sp:Bind ; 362 ] [ rdf:type sp:Bind ;
416 sp:expression 363 sp:expression
417 [ rdf:type smf:buildURI ; 364 [ rdf:type smf:buildURI ;
418 sp:arg1 [ rdf:type fn:concat ; 365 sp:arg1 [ rdf:type fn:concat ;
419 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ; 366 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
420 - sp:arg2 _:b33 367 + sp:arg2 _:b28
421 ] 368 ]
422 ] ; 369 ] ;
423 - sp:variable _:b29 370 + sp:variable _:b24
424 ] [ sp:object owl:ObjectProperty ; 371 ] [ sp:object owl:ObjectProperty ;
425 sp:predicate rdf:type ; 372 sp:predicate rdf:type ;
426 - sp:subject _:b29 373 + sp:subject _:b24
427 - ] [ sp:object _:b29 ; 374 + ] [ sp:object _:b24 ;
428 sp:predicate owl:onProperty ; 375 sp:predicate owl:onProperty ;
429 - sp:subject _:b34 376 + sp:subject _:b29
430 - ] [ sp:object _:b35 ; 377 + ] [ sp:object _:b30 ;
431 sp:predicate owl:allValuesFrom ; 378 sp:predicate owl:allValuesFrom ;
432 - sp:subject _:b34 379 + sp:subject _:b29
433 - ] [ sp:object _:b36 ; 380 + ] [ sp:object _:b31 ;
434 sp:predicate rdf:type ; 381 sp:predicate rdf:type ;
435 sp:subject spin:_this 382 sp:subject spin:_this
436 ] [ rdf:type sp:TriplePath ; 383 ] [ rdf:type sp:TriplePath ;
437 - sp:object _:b34 ; 384 + sp:object _:b29 ;
438 sp:path [ rdf:type sp:ModPath ; 385 sp:path [ rdf:type sp:ModPath ;
439 sp:modMax -2 ; 386 sp:modMax -2 ;
440 sp:modMin 0 ; 387 sp:modMin 0 ;
441 sp:subPath rdfs:subClassOf 388 sp:subPath rdfs:subClassOf
442 ] ; 389 ] ;
443 - sp:subject _:b36 390 + sp:subject _:b31
444 ] [ rdf:type sp:TriplePath ; 391 ] [ rdf:type sp:TriplePath ;
445 sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; 392 sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
446 sp:path [ rdf:type sp:ModPath ; 393 sp:path [ rdf:type sp:ModPath ;
...@@ -448,121 +395,260 @@ ddr:Thing ...@@ -448,121 +395,260 @@ ddr:Thing
448 sp:modMin 0 ; 395 sp:modMin 0 ;
449 sp:subPath rdfs:subClassOf 396 sp:subPath rdfs:subClassOf
450 ] ; 397 ] ;
451 - sp:subject _:b35 398 + sp:subject _:b30
452 - ] [ sp:object _:b37 ; 399 + ] [ sp:object _:b32 ;
453 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 400 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
454 - sp:subject _:b31 401 + sp:subject _:b26
455 ] [ sp:object sxml:TextNode ; 402 ] [ sp:object sxml:TextNode ;
456 sp:predicate rdf:type ; 403 sp:predicate rdf:type ;
457 - sp:subject _:b37 404 + sp:subject _:b32
458 - ] [ sp:object _:b38 ; 405 + ] [ sp:object _:b33 ;
459 sp:predicate sxml:text ; 406 sp:predicate sxml:text ;
460 - sp:subject _:b37 407 + sp:subject _:b32
461 - ] [ sp:object _:b35 ; 408 + ] [ sp:object _:b30 ;
462 sp:predicate rdf:type ; 409 sp:predicate rdf:type ;
463 - sp:subject _:b28 410 + sp:subject _:b23
464 - ] [ sp:object _:b38 ; 411 + ] [ sp:object _:b33 ;
465 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 412 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
466 - sp:subject _:b28 413 + sp:subject _:b23
467 ]) 414 ])
468 ] ; 415 ] ;
469 spin:rule 416 spin:rule
470 [ rdf:type sp:Construct ; 417 [ rdf:type sp:Construct ;
471 - rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; 418 + rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
472 - sp:templates ([ sp:object _:b39 ; 419 + sp:templates ([ sp:object _:b34 ;
473 - sp:predicate rdf:type ; 420 + sp:predicate _:b35 ;
474 - sp:subject _:b40
475 - ] [ sp:object _:b41 ;
476 - sp:predicate ddr:uom ;
477 - sp:subject _:b40
478 - ] [ sp:object _:b42 ;
479 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
480 - sp:subject _:b40
481 - ] [ sp:object _:b40 ;
482 - sp:predicate _:b43 ;
483 sp:subject spin:_this 421 sp:subject spin:_this
484 ] [ sp:object rdf:Statement ; 422 ] [ sp:object rdf:Statement ;
485 sp:predicate rdf:type ; 423 sp:predicate rdf:type ;
486 - sp:subject _:b44 424 + sp:subject _:b36
487 ] [ sp:object spin:_this ; 425 ] [ sp:object spin:_this ;
488 sp:predicate rdf:subject ; 426 sp:predicate rdf:subject ;
489 - sp:subject _:b44 427 + sp:subject _:b36
490 - ] [ sp:object _:b43 ; 428 + ] [ sp:object _:b35 ;
491 sp:predicate rdf:predicate ; 429 sp:predicate rdf:predicate ;
492 - sp:subject _:b44 430 + sp:subject _:b36
493 - ] [ sp:object _:b42 ; 431 + ] [ sp:object _:b34 ;
494 sp:predicate rdf:object ; 432 sp:predicate rdf:object ;
495 - sp:subject _:b44 433 + sp:subject _:b36
496 - ] [ sp:object _:b44 ; 434 + ] [ sp:object _:b36 ;
497 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 435 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
498 - sp:subject _:b45 436 + sp:subject _:b34
499 ]) ; 437 ]) ;
500 - sp:where ([ sp:object _:b45 ; 438 + sp:where ([ sp:object _:b37 ;
439 + sp:predicate owl:allValuesFrom ;
440 + sp:subject _:b38
441 + ] [ sp:object _:b35 ;
442 + sp:predicate owl:onProperty ;
443 + sp:subject _:b38
444 + ] [ sp:object _:b37 ;
445 + sp:predicate rdf:type ;
446 + sp:subject _:b34
447 + ] [ sp:object _:b34 ;
501 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 448 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
502 sp:subject spin:_this 449 sp:subject spin:_this
503 - ] [ sp:object _:b46 ; 450 + ] [ rdf:type sp:NotExists ;
451 + sp:elements ([ sp:object
452 + [ sp:varName "xmlTag"^^xsd:string
453 + ] ;
454 + sp:predicate sxml:instanceElement ;
455 + sp:subject _:b34
456 + ])
457 + ] [ sp:object _:b39 ;
458 + sp:predicate rdf:type ;
459 + sp:subject spin:_this
460 + ] [ rdf:type sp:TriplePath ;
461 + sp:object _:b38 ;
462 + sp:path [ rdf:type sp:ModPath ;
463 + sp:modMax -2 ;
464 + sp:modMin 0 ;
465 + sp:subPath rdfs:subClassOf
466 + ] ;
467 + sp:subject _:b39
468 + ])
469 + ] ;
470 + spin:rule
471 + [ rdf:type sp:Construct ;
472 + rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
473 + sp:templates ([ sp:object _:b40 ;
474 + sp:predicate _:b41 ;
475 + sp:subject spin:_this
476 + ] [ sp:object rdf:Statement ;
504 sp:predicate rdf:type ; 477 sp:predicate rdf:type ;
505 - sp:subject _:b45 478 + sp:subject _:b42
479 + ] [ sp:object spin:_this ;
480 + sp:predicate rdf:subject ;
481 + sp:subject _:b42
506 ] [ sp:object _:b41 ; 482 ] [ sp:object _:b41 ;
507 - sp:predicate ddr:uom ; 483 + sp:predicate rdf:predicate ;
508 - sp:subject _:b45 484 + sp:subject _:b42
485 + ] [ sp:object _:b40 ;
486 + sp:predicate rdf:object ;
487 + sp:subject _:b42
488 + ] [ sp:object _:b42 ;
489 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
490 + sp:subject _:b43
491 + ]) ;
492 + sp:where ([ sp:object _:b43 ;
493 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
494 + sp:subject spin:_this
495 + ] [ sp:object _:b44 ;
496 + sp:predicate rdf:type ;
497 + sp:subject _:b43
509 ] [ rdf:type sp:NotExists ; 498 ] [ rdf:type sp:NotExists ;
510 sp:elements ([ sp:object 499 sp:elements ([ sp:object
511 - [ sp:varName "aNode"^^xsd:string 500 + [ sp:varName "uom"^^xsd:string
512 ] ; 501 ] ;
513 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 502 + sp:predicate ddr:uom ;
514 - sp:subject _:b45 503 + sp:subject _:b43
515 ]) 504 ])
516 ] [ rdf:type sp:Bind ; 505 ] [ rdf:type sp:Bind ;
517 sp:expression 506 sp:expression
518 [ rdf:type afn:localname ; 507 [ rdf:type afn:localname ;
519 - sp:arg1 _:b46 508 + sp:arg1 _:b44
520 ] ; 509 ] ;
521 - sp:variable _:b47 510 + sp:variable _:b45
522 ] [ rdf:type sp:Bind ; 511 ] [ rdf:type sp:Bind ;
523 sp:expression 512 sp:expression
524 [ rdf:type smf:buildURI ; 513 [ rdf:type smf:buildURI ;
525 sp:arg1 [ rdf:type fn:concat ; 514 sp:arg1 [ rdf:type fn:concat ;
526 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 515 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
527 - sp:arg2 _:b47 516 + sp:arg2 _:b45
528 ] 517 ]
529 ] ; 518 ] ;
530 - sp:variable _:b43 519 + sp:variable _:b41
531 - ] [ sp:object owl:ObjectProperty ; 520 + ] [ sp:object owl:DatatypeProperty ;
532 sp:predicate rdf:type ; 521 sp:predicate rdf:type ;
533 - sp:subject _:b43 522 + sp:subject _:b41
534 - ] [ sp:object _:b43 ; 523 + ] [ sp:object _:b41 ;
535 sp:predicate owl:onProperty ; 524 sp:predicate owl:onProperty ;
536 - sp:subject _:b48 525 + sp:subject _:b46
537 - ] [ sp:object _:b39 ; 526 + ] [ sp:object _:b47 ;
538 sp:predicate owl:allValuesFrom ; 527 sp:predicate owl:allValuesFrom ;
539 - sp:subject _:b48 528 + sp:subject _:b46
540 - ] [ sp:object _:b49 ;
541 - sp:predicate rdf:type ;
542 - sp:subject spin:_this
543 ] [ rdf:type sp:TriplePath ; 529 ] [ rdf:type sp:TriplePath ;
544 - sp:object _:b48 ; 530 + sp:object xsd:dateTime ;
545 sp:path [ rdf:type sp:ModPath ; 531 sp:path [ rdf:type sp:ModPath ;
546 sp:modMax -2 ; 532 sp:modMax -2 ;
547 sp:modMin 0 ; 533 sp:modMin 0 ;
548 sp:subPath rdfs:subClassOf 534 sp:subPath rdfs:subClassOf
549 ] ; 535 ] ;
550 - sp:subject _:b49 536 + sp:subject _:b47
551 - ] [ sp:object _:b50 ; 537 + ] [ sp:object _:b48 ;
552 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 538 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
553 - sp:subject _:b45 539 + sp:subject _:b43
554 ] [ sp:object sxml:TextNode ; 540 ] [ sp:object sxml:TextNode ;
555 sp:predicate rdf:type ; 541 sp:predicate rdf:type ;
556 - sp:subject _:b50 542 + sp:subject _:b48
557 - ] [ sp:object _:b51 ; 543 + ] [ sp:object _:b49 ;
558 sp:predicate sxml:text ; 544 sp:predicate sxml:text ;
559 - sp:subject _:b50 545 + sp:subject _:b48
560 - ] [ rdf:type sp:Bind ; 546 + ] [ sp:object _:b50 ;
561 - sp:expression 547 + sp:predicate rdf:type ;
562 - [ rdf:type xsd:double ; 548 + sp:subject spin:_this
563 - sp:arg1 _:b51 549 + ] [ rdf:type sp:TriplePath ;
564 - ] ; 550 + sp:object _:b46 ;
565 - sp:variable _:b42 551 + sp:path [ rdf:type sp:ModPath ;
552 + sp:modMax -2 ;
553 + sp:modMin 0 ;
554 + sp:subPath rdfs:subClassOf
555 + ] ;
556 + sp:subject _:b50
557 + ] [ rdf:type sp:Bind ;
558 + sp:expression
559 + [ rdf:type xsd:dateTime ;
560 + sp:arg1 _:b49
561 + ] ;
562 + sp:variable _:b40
563 + ])
564 + ] ;
565 + spin:rule
566 + [ rdf:type sp:Construct ;
567 + rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
568 + sp:templates ([ sp:object _:b51 ;
569 + sp:predicate _:b52 ;
570 + sp:subject spin:_this
571 + ] [ sp:object rdf:Statement ;
572 + sp:predicate rdf:type ;
573 + sp:subject _:b53
574 + ] [ sp:object spin:_this ;
575 + sp:predicate rdf:subject ;
576 + sp:subject _:b53
577 + ] [ sp:object _:b52 ;
578 + sp:predicate rdf:predicate ;
579 + sp:subject _:b53
580 + ] [ sp:object _:b51 ;
581 + sp:predicate rdf:object ;
582 + sp:subject _:b53
583 + ] [ sp:object _:b53 ;
584 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
585 + sp:subject _:b54
586 + ]) ;
587 + sp:where ([ sp:object _:b54 ;
588 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
589 + sp:subject spin:_this
590 + ] [ sp:object _:b55 ;
591 + sp:predicate rdf:type ;
592 + sp:subject _:b54
593 + ] [ rdf:type sp:NotExists ;
594 + sp:elements ([ sp:object
595 + [ sp:varName "uom"^^xsd:string
596 + ] ;
597 + sp:predicate ddr:uom ;
598 + sp:subject _:b54
599 + ])
600 + ] [ rdf:type sp:Bind ;
601 + sp:expression
602 + [ rdf:type afn:localname ;
603 + sp:arg1 _:b55
604 + ] ;
605 + sp:variable _:b56
606 + ] [ rdf:type sp:Bind ;
607 + sp:expression
608 + [ rdf:type smf:buildURI ;
609 + sp:arg1 [ rdf:type fn:concat ;
610 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
611 + sp:arg2 _:b56
612 + ]
613 + ] ;
614 + sp:variable _:b52
615 + ] [ sp:object owl:DatatypeProperty ;
616 + sp:predicate rdf:type ;
617 + sp:subject _:b52
618 + ] [ sp:object _:b52 ;
619 + sp:predicate owl:onProperty ;
620 + sp:subject _:b57
621 + ] [ sp:object _:b58 ;
622 + sp:predicate owl:allValuesFrom ;
623 + sp:subject _:b57
624 + ] [ rdf:type sp:TriplePath ;
625 + sp:object xsd:string ;
626 + sp:path [ rdf:type sp:ModPath ;
627 + sp:modMax -2 ;
628 + sp:modMin 0 ;
629 + sp:subPath rdfs:subClassOf
630 + ] ;
631 + sp:subject _:b58
632 + ] [ sp:object _:b59 ;
633 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
634 + sp:subject _:b54
635 + ] [ sp:object sxml:TextNode ;
636 + sp:predicate rdf:type ;
637 + sp:subject _:b59
638 + ] [ sp:object _:b51 ;
639 + sp:predicate sxml:text ;
640 + sp:subject _:b59
641 + ] [ sp:object _:b60 ;
642 + sp:predicate rdf:type ;
643 + sp:subject spin:_this
644 + ] [ rdf:type sp:TriplePath ;
645 + sp:object _:b57 ;
646 + sp:path [ rdf:type sp:ModPath ;
647 + sp:modMax -2 ;
648 + sp:modMin 0 ;
649 + sp:subPath rdfs:subClassOf
650 + ] ;
651 + sp:subject _:b60
566 ]) 652 ])
567 ] . 653 ] .
568 654
...@@ -585,323 +671,347 @@ ddr:version ...@@ -585,323 +671,347 @@ ddr:version
585 owl:Thing 671 owl:Thing
586 spin:query 672 spin:query
587 [ rdf:type sp:Select ; 673 [ rdf:type sp:Select ;
588 - sp:where ([ sp:object 674 + sp:resultVariables (_:b61 _:b62 _:b63 _:b64) ;
589 - [ sp:varName "p"^^xsd:string
590 - ] ;
591 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
592 - sp:subject _:b52
593 - ] [ rdf:type sp:NotExists ;
594 - sp:elements ([ sp:object
595 - [ sp:varName "b"^^xsd:string
596 - ] ;
597 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
598 - sp:subject _:b52
599 - ])
600 - ])
601 - ] ;
602 - spin:query
603 - [ rdf:type sp:Select ;
604 - sp:resultVariables (_:b53 _:b54 _:b55 _:b56) ;
605 - sp:where ([ sp:object _:b56 ;
606 - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
607 - sp:subject _:b55
608 - ] [ sp:object _:b55 ;
609 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
610 - sp:subject _:b54
611 - ] [ rdf:type sp:Union ;
612 - sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
613 - sp:predicate rdf:type ;
614 - sp:subject _:b54
615 - ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
616 - sp:predicate rdf:type ;
617 - sp:subject _:b54
618 - ]))
619 - ] [ sp:object _:b54 ;
620 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
621 - sp:subject _:b53
622 - ])
623 - ] ;
624 - spin:query
625 - [ rdf:type sp:Select ;
626 - sp:resultVariables (_:b57 _:b58 _:b59 _:b60) ;
627 sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; 675 sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
628 sp:predicate rdf:type ; 676 sp:predicate rdf:type ;
629 - sp:subject _:b61 677 + sp:subject _:b65
630 ] [ rdf:type sp:TriplePath ; 678 ] [ rdf:type sp:TriplePath ;
631 - sp:object _:b62 ; 679 + sp:object _:b66 ;
632 sp:path [ rdf:type sp:ModPath ; 680 sp:path [ rdf:type sp:ModPath ;
633 sp:modMax -2 ; 681 sp:modMax -2 ;
634 sp:modMin 0 ; 682 sp:modMin 0 ;
635 sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> 683 sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
636 ] ; 684 ] ;
637 - sp:subject _:b61 685 + sp:subject _:b65
638 - ] [ sp:object _:b63 ; 686 + ] [ sp:object _:b67 ;
639 sp:predicate <http://topbraid.org/sxsd#name> ; 687 sp:predicate <http://topbraid.org/sxsd#name> ;
640 - sp:subject _:b61 688 + sp:subject _:b65
641 - ] [ sp:object _:b60 ;
642 - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
643 - sp:subject _:b62
644 ] [ sp:object _:b64 ; 689 ] [ sp:object _:b64 ;
690 + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
691 + sp:subject _:b66
692 + ] [ sp:object _:b68 ;
645 sp:predicate <http://topbraid.org/sxsd#name> ; 693 sp:predicate <http://topbraid.org/sxsd#name> ;
646 - sp:subject _:b62 694 + sp:subject _:b66
647 ] [ rdf:type sp:Bind ; 695 ] [ rdf:type sp:Bind ;
648 sp:expression 696 sp:expression
649 [ rdf:type spif:titleCase ; 697 [ rdf:type spif:titleCase ;
650 - sp:arg1 _:b64 698 + sp:arg1 _:b68
651 ] ; 699 ] ;
652 - sp:variable _:b65 700 + sp:variable _:b69
653 ] [ rdf:type sp:Bind ; 701 ] [ rdf:type sp:Bind ;
654 sp:expression 702 sp:expression
655 [ rdf:type smf:buildURI ; 703 [ rdf:type smf:buildURI ;
656 sp:arg1 [ rdf:type fn:concat ; 704 sp:arg1 [ rdf:type fn:concat ;
657 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 705 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
658 - sp:arg2 _:b65 706 + sp:arg2 _:b69
659 ] 707 ]
660 ] ; 708 ] ;
661 - sp:variable _:b59 709 + sp:variable _:b63
662 ] [ rdf:type sp:Bind ; 710 ] [ rdf:type sp:Bind ;
663 sp:expression 711 sp:expression
664 [ rdf:type spif:titleCase ; 712 [ rdf:type spif:titleCase ;
665 - sp:arg1 _:b63 ; 713 + sp:arg1 _:b67 ;
666 sp:arg2 "[a-z]s" 714 sp:arg2 "[a-z]s"
667 ] ; 715 ] ;
668 - sp:variable _:b66 716 + sp:variable _:b70
669 ] [ rdf:type sp:Bind ; 717 ] [ rdf:type sp:Bind ;
670 sp:expression 718 sp:expression
671 [ rdf:type smf:buildURI ; 719 [ rdf:type smf:buildURI ;
672 sp:arg1 [ rdf:type fn:concat ; 720 sp:arg1 [ rdf:type fn:concat ;
673 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 721 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
674 - sp:arg2 _:b66 722 + sp:arg2 _:b70
675 ] 723 ]
676 ] ; 724 ] ;
677 - sp:variable _:b58 725 + sp:variable _:b62
678 ] [ rdf:type sp:Bind ; 726 ] [ rdf:type sp:Bind ;
679 sp:expression 727 sp:expression
680 [ rdf:type smf:buildURI ; 728 [ rdf:type smf:buildURI ;
681 sp:arg1 [ rdf:type fn:concat ; 729 sp:arg1 [ rdf:type fn:concat ;
682 sp:arg1 "http://www.reportinghub.no/map/ddr#" ; 730 sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
683 - sp:arg2 _:b66 ; 731 + sp:arg2 _:b70 ;
684 sp:arg3 "-has" ; 732 sp:arg3 "-has" ;
685 - sp:arg4 _:b65 733 + sp:arg4 _:b69
686 ] 734 ]
687 ] ; 735 ] ;
688 - sp:variable _:b57 736 + sp:variable _:b61
737 + ])
738 + ] ;
739 + spin:query
740 + [ rdf:type sp:Select ;
741 + sp:resultVariables (_:b71 _:b72 _:b73 _:b74) ;
742 + sp:where ([ sp:object _:b74 ;
743 + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
744 + sp:subject _:b73
745 + ] [ sp:object _:b73 ;
746 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
747 + sp:subject _:b72
748 + ] [ rdf:type sp:Union ;
749 + sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
750 + sp:predicate rdf:type ;
751 + sp:subject _:b72
752 + ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
753 + sp:predicate rdf:type ;
754 + sp:subject _:b72
755 + ]))
756 + ] [ sp:object _:b72 ;
757 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
758 + sp:subject _:b71
759 + ])
760 + ] ;
761 + spin:query
762 + [ rdf:type sp:Select ;
763 + sp:where ([ sp:object
764 + [ sp:varName "p"^^xsd:string
765 + ] ;
766 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
767 + sp:subject _:b75
768 + ] [ rdf:type sp:NotExists ;
769 + sp:elements ([ sp:object
770 + [ sp:varName "b"^^xsd:string
771 + ] ;
772 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
773 + sp:subject _:b75
774 + ])
689 ]) 775 ])
690 ] ; 776 ] ;
691 spin:update 777 spin:update
692 [ rdf:type sp:Modify ; 778 [ rdf:type sp:Modify ;
693 - sp:deletePattern ([ sp:object _:b67 ; 779 + sp:deletePattern ([ sp:object _:b76 ;
694 sp:predicate rdfs:label ; 780 sp:predicate rdfs:label ;
695 - sp:subject _:b68 781 + sp:subject _:b77
696 ]) ; 782 ]) ;
697 - sp:insertPattern ([ sp:object _:b69 ; 783 + sp:insertPattern ([ sp:object _:b78 ;
698 sp:predicate rdfs:label ; 784 sp:predicate rdfs:label ;
699 - sp:subject _:b68 785 + sp:subject _:b77
700 ]) ; 786 ]) ;
701 - sp:where ([ sp:object _:b68 ; 787 + sp:where ([ sp:object _:b77 ;
702 sp:predicate owl:onProperty ; 788 sp:predicate owl:onProperty ;
703 sp:subject 789 sp:subject
704 [ sp:varName "r"^^xsd:string 790 [ sp:varName "r"^^xsd:string
705 ] 791 ]
706 - ] [ sp:object _:b67 ; 792 + ] [ sp:object _:b76 ;
707 sp:predicate rdfs:label ; 793 sp:predicate rdfs:label ;
708 - sp:subject _:b68 794 + sp:subject _:b77
709 ] [ rdf:type sp:Filter ; 795 ] [ rdf:type sp:Filter ;
710 sp:expression 796 sp:expression
711 [ rdf:type fn:starts-with ; 797 [ rdf:type fn:starts-with ;
712 - sp:arg1 _:b67 ; 798 + sp:arg1 _:b76 ;
713 sp:arg2 "has" 799 sp:arg2 "has"
714 ] 800 ]
715 ] [ rdf:type sp:Bind ; 801 ] [ rdf:type sp:Bind ;
716 sp:expression 802 sp:expression
717 [ rdf:type smf:trim ; 803 [ rdf:type smf:trim ;
718 sp:arg1 [ rdf:type smf:regex ; 804 sp:arg1 [ rdf:type smf:regex ;
719 - sp:arg1 _:b67 ; 805 + sp:arg1 _:b76 ;
720 sp:arg2 "has(.*)" ; 806 sp:arg2 "has(.*)" ;
721 sp:arg3 "$1" 807 sp:arg3 "$1"
722 ] 808 ]
723 ] ; 809 ] ;
724 - sp:variable _:b69 810 + sp:variable _:b78
725 ]) 811 ])
726 ] . 812 ] .
727 813
728 -_:b39 814 +_:b51
729 - sp:varName "rangeU"^^xsd:string . 815 + sp:varName "text"^^xsd:string .
730 -
731 -_:b41
732 - sp:varName "uom"^^xsd:string .
733 -
734 -_:b42
735 - sp:varName "value"^^xsd:string .
736 816
737 -_:b43 817 +_:b52
738 - sp:varName "opnameU"^^xsd:string . 818 + sp:varName "dtpnameU"^^xsd:string .
739 819
740 -_:b45 820 +_:b54
741 sp:varName "child"^^xsd:string . 821 sp:varName "child"^^xsd:string .
742 822
743 -_:b46 823 +_:b55
744 sp:varName "childType"^^xsd:string . 824 sp:varName "childType"^^xsd:string .
745 825
746 -_:b47 826 +_:b56
747 sp:varName "childLocalName"^^xsd:string . 827 sp:varName "childLocalName"^^xsd:string .
748 828
749 -_:b48 829 +_:b57
750 - sp:varName "allValuesRestriction"^^xsd:string . 830 + sp:varName "valuesRestriction"^^xsd:string .
751 831
752 -_:b49 832 +_:b58
753 - sp:varName "instType"^^xsd:string . 833 + sp:varName "rangeType"^^xsd:string .
754 834
755 -_:b50 835 +_:b59
756 sp:varName "textNode"^^xsd:string . 836 sp:varName "textNode"^^xsd:string .
757 837
758 -_:b51 838 +_:b60
759 - sp:varName "text"^^xsd:string . 839 + sp:varName "instType"^^xsd:string .
760 840
761 -_:b28 841 +_:b40
762 - sp:varName "enumeratedValue"^^xsd:string . 842 + sp:varName "dateTime"^^xsd:string .
763 843
764 -_:b29 844 +_:b41
765 - sp:varName "opnameU"^^xsd:string . 845 + sp:varName "dtpnameU"^^xsd:string .
766 846
767 -_:b31 847 +_:b43
768 sp:varName "child"^^xsd:string . 848 sp:varName "child"^^xsd:string .
769 849
770 -_:b32 850 +_:b44
771 sp:varName "childType"^^xsd:string . 851 sp:varName "childType"^^xsd:string .
772 852
773 -_:b33 853 +_:b45
774 sp:varName "childLocalName"^^xsd:string . 854 sp:varName "childLocalName"^^xsd:string .
775 855
776 -_:b34 856 +_:b46
777 sp:varName "valuesRestriction"^^xsd:string . 857 sp:varName "valuesRestriction"^^xsd:string .
778 858
779 -_:b35 859 +_:b47
780 - sp:varName "rangeU"^^xsd:string . 860 + sp:varName "rangeType"^^xsd:string .
781 -
782 -_:b36
783 - sp:varName "instType"^^xsd:string .
784 861
785 -_:b37 862 +_:b48
786 sp:varName "textNode"^^xsd:string . 863 sp:varName "textNode"^^xsd:string .
787 864
788 -_:b38 865 +_:b49
789 sp:varName "text"^^xsd:string . 866 sp:varName "text"^^xsd:string .
790 867
791 -_:b22 868 +_:b50
792 - sp:varName "child"^^xsd:string . 869 + sp:varName "instType"^^xsd:string .
793 870
794 _:b23 871 _:b23
795 - sp:varName "formalProperty"^^xsd:string . 872 + sp:varName "enumeratedValue"^^xsd:string .
796 873
797 -_:b25 874 +_:b24
798 - sp:varName "childType"^^xsd:string . 875 + sp:varName "opnameU"^^xsd:string .
799 876
800 _:b26 877 _:b26
801 - sp:varName "valuesRestriction"^^xsd:string . 878 + sp:varName "child"^^xsd:string .
802 879
803 _:b27 880 _:b27
881 + sp:varName "childType"^^xsd:string .
882 +
883 +_:b28
884 + sp:varName "childLocalName"^^xsd:string .
885 +
886 +_:b29
887 + sp:varName "valuesRestriction"^^xsd:string .
888 +
889 +_:b30
890 + sp:varName "rangeU"^^xsd:string .
891 +
892 +_:b31
804 sp:varName "instType"^^xsd:string . 893 sp:varName "instType"^^xsd:string .
805 894
806 -_:b11 895 +_:b32
807 - sp:varName "dateTime"^^xsd:string . 896 + sp:varName "textNode"^^xsd:string .
897 +
898 +_:b33
899 + sp:varName "text"^^xsd:string .
900 +
901 +_:b10
902 + sp:varName "rangeU"^^xsd:string .
808 903
809 _:b12 904 _:b12
810 - sp:varName "dtpnameU"^^xsd:string . 905 + sp:varName "uom"^^xsd:string .
811 906
812 -_:b14 907 +_:b13
813 - sp:varName "child"^^xsd:string . 908 + sp:varName "value"^^xsd:string .
814 909
815 -_:b15 910 +_:b14
816 - sp:varName "childType"^^xsd:string . 911 + sp:varName "opnameU"^^xsd:string .
817 912
818 _:b16 913 _:b16
819 - sp:varName "childLocalName"^^xsd:string . 914 + sp:varName "child"^^xsd:string .
820 915
821 _:b17 916 _:b17
822 - sp:varName "valuesRestriction"^^xsd:string . 917 + sp:varName "childType"^^xsd:string .
823 918
824 _:b18 919 _:b18
825 - sp:varName "rangeType"^^xsd:string . 920 + sp:varName "childLocalName"^^xsd:string .
826 921
827 _:b19 922 _:b19
828 - sp:varName "textNode"^^xsd:string . 923 + sp:varName "allValuesRestriction"^^xsd:string .
829 924
830 _:b20 925 _:b20
831 - sp:varName "text"^^xsd:string .
832 -
833 -_:b21
834 sp:varName "instType"^^xsd:string . 926 sp:varName "instType"^^xsd:string .
835 927
836 -_:b1 sp:varName "text"^^xsd:string . 928 +_:b21
837 - 929 + sp:varName "textNode"^^xsd:string .
838 -_:b2 sp:varName "dtpnameU"^^xsd:string .
839 -
840 -_:b4 sp:varName "child"^^xsd:string .
841 930
842 -_:b5 sp:varName "childType"^^xsd:string . 931 +_:b22
932 + sp:varName "text"^^xsd:string .
843 933
844 -_:b6 sp:varName "childLocalName"^^xsd:string . 934 +_:b75
935 + sp:varName "c"^^xsd:string .
845 936
846 -_:b7 sp:varName "valuesRestriction"^^xsd:string . 937 +_:b71
938 + sp:varName "pp"^^xsd:string .
847 939
848 -_:b8 sp:varName "rangeType"^^xsd:string . 940 +_:b72
941 + sp:varName "p"^^xsd:string .
849 942
850 -_:b9 sp:varName "textNode"^^xsd:string . 943 +_:b73
944 + sp:varName "s"^^xsd:string .
851 945
852 -_:b10 946 +_:b74
853 - sp:varName "instType"^^xsd:string . 947 + sp:varName "e"^^xsd:string .
854 948
855 -_:b57 949 +_:b61
856 sp:varName "ddrCPU"^^xsd:string . 950 sp:varName "ddrCPU"^^xsd:string .
857 951
858 -_:b58 952 +_:b62
859 sp:varName "ddrCU"^^xsd:string . 953 sp:varName "ddrCU"^^xsd:string .
860 954
861 -_:b59 955 +_:b63
862 sp:varName "ddrPU"^^xsd:string . 956 sp:varName "ddrPU"^^xsd:string .
863 957
864 -_:b60 958 +_:b64
865 sp:varName "mre"^^xsd:string . 959 sp:varName "mre"^^xsd:string .
866 960
867 -_:b61 961 +_:b65
868 sp:varName "s"^^xsd:string . 962 sp:varName "s"^^xsd:string .
869 963
870 -_:b62 964 +_:b66
871 sp:varName "c"^^xsd:string . 965 sp:varName "c"^^xsd:string .
872 966
873 -_:b63 967 +_:b67
874 sp:varName "name"^^xsd:string . 968 sp:varName "name"^^xsd:string .
875 969
876 -_:b64 970 +_:b68
877 sp:varName "pname"^^xsd:string . 971 sp:varName "pname"^^xsd:string .
878 972
879 -_:b65 973 +_:b69
880 sp:varName "tcpname"^^xsd:string . 974 sp:varName "tcpname"^^xsd:string .
881 975
882 -_:b66 976 +_:b70
883 sp:varName "tcname"^^xsd:string . 977 sp:varName "tcname"^^xsd:string .
884 978
885 -_:b53 979 +_:b76
886 - sp:varName "pp"^^xsd:string . 980 + sp:varName "oldLabel"^^xsd:string .
887 981
888 -_:b54 982 +_:b77
889 sp:varName "p"^^xsd:string . 983 sp:varName "p"^^xsd:string .
890 984
891 -_:b55 985 +_:b78
892 - sp:varName "s"^^xsd:string . 986 + sp:varName "newLabel"^^xsd:string .
893 987
894 -_:b56 988 +_:b38
895 - sp:varName "e"^^xsd:string . 989 + sp:varName "valuesRestriction"^^xsd:string .
896 990
897 -_:b52 991 +_:b37
898 - sp:varName "c"^^xsd:string . 992 + sp:varName "childType"^^xsd:string .
899 993
900 -_:b67 994 +_:b35
901 - sp:varName "oldLabel"^^xsd:string . 995 + sp:varName "formalProperty"^^xsd:string .
902 996
903 -_:b68 997 +_:b34
904 - sp:varName "p"^^xsd:string . 998 + sp:varName "child"^^xsd:string .
905 999
906 -_:b69 1000 +_:b39
907 - sp:varName "newLabel"^^xsd:string . 1001 + sp:varName "instType"^^xsd:string .
1002 +
1003 +_:b5 sp:varName "valuesRestriction"^^xsd:string .
1004 +
1005 +_:b4 sp:varName "childType"^^xsd:string .
1006 +
1007 +_:b2 sp:varName "formalProperty"^^xsd:string .
1008 +
1009 +_:b6 sp:varName "propertyName"^^xsd:string .
1010 +
1011 +_:b1 sp:varName "child"^^xsd:string .
1012 +
1013 +_:b7 sp:varName "xmlTag"^^xsd:string .
1014 +
1015 +_:b8 sp:varName "tagName"^^xsd:string .
1016 +
1017 +_:b9 sp:varName "instType"^^xsd:string .
......
1 -# Saved by TopBraid on Wed Aug 10 08:36:26 PDT 2011 1 +# Saved by TopBraid on Wed Aug 10 18:50:05 PDT 2011
2 # baseURI: null 2 # baseURI: null
3 3
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......