Ralph Hodgson

New rule 009 to handle all data types using smf:cast. This makes rules

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