Ralph Hodgson

Fixed an enumerated code transformation error

1 -# Saved by TopBraid on Sat Aug 06 12:24:30 PDT 2011 1 +# Saved by TopBraid on Sun Aug 07 12:37:53 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
...@@ -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 003 - Construct datatype string values"^^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
...@@ -168,20 +168,22 @@ ddr:Thing ...@@ -168,20 +168,22 @@ ddr:Thing
168 ]) 168 ])
169 ] [ rdf:type sp:Bind ; 169 ] [ rdf:type sp:Bind ;
170 sp:expression 170 sp:expression
171 - [ rdf:type afn:localname ; 171 + [ rdf:type smf:titleCase ;
172 + sp:arg1 [ rdf:type afn:localname ;
172 sp:arg1 _:b5 173 sp:arg1 _:b5
174 + ]
173 ] ; 175 ] ;
174 sp:variable _:b6 176 sp:variable _:b6
175 ] [ rdf:type sp:Bind ; 177 ] [ rdf:type sp:Bind ;
176 sp:expression 178 sp:expression
177 [ rdf:type smf:buildURI ; 179 [ rdf:type smf:buildURI ;
178 sp:arg1 [ rdf:type fn:concat ; 180 sp:arg1 [ rdf:type fn:concat ;
179 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 181 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
180 sp:arg2 _:b6 182 sp:arg2 _:b6
181 ] 183 ]
182 ] ; 184 ] ;
183 sp:variable _:b2 185 sp:variable _:b2
184 - ] [ sp:object owl:DatatypeProperty ; 186 + ] [ sp:object owl:ObjectProperty ;
185 sp:predicate rdf:type ; 187 sp:predicate rdf:type ;
186 sp:subject _:b2 188 sp:subject _:b2
187 ] [ sp:object _:b2 ; 189 ] [ sp:object _:b2 ;
...@@ -190,243 +192,249 @@ ddr:Thing ...@@ -190,243 +192,249 @@ ddr:Thing
190 ] [ sp:object _:b8 ; 192 ] [ sp:object _:b8 ;
191 sp:predicate owl:allValuesFrom ; 193 sp:predicate owl:allValuesFrom ;
192 sp:subject _:b7 194 sp:subject _:b7
195 + ] [ sp:object _:b9 ;
196 + sp:predicate rdf:type ;
197 + sp:subject spin:_this
193 ] [ rdf:type sp:TriplePath ; 198 ] [ rdf:type sp:TriplePath ;
194 - sp:object xsd:string ; 199 + sp:object _:b7 ;
195 sp:path [ rdf:type sp:ModPath ; 200 sp:path [ rdf:type sp:ModPath ;
196 sp:modMax -2 ; 201 sp:modMax -2 ;
197 sp:modMin 0 ; 202 sp:modMin 0 ;
198 sp:subPath rdfs:subClassOf 203 sp:subPath rdfs:subClassOf
199 ] ; 204 ] ;
200 - sp:subject _:b8
201 - ] [ sp:object _:b9 ;
202 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
203 - sp:subject _:b4
204 - ] [ sp:object sxml:TextNode ;
205 - sp:predicate rdf:type ;
206 - sp:subject _:b9
207 - ] [ sp:object _:b1 ;
208 - sp:predicate sxml:text ;
209 sp:subject _:b9 205 sp:subject _:b9
210 - ] [ sp:object _:b10 ;
211 - sp:predicate rdf:type ;
212 - sp:subject spin:_this
213 ] [ rdf:type sp:TriplePath ; 206 ] [ rdf:type sp:TriplePath ;
214 - sp:object _:b7 ; 207 + sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
215 sp:path [ rdf:type sp:ModPath ; 208 sp:path [ rdf:type sp:ModPath ;
216 sp:modMax -2 ; 209 sp:modMax -2 ;
217 sp:modMin 0 ; 210 sp:modMin 0 ;
218 sp:subPath rdfs:subClassOf 211 sp:subPath rdfs:subClassOf
219 ] ; 212 ] ;
213 + sp:subject _:b8
214 + ] [ sp:object _:b10 ;
215 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
216 + sp:subject _:b4
217 + ] [ sp:object sxml:TextNode ;
218 + sp:predicate rdf:type ;
219 + sp:subject _:b10
220 + ] [ sp:object _:b11 ;
221 + sp:predicate sxml:text ;
220 sp:subject _:b10 222 sp:subject _:b10
223 + ] [ sp:object _:b8 ;
224 + sp:predicate rdf:type ;
225 + sp:subject _:b1
226 + ] [ sp:object _:b11 ;
227 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
228 + sp:subject _:b1
221 ]) 229 ])
222 ] ; 230 ] ;
223 spin:rule 231 spin:rule
224 [ rdf:type sp:Construct ; 232 [ rdf:type sp:Construct ;
225 rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; 233 rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
226 - sp:templates ([ sp:object _:b11 ; 234 + sp:templates ([ sp:object _:b12 ;
227 sp:predicate rdf:type ; 235 sp:predicate rdf:type ;
228 - sp:subject _:b12 236 + sp:subject _:b13
229 - ] [ sp:object _:b13 ;
230 - sp:predicate ddr:uom ;
231 - sp:subject _:b12
232 ] [ sp:object _:b14 ; 237 ] [ sp:object _:b14 ;
238 + sp:predicate ddr:uom ;
239 + sp:subject _:b13
240 + ] [ sp:object _:b15 ;
233 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 241 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
234 - sp:subject _:b12 242 + sp:subject _:b13
235 - ] [ sp:object _:b12 ; 243 + ] [ sp:object _:b13 ;
236 - sp:predicate _:b15 ; 244 + sp:predicate _:b16 ;
237 sp:subject spin:_this 245 sp:subject spin:_this
238 ] [ sp:object rdf:Statement ; 246 ] [ sp:object rdf:Statement ;
239 sp:predicate rdf:type ; 247 sp:predicate rdf:type ;
240 - sp:subject _:b16 248 + sp:subject _:b17
241 ] [ sp:object spin:_this ; 249 ] [ sp:object spin:_this ;
242 sp:predicate rdf:subject ; 250 sp:predicate rdf:subject ;
243 - sp:subject _:b16 251 + sp:subject _:b17
244 - ] [ sp:object _:b15 ; 252 + ] [ sp:object _:b16 ;
245 sp:predicate rdf:predicate ; 253 sp:predicate rdf:predicate ;
246 - sp:subject _:b16 254 + sp:subject _:b17
247 - ] [ sp:object _:b14 ; 255 + ] [ sp:object _:b15 ;
248 sp:predicate rdf:object ; 256 sp:predicate rdf:object ;
249 - sp:subject _:b16
250 - ] [ sp:object _:b16 ;
251 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
252 sp:subject _:b17 257 sp:subject _:b17
258 + ] [ sp:object _:b17 ;
259 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
260 + sp:subject _:b18
253 ]) ; 261 ]) ;
254 - sp:where ([ sp:object _:b17 ; 262 + sp:where ([ sp:object _:b18 ;
255 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 263 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
256 sp:subject spin:_this 264 sp:subject spin:_this
257 - ] [ sp:object _:b18 ; 265 + ] [ sp:object _:b19 ;
258 sp:predicate rdf:type ; 266 sp:predicate rdf:type ;
259 - sp:subject _:b17 267 + sp:subject _:b18
260 - ] [ sp:object _:b13 ; 268 + ] [ sp:object _:b14 ;
261 sp:predicate ddr:uom ; 269 sp:predicate ddr:uom ;
262 - sp:subject _:b17 270 + sp:subject _:b18
263 ] [ rdf:type sp:NotExists ; 271 ] [ rdf:type sp:NotExists ;
264 sp:elements ([ sp:object 272 sp:elements ([ sp:object
265 [ sp:varName "aNode"^^xsd:string 273 [ sp:varName "aNode"^^xsd:string
266 ] ; 274 ] ;
267 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 275 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
268 - sp:subject _:b17 276 + sp:subject _:b18
269 ]) 277 ])
270 ] [ rdf:type sp:Bind ; 278 ] [ rdf:type sp:Bind ;
271 sp:expression 279 sp:expression
272 [ rdf:type afn:localname ; 280 [ rdf:type afn:localname ;
273 - sp:arg1 _:b18 281 + sp:arg1 _:b19
274 ] ; 282 ] ;
275 - sp:variable _:b19 283 + sp:variable _:b20
276 ] [ rdf:type sp:Bind ; 284 ] [ rdf:type sp:Bind ;
277 sp:expression 285 sp:expression
278 [ rdf:type smf:buildURI ; 286 [ rdf:type smf:buildURI ;
279 sp:arg1 [ rdf:type fn:concat ; 287 sp:arg1 [ rdf:type fn:concat ;
280 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 288 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
281 sp:arg2 [ rdf:type smf:titleCase ; 289 sp:arg2 [ rdf:type smf:titleCase ;
282 - sp:arg1 _:b19 290 + sp:arg1 _:b20
283 ] 291 ]
284 ] 292 ]
285 ] ; 293 ] ;
286 - sp:variable _:b15 294 + sp:variable _:b16
287 ] [ sp:object owl:ObjectProperty ; 295 ] [ sp:object owl:ObjectProperty ;
288 sp:predicate rdf:type ; 296 sp:predicate rdf:type ;
289 - sp:subject _:b15 297 + sp:subject _:b16
290 - ] [ sp:object _:b15 ; 298 + ] [ sp:object _:b16 ;
291 sp:predicate owl:onProperty ; 299 sp:predicate owl:onProperty ;
292 - sp:subject _:b20 300 + sp:subject _:b21
293 - ] [ sp:object _:b11 ; 301 + ] [ sp:object _:b12 ;
294 sp:predicate owl:allValuesFrom ; 302 sp:predicate owl:allValuesFrom ;
295 - sp:subject _:b20 303 + sp:subject _:b21
296 - ] [ sp:object _:b21 ; 304 + ] [ sp:object _:b22 ;
297 sp:predicate rdf:type ; 305 sp:predicate rdf:type ;
298 sp:subject spin:_this 306 sp:subject spin:_this
299 ] [ rdf:type sp:TriplePath ; 307 ] [ rdf:type sp:TriplePath ;
300 - sp:object _:b20 ; 308 + sp:object _:b21 ;
301 sp:path [ rdf:type sp:ModPath ; 309 sp:path [ rdf:type sp:ModPath ;
302 sp:modMax -2 ; 310 sp:modMax -2 ;
303 sp:modMin 0 ; 311 sp:modMin 0 ;
304 sp:subPath rdfs:subClassOf 312 sp:subPath rdfs:subClassOf
305 ] ; 313 ] ;
306 - sp:subject _:b21 314 + sp:subject _:b22
307 - ] [ sp:object _:b22 ; 315 + ] [ sp:object _:b23 ;
308 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 316 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
309 - sp:subject _:b17 317 + sp:subject _:b18
310 ] [ sp:object sxml:TextNode ; 318 ] [ sp:object sxml:TextNode ;
311 sp:predicate rdf:type ; 319 sp:predicate rdf:type ;
312 - sp:subject _:b22 320 + sp:subject _:b23
313 - ] [ sp:object _:b23 ; 321 + ] [ sp:object _:b24 ;
314 sp:predicate sxml:text ; 322 sp:predicate sxml:text ;
315 - sp:subject _:b22 323 + sp:subject _:b23
316 ] [ rdf:type sp:Bind ; 324 ] [ rdf:type sp:Bind ;
317 sp:expression 325 sp:expression
318 [ rdf:type xsd:double ; 326 [ rdf:type xsd:double ;
319 - sp:arg1 _:b23 327 + sp:arg1 _:b24
320 ] ; 328 ] ;
321 - sp:variable _:b14 329 + sp:variable _:b15
322 ]) 330 ])
323 ] ; 331 ] ;
324 spin:rule 332 spin:rule
325 [ rdf:type sp:Construct ; 333 [ rdf:type sp:Construct ;
326 rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; 334 rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
327 - sp:templates ([ sp:object _:b24 ; 335 + sp:templates ([ sp:object _:b25 ;
328 - sp:predicate _:b25 ; 336 + sp:predicate _:b26 ;
329 sp:subject spin:_this 337 sp:subject spin:_this
330 ] [ sp:object rdf:Statement ; 338 ] [ sp:object rdf:Statement ;
331 sp:predicate rdf:type ; 339 sp:predicate rdf:type ;
332 - sp:subject _:b26 340 + sp:subject _:b27
333 ] [ sp:object spin:_this ; 341 ] [ sp:object spin:_this ;
334 sp:predicate rdf:subject ; 342 sp:predicate rdf:subject ;
335 - sp:subject _:b26 343 + sp:subject _:b27
336 - ] [ sp:object _:b25 ; 344 + ] [ sp:object _:b26 ;
337 sp:predicate rdf:predicate ; 345 sp:predicate rdf:predicate ;
338 - sp:subject _:b26 346 + sp:subject _:b27
339 - ] [ sp:object _:b24 ; 347 + ] [ sp:object _:b25 ;
340 sp:predicate rdf:object ; 348 sp:predicate rdf:object ;
341 - sp:subject _:b26 349 + sp:subject _:b27
342 - ] [ sp:object _:b26 ; 350 + ] [ sp:object _:b27 ;
343 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 351 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
344 - sp:subject _:b24 352 + sp:subject _:b25
345 ]) ; 353 ]) ;
346 - sp:where ([ sp:object _:b27 ; 354 + sp:where ([ sp:object _:b28 ;
347 sp:predicate owl:allValuesFrom ; 355 sp:predicate owl:allValuesFrom ;
348 - sp:subject _:b28 356 + sp:subject _:b29
349 - ] [ sp:object _:b25 ; 357 + ] [ sp:object _:b26 ;
350 sp:predicate owl:onProperty ; 358 sp:predicate owl:onProperty ;
351 - sp:subject _:b28 359 + sp:subject _:b29
352 - ] [ sp:object _:b27 ; 360 + ] [ sp:object _:b28 ;
353 sp:predicate rdf:type ; 361 sp:predicate rdf:type ;
354 - sp:subject _:b24 362 + sp:subject _:b25
355 - ] [ sp:object _:b24 ; 363 + ] [ sp:object _:b25 ;
356 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 364 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
357 sp:subject spin:_this 365 sp:subject spin:_this
358 - ] [ sp:object _:b29 ; 366 + ] [ sp:object _:b30 ;
359 sp:predicate rdf:type ; 367 sp:predicate rdf:type ;
360 sp:subject spin:_this 368 sp:subject spin:_this
361 ] [ rdf:type sp:TriplePath ; 369 ] [ rdf:type sp:TriplePath ;
362 - sp:object _:b28 ; 370 + sp:object _:b29 ;
363 sp:path [ rdf:type sp:ModPath ; 371 sp:path [ rdf:type sp:ModPath ;
364 sp:modMax -2 ; 372 sp:modMax -2 ;
365 sp:modMin 0 ; 373 sp:modMin 0 ;
366 sp:subPath rdfs:subClassOf 374 sp:subPath rdfs:subClassOf
367 ] ; 375 ] ;
368 - sp:subject _:b29 376 + sp:subject _:b30
369 ]) 377 ])
370 ] ; 378 ] ;
371 spin:rule 379 spin:rule
372 [ rdf:type sp:Construct ; 380 [ rdf:type sp:Construct ;
373 rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; 381 rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
374 - sp:templates ([ sp:object _:b30 ; 382 + sp:templates ([ sp:object _:b31 ;
375 - sp:predicate _:b31 ; 383 + sp:predicate _:b32 ;
376 sp:subject spin:_this 384 sp:subject spin:_this
377 ] [ sp:object rdf:Statement ; 385 ] [ sp:object rdf:Statement ;
378 sp:predicate rdf:type ; 386 sp:predicate rdf:type ;
379 - sp:subject _:b32 387 + sp:subject _:b33
380 ] [ sp:object spin:_this ; 388 ] [ sp:object spin:_this ;
381 sp:predicate rdf:subject ; 389 sp:predicate rdf:subject ;
382 - sp:subject _:b32 390 + sp:subject _:b33
383 - ] [ sp:object _:b31 ; 391 + ] [ sp:object _:b32 ;
384 sp:predicate rdf:predicate ; 392 sp:predicate rdf:predicate ;
385 - sp:subject _:b32 393 + sp:subject _:b33
386 - ] [ sp:object _:b30 ; 394 + ] [ sp:object _:b31 ;
387 sp:predicate rdf:object ; 395 sp:predicate rdf:object ;
388 - sp:subject _:b32
389 - ] [ sp:object _:b32 ;
390 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
391 sp:subject _:b33 396 sp:subject _:b33
397 + ] [ sp:object _:b33 ;
398 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
399 + sp:subject _:b34
392 ]) ; 400 ]) ;
393 - sp:where ([ sp:object _:b33 ; 401 + sp:where ([ sp:object _:b34 ;
394 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 402 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
395 sp:subject spin:_this 403 sp:subject spin:_this
396 - ] [ sp:object _:b34 ; 404 + ] [ sp:object _:b35 ;
397 sp:predicate rdf:type ; 405 sp:predicate rdf:type ;
398 - sp:subject _:b33 406 + sp:subject _:b34
399 ] [ rdf:type sp:NotExists ; 407 ] [ rdf:type sp:NotExists ;
400 sp:elements ([ sp:object 408 sp:elements ([ sp:object
401 [ sp:varName "uom"^^xsd:string 409 [ sp:varName "uom"^^xsd:string
402 ] ; 410 ] ;
403 sp:predicate ddr:uom ; 411 sp:predicate ddr:uom ;
404 - sp:subject _:b33 412 + sp:subject _:b34
405 ]) 413 ])
406 ] [ rdf:type sp:Bind ; 414 ] [ rdf:type sp:Bind ;
407 sp:expression 415 sp:expression
408 [ rdf:type afn:localname ; 416 [ rdf:type afn:localname ;
409 - sp:arg1 _:b34 417 + sp:arg1 _:b35
410 ] ; 418 ] ;
411 - sp:variable _:b35 419 + sp:variable _:b36
412 ] [ rdf:type sp:Bind ; 420 ] [ rdf:type sp:Bind ;
413 sp:expression 421 sp:expression
414 [ rdf:type smf:buildURI ; 422 [ rdf:type smf:buildURI ;
415 sp:arg1 [ rdf:type fn:concat ; 423 sp:arg1 [ rdf:type fn:concat ;
416 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 424 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
417 - sp:arg2 _:b35 425 + sp:arg2 _:b36
418 ] 426 ]
419 ] ; 427 ] ;
420 - sp:variable _:b31 428 + sp:variable _:b32
421 ] [ sp:object owl:DatatypeProperty ; 429 ] [ sp:object owl:DatatypeProperty ;
422 sp:predicate rdf:type ; 430 sp:predicate rdf:type ;
423 - sp:subject _:b31 431 + sp:subject _:b32
424 - ] [ sp:object _:b31 ; 432 + ] [ sp:object _:b32 ;
425 sp:predicate owl:onProperty ; 433 sp:predicate owl:onProperty ;
426 - sp:subject _:b36 434 + sp:subject _:b37
427 - ] [ sp:object _:b37 ; 435 + ] [ sp:object _:b38 ;
428 sp:predicate owl:allValuesFrom ; 436 sp:predicate owl:allValuesFrom ;
429 - sp:subject _:b36 437 + sp:subject _:b37
430 ] [ rdf:type sp:TriplePath ; 438 ] [ rdf:type sp:TriplePath ;
431 sp:object xsd:dateTime ; 439 sp:object xsd:dateTime ;
432 sp:path [ rdf:type sp:ModPath ; 440 sp:path [ rdf:type sp:ModPath ;
...@@ -434,132 +442,122 @@ ddr:Thing ...@@ -434,132 +442,122 @@ ddr:Thing
434 sp:modMin 0 ; 442 sp:modMin 0 ;
435 sp:subPath rdfs:subClassOf 443 sp:subPath rdfs:subClassOf
436 ] ; 444 ] ;
437 - sp:subject _:b37 445 + sp:subject _:b38
438 - ] [ sp:object _:b38 ; 446 + ] [ sp:object _:b39 ;
439 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 447 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
440 - sp:subject _:b33 448 + sp:subject _:b34
441 ] [ sp:object sxml:TextNode ; 449 ] [ sp:object sxml:TextNode ;
442 sp:predicate rdf:type ; 450 sp:predicate rdf:type ;
443 - sp:subject _:b38 451 + sp:subject _:b39
444 - ] [ sp:object _:b39 ;
445 - sp:predicate sxml:text ;
446 - sp:subject _:b38
447 ] [ sp:object _:b40 ; 452 ] [ sp:object _:b40 ;
453 + sp:predicate sxml:text ;
454 + sp:subject _:b39
455 + ] [ sp:object _:b41 ;
448 sp:predicate rdf:type ; 456 sp:predicate rdf:type ;
449 sp:subject spin:_this 457 sp:subject spin:_this
450 ] [ rdf:type sp:TriplePath ; 458 ] [ rdf:type sp:TriplePath ;
451 - sp:object _:b36 ; 459 + sp:object _:b37 ;
452 sp:path [ rdf:type sp:ModPath ; 460 sp:path [ rdf:type sp:ModPath ;
453 sp:modMax -2 ; 461 sp:modMax -2 ;
454 sp:modMin 0 ; 462 sp:modMin 0 ;
455 sp:subPath rdfs:subClassOf 463 sp:subPath rdfs:subClassOf
456 ] ; 464 ] ;
457 - sp:subject _:b40 465 + sp:subject _:b41
458 ] [ rdf:type sp:Bind ; 466 ] [ rdf:type sp:Bind ;
459 sp:expression 467 sp:expression
460 [ rdf:type xsd:dateTime ; 468 [ rdf:type xsd:dateTime ;
461 - sp:arg1 _:b39 469 + sp:arg1 _:b40
462 ] ; 470 ] ;
463 - sp:variable _:b30 471 + sp:variable _:b31
464 ]) 472 ])
465 ] ; 473 ] ;
466 spin:rule 474 spin:rule
467 [ rdf:type sp:Construct ; 475 [ rdf:type sp:Construct ;
468 - rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; 476 + rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
469 - sp:templates ([ sp:object _:b41 ; 477 + sp:templates ([ sp:object _:b42 ;
470 - sp:predicate _:b42 ; 478 + sp:predicate _:b43 ;
471 sp:subject spin:_this 479 sp:subject spin:_this
472 ] [ sp:object rdf:Statement ; 480 ] [ sp:object rdf:Statement ;
473 sp:predicate rdf:type ; 481 sp:predicate rdf:type ;
474 - sp:subject _:b43 482 + sp:subject _:b44
475 ] [ sp:object spin:_this ; 483 ] [ sp:object spin:_this ;
476 sp:predicate rdf:subject ; 484 sp:predicate rdf:subject ;
477 - sp:subject _:b43 485 + sp:subject _:b44
478 - ] [ sp:object _:b42 ; 486 + ] [ sp:object _:b43 ;
479 sp:predicate rdf:predicate ; 487 sp:predicate rdf:predicate ;
480 - sp:subject _:b43 488 + sp:subject _:b44
481 - ] [ sp:object _:b41 ; 489 + ] [ sp:object _:b42 ;
482 sp:predicate rdf:object ; 490 sp:predicate rdf:object ;
483 - sp:subject _:b43
484 - ] [ sp:object _:b43 ;
485 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
486 sp:subject _:b44 491 sp:subject _:b44
492 + ] [ sp:object _:b44 ;
493 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
494 + sp:subject _:b45
487 ]) ; 495 ]) ;
488 - sp:where ([ sp:object _:b44 ; 496 + sp:where ([ sp:object _:b45 ;
489 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 497 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
490 - sp:subject 498 + sp:subject spin:_this
491 - [ sp:varName "inst"^^xsd:string 499 + ] [ sp:object _:b46 ;
492 - ]
493 - ] [ sp:object _:b45 ;
494 sp:predicate rdf:type ; 500 sp:predicate rdf:type ;
495 - sp:subject _:b44 501 + sp:subject _:b45
496 ] [ rdf:type sp:NotExists ; 502 ] [ rdf:type sp:NotExists ;
497 sp:elements ([ sp:object 503 sp:elements ([ sp:object
498 [ sp:varName "uom"^^xsd:string 504 [ sp:varName "uom"^^xsd:string
499 ] ; 505 ] ;
500 sp:predicate ddr:uom ; 506 sp:predicate ddr:uom ;
501 - sp:subject _:b44 507 + sp:subject _:b45
502 ]) 508 ])
503 ] [ rdf:type sp:Bind ; 509 ] [ rdf:type sp:Bind ;
504 sp:expression 510 sp:expression
505 - [ rdf:type smf:titleCase ; 511 + [ rdf:type afn:localname ;
506 - sp:arg1 [ rdf:type afn:localname ; 512 + sp:arg1 _:b46
507 - sp:arg1 _:b45
508 - ]
509 ] ; 513 ] ;
510 - sp:variable _:b46 514 + sp:variable _:b47
511 ] [ rdf:type sp:Bind ; 515 ] [ rdf:type sp:Bind ;
512 sp:expression 516 sp:expression
513 [ rdf:type smf:buildURI ; 517 [ rdf:type smf:buildURI ;
514 sp:arg1 [ rdf:type fn:concat ; 518 sp:arg1 [ rdf:type fn:concat ;
515 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 519 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
516 - sp:arg2 _:b46 520 + sp:arg2 _:b47
517 ] 521 ]
518 ] ; 522 ] ;
519 - sp:variable _:b42 523 + sp:variable _:b43
520 - ] [ sp:object owl:ObjectProperty ; 524 + ] [ sp:object owl:DatatypeProperty ;
521 sp:predicate rdf:type ; 525 sp:predicate rdf:type ;
522 - sp:subject _:b42 526 + sp:subject _:b43
523 - ] [ sp:object _:b42 ; 527 + ] [ sp:object _:b43 ;
524 sp:predicate owl:onProperty ; 528 sp:predicate owl:onProperty ;
525 - sp:subject _:b47 529 + sp:subject _:b48
526 - ] [ sp:object _:b48 ;
527 - sp:predicate owl:allValuesFrom ;
528 - sp:subject _:b47
529 ] [ sp:object _:b49 ; 530 ] [ sp:object _:b49 ;
530 - sp:predicate rdf:type ; 531 + sp:predicate owl:allValuesFrom ;
531 - sp:subject spin:_this 532 + sp:subject _:b48
532 ] [ rdf:type sp:TriplePath ; 533 ] [ rdf:type sp:TriplePath ;
533 - sp:object _:b47 ; 534 + sp:object xsd:string ;
534 sp:path [ rdf:type sp:ModPath ; 535 sp:path [ rdf:type sp:ModPath ;
535 sp:modMax -2 ; 536 sp:modMax -2 ;
536 sp:modMin 0 ; 537 sp:modMin 0 ;
537 sp:subPath rdfs:subClassOf 538 sp:subPath rdfs:subClassOf
538 ] ; 539 ] ;
539 sp:subject _:b49 540 sp:subject _:b49
540 - ] [ rdf:type sp:TriplePath ;
541 - sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
542 - sp:path [ rdf:type sp:ModPath ;
543 - sp:modMax -2 ;
544 - sp:modMin 0 ;
545 - sp:subPath rdfs:subClassOf
546 - ] ;
547 - sp:subject _:b48
548 ] [ sp:object _:b50 ; 541 ] [ sp:object _:b50 ;
549 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 542 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
550 - sp:subject _:b44 543 + sp:subject _:b45
551 ] [ sp:object sxml:TextNode ; 544 ] [ sp:object sxml:TextNode ;
552 sp:predicate rdf:type ; 545 sp:predicate rdf:type ;
553 sp:subject _:b50 546 sp:subject _:b50
554 - ] [ sp:object _:b51 ; 547 + ] [ sp:object _:b42 ;
555 sp:predicate sxml:text ; 548 sp:predicate sxml:text ;
556 sp:subject _:b50 549 sp:subject _:b50
557 - ] [ sp:object _:b48 ;
558 - sp:predicate rdf:type ;
559 - sp:subject _:b41
560 ] [ sp:object _:b51 ; 550 ] [ sp:object _:b51 ;
561 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 551 + sp:predicate rdf:type ;
562 - sp:subject _:b41 552 + sp:subject spin:_this
553 + ] [ rdf:type sp:TriplePath ;
554 + sp:object _:b48 ;
555 + sp:path [ rdf:type sp:ModPath ;
556 + sp:modMax -2 ;
557 + sp:modMin 0 ;
558 + sp:subPath rdfs:subClassOf
559 + ] ;
560 + sp:subject _:b51
563 ]) 561 ])
564 ] . 562 ] .
565 563
...@@ -686,125 +684,125 @@ owl:Thing ...@@ -686,125 +684,125 @@ owl:Thing
686 ]) 684 ])
687 ] . 685 ] .
688 686
689 -_:b18 687 +_:b19
690 sp:varName "childType"^^xsd:string . 688 sp:varName "childType"^^xsd:string .
691 689
692 -_:b20 690 +_:b21
693 sp:varName "allValuesRestriction"^^xsd:string . 691 sp:varName "allValuesRestriction"^^xsd:string .
694 692
695 -_:b17 693 +_:b18
696 sp:varName "child"^^xsd:string . 694 sp:varName "child"^^xsd:string .
697 695
698 -_:b15 696 +_:b16
699 sp:varName "opnameU"^^xsd:string . 697 sp:varName "opnameU"^^xsd:string .
700 698
701 -_:b14 699 +_:b15
702 sp:varName "value"^^xsd:string . 700 sp:varName "value"^^xsd:string .
703 701
704 -_:b13 702 +_:b14
705 sp:varName "uom"^^xsd:string . 703 sp:varName "uom"^^xsd:string .
706 704
707 -_:b11 705 +_:b12
708 sp:varName "rangeU"^^xsd:string . 706 sp:varName "rangeU"^^xsd:string .
709 707
710 -_:b29 708 +_:b30
711 sp:varName "instType"^^xsd:string . 709 sp:varName "instType"^^xsd:string .
712 710
713 -_:b28 711 +_:b29
714 sp:varName "valuesRestriction"^^xsd:string . 712 sp:varName "valuesRestriction"^^xsd:string .
715 713
716 -_:b27 714 +_:b28
717 sp:varName "childType"^^xsd:string . 715 sp:varName "childType"^^xsd:string .
718 716
719 -_:b25 717 +_:b26
720 sp:varName "formalProperty"^^xsd:string . 718 sp:varName "formalProperty"^^xsd:string .
721 719
722 -_:b24 720 +_:b25
723 sp:varName "child"^^xsd:string . 721 sp:varName "child"^^xsd:string .
724 722
725 -_:b40 723 +_:b41
726 sp:varName "instType"^^xsd:string . 724 sp:varName "instType"^^xsd:string .
727 725
728 -_:b39 726 +_:b40
729 sp:varName "text"^^xsd:string . 727 sp:varName "text"^^xsd:string .
730 728
731 -_:b38 729 +_:b39
732 sp:varName "textNode"^^xsd:string . 730 sp:varName "textNode"^^xsd:string .
733 731
734 -_:b37 732 +_:b38
735 sp:varName "rangeType"^^xsd:string . 733 sp:varName "rangeType"^^xsd:string .
736 734
737 -_:b36 735 +_:b37
738 sp:varName "valuesRestriction"^^xsd:string . 736 sp:varName "valuesRestriction"^^xsd:string .
739 737
740 -_:b35 738 +_:b36
741 sp:varName "childLocalName"^^xsd:string . 739 sp:varName "childLocalName"^^xsd:string .
742 740
743 -_:b34 741 +_:b35
744 sp:varName "childType"^^xsd:string . 742 sp:varName "childType"^^xsd:string .
745 743
746 -_:b33 744 +_:b34
747 sp:varName "child"^^xsd:string . 745 sp:varName "child"^^xsd:string .
748 746
749 -_:b31 747 +_:b32
750 sp:varName "dtpnameU"^^xsd:string . 748 sp:varName "dtpnameU"^^xsd:string .
751 749
752 -_:b30 750 +_:b31
753 sp:varName "dateTime"^^xsd:string . 751 sp:varName "dateTime"^^xsd:string .
754 752
755 -_:b51 753 +_:b20
756 - sp:varName "text"^^xsd:string . 754 + sp:varName "childLocalName"^^xsd:string .
757 755
758 -_:b50 756 +_:b4 sp:varName "child"^^xsd:string .
759 - sp:varName "textNode"^^xsd:string .
760 757
761 -_:b49 758 +_:b5 sp:varName "childType"^^xsd:string .
762 - sp:varName "instType"^^xsd:string .
763 759
764 -_:b48 760 +_:b6 sp:varName "childLocalName"^^xsd:string .
765 - sp:varName "rangeU"^^xsd:string .
766 761
767 -_:b47 762 +_:b2 sp:varName "opnameU"^^xsd:string .
768 - sp:varName "valuesRestriction"^^xsd:string .
769 763
770 -_:b46 764 +_:b7 sp:varName "valuesRestriction"^^xsd:string .
771 - sp:varName "childLocalName"^^xsd:string .
772 765
773 -_:b19 766 +_:b8 sp:varName "rangeU"^^xsd:string .
774 - sp:varName "childLocalName"^^xsd:string .
775 767
776 -_:b45 768 +_:b9 sp:varName "instType"^^xsd:string .
777 - sp:varName "childType"^^xsd:string .
778 769
779 -_:b44 770 +_:b10
780 - sp:varName "child"^^xsd:string . 771 + sp:varName "textNode"^^xsd:string .
781 772
782 -_:b42 773 +_:b11
783 - sp:varName "opnameU"^^xsd:string . 774 + sp:varName "text"^^xsd:string .
784 775
785 -_:b41 776 +_:b1 sp:varName "enumeratedValue"^^xsd:string .
786 - sp:varName "enumeratedValue"^^xsd:string .
787 777
788 -_:b1 sp:varName "text"^^xsd:string . 778 +_:b42
779 + sp:varName "text"^^xsd:string .
789 780
790 -_:b2 sp:varName "dtpnameU"^^xsd:string . 781 +_:b43
782 + sp:varName "dtpnameU"^^xsd:string .
791 783
792 -_:b4 sp:varName "child"^^xsd:string . 784 +_:b45
785 + sp:varName "child"^^xsd:string .
793 786
794 -_:b5 sp:varName "childType"^^xsd:string . 787 +_:b46
788 + sp:varName "childType"^^xsd:string .
795 789
796 -_:b6 sp:varName "childLocalName"^^xsd:string . 790 +_:b47
791 + sp:varName "childLocalName"^^xsd:string .
797 792
798 -_:b7 sp:varName "valuesRestriction"^^xsd:string . 793 +_:b48
794 + sp:varName "valuesRestriction"^^xsd:string .
799 795
800 -_:b8 sp:varName "rangeType"^^xsd:string . 796 +_:b49
797 + sp:varName "rangeType"^^xsd:string .
801 798
802 -_:b9 sp:varName "textNode"^^xsd:string . 799 +_:b50
800 + sp:varName "textNode"^^xsd:string .
803 801
804 -_:b21 802 +_:b22
805 sp:varName "instType"^^xsd:string . 803 sp:varName "instType"^^xsd:string .
806 804
807 -_:b10 805 +_:b51
808 sp:varName "instType"^^xsd:string . 806 sp:varName "instType"^^xsd:string .
809 807
810 _:b66 808 _:b66
...@@ -852,8 +850,8 @@ _:b60 ...@@ -852,8 +850,8 @@ _:b60
852 _:b61 850 _:b61
853 sp:varName "tcname"^^xsd:string . 851 sp:varName "tcname"^^xsd:string .
854 852
855 -_:b22 853 +_:b23
856 sp:varName "textNode"^^xsd:string . 854 sp:varName "textNode"^^xsd:string .
857 855
858 -_:b23 856 +_:b24
859 sp:varName "text"^^xsd:string . 857 sp:varName "text"^^xsd:string .
......
1 -# Saved by TopBraid on Sat Aug 06 12:24:30 PDT 2011 1 +# Saved by TopBraid on Sun Aug 07 12:37:53 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#> .
......