Showing
9 changed files
with
1145 additions
and
0 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
www.reportinghub.no/input/copex/COPEX.BNF
0 → 100644
1 | +# Keywords, block names and block level names in COPEX are case insensitive. | ||
2 | +# "~" is the repetition symbol and Void an alternative to the null string in COPEX. | ||
3 | + | ||
4 | +CopexFile ::= | ||
5 | + {BlankCharacter} | ||
6 | + ::COPEX:: _ {DataElement _ } {Block _} {::COPEX:: _ {DataElement _ } {Block _}} | ||
7 | + ::Goodbye:: | ||
8 | + {AnyCharacter} | ||
9 | + | ||
10 | +Block ::= | ||
11 | + BlockLevel _ BlockName {_ DataElement} {_ Block} | | ||
12 | + PrimaryKeyword _ PrimaryValue {_ DataElement} {_ Block} | | ||
13 | + Table(m,n) {_ Block} | ||
14 | + | ||
15 | +Table(m,n) ::= | ||
16 | + PrimaryColumnName _ {ColumnName _}(n-1) UnitRow {_ ColumnValue}(m*n) | ||
17 | + # m >= 1 and n >= 2 | ||
18 | + | ||
19 | +PrimaryColumnName ::= | ||
20 | + BlockLevel | PrimaryKeyword | ||
21 | + | ||
22 | +ColumnName ::= | ||
23 | + BlockLevel | PrimaryKeyword | Keyword | ||
24 | + | ||
25 | +UnitRow ::= | ||
26 | + Unit {_ Unit}(n-1) | NoUnits | ||
27 | + | ||
28 | +ColumnValue ::= | ||
29 | + BlockName | PrimaryValue | Value | ||
30 | + | ||
31 | +BlockLevel ::= | ||
32 | + BlockLevelName | BlockLevelFormat | ||
33 | + | ||
34 | +BlockLevelName ::= | ||
35 | + IdentifierLetter {IdentifierLetter | Digit | "_" | "." | "-"} ":" | ||
36 | + | ||
37 | +BlockLevelFormat ::= | ||
38 | + Integer {"." Integer} ":" | ||
39 | + # Number of integers in BlockLevelFormat gives the BlockLevel. | ||
40 | + | ||
41 | +BlockName ::= | ||
42 | + Text | "~" | ||
43 | + | ||
44 | +PrimaryValue ::= | ||
45 | + Text | "~" | ||
46 | + | ||
47 | +DataElement ::= | ||
48 | + Keyword _ Value [_ Unit] | ||
49 | + | ||
50 | +Keyword ::= | ||
51 | + IdentifierLetter {IdentifierLetter | Digit | "_" | "." | "-"} "=" | ||
52 | + | ||
53 | +PrimaryKeyword ::= | ||
54 | + IdentifierLetter {IdentifierLetter | Digit | "_" | "." | "-"} ":=" | ||
55 | + | ||
56 | +Unit ::= | ||
57 | + Text | Void | ||
58 | + | ||
59 | +Value :: = | ||
60 | + Text | Real | Void | "~" | ||
61 | + | ||
62 | +Comments ::= | ||
63 | + "/*" {AnyCharacter} "*/" | | ||
64 | + "#" { {VisibleCharacter | Space | CarriageReturn | Tabulator} [IgnoreNewLine] } | ||
65 | + NewLine | ||
66 | + | ||
67 | +Real ::= | ||
68 | + ["+" | "-"] Integer [DecimalSymbol Integer] [ScaleFactor] | ||
69 | + | ||
70 | +DecimalSymbol ::= | ||
71 | + "." | "," | ||
72 | + | ||
73 | +ScaleFactor ::= | ||
74 | + "E" ["+" | "-"] Integer | ||
75 | + | ||
76 | +Integer ::= | ||
77 | + Digit {Digit} | ||
78 | + | ||
79 | +Text ::= | ||
80 | + {VisibleCharacter} OrdinaryCharacter | | ||
81 | + """ { {BlankCharacter | VisibleCharacter | "'"} [IgnoreNewLine] } """ | | ||
82 | + "'" { {BlankCharacter | VisibleCharacter | """} [IgnoreNewLine] } "'" | ||
83 | + | ||
84 | +_ ::= | ||
85 | + BlankCharacter {Comments | BlankCharacter} | | ||
86 | + Comments {Comments | BlankCharacter} | ||
87 | + | ||
88 | +IgnoreNewLine ::= | ||
89 | + "\" NewLine | | ||
90 | + "\" CarriageReturn NewLine | ||
91 | + | ||
92 | +AnyCharacter ::= | ||
93 | + BlankCharacter | VisibleCharacter | QuotationMark | ||
94 | + | ||
95 | +BlankCharacter ::= | ||
96 | + Space | NewLine | CarriageReturn | Tabulator | ||
97 | + | ||
98 | +VisibleCharacter ::= | ||
99 | + OrdinaryCharacter | SpecialCharacter | ||
100 | + # VisibleCharacter does not contain QuotationMark. | ||
101 | + | ||
102 | +OrdinaryCharacter ::= | ||
103 | + Digit | IdentifierLetter | OtherCharacter | ||
104 | + | ||
105 | +SpecialCharacter ::= | ||
106 | + ":" | "=" | "~" | ||
107 | + | ||
108 | +QuotationMark ::= | ||
109 | + """ | "'" | ||
110 | + | ||
111 | +Digit ::= | ||
112 | + "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | ||
113 | + | ||
114 | +IdentifierLetter ::= | ||
115 | + "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | | ||
116 | + "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" | | ||
117 | + "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | | ||
118 | + "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | | ||
119 | + | ||
120 | +OtherCharacter ::= | ||
121 | + "!" | "#" | "$" | "%" | "&" | "(" | ")" | "*" | "+" | "," | "-" | "." | "/" | | ||
122 | + ";" | "<" | ">" | "?" | "@" | "[" | "\" | "]" | "^" | "_" | "`" | "{" | "|" | | ||
123 | + "}" | "¡" | "¢" | "£" | "¤" | "¥" | "¦" | "§" | "¨" | "©" | "ª" | "«" | "¬" | | ||
124 | + "" | "®" | "¯" | "°" | "±" | "²" | "³" | "´" | "µ" | "¶" | "·" | "¸" | "¹" | | ||
125 | + "º" | "»" | "¼" | "½" | "¾" | "¿" | "À" | "Á" | "Â" | "Ã" | "Ä" | "Å" | "Æ" | | ||
126 | + "Ç" | "È" | "É" | "Ê" | "Ë" | "Ì" | "Í" | "Î" | "Ï" | "Ð" | "Ñ" | "Ò" | "Ó" | | ||
127 | + "Ô" | "Õ" | "Ö" | "×" | "Ø" | "Ù" | "Ú" | "Û" | "Ü" | "Ý" | "Þ" | "ß" | "à" | | ||
128 | + "á" | "â" | "ã" | "ä" | "å" | "æ" | "ç" | "è" | "é" | "ê" | "ë" | "ì" | "í" | | ||
129 | + "î" | "ï" | "ð" | "ñ" | "ò" | "ó" | "ô" | "õ" | "ö" | "÷" | "ø" | "ù" | "ú" | | ||
130 | + "û" | "ü" | "ý" | "þ" | "ÿ" | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +# baseURI: http://www.reportinghub.no/input/copex/data-model | ||
2 | + | ||
3 | +@prefix copex-model: <http://www.reportinghub.no/input/copex/data-model#> . | ||
4 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
5 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
6 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
7 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
8 | + | ||
9 | +<http://www.reportinghub.no/input/copex/data-model> | ||
10 | + rdf:type owl:Ontology ; | ||
11 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
1 | +# baseURI: http://www.reportinghub.no/input/copex/ss-import | ||
2 | +# imports: file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls | ||
3 | +# imports: file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls | ||
4 | +# imports: file:///www.reportinghub.no/input/copex/COPEX-Properties.xls | ||
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#> . | ||
10 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
11 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
12 | +@prefix ss-import: <http://www.reportinghub.no/input/copex/ss-import#> . | ||
13 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
14 | + | ||
15 | +<http://www.reportinghub.no/input/copex/ss-import> | ||
16 | + rdf:type owl:Ontology ; | ||
17 | + owl:imports <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls> , <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls> , <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls> ; | ||
18 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
1 | +# baseURI: http://www.reportinghub.no/input/copex/ss-to-model | ||
2 | +# imports: http://spinrdf.org/spin | ||
3 | +# imports: http://www.reportinghub.no/input/copex/ss-import | ||
4 | + | ||
5 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
10 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
11 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
12 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
13 | +@prefix ss-to-model: <http://www.reportinghub.no/input/copex/ss-to-model#> . | ||
14 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
15 | + | ||
16 | +<file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#COPEX-HeadingWithProperty> | ||
17 | + spin:rule | ||
18 | + [ rdf:type sp:Construct ; | ||
19 | + sp:templates ([ sp:object owl:Restriction ; | ||
20 | + sp:predicate rdf:type ; | ||
21 | + sp:subject _:b1 | ||
22 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
23 | + sp:predicate owl:minCardinality ; | ||
24 | + sp:subject _:b1 | ||
25 | + ] [ sp:object | ||
26 | + [ sp:varName "property"^^xsd:string | ||
27 | + ] ; | ||
28 | + sp:predicate owl:onProperty ; | ||
29 | + sp:subject _:b1 | ||
30 | + ] [ sp:object _:b1 ; | ||
31 | + sp:predicate rdfs:subClassOf ; | ||
32 | + sp:subject | ||
33 | + [ sp:varName "class"^^xsd:string | ||
34 | + ] | ||
35 | + ]) ; | ||
36 | + sp:where ([ sp:object | ||
37 | + [ sp:varName "cname"^^xsd:string | ||
38 | + ] ; | ||
39 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#blockName> ; | ||
40 | + 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 | ||
49 | + [ sp:varName "pname"^^xsd:string | ||
50 | + ] ; | ||
51 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#keywordName> ; | ||
52 | + sp:subject spin:_this | ||
53 | + ] [ rdf:type sp:NotExists ; | ||
54 | + sp:elements ([ sp:object "m" ; | ||
55 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#manOptCon> ; | ||
56 | + sp:subject spin:_this | ||
57 | + ]) | ||
58 | + ] [ rdf:type sp:Bind ; | ||
59 | + sp:expression | ||
60 | + [ rdf:type spif:buildURI ; | ||
61 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?cname}>" | ||
62 | + ] ; | ||
63 | + sp:variable | ||
64 | + [ sp:varName "class"^^xsd:string | ||
65 | + ] | ||
66 | + ] [ rdf:type sp:Bind ; | ||
67 | + sp:expression | ||
68 | + [ rdf:type spif:buildURI ; | ||
69 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#has{?pname}>" | ||
70 | + ] ; | ||
71 | + sp:variable | ||
72 | + [ sp:varName "property"^^xsd:string | ||
73 | + ] | ||
74 | + ]) | ||
75 | + ] ; | ||
76 | + spin:rule | ||
77 | + [ rdf:type sp:Construct ; | ||
78 | + sp:templates ([ sp:object owl:Restriction ; | ||
79 | + sp:predicate rdf:type ; | ||
80 | + sp:subject _:b2 | ||
81 | + ] [ sp:object "1"^^xsd:nonNegativeInteger ; | ||
82 | + sp:predicate owl:minCardinality ; | ||
83 | + sp:subject _:b2 | ||
84 | + ] [ sp:object | ||
85 | + [ sp:varName "property"^^xsd:string | ||
86 | + ] ; | ||
87 | + sp:predicate owl:onProperty ; | ||
88 | + sp:subject _:b2 | ||
89 | + ] [ sp:object _:b2 ; | ||
90 | + sp:predicate rdfs:subClassOf ; | ||
91 | + sp:subject | ||
92 | + [ sp:varName "class"^^xsd:string | ||
93 | + ] | ||
94 | + ]) ; | ||
95 | + sp:where ([ sp:object | ||
96 | + [ sp:varName "cname"^^xsd:string | ||
97 | + ] ; | ||
98 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#blockName> ; | ||
99 | + 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 | ||
108 | + [ sp:varName "pname"^^xsd:string | ||
109 | + ] ; | ||
110 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#keywordName> ; | ||
111 | + sp:subject spin:_this | ||
112 | + ] [ sp:object "m" ; | ||
113 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingWithProperty.xls#manOptCon> ; | ||
114 | + sp:subject spin:_this | ||
115 | + ] [ rdf:type sp:Bind ; | ||
116 | + sp:expression | ||
117 | + [ rdf:type spif:buildURI ; | ||
118 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?cname}>" | ||
119 | + ] ; | ||
120 | + sp:variable | ||
121 | + [ sp:varName "class"^^xsd:string | ||
122 | + ] | ||
123 | + ] [ rdf:type sp:Bind ; | ||
124 | + sp:expression | ||
125 | + [ rdf:type spif:buildURI ; | ||
126 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#has{?pname}>" | ||
127 | + ] ; | ||
128 | + sp:variable | ||
129 | + [ sp:varName "property"^^xsd:string | ||
130 | + ] | ||
131 | + ]) | ||
132 | + ] . | ||
133 | + | ||
134 | +<file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#COPEX-Headings> | ||
135 | + spin:rule | ||
136 | + [ rdf:type sp:Construct ; | ||
137 | + sp:templates ([ sp:object owl:Class ; | ||
138 | + sp:predicate rdf:type ; | ||
139 | + sp:subject | ||
140 | + [ sp:varName "class"^^xsd:string | ||
141 | + ] | ||
142 | + ]) ; | ||
143 | + sp:where ([ sp:object | ||
144 | + [ sp:varName "head"^^xsd:string | ||
145 | + ] ; | ||
146 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h0> ; | ||
147 | + sp:subject spin:_this | ||
148 | + ] [ rdf:type sp:Filter ; | ||
149 | + sp:expression | ||
150 | + [ rdf:type sp:ne ; | ||
151 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
152 | + ] ; | ||
153 | + sp:arg2 "specific product attributes" | ||
154 | + ] | ||
155 | + ] [ rdf:type sp:Bind ; | ||
156 | + sp:expression | ||
157 | + [ rdf:type spif:buildURI ; | ||
158 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
159 | + ] ; | ||
160 | + sp:variable | ||
161 | + [ sp:varName "class"^^xsd:string | ||
162 | + ] | ||
163 | + ]) | ||
164 | + ] ; | ||
165 | + spin:rule | ||
166 | + [ rdf:type sp:Construct ; | ||
167 | + sp:templates ([ sp:object owl:Class ; | ||
168 | + sp:predicate rdf:type ; | ||
169 | + sp:subject | ||
170 | + [ sp:varName "class"^^xsd:string | ||
171 | + ] | ||
172 | + ]) ; | ||
173 | + sp:where ([ sp:object | ||
174 | + [ sp:varName "head"^^xsd:string | ||
175 | + ] ; | ||
176 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; | ||
177 | + sp:subject spin:_this | ||
178 | + ] [ rdf:type sp:Filter ; | ||
179 | + sp:expression | ||
180 | + [ rdf:type sp:ne ; | ||
181 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
182 | + ] ; | ||
183 | + sp:arg2 "specific product attributes" | ||
184 | + ] | ||
185 | + ] [ rdf:type sp:Bind ; | ||
186 | + sp:expression | ||
187 | + [ rdf:type spif:buildURI ; | ||
188 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
189 | + ] ; | ||
190 | + sp:variable | ||
191 | + [ sp:varName "class"^^xsd:string | ||
192 | + ] | ||
193 | + ]) | ||
194 | + ] ; | ||
195 | + spin:rule | ||
196 | + [ rdf:type sp:Construct ; | ||
197 | + sp:templates ([ sp:object owl:Class ; | ||
198 | + sp:predicate rdf:type ; | ||
199 | + sp:subject | ||
200 | + [ sp:varName "class"^^xsd:string | ||
201 | + ] | ||
202 | + ]) ; | ||
203 | + sp:where ([ sp:object | ||
204 | + [ sp:varName "head"^^xsd:string | ||
205 | + ] ; | ||
206 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h2> ; | ||
207 | + sp:subject spin:_this | ||
208 | + ] [ rdf:type sp:Filter ; | ||
209 | + sp:expression | ||
210 | + [ rdf:type sp:ne ; | ||
211 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
212 | + ] ; | ||
213 | + sp:arg2 "specific product attributes" | ||
214 | + ] | ||
215 | + ] [ rdf:type sp:Bind ; | ||
216 | + sp:expression | ||
217 | + [ rdf:type spif:buildURI ; | ||
218 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
219 | + ] ; | ||
220 | + sp:variable | ||
221 | + [ sp:varName "class"^^xsd:string | ||
222 | + ] | ||
223 | + ]) | ||
224 | + ] ; | ||
225 | + spin:rule | ||
226 | + [ rdf:type sp:Construct ; | ||
227 | + sp:templates ([ sp:object owl:Class ; | ||
228 | + sp:predicate rdf:type ; | ||
229 | + sp:subject | ||
230 | + [ sp:varName "class"^^xsd:string | ||
231 | + ] | ||
232 | + ]) ; | ||
233 | + sp:where ([ sp:object | ||
234 | + [ sp:varName "head"^^xsd:string | ||
235 | + ] ; | ||
236 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h3> ; | ||
237 | + sp:subject spin:_this | ||
238 | + ] [ rdf:type sp:Filter ; | ||
239 | + sp:expression | ||
240 | + [ rdf:type sp:ne ; | ||
241 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
242 | + ] ; | ||
243 | + sp:arg2 "specific product attributes" | ||
244 | + ] | ||
245 | + ] [ rdf:type sp:Bind ; | ||
246 | + sp:expression | ||
247 | + [ rdf:type spif:buildURI ; | ||
248 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
249 | + ] ; | ||
250 | + sp:variable | ||
251 | + [ sp:varName "class"^^xsd:string | ||
252 | + ] | ||
253 | + ]) | ||
254 | + ] ; | ||
255 | + spin:rule | ||
256 | + [ rdf:type sp:Construct ; | ||
257 | + sp:templates ([ sp:object owl:Class ; | ||
258 | + sp:predicate rdf:type ; | ||
259 | + sp:subject | ||
260 | + [ sp:varName "class"^^xsd:string | ||
261 | + ] | ||
262 | + ]) ; | ||
263 | + sp:where ([ sp:object | ||
264 | + [ sp:varName "head"^^xsd:string | ||
265 | + ] ; | ||
266 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h4> ; | ||
267 | + sp:subject spin:_this | ||
268 | + ] [ rdf:type sp:Filter ; | ||
269 | + sp:expression | ||
270 | + [ rdf:type sp:ne ; | ||
271 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
272 | + ] ; | ||
273 | + sp:arg2 "specific product attributes" | ||
274 | + ] | ||
275 | + ] [ rdf:type sp:Bind ; | ||
276 | + sp:expression | ||
277 | + [ rdf:type spif:buildURI ; | ||
278 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
279 | + ] ; | ||
280 | + sp:variable | ||
281 | + [ sp:varName "class"^^xsd:string | ||
282 | + ] | ||
283 | + ]) | ||
284 | + ] ; | ||
285 | + spin:rule | ||
286 | + [ rdf:type sp:Construct ; | ||
287 | + sp:templates ([ sp:object owl:Class ; | ||
288 | + sp:predicate rdf:type ; | ||
289 | + sp:subject | ||
290 | + [ sp:varName "class"^^xsd:string | ||
291 | + ] | ||
292 | + ]) ; | ||
293 | + sp:where ([ sp:object | ||
294 | + [ sp:varName "head"^^xsd:string | ||
295 | + ] ; | ||
296 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h5> ; | ||
297 | + sp:subject spin:_this | ||
298 | + ] [ rdf:type sp:Filter ; | ||
299 | + sp:expression | ||
300 | + [ rdf:type sp:ne ; | ||
301 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
302 | + ] ; | ||
303 | + sp:arg2 "specific product attributes" | ||
304 | + ] | ||
305 | + ] [ rdf:type sp:Bind ; | ||
306 | + sp:expression | ||
307 | + [ rdf:type spif:buildURI ; | ||
308 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
309 | + ] ; | ||
310 | + sp:variable | ||
311 | + [ sp:varName "class"^^xsd:string | ||
312 | + ] | ||
313 | + ]) | ||
314 | + ] ; | ||
315 | + spin:rule | ||
316 | + [ rdf:type sp:Construct ; | ||
317 | + sp:templates ([ sp:object owl:ObjectProperty ; | ||
318 | + sp:predicate rdf:type ; | ||
319 | + sp:subject | ||
320 | + [ sp:varName "property"^^xsd:string | ||
321 | + ] | ||
322 | + ] [ sp:object | ||
323 | + [ sp:varName "class"^^xsd:string | ||
324 | + ] ; | ||
325 | + sp:predicate rdfs:range ; | ||
326 | + sp:subject | ||
327 | + [ sp:varName "property"^^xsd:string | ||
328 | + ] | ||
329 | + ] [ sp:object owl:Restriction ; | ||
330 | + sp:predicate rdf:type ; | ||
331 | + sp:subject _:b3 | ||
332 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
333 | + sp:predicate owl:minCardinality ; | ||
334 | + sp:subject _:b3 | ||
335 | + ] [ sp:object | ||
336 | + [ sp:varName "property"^^xsd:string | ||
337 | + ] ; | ||
338 | + sp:predicate owl:onProperty ; | ||
339 | + sp:subject _:b3 | ||
340 | + ] [ sp:object _:b3 ; | ||
341 | + sp:predicate rdfs:subClassOf ; | ||
342 | + sp:subject | ||
343 | + [ sp:varName "parent"^^xsd:string | ||
344 | + ] | ||
345 | + ]) ; | ||
346 | + sp:where ([ sp:object "Heading1" ; | ||
347 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; | ||
348 | + sp:subject spin:_this | ||
349 | + ] [ sp:object | ||
350 | + [ sp:varName "head"^^xsd:string | ||
351 | + ] ; | ||
352 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; | ||
353 | + sp:subject spin:_this | ||
354 | + ] [ rdf:type sp:Filter ; | ||
355 | + sp:expression | ||
356 | + [ rdf:type sp:ne ; | ||
357 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
358 | + ] ; | ||
359 | + sp:arg2 "specific product attributes" | ||
360 | + ] | ||
361 | + ] [ sp:object | ||
362 | + [ sp:varName "hparent"^^xsd:string | ||
363 | + ] ; | ||
364 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h0> ; | ||
365 | + sp:subject spin:_this | ||
366 | + ] [ rdf:type sp:Filter ; | ||
367 | + sp:expression | ||
368 | + [ rdf:type sp:ne ; | ||
369 | + sp:arg1 [ sp:varName "hparent"^^xsd:string | ||
370 | + ] ; | ||
371 | + sp:arg2 "specific product attributes" | ||
372 | + ] | ||
373 | + ] [ rdf:type sp:Bind ; | ||
374 | + sp:expression | ||
375 | + [ rdf:type spif:buildURI ; | ||
376 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
377 | + ] ; | ||
378 | + sp:variable | ||
379 | + [ sp:varName "class"^^xsd:string | ||
380 | + ] | ||
381 | + ] [ rdf:type sp:Bind ; | ||
382 | + sp:expression | ||
383 | + [ rdf:type spif:buildURI ; | ||
384 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?hparent}>" | ||
385 | + ] ; | ||
386 | + sp:variable | ||
387 | + [ sp:varName "parent"^^xsd:string | ||
388 | + ] | ||
389 | + ] [ rdf:type sp:Bind ; | ||
390 | + sp:expression | ||
391 | + [ rdf:type spif:buildURI ; | ||
392 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}Ref>" | ||
393 | + ] ; | ||
394 | + sp:variable | ||
395 | + [ sp:varName "property"^^xsd:string | ||
396 | + ] | ||
397 | + ]) | ||
398 | + ] ; | ||
399 | + spin:rule | ||
400 | + [ rdf:type sp:Construct ; | ||
401 | + sp:templates ([ sp:object owl:ObjectProperty ; | ||
402 | + sp:predicate rdf:type ; | ||
403 | + sp:subject | ||
404 | + [ sp:varName "property"^^xsd:string | ||
405 | + ] | ||
406 | + ] [ sp:object | ||
407 | + [ sp:varName "class"^^xsd:string | ||
408 | + ] ; | ||
409 | + sp:predicate rdfs:range ; | ||
410 | + sp:subject | ||
411 | + [ sp:varName "property"^^xsd:string | ||
412 | + ] | ||
413 | + ] [ sp:object owl:Restriction ; | ||
414 | + sp:predicate rdf:type ; | ||
415 | + sp:subject _:b4 | ||
416 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
417 | + sp:predicate owl:minCardinality ; | ||
418 | + sp:subject _:b4 | ||
419 | + ] [ sp:object | ||
420 | + [ sp:varName "property"^^xsd:string | ||
421 | + ] ; | ||
422 | + sp:predicate owl:onProperty ; | ||
423 | + sp:subject _:b4 | ||
424 | + ] [ sp:object _:b4 ; | ||
425 | + sp:predicate rdfs:subClassOf ; | ||
426 | + sp:subject | ||
427 | + [ sp:varName "parent"^^xsd:string | ||
428 | + ] | ||
429 | + ]) ; | ||
430 | + sp:where ([ sp:object "Heading1" ; | ||
431 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; | ||
432 | + sp:subject spin:_this | ||
433 | + ] [ sp:object | ||
434 | + [ sp:varName "head"^^xsd:string | ||
435 | + ] ; | ||
436 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; | ||
437 | + sp:subject spin:_this | ||
438 | + ] [ rdf:type sp:Filter ; | ||
439 | + sp:expression | ||
440 | + [ rdf:type sp:ne ; | ||
441 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
442 | + ] ; | ||
443 | + sp:arg2 "specific product attributes" | ||
444 | + ] | ||
445 | + ] [ sp:object | ||
446 | + [ sp:varName "hparent"^^xsd:string | ||
447 | + ] ; | ||
448 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h0> ; | ||
449 | + sp:subject spin:_this | ||
450 | + ] [ rdf:type sp:Filter ; | ||
451 | + sp:expression | ||
452 | + [ rdf:type sp:ne ; | ||
453 | + sp:arg1 [ sp:varName "hparent"^^xsd:string | ||
454 | + ] ; | ||
455 | + sp:arg2 "specific product attributes" | ||
456 | + ] | ||
457 | + ] [ rdf:type sp:Bind ; | ||
458 | + sp:expression | ||
459 | + [ rdf:type spif:buildURI ; | ||
460 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
461 | + ] ; | ||
462 | + sp:variable | ||
463 | + [ sp:varName "class"^^xsd:string | ||
464 | + ] | ||
465 | + ] [ rdf:type sp:Bind ; | ||
466 | + sp:expression | ||
467 | + [ rdf:type spif:buildURI ; | ||
468 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?hparent}>" | ||
469 | + ] ; | ||
470 | + sp:variable | ||
471 | + [ sp:varName "parent"^^xsd:string | ||
472 | + ] | ||
473 | + ] [ rdf:type sp:Bind ; | ||
474 | + sp:expression | ||
475 | + [ rdf:type spif:buildURI ; | ||
476 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}Ref>" | ||
477 | + ] ; | ||
478 | + sp:variable | ||
479 | + [ sp:varName "property"^^xsd:string | ||
480 | + ] | ||
481 | + ]) | ||
482 | + ] ; | ||
483 | + spin:rule | ||
484 | + [ rdf:type sp:Construct ; | ||
485 | + sp:templates ([ sp:object owl:ObjectProperty ; | ||
486 | + sp:predicate rdf:type ; | ||
487 | + sp:subject | ||
488 | + [ sp:varName "property"^^xsd:string | ||
489 | + ] | ||
490 | + ] [ sp:object | ||
491 | + [ sp:varName "class"^^xsd:string | ||
492 | + ] ; | ||
493 | + sp:predicate rdfs:range ; | ||
494 | + sp:subject | ||
495 | + [ sp:varName "property"^^xsd:string | ||
496 | + ] | ||
497 | + ] [ sp:object owl:Restriction ; | ||
498 | + sp:predicate rdf:type ; | ||
499 | + sp:subject _:b5 | ||
500 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
501 | + sp:predicate owl:minCardinality ; | ||
502 | + sp:subject _:b5 | ||
503 | + ] [ sp:object | ||
504 | + [ sp:varName "property"^^xsd:string | ||
505 | + ] ; | ||
506 | + sp:predicate owl:onProperty ; | ||
507 | + sp:subject _:b5 | ||
508 | + ] [ sp:object _:b5 ; | ||
509 | + sp:predicate rdfs:subClassOf ; | ||
510 | + sp:subject | ||
511 | + [ sp:varName "parent"^^xsd:string | ||
512 | + ] | ||
513 | + ]) ; | ||
514 | + sp:where ([ sp:object "Heading2" ; | ||
515 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; | ||
516 | + sp:subject spin:_this | ||
517 | + ] [ sp:object | ||
518 | + [ sp:varName "head"^^xsd:string | ||
519 | + ] ; | ||
520 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h2> ; | ||
521 | + sp:subject spin:_this | ||
522 | + ] [ rdf:type sp:Filter ; | ||
523 | + sp:expression | ||
524 | + [ rdf:type sp:ne ; | ||
525 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
526 | + ] ; | ||
527 | + sp:arg2 "specific product attributes" | ||
528 | + ] | ||
529 | + ] [ sp:object | ||
530 | + [ sp:varName "hparent"^^xsd:string | ||
531 | + ] ; | ||
532 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h1> ; | ||
533 | + sp:subject spin:_this | ||
534 | + ] [ rdf:type sp:Filter ; | ||
535 | + sp:expression | ||
536 | + [ rdf:type sp:ne ; | ||
537 | + sp:arg1 [ sp:varName "hparent"^^xsd:string | ||
538 | + ] ; | ||
539 | + sp:arg2 "specific product attributes" | ||
540 | + ] | ||
541 | + ] [ rdf:type sp:Bind ; | ||
542 | + sp:expression | ||
543 | + [ rdf:type spif:buildURI ; | ||
544 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
545 | + ] ; | ||
546 | + sp:variable | ||
547 | + [ sp:varName "class"^^xsd:string | ||
548 | + ] | ||
549 | + ] [ rdf:type sp:Bind ; | ||
550 | + sp:expression | ||
551 | + [ rdf:type spif:buildURI ; | ||
552 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?hparent}>" | ||
553 | + ] ; | ||
554 | + sp:variable | ||
555 | + [ sp:varName "parent"^^xsd:string | ||
556 | + ] | ||
557 | + ] [ rdf:type sp:Bind ; | ||
558 | + sp:expression | ||
559 | + [ rdf:type spif:buildURI ; | ||
560 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}Ref>" | ||
561 | + ] ; | ||
562 | + sp:variable | ||
563 | + [ sp:varName "property"^^xsd:string | ||
564 | + ] | ||
565 | + ]) | ||
566 | + ] ; | ||
567 | + spin:rule | ||
568 | + [ rdf:type sp:Construct ; | ||
569 | + sp:templates ([ sp:object owl:ObjectProperty ; | ||
570 | + sp:predicate rdf:type ; | ||
571 | + sp:subject | ||
572 | + [ sp:varName "property"^^xsd:string | ||
573 | + ] | ||
574 | + ] [ sp:object | ||
575 | + [ sp:varName "class"^^xsd:string | ||
576 | + ] ; | ||
577 | + sp:predicate rdfs:range ; | ||
578 | + sp:subject | ||
579 | + [ sp:varName "property"^^xsd:string | ||
580 | + ] | ||
581 | + ] [ sp:object owl:Restriction ; | ||
582 | + sp:predicate rdf:type ; | ||
583 | + sp:subject _:b6 | ||
584 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
585 | + sp:predicate owl:minCardinality ; | ||
586 | + sp:subject _:b6 | ||
587 | + ] [ sp:object | ||
588 | + [ sp:varName "property"^^xsd:string | ||
589 | + ] ; | ||
590 | + sp:predicate owl:onProperty ; | ||
591 | + sp:subject _:b6 | ||
592 | + ] [ sp:object _:b6 ; | ||
593 | + sp:predicate rdfs:subClassOf ; | ||
594 | + sp:subject | ||
595 | + [ sp:varName "parent"^^xsd:string | ||
596 | + ] | ||
597 | + ]) ; | ||
598 | + sp:where ([ sp:object "Heading3" ; | ||
599 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; | ||
600 | + sp:subject spin:_this | ||
601 | + ] [ sp:object | ||
602 | + [ sp:varName "head"^^xsd:string | ||
603 | + ] ; | ||
604 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h3> ; | ||
605 | + sp:subject spin:_this | ||
606 | + ] [ rdf:type sp:Filter ; | ||
607 | + sp:expression | ||
608 | + [ rdf:type sp:ne ; | ||
609 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
610 | + ] ; | ||
611 | + sp:arg2 "specific product attributes" | ||
612 | + ] | ||
613 | + ] [ sp:object | ||
614 | + [ sp:varName "hparent"^^xsd:string | ||
615 | + ] ; | ||
616 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h2> ; | ||
617 | + sp:subject spin:_this | ||
618 | + ] [ rdf:type sp:Filter ; | ||
619 | + sp:expression | ||
620 | + [ rdf:type sp:ne ; | ||
621 | + sp:arg1 [ sp:varName "hparent"^^xsd:string | ||
622 | + ] ; | ||
623 | + sp:arg2 "specific product attributes" | ||
624 | + ] | ||
625 | + ] [ rdf:type sp:Bind ; | ||
626 | + sp:expression | ||
627 | + [ rdf:type spif:buildURI ; | ||
628 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
629 | + ] ; | ||
630 | + sp:variable | ||
631 | + [ sp:varName "class"^^xsd:string | ||
632 | + ] | ||
633 | + ] [ rdf:type sp:Bind ; | ||
634 | + sp:expression | ||
635 | + [ rdf:type spif:buildURI ; | ||
636 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?hparent}>" | ||
637 | + ] ; | ||
638 | + sp:variable | ||
639 | + [ sp:varName "parent"^^xsd:string | ||
640 | + ] | ||
641 | + ] [ rdf:type sp:Bind ; | ||
642 | + sp:expression | ||
643 | + [ rdf:type spif:buildURI ; | ||
644 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}Ref>" | ||
645 | + ] ; | ||
646 | + sp:variable | ||
647 | + [ sp:varName "property"^^xsd:string | ||
648 | + ] | ||
649 | + ]) | ||
650 | + ] ; | ||
651 | + spin:rule | ||
652 | + [ rdf:type sp:Construct ; | ||
653 | + sp:templates ([ sp:object owl:ObjectProperty ; | ||
654 | + sp:predicate rdf:type ; | ||
655 | + sp:subject | ||
656 | + [ sp:varName "property"^^xsd:string | ||
657 | + ] | ||
658 | + ] [ sp:object | ||
659 | + [ sp:varName "class"^^xsd:string | ||
660 | + ] ; | ||
661 | + sp:predicate rdfs:range ; | ||
662 | + sp:subject | ||
663 | + [ sp:varName "property"^^xsd:string | ||
664 | + ] | ||
665 | + ] [ sp:object owl:Restriction ; | ||
666 | + sp:predicate rdf:type ; | ||
667 | + sp:subject _:b7 | ||
668 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
669 | + sp:predicate owl:minCardinality ; | ||
670 | + sp:subject _:b7 | ||
671 | + ] [ sp:object | ||
672 | + [ sp:varName "property"^^xsd:string | ||
673 | + ] ; | ||
674 | + sp:predicate owl:onProperty ; | ||
675 | + sp:subject _:b7 | ||
676 | + ] [ sp:object _:b7 ; | ||
677 | + sp:predicate rdfs:subClassOf ; | ||
678 | + sp:subject | ||
679 | + [ sp:varName "parent"^^xsd:string | ||
680 | + ] | ||
681 | + ]) ; | ||
682 | + sp:where ([ sp:object "Heading4" ; | ||
683 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; | ||
684 | + sp:subject spin:_this | ||
685 | + ] [ sp:object | ||
686 | + [ sp:varName "head"^^xsd:string | ||
687 | + ] ; | ||
688 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h4> ; | ||
689 | + sp:subject spin:_this | ||
690 | + ] [ rdf:type sp:Filter ; | ||
691 | + sp:expression | ||
692 | + [ rdf:type sp:ne ; | ||
693 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
694 | + ] ; | ||
695 | + sp:arg2 "specific product attributes" | ||
696 | + ] | ||
697 | + ] [ sp:object | ||
698 | + [ sp:varName "hparent"^^xsd:string | ||
699 | + ] ; | ||
700 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h3> ; | ||
701 | + sp:subject spin:_this | ||
702 | + ] [ rdf:type sp:Filter ; | ||
703 | + sp:expression | ||
704 | + [ rdf:type sp:ne ; | ||
705 | + sp:arg1 [ sp:varName "hparent"^^xsd:string | ||
706 | + ] ; | ||
707 | + sp:arg2 "specific product attributes" | ||
708 | + ] | ||
709 | + ] [ rdf:type sp:Bind ; | ||
710 | + sp:expression | ||
711 | + [ rdf:type spif:buildURI ; | ||
712 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
713 | + ] ; | ||
714 | + sp:variable | ||
715 | + [ sp:varName "class"^^xsd:string | ||
716 | + ] | ||
717 | + ] [ rdf:type sp:Bind ; | ||
718 | + sp:expression | ||
719 | + [ rdf:type spif:buildURI ; | ||
720 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?hparent}>" | ||
721 | + ] ; | ||
722 | + sp:variable | ||
723 | + [ sp:varName "parent"^^xsd:string | ||
724 | + ] | ||
725 | + ] [ rdf:type sp:Bind ; | ||
726 | + sp:expression | ||
727 | + [ rdf:type spif:buildURI ; | ||
728 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}Ref>" | ||
729 | + ] ; | ||
730 | + sp:variable | ||
731 | + [ sp:varName "property"^^xsd:string | ||
732 | + ] | ||
733 | + ]) | ||
734 | + ] ; | ||
735 | + spin:rule | ||
736 | + [ rdf:type sp:Construct ; | ||
737 | + sp:templates ([ sp:object owl:ObjectProperty ; | ||
738 | + sp:predicate rdf:type ; | ||
739 | + sp:subject | ||
740 | + [ sp:varName "property"^^xsd:string | ||
741 | + ] | ||
742 | + ] [ sp:object | ||
743 | + [ sp:varName "class"^^xsd:string | ||
744 | + ] ; | ||
745 | + sp:predicate rdfs:range ; | ||
746 | + sp:subject | ||
747 | + [ sp:varName "property"^^xsd:string | ||
748 | + ] | ||
749 | + ] [ sp:object owl:Restriction ; | ||
750 | + sp:predicate rdf:type ; | ||
751 | + sp:subject _:b8 | ||
752 | + ] [ sp:object "0"^^xsd:nonNegativeInteger ; | ||
753 | + sp:predicate owl:minCardinality ; | ||
754 | + sp:subject _:b8 | ||
755 | + ] [ sp:object | ||
756 | + [ sp:varName "property"^^xsd:string | ||
757 | + ] ; | ||
758 | + sp:predicate owl:onProperty ; | ||
759 | + sp:subject _:b8 | ||
760 | + ] [ sp:object _:b8 ; | ||
761 | + sp:predicate rdfs:subClassOf ; | ||
762 | + sp:subject | ||
763 | + [ sp:varName "parent"^^xsd:string | ||
764 | + ] | ||
765 | + ]) ; | ||
766 | + sp:where ([ sp:object "Heading5" ; | ||
767 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#lEVEL> ; | ||
768 | + sp:subject spin:_this | ||
769 | + ] [ sp:object | ||
770 | + [ sp:varName "head"^^xsd:string | ||
771 | + ] ; | ||
772 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h5> ; | ||
773 | + sp:subject spin:_this | ||
774 | + ] [ rdf:type sp:Filter ; | ||
775 | + sp:expression | ||
776 | + [ rdf:type sp:ne ; | ||
777 | + sp:arg1 [ sp:varName "head"^^xsd:string | ||
778 | + ] ; | ||
779 | + sp:arg2 "specific product attributes" | ||
780 | + ] | ||
781 | + ] [ sp:object | ||
782 | + [ sp:varName "hparent"^^xsd:string | ||
783 | + ] ; | ||
784 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-HeadingsList.xls#h4> ; | ||
785 | + sp:subject spin:_this | ||
786 | + ] [ rdf:type sp:Filter ; | ||
787 | + sp:expression | ||
788 | + [ rdf:type sp:ne ; | ||
789 | + sp:arg1 [ sp:varName "hparent"^^xsd:string | ||
790 | + ] ; | ||
791 | + sp:arg2 "specific product attributes" | ||
792 | + ] | ||
793 | + ] [ rdf:type sp:Bind ; | ||
794 | + sp:expression | ||
795 | + [ rdf:type spif:buildURI ; | ||
796 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}>" | ||
797 | + ] ; | ||
798 | + sp:variable | ||
799 | + [ sp:varName "class"^^xsd:string | ||
800 | + ] | ||
801 | + ] [ rdf:type sp:Bind ; | ||
802 | + sp:expression | ||
803 | + [ rdf:type spif:buildURI ; | ||
804 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?hparent}>" | ||
805 | + ] ; | ||
806 | + sp:variable | ||
807 | + [ sp:varName "parent"^^xsd:string | ||
808 | + ] | ||
809 | + ] [ rdf:type sp:Bind ; | ||
810 | + sp:expression | ||
811 | + [ rdf:type spif:buildURI ; | ||
812 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#{?head}Ref>" | ||
813 | + ] ; | ||
814 | + sp:variable | ||
815 | + [ sp:varName "property"^^xsd:string | ||
816 | + ] | ||
817 | + ]) | ||
818 | + ] . | ||
819 | + | ||
820 | +<file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#COPEX-Properties> | ||
821 | + spin:rule | ||
822 | + [ rdf:type sp:Construct ; | ||
823 | + sp:templates ([ sp:object rdf:Property ; | ||
824 | + sp:predicate rdf:type ; | ||
825 | + sp:subject | ||
826 | + [ sp:varName "property"^^xsd:string | ||
827 | + ] | ||
828 | + ] [ sp:object | ||
829 | + [ sp:varName "type"^^xsd:string | ||
830 | + ] ; | ||
831 | + sp:predicate rdfs:comment ; | ||
832 | + sp:subject | ||
833 | + [ sp:varName "property"^^xsd:string | ||
834 | + ] | ||
835 | + ] [ sp:object | ||
836 | + [ sp:varName "defval"^^xsd:string | ||
837 | + ] ; | ||
838 | + sp:predicate rdfs:comment ; | ||
839 | + sp:subject | ||
840 | + [ sp:varName "property"^^xsd:string | ||
841 | + ] | ||
842 | + ] [ sp:object | ||
843 | + [ sp:varName "unit"^^xsd:string | ||
844 | + ] ; | ||
845 | + sp:predicate rdfs:comment ; | ||
846 | + sp:subject | ||
847 | + [ sp:varName "property"^^xsd:string | ||
848 | + ] | ||
849 | + ] [ sp:object | ||
850 | + [ sp:varName "min"^^xsd:string | ||
851 | + ] ; | ||
852 | + sp:predicate rdfs:comment ; | ||
853 | + sp:subject | ||
854 | + [ sp:varName "property"^^xsd:string | ||
855 | + ] | ||
856 | + ] [ sp:object | ||
857 | + [ sp:varName "max"^^xsd:string | ||
858 | + ] ; | ||
859 | + sp:predicate rdfs:comment ; | ||
860 | + sp:subject | ||
861 | + [ sp:varName "property"^^xsd:string | ||
862 | + ] | ||
863 | + ]) ; | ||
864 | + sp:where ([ sp:object | ||
865 | + [ sp:varName "name"^^xsd:string | ||
866 | + ] ; | ||
867 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#keywordName> ; | ||
868 | + sp:subject spin:_this | ||
869 | + ] [ rdf:type sp:Optional ; | ||
870 | + sp:elements ([ sp:object | ||
871 | + [ sp:varName "datatype"^^xsd:string | ||
872 | + ] ; | ||
873 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#datatype> ; | ||
874 | + sp:subject spin:_this | ||
875 | + ] [ rdf:type sp:Bind ; | ||
876 | + sp:expression | ||
877 | + [ rdf:type fn:concat ; | ||
878 | + sp:arg1 "TYPE " ; | ||
879 | + sp:arg2 [ sp:varName "datatype"^^xsd:string | ||
880 | + ] | ||
881 | + ] ; | ||
882 | + sp:variable | ||
883 | + [ sp:varName "type"^^xsd:string | ||
884 | + ] | ||
885 | + ]) | ||
886 | + ] [ rdf:type sp:Optional ; | ||
887 | + sp:elements ([ sp:object | ||
888 | + [ sp:varName "default"^^xsd:string | ||
889 | + ] ; | ||
890 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#defaultValue> ; | ||
891 | + sp:subject spin:_this | ||
892 | + ] [ rdf:type sp:Bind ; | ||
893 | + sp:expression | ||
894 | + [ rdf:type fn:concat ; | ||
895 | + sp:arg1 "DEFAULT " ; | ||
896 | + sp:arg2 [ sp:varName "default"^^xsd:string | ||
897 | + ] | ||
898 | + ] ; | ||
899 | + sp:variable | ||
900 | + [ sp:varName "defval"^^xsd:string | ||
901 | + ] | ||
902 | + ]) | ||
903 | + ] [ rdf:type sp:Optional ; | ||
904 | + sp:elements ([ sp:object | ||
905 | + [ sp:varName "unittype"^^xsd:string | ||
906 | + ] ; | ||
907 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#unitType> ; | ||
908 | + sp:subject spin:_this | ||
909 | + ] [ rdf:type sp:Bind ; | ||
910 | + sp:expression | ||
911 | + [ rdf:type fn:concat ; | ||
912 | + sp:arg1 "UNIT " ; | ||
913 | + sp:arg2 [ sp:varName "unittype"^^xsd:string | ||
914 | + ] | ||
915 | + ] ; | ||
916 | + sp:variable | ||
917 | + [ sp:varName "unit"^^xsd:string | ||
918 | + ] | ||
919 | + ]) | ||
920 | + ] [ rdf:type sp:Optional ; | ||
921 | + sp:elements ([ sp:object | ||
922 | + [ sp:varName "minval"^^xsd:string | ||
923 | + ] ; | ||
924 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#min> ; | ||
925 | + sp:subject spin:_this | ||
926 | + ] [ rdf:type sp:Bind ; | ||
927 | + sp:expression | ||
928 | + [ rdf:type fn:concat ; | ||
929 | + sp:arg1 "MIN " ; | ||
930 | + sp:arg2 [ sp:varName "minval"^^xsd:string | ||
931 | + ] | ||
932 | + ] ; | ||
933 | + sp:variable | ||
934 | + [ sp:varName "min"^^xsd:string | ||
935 | + ] | ||
936 | + ]) | ||
937 | + ] [ rdf:type sp:Optional ; | ||
938 | + sp:elements ([ sp:object | ||
939 | + [ sp:varName "maxval"^^xsd:string | ||
940 | + ] ; | ||
941 | + sp:predicate <file:///www.reportinghub.no/input/copex/COPEX-Properties.xls#max> ; | ||
942 | + sp:subject spin:_this | ||
943 | + ] [ rdf:type sp:Bind ; | ||
944 | + sp:expression | ||
945 | + [ rdf:type fn:concat ; | ||
946 | + sp:arg1 "MAX " ; | ||
947 | + sp:arg2 [ sp:varName "maxval"^^xsd:string | ||
948 | + ] | ||
949 | + ] ; | ||
950 | + sp:variable | ||
951 | + [ sp:varName "max"^^xsd:string | ||
952 | + ] | ||
953 | + ]) | ||
954 | + ] [ rdf:type sp:Bind ; | ||
955 | + sp:expression | ||
956 | + [ rdf:type spif:buildURI ; | ||
957 | + sp:arg1 "<http://www.reportinghub.no/copex/data-model#has{?name}>" | ||
958 | + ] ; | ||
959 | + sp:variable | ||
960 | + [ sp:varName "property"^^xsd:string | ||
961 | + ] | ||
962 | + ]) | ||
963 | + ] . | ||
964 | + | ||
965 | +<http://www.reportinghub.no/input/copex/ss-to-model> | ||
966 | + rdf:type owl:Ontology ; | ||
967 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/input/copex/ss-import> ; | ||
968 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
1 | +# baseURI: null | ||
2 | + | ||
3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
11 | + | ||
12 | +[] rdf:type inference:Configuration ; | ||
13 | + composite:child | ||
14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
15 | + <http://spinrdf.org/spin#topSPINOptions> | ||
16 | + "singlePass" ; | ||
17 | + composite:index "0"^^xsd:int | ||
18 | + ] . |
-
Please register or login to post a comment