David Price

Nearly finished copex ontology gen

This diff could not be displayed because it is too large.
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
3 # imports: file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls 3 # imports: file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls
4 # imports: file:///www.reportinghub.no/input/copex/COPEX-Properties.xls 4 # imports: file:///www.reportinghub.no/input/copex/COPEX-Properties.xls
5 5
6 -@prefix Head: <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#> .
7 -@prefix Model: <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#> .
8 -@prefix Prop: <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#> .
9 @prefix owl: <http://www.w3.org/2002/07/owl#> . 6 @prefix owl: <http://www.w3.org/2002/07/owl#> .
10 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 7 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 8 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.reportinghub.no/input/copex/ss-import 3 # imports: http://www.reportinghub.no/input/copex/ss-import
4 4
5 +@prefix Head: <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#> .
6 +@prefix Model: <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#> .
7 +@prefix Prop: <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#> .
5 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 8 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
6 @prefix owl: <http://www.w3.org/2002/07/owl#> . 9 @prefix owl: <http://www.w3.org/2002/07/owl#> .
7 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 10 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
...@@ -13,7 +16,7 @@ ...@@ -13,7 +16,7 @@
13 @prefix ss-to-model: <http://www.reportinghub.no/input/copex/ss-to-model#> . 16 @prefix ss-to-model: <http://www.reportinghub.no/input/copex/ss-to-model#> .
14 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 17 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 18
16 -<file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#COPEX-HeadingWithProperty> 19 +Model:COPEX-HeadingWithProperty
17 spin:rule 20 spin:rule
18 [ rdf:type sp:Construct ; 21 [ rdf:type sp:Construct ;
19 sp:templates ([ sp:object owl:Restriction ; 22 sp:templates ([ sp:object owl:Restriction ;
...@@ -36,25 +39,27 @@ ...@@ -36,25 +39,27 @@
36 sp:where ([ sp:object 39 sp:where ([ sp:object
37 [ sp:varName "cname"^^xsd:string 40 [ sp:varName "cname"^^xsd:string
38 ] ; 41 ] ;
39 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#blockName> ; 42 + sp:predicate Model:blockName ;
40 sp:subject spin:_this 43 sp:subject spin:_this
41 - ] [ rdf:type sp:Filter ;
42 - sp:expression
43 - [ rdf:type sp:ne ;
44 - sp:arg1 [ sp:varName "cname"^^xsd:string
45 - ] ;
46 - sp:arg2 "specific product attributes"
47 - ]
48 ] [ sp:object 44 ] [ sp:object
49 [ sp:varName "pname"^^xsd:string 45 [ sp:varName "pname"^^xsd:string
50 ] ; 46 ] ;
51 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#keywordName> ; 47 + sp:predicate Model:keywordName ;
52 sp:subject spin:_this 48 sp:subject spin:_this
53 - ] [ rdf:type sp:NotExists ; 49 + ] [ sp:object
54 - sp:elements ([ sp:object "m" ; 50 + [ sp:varName "m"^^xsd:string
55 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#manOptCon> ; 51 + ] ;
52 + sp:predicate Model:manOptCon ;
56 sp:subject spin:_this 53 sp:subject spin:_this
57 - ]) 54 + ] [ rdf:type sp:Filter ;
55 + sp:expression
56 + [ rdf:type sp:ne ;
57 + sp:arg1 [ rdf:type fn:lower-case ;
58 + sp:arg1 [ sp:varName "m"^^xsd:string
59 + ]
60 + ] ;
61 + sp:arg2 "m"
62 + ]
58 ] [ rdf:type sp:Bind ; 63 ] [ rdf:type sp:Bind ;
59 sp:expression 64 sp:expression
60 [ rdf:type spif:buildURI ; 65 [ rdf:type spif:buildURI ;
...@@ -95,23 +100,27 @@ ...@@ -95,23 +100,27 @@
95 sp:where ([ sp:object 100 sp:where ([ sp:object
96 [ sp:varName "cname"^^xsd:string 101 [ sp:varName "cname"^^xsd:string
97 ] ; 102 ] ;
98 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#blockName> ; 103 + sp:predicate Model:blockName ;
99 sp:subject spin:_this 104 sp:subject spin:_this
100 - ] [ rdf:type sp:Filter ;
101 - sp:expression
102 - [ rdf:type sp:ne ;
103 - sp:arg1 [ sp:varName "cname"^^xsd:string
104 - ] ;
105 - sp:arg2 "specific product attributes"
106 - ]
107 ] [ sp:object 105 ] [ sp:object
108 [ sp:varName "pname"^^xsd:string 106 [ sp:varName "pname"^^xsd:string
109 ] ; 107 ] ;
110 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#keywordName> ; 108 + sp:predicate Model:keywordName ;
111 sp:subject spin:_this 109 sp:subject spin:_this
112 - ] [ sp:object "m" ; 110 + ] [ sp:object
113 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#manOptCon> ; 111 + [ sp:varName "m"^^xsd:string
112 + ] ;
113 + sp:predicate Model:manOptCon ;
114 sp:subject spin:_this 114 sp:subject spin:_this
115 + ] [ rdf:type sp:Filter ;
116 + sp:expression
117 + [ rdf:type sp:ne ;
118 + sp:arg1 [ rdf:type fn:lower-case ;
119 + sp:arg1 [ sp:varName "m"^^xsd:string
120 + ]
121 + ] ;
122 + sp:arg2 "m"
123 + ]
115 ] [ rdf:type sp:Bind ; 124 ] [ rdf:type sp:Bind ;
116 sp:expression 125 sp:expression
117 [ rdf:type spif:buildURI ; 126 [ rdf:type spif:buildURI ;
...@@ -131,7 +140,7 @@ ...@@ -131,7 +140,7 @@
131 ]) 140 ])
132 ] . 141 ] .
133 142
134 -<file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#COPEX-Headings> 143 +Head:COPEX-Headings
135 spin:rule 144 spin:rule
136 [ rdf:type sp:Construct ; 145 [ rdf:type sp:Construct ;
137 sp:templates ([ sp:object owl:Class ; 146 sp:templates ([ sp:object owl:Class ;
...@@ -139,11 +148,18 @@ ...@@ -139,11 +148,18 @@
139 sp:subject 148 sp:subject
140 [ sp:varName "class"^^xsd:string 149 [ sp:varName "class"^^xsd:string
141 ] 150 ]
151 + ] [ sp:object
152 + [ sp:varName "head"^^xsd:string
153 + ] ;
154 + sp:predicate rdfs:label ;
155 + sp:subject
156 + [ sp:varName "class"^^xsd:string
157 + ]
142 ]) ; 158 ]) ;
143 sp:where ([ sp:object 159 sp:where ([ sp:object
144 [ sp:varName "head"^^xsd:string 160 [ sp:varName "head"^^xsd:string
145 ] ; 161 ] ;
146 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h0> ; 162 + sp:predicate Head:h0 ;
147 sp:subject spin:_this 163 sp:subject spin:_this
148 ] [ rdf:type sp:Filter ; 164 ] [ rdf:type sp:Filter ;
149 sp:expression 165 sp:expression
...@@ -169,11 +185,18 @@ ...@@ -169,11 +185,18 @@
169 sp:subject 185 sp:subject
170 [ sp:varName "class"^^xsd:string 186 [ sp:varName "class"^^xsd:string
171 ] 187 ]
188 + ] [ sp:object
189 + [ sp:varName "head"^^xsd:string
190 + ] ;
191 + sp:predicate rdfs:label ;
192 + sp:subject
193 + [ sp:varName "class"^^xsd:string
194 + ]
172 ]) ; 195 ]) ;
173 sp:where ([ sp:object 196 sp:where ([ sp:object
174 [ sp:varName "head"^^xsd:string 197 [ sp:varName "head"^^xsd:string
175 ] ; 198 ] ;
176 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; 199 + sp:predicate Head:h1 ;
177 sp:subject spin:_this 200 sp:subject spin:_this
178 ] [ rdf:type sp:Filter ; 201 ] [ rdf:type sp:Filter ;
179 sp:expression 202 sp:expression
...@@ -199,11 +222,18 @@ ...@@ -199,11 +222,18 @@
199 sp:subject 222 sp:subject
200 [ sp:varName "class"^^xsd:string 223 [ sp:varName "class"^^xsd:string
201 ] 224 ]
225 + ] [ sp:object
226 + [ sp:varName "head"^^xsd:string
227 + ] ;
228 + sp:predicate rdfs:label ;
229 + sp:subject
230 + [ sp:varName "class"^^xsd:string
231 + ]
202 ]) ; 232 ]) ;
203 sp:where ([ sp:object 233 sp:where ([ sp:object
204 [ sp:varName "head"^^xsd:string 234 [ sp:varName "head"^^xsd:string
205 ] ; 235 ] ;
206 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h2> ; 236 + sp:predicate Head:h2 ;
207 sp:subject spin:_this 237 sp:subject spin:_this
208 ] [ rdf:type sp:Filter ; 238 ] [ rdf:type sp:Filter ;
209 sp:expression 239 sp:expression
...@@ -229,11 +259,18 @@ ...@@ -229,11 +259,18 @@
229 sp:subject 259 sp:subject
230 [ sp:varName "class"^^xsd:string 260 [ sp:varName "class"^^xsd:string
231 ] 261 ]
262 + ] [ sp:object
263 + [ sp:varName "head"^^xsd:string
264 + ] ;
265 + sp:predicate rdfs:label ;
266 + sp:subject
267 + [ sp:varName "class"^^xsd:string
268 + ]
232 ]) ; 269 ]) ;
233 sp:where ([ sp:object 270 sp:where ([ sp:object
234 [ sp:varName "head"^^xsd:string 271 [ sp:varName "head"^^xsd:string
235 ] ; 272 ] ;
236 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h3> ; 273 + sp:predicate Head:h3 ;
237 sp:subject spin:_this 274 sp:subject spin:_this
238 ] [ rdf:type sp:Filter ; 275 ] [ rdf:type sp:Filter ;
239 sp:expression 276 sp:expression
...@@ -259,11 +296,18 @@ ...@@ -259,11 +296,18 @@
259 sp:subject 296 sp:subject
260 [ sp:varName "class"^^xsd:string 297 [ sp:varName "class"^^xsd:string
261 ] 298 ]
299 + ] [ sp:object
300 + [ sp:varName "head"^^xsd:string
301 + ] ;
302 + sp:predicate rdfs:label ;
303 + sp:subject
304 + [ sp:varName "class"^^xsd:string
305 + ]
262 ]) ; 306 ]) ;
263 sp:where ([ sp:object 307 sp:where ([ sp:object
264 [ sp:varName "head"^^xsd:string 308 [ sp:varName "head"^^xsd:string
265 ] ; 309 ] ;
266 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h4> ; 310 + sp:predicate Head:h4 ;
267 sp:subject spin:_this 311 sp:subject spin:_this
268 ] [ rdf:type sp:Filter ; 312 ] [ rdf:type sp:Filter ;
269 sp:expression 313 sp:expression
...@@ -289,11 +333,18 @@ ...@@ -289,11 +333,18 @@
289 sp:subject 333 sp:subject
290 [ sp:varName "class"^^xsd:string 334 [ sp:varName "class"^^xsd:string
291 ] 335 ]
336 + ] [ sp:object
337 + [ sp:varName "head"^^xsd:string
338 + ] ;
339 + sp:predicate rdfs:label ;
340 + sp:subject
341 + [ sp:varName "class"^^xsd:string
342 + ]
292 ]) ; 343 ]) ;
293 sp:where ([ sp:object 344 sp:where ([ sp:object
294 [ sp:varName "head"^^xsd:string 345 [ sp:varName "head"^^xsd:string
295 ] ; 346 ] ;
296 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h5> ; 347 + sp:predicate Head:h5 ;
297 sp:subject spin:_this 348 sp:subject spin:_this
298 ] [ rdf:type sp:Filter ; 349 ] [ rdf:type sp:Filter ;
299 sp:expression 350 sp:expression
...@@ -320,6 +371,13 @@ ...@@ -320,6 +371,13 @@
320 [ sp:varName "property"^^xsd:string 371 [ sp:varName "property"^^xsd:string
321 ] 372 ]
322 ] [ sp:object 373 ] [ sp:object
374 + [ sp:varName "label"^^xsd:string
375 + ] ;
376 + sp:predicate rdfs:label ;
377 + sp:subject
378 + [ sp:varName "property"^^xsd:string
379 + ]
380 + ] [ sp:object
323 [ sp:varName "class"^^xsd:string 381 [ sp:varName "class"^^xsd:string
324 ] ; 382 ] ;
325 sp:predicate rdfs:range ; 383 sp:predicate rdfs:range ;
...@@ -344,12 +402,12 @@ ...@@ -344,12 +402,12 @@
344 ] 402 ]
345 ]) ; 403 ]) ;
346 sp:where ([ sp:object "Heading1" ; 404 sp:where ([ sp:object "Heading1" ;
347 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; 405 + sp:predicate Head:lEVEL ;
348 sp:subject spin:_this 406 sp:subject spin:_this
349 ] [ sp:object 407 ] [ sp:object
350 [ sp:varName "head"^^xsd:string 408 [ sp:varName "head"^^xsd:string
351 ] ; 409 ] ;
352 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; 410 + sp:predicate Head:h1 ;
353 sp:subject spin:_this 411 sp:subject spin:_this
354 ] [ rdf:type sp:Filter ; 412 ] [ rdf:type sp:Filter ;
355 sp:expression 413 sp:expression
...@@ -361,7 +419,7 @@ ...@@ -361,7 +419,7 @@
361 ] [ sp:object 419 ] [ sp:object
362 [ sp:varName "hparent"^^xsd:string 420 [ sp:varName "hparent"^^xsd:string
363 ] ; 421 ] ;
364 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h0> ; 422 + sp:predicate Head:h0 ;
365 sp:subject spin:_this 423 sp:subject spin:_this
366 ] [ rdf:type sp:Filter ; 424 ] [ rdf:type sp:Filter ;
367 sp:expression 425 sp:expression
...@@ -394,6 +452,16 @@ ...@@ -394,6 +452,16 @@
394 sp:variable 452 sp:variable
395 [ sp:varName "property"^^xsd:string 453 [ sp:varName "property"^^xsd:string
396 ] 454 ]
455 + ] [ rdf:type sp:Bind ;
456 + sp:expression
457 + [ rdf:type fn:concat ;
458 + sp:arg1 [ sp:varName "head"^^xsd:string
459 + ] ;
460 + sp:arg2 " Ref"
461 + ] ;
462 + sp:variable
463 + [ sp:varName "label"^^xsd:string
464 + ]
397 ]) 465 ])
398 ] ; 466 ] ;
399 spin:rule 467 spin:rule
...@@ -404,6 +472,13 @@ ...@@ -404,6 +472,13 @@
404 [ sp:varName "property"^^xsd:string 472 [ sp:varName "property"^^xsd:string
405 ] 473 ]
406 ] [ sp:object 474 ] [ sp:object
475 + [ sp:varName "label"^^xsd:string
476 + ] ;
477 + sp:predicate rdfs:label ;
478 + sp:subject
479 + [ sp:varName "property"^^xsd:string
480 + ]
481 + ] [ sp:object
407 [ sp:varName "class"^^xsd:string 482 [ sp:varName "class"^^xsd:string
408 ] ; 483 ] ;
409 sp:predicate rdfs:range ; 484 sp:predicate rdfs:range ;
...@@ -428,12 +503,12 @@ ...@@ -428,12 +503,12 @@
428 ] 503 ]
429 ]) ; 504 ]) ;
430 sp:where ([ sp:object "Heading1" ; 505 sp:where ([ sp:object "Heading1" ;
431 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; 506 + sp:predicate Head:lEVEL ;
432 sp:subject spin:_this 507 sp:subject spin:_this
433 ] [ sp:object 508 ] [ sp:object
434 [ sp:varName "head"^^xsd:string 509 [ sp:varName "head"^^xsd:string
435 ] ; 510 ] ;
436 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; 511 + sp:predicate Head:h1 ;
437 sp:subject spin:_this 512 sp:subject spin:_this
438 ] [ rdf:type sp:Filter ; 513 ] [ rdf:type sp:Filter ;
439 sp:expression 514 sp:expression
...@@ -445,7 +520,7 @@ ...@@ -445,7 +520,7 @@
445 ] [ sp:object 520 ] [ sp:object
446 [ sp:varName "hparent"^^xsd:string 521 [ sp:varName "hparent"^^xsd:string
447 ] ; 522 ] ;
448 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h0> ; 523 + sp:predicate Head:h0 ;
449 sp:subject spin:_this 524 sp:subject spin:_this
450 ] [ rdf:type sp:Filter ; 525 ] [ rdf:type sp:Filter ;
451 sp:expression 526 sp:expression
...@@ -478,6 +553,16 @@ ...@@ -478,6 +553,16 @@
478 sp:variable 553 sp:variable
479 [ sp:varName "property"^^xsd:string 554 [ sp:varName "property"^^xsd:string
480 ] 555 ]
556 + ] [ rdf:type sp:Bind ;
557 + sp:expression
558 + [ rdf:type fn:concat ;
559 + sp:arg1 [ sp:varName "head"^^xsd:string
560 + ] ;
561 + sp:arg2 " Ref"
562 + ] ;
563 + sp:variable
564 + [ sp:varName "label"^^xsd:string
565 + ]
481 ]) 566 ])
482 ] ; 567 ] ;
483 spin:rule 568 spin:rule
...@@ -488,6 +573,13 @@ ...@@ -488,6 +573,13 @@
488 [ sp:varName "property"^^xsd:string 573 [ sp:varName "property"^^xsd:string
489 ] 574 ]
490 ] [ sp:object 575 ] [ sp:object
576 + [ sp:varName "label"^^xsd:string
577 + ] ;
578 + sp:predicate rdfs:label ;
579 + sp:subject
580 + [ sp:varName "property"^^xsd:string
581 + ]
582 + ] [ sp:object
491 [ sp:varName "class"^^xsd:string 583 [ sp:varName "class"^^xsd:string
492 ] ; 584 ] ;
493 sp:predicate rdfs:range ; 585 sp:predicate rdfs:range ;
...@@ -512,12 +604,12 @@ ...@@ -512,12 +604,12 @@
512 ] 604 ]
513 ]) ; 605 ]) ;
514 sp:where ([ sp:object "Heading2" ; 606 sp:where ([ sp:object "Heading2" ;
515 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; 607 + sp:predicate Head:lEVEL ;
516 sp:subject spin:_this 608 sp:subject spin:_this
517 ] [ sp:object 609 ] [ sp:object
518 [ sp:varName "head"^^xsd:string 610 [ sp:varName "head"^^xsd:string
519 ] ; 611 ] ;
520 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h2> ; 612 + sp:predicate Head:h2 ;
521 sp:subject spin:_this 613 sp:subject spin:_this
522 ] [ rdf:type sp:Filter ; 614 ] [ rdf:type sp:Filter ;
523 sp:expression 615 sp:expression
...@@ -529,7 +621,7 @@ ...@@ -529,7 +621,7 @@
529 ] [ sp:object 621 ] [ sp:object
530 [ sp:varName "hparent"^^xsd:string 622 [ sp:varName "hparent"^^xsd:string
531 ] ; 623 ] ;
532 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; 624 + sp:predicate Head:h1 ;
533 sp:subject spin:_this 625 sp:subject spin:_this
534 ] [ rdf:type sp:Filter ; 626 ] [ rdf:type sp:Filter ;
535 sp:expression 627 sp:expression
...@@ -562,6 +654,16 @@ ...@@ -562,6 +654,16 @@
562 sp:variable 654 sp:variable
563 [ sp:varName "property"^^xsd:string 655 [ sp:varName "property"^^xsd:string
564 ] 656 ]
657 + ] [ rdf:type sp:Bind ;
658 + sp:expression
659 + [ rdf:type fn:concat ;
660 + sp:arg1 [ sp:varName "head"^^xsd:string
661 + ] ;
662 + sp:arg2 " Ref"
663 + ] ;
664 + sp:variable
665 + [ sp:varName "label"^^xsd:string
666 + ]
565 ]) 667 ])
566 ] ; 668 ] ;
567 spin:rule 669 spin:rule
...@@ -572,6 +674,13 @@ ...@@ -572,6 +674,13 @@
572 [ sp:varName "property"^^xsd:string 674 [ sp:varName "property"^^xsd:string
573 ] 675 ]
574 ] [ sp:object 676 ] [ sp:object
677 + [ sp:varName "label"^^xsd:string
678 + ] ;
679 + sp:predicate rdfs:label ;
680 + sp:subject
681 + [ sp:varName "property"^^xsd:string
682 + ]
683 + ] [ sp:object
575 [ sp:varName "class"^^xsd:string 684 [ sp:varName "class"^^xsd:string
576 ] ; 685 ] ;
577 sp:predicate rdfs:range ; 686 sp:predicate rdfs:range ;
...@@ -596,12 +705,12 @@ ...@@ -596,12 +705,12 @@
596 ] 705 ]
597 ]) ; 706 ]) ;
598 sp:where ([ sp:object "Heading3" ; 707 sp:where ([ sp:object "Heading3" ;
599 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; 708 + sp:predicate Head:lEVEL ;
600 sp:subject spin:_this 709 sp:subject spin:_this
601 ] [ sp:object 710 ] [ sp:object
602 [ sp:varName "head"^^xsd:string 711 [ sp:varName "head"^^xsd:string
603 ] ; 712 ] ;
604 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h3> ; 713 + sp:predicate Head:h3 ;
605 sp:subject spin:_this 714 sp:subject spin:_this
606 ] [ rdf:type sp:Filter ; 715 ] [ rdf:type sp:Filter ;
607 sp:expression 716 sp:expression
...@@ -613,7 +722,7 @@ ...@@ -613,7 +722,7 @@
613 ] [ sp:object 722 ] [ sp:object
614 [ sp:varName "hparent"^^xsd:string 723 [ sp:varName "hparent"^^xsd:string
615 ] ; 724 ] ;
616 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h2> ; 725 + sp:predicate Head:h2 ;
617 sp:subject spin:_this 726 sp:subject spin:_this
618 ] [ rdf:type sp:Filter ; 727 ] [ rdf:type sp:Filter ;
619 sp:expression 728 sp:expression
...@@ -646,6 +755,16 @@ ...@@ -646,6 +755,16 @@
646 sp:variable 755 sp:variable
647 [ sp:varName "property"^^xsd:string 756 [ sp:varName "property"^^xsd:string
648 ] 757 ]
758 + ] [ rdf:type sp:Bind ;
759 + sp:expression
760 + [ rdf:type fn:concat ;
761 + sp:arg1 [ sp:varName "head"^^xsd:string
762 + ] ;
763 + sp:arg2 " Ref"
764 + ] ;
765 + sp:variable
766 + [ sp:varName "label"^^xsd:string
767 + ]
649 ]) 768 ])
650 ] ; 769 ] ;
651 spin:rule 770 spin:rule
...@@ -656,6 +775,13 @@ ...@@ -656,6 +775,13 @@
656 [ sp:varName "property"^^xsd:string 775 [ sp:varName "property"^^xsd:string
657 ] 776 ]
658 ] [ sp:object 777 ] [ sp:object
778 + [ sp:varName "label"^^xsd:string
779 + ] ;
780 + sp:predicate rdfs:label ;
781 + sp:subject
782 + [ sp:varName "property"^^xsd:string
783 + ]
784 + ] [ sp:object
659 [ sp:varName "class"^^xsd:string 785 [ sp:varName "class"^^xsd:string
660 ] ; 786 ] ;
661 sp:predicate rdfs:range ; 787 sp:predicate rdfs:range ;
...@@ -680,12 +806,12 @@ ...@@ -680,12 +806,12 @@
680 ] 806 ]
681 ]) ; 807 ]) ;
682 sp:where ([ sp:object "Heading4" ; 808 sp:where ([ sp:object "Heading4" ;
683 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; 809 + sp:predicate Head:lEVEL ;
684 sp:subject spin:_this 810 sp:subject spin:_this
685 ] [ sp:object 811 ] [ sp:object
686 [ sp:varName "head"^^xsd:string 812 [ sp:varName "head"^^xsd:string
687 ] ; 813 ] ;
688 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h4> ; 814 + sp:predicate Head:h4 ;
689 sp:subject spin:_this 815 sp:subject spin:_this
690 ] [ rdf:type sp:Filter ; 816 ] [ rdf:type sp:Filter ;
691 sp:expression 817 sp:expression
...@@ -697,7 +823,7 @@ ...@@ -697,7 +823,7 @@
697 ] [ sp:object 823 ] [ sp:object
698 [ sp:varName "hparent"^^xsd:string 824 [ sp:varName "hparent"^^xsd:string
699 ] ; 825 ] ;
700 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h3> ; 826 + sp:predicate Head:h3 ;
701 sp:subject spin:_this 827 sp:subject spin:_this
702 ] [ rdf:type sp:Filter ; 828 ] [ rdf:type sp:Filter ;
703 sp:expression 829 sp:expression
...@@ -730,6 +856,16 @@ ...@@ -730,6 +856,16 @@
730 sp:variable 856 sp:variable
731 [ sp:varName "property"^^xsd:string 857 [ sp:varName "property"^^xsd:string
732 ] 858 ]
859 + ] [ rdf:type sp:Bind ;
860 + sp:expression
861 + [ rdf:type fn:concat ;
862 + sp:arg1 [ sp:varName "head"^^xsd:string
863 + ] ;
864 + sp:arg2 " Ref"
865 + ] ;
866 + sp:variable
867 + [ sp:varName "label"^^xsd:string
868 + ]
733 ]) 869 ])
734 ] ; 870 ] ;
735 spin:rule 871 spin:rule
...@@ -740,6 +876,13 @@ ...@@ -740,6 +876,13 @@
740 [ sp:varName "property"^^xsd:string 876 [ sp:varName "property"^^xsd:string
741 ] 877 ]
742 ] [ sp:object 878 ] [ sp:object
879 + [ sp:varName "label"^^xsd:string
880 + ] ;
881 + sp:predicate rdfs:label ;
882 + sp:subject
883 + [ sp:varName "property"^^xsd:string
884 + ]
885 + ] [ sp:object
743 [ sp:varName "class"^^xsd:string 886 [ sp:varName "class"^^xsd:string
744 ] ; 887 ] ;
745 sp:predicate rdfs:range ; 888 sp:predicate rdfs:range ;
...@@ -764,12 +907,12 @@ ...@@ -764,12 +907,12 @@
764 ] 907 ]
765 ]) ; 908 ]) ;
766 sp:where ([ sp:object "Heading5" ; 909 sp:where ([ sp:object "Heading5" ;
767 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; 910 + sp:predicate Head:lEVEL ;
768 sp:subject spin:_this 911 sp:subject spin:_this
769 ] [ sp:object 912 ] [ sp:object
770 [ sp:varName "head"^^xsd:string 913 [ sp:varName "head"^^xsd:string
771 ] ; 914 ] ;
772 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h5> ; 915 + sp:predicate Head:h5 ;
773 sp:subject spin:_this 916 sp:subject spin:_this
774 ] [ rdf:type sp:Filter ; 917 ] [ rdf:type sp:Filter ;
775 sp:expression 918 sp:expression
...@@ -781,7 +924,7 @@ ...@@ -781,7 +924,7 @@
781 ] [ sp:object 924 ] [ sp:object
782 [ sp:varName "hparent"^^xsd:string 925 [ sp:varName "hparent"^^xsd:string
783 ] ; 926 ] ;
784 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h4> ; 927 + sp:predicate Head:h4 ;
785 sp:subject spin:_this 928 sp:subject spin:_this
786 ] [ rdf:type sp:Filter ; 929 ] [ rdf:type sp:Filter ;
787 sp:expression 930 sp:expression
...@@ -814,10 +957,20 @@ ...@@ -814,10 +957,20 @@
814 sp:variable 957 sp:variable
815 [ sp:varName "property"^^xsd:string 958 [ sp:varName "property"^^xsd:string
816 ] 959 ]
960 + ] [ rdf:type sp:Bind ;
961 + sp:expression
962 + [ rdf:type fn:concat ;
963 + sp:arg1 [ sp:varName "head"^^xsd:string
964 + ] ;
965 + sp:arg2 " Ref"
966 + ] ;
967 + sp:variable
968 + [ sp:varName "label"^^xsd:string
969 + ]
817 ]) 970 ])
818 ] . 971 ] .
819 972
820 -<file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#COPEX-Properties> 973 +Prop:COPEX-Properties
821 spin:rule 974 spin:rule
822 [ rdf:type sp:Construct ; 975 [ rdf:type sp:Construct ;
823 sp:templates ([ sp:object rdf:Property ; 976 sp:templates ([ sp:object rdf:Property ;
...@@ -860,17 +1013,24 @@ ...@@ -860,17 +1013,24 @@
860 sp:subject 1013 sp:subject
861 [ sp:varName "property"^^xsd:string 1014 [ sp:varName "property"^^xsd:string
862 ] 1015 ]
1016 + ] [ sp:object
1017 + [ sp:varName "label"^^xsd:string
1018 + ] ;
1019 + sp:predicate rdfs:label ;
1020 + sp:subject
1021 + [ sp:varName "property"^^xsd:string
1022 + ]
863 ]) ; 1023 ]) ;
864 sp:where ([ sp:object 1024 sp:where ([ sp:object
865 [ sp:varName "name"^^xsd:string 1025 [ sp:varName "name"^^xsd:string
866 ] ; 1026 ] ;
867 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#keywordName> ; 1027 + sp:predicate Prop:keywordName ;
868 sp:subject spin:_this 1028 sp:subject spin:_this
869 ] [ rdf:type sp:Optional ; 1029 ] [ rdf:type sp:Optional ;
870 sp:elements ([ sp:object 1030 sp:elements ([ sp:object
871 [ sp:varName "datatype"^^xsd:string 1031 [ sp:varName "datatype"^^xsd:string
872 ] ; 1032 ] ;
873 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#datatype> ; 1033 + sp:predicate Prop:datatype ;
874 sp:subject spin:_this 1034 sp:subject spin:_this
875 ] [ rdf:type sp:Bind ; 1035 ] [ rdf:type sp:Bind ;
876 sp:expression 1036 sp:expression
...@@ -887,7 +1047,7 @@ ...@@ -887,7 +1047,7 @@
887 sp:elements ([ sp:object 1047 sp:elements ([ sp:object
888 [ sp:varName "default"^^xsd:string 1048 [ sp:varName "default"^^xsd:string
889 ] ; 1049 ] ;
890 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#defaultValue> ; 1050 + sp:predicate Prop:defaultValue ;
891 sp:subject spin:_this 1051 sp:subject spin:_this
892 ] [ rdf:type sp:Bind ; 1052 ] [ rdf:type sp:Bind ;
893 sp:expression 1053 sp:expression
...@@ -904,7 +1064,7 @@ ...@@ -904,7 +1064,7 @@
904 sp:elements ([ sp:object 1064 sp:elements ([ sp:object
905 [ sp:varName "unittype"^^xsd:string 1065 [ sp:varName "unittype"^^xsd:string
906 ] ; 1066 ] ;
907 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#unitType> ; 1067 + sp:predicate Prop:unitType ;
908 sp:subject spin:_this 1068 sp:subject spin:_this
909 ] [ rdf:type sp:Bind ; 1069 ] [ rdf:type sp:Bind ;
910 sp:expression 1070 sp:expression
...@@ -921,7 +1081,7 @@ ...@@ -921,7 +1081,7 @@
921 sp:elements ([ sp:object 1081 sp:elements ([ sp:object
922 [ sp:varName "minval"^^xsd:string 1082 [ sp:varName "minval"^^xsd:string
923 ] ; 1083 ] ;
924 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#min> ; 1084 + sp:predicate Prop:min ;
925 sp:subject spin:_this 1085 sp:subject spin:_this
926 ] [ rdf:type sp:Bind ; 1086 ] [ rdf:type sp:Bind ;
927 sp:expression 1087 sp:expression
...@@ -938,7 +1098,7 @@ ...@@ -938,7 +1098,7 @@
938 sp:elements ([ sp:object 1098 sp:elements ([ sp:object
939 [ sp:varName "maxval"^^xsd:string 1099 [ sp:varName "maxval"^^xsd:string
940 ] ; 1100 ] ;
941 - sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#max> ; 1101 + sp:predicate Prop:max ;
942 sp:subject spin:_this 1102 sp:subject spin:_this
943 ] [ rdf:type sp:Bind ; 1103 ] [ rdf:type sp:Bind ;
944 sp:expression 1104 sp:expression
...@@ -959,6 +1119,16 @@ ...@@ -959,6 +1119,16 @@
959 sp:variable 1119 sp:variable
960 [ sp:varName "property"^^xsd:string 1120 [ sp:varName "property"^^xsd:string
961 ] 1121 ]
1122 + ] [ rdf:type sp:Bind ;
1123 + sp:expression
1124 + [ rdf:type fn:concat ;
1125 + sp:arg1 "has " ;
1126 + sp:arg2 [ sp:varName "name"^^xsd:string
1127 + ]
1128 + ] ;
1129 + sp:variable
1130 + [ sp:varName "label"^^xsd:string
1131 + ]
962 ]) 1132 ])
963 ] . 1133 ] .
964 1134
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
9 @prefix visual: <http://topbraid.org/visual#> . 9 @prefix visual: <http://topbraid.org/visual#> .
10 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 10 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 11
12 +<file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#COPEX-HeadingWithProperty>
13 + forms:keyProperties (rdfs:label rdfs:comment <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#blockName> <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#keywordName> <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#level>) .
14 +
12 [] rdf:type inference:Configuration ; 15 [] rdf:type inference:Configuration ;
13 composite:child 16 composite:child
14 [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 17 [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
......