Ralph Hodgson

QA check on processed composite children in the DDR ingest

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