Showing
4 changed files
with
747 additions
and
469 deletions
... | @@ -17,65 +17,39 @@ | ... | @@ -17,65 +17,39 @@ |
17 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 17 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
18 | spin:rule | 18 | spin:rule |
19 | [ rdf:type sp:Construct ; | 19 | [ rdf:type sp:Construct ; |
20 | - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | 20 | + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" |
21 | Nothing is done with the namingSystem!"""^^xsd:string ; | 21 | Nothing is done with the namingSystem!"""^^xsd:string ; |
22 | sp:templates ([ sp:object spin:_this ; | 22 | sp:templates ([ sp:object spin:_this ; |
23 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 23 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
24 | sp:subject | 24 | sp:subject |
25 | - [ sp:varName "tuf"^^xsd:string | 25 | + [ sp:varName "well"^^xsd:string |
26 | ] | 26 | ] |
27 | ] [ sp:object | 27 | ] [ sp:object |
28 | - [ sp:varName "tufName"^^xsd:string | 28 | + [ sp:varName "wellName"^^xsd:string |
29 | ] ; | 29 | ] ; |
30 | sp:predicate rdfs:label ; | 30 | sp:predicate rdfs:label ; |
31 | sp:subject spin:_this | 31 | sp:subject spin:_this |
32 | ]) ; | 32 | ]) ; |
33 | - sp:where ([ rdf:type sp:Union ; | 33 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; |
34 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
35 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
36 | - sp:subject spin:_this | ||
37 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
38 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
39 | - sp:subject spin:_this | ||
40 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
41 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
42 | - sp:subject spin:_this | ||
43 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
44 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
45 | - sp:subject spin:_this | ||
46 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
47 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
48 | - sp:subject spin:_this | ||
49 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
50 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
51 | - sp:subject spin:_this | ||
52 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
53 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
54 | - sp:subject spin:_this | ||
55 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
56 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
57 | - sp:subject spin:_this | ||
58 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
59 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 34 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
60 | sp:subject spin:_this | 35 | sp:subject spin:_this |
61 | - ])) | ||
62 | ] [ sp:object | 36 | ] [ sp:object |
63 | - [ sp:varName "tufName"^^xsd:string | 37 | + [ sp:varName "wellName"^^xsd:string |
64 | ] ; | 38 | ] ; |
65 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 39 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
66 | sp:subject spin:_this | 40 | sp:subject spin:_this |
67 | ] [ rdf:type sp:NamedGraph ; | 41 | ] [ rdf:type sp:NamedGraph ; |
68 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | 42 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; |
69 | sp:predicate rdf:type ; | 43 | sp:predicate rdf:type ; |
70 | sp:subject | 44 | sp:subject |
71 | - [ sp:varName "tuf"^^xsd:string | 45 | + [ sp:varName "well"^^xsd:string |
72 | ] | 46 | ] |
73 | ] [ sp:object | 47 | ] [ sp:object |
74 | - [ sp:varName "tufName"^^xsd:string | 48 | + [ sp:varName "wellName"^^xsd:string |
75 | ] ; | 49 | ] ; |
76 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 50 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
77 | sp:subject | 51 | sp:subject |
78 | - [ sp:varName "tuf"^^xsd:string | 52 | + [ sp:varName "well"^^xsd:string |
79 | ] | 53 | ] |
80 | ]) ; | 54 | ]) ; |
81 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 55 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -123,44 +97,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -123,44 +97,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
123 | ] ; | 97 | ] ; |
124 | spin:rule | 98 | spin:rule |
125 | [ rdf:type sp:Construct ; | 99 | [ rdf:type sp:Construct ; |
126 | - rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany | 100 | + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility |
127 | Nothing is done with the namingSystem!"""^^xsd:string ; | 101 | Nothing is done with the namingSystem!"""^^xsd:string ; |
128 | sp:templates ([ sp:object spin:_this ; | 102 | sp:templates ([ sp:object spin:_this ; |
129 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 103 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
130 | sp:subject | 104 | sp:subject |
131 | - [ sp:varName "company"^^xsd:string | 105 | + [ sp:varName "platform"^^xsd:string |
132 | ] | 106 | ] |
133 | ] [ sp:object | 107 | ] [ sp:object |
134 | - [ sp:varName "companyName"^^xsd:string | 108 | + [ sp:varName "platformName"^^xsd:string |
135 | ] ; | 109 | ] ; |
136 | sp:predicate rdfs:label ; | 110 | sp:predicate rdfs:label ; |
137 | sp:subject spin:_this | 111 | sp:subject spin:_this |
138 | ]) ; | 112 | ]) ; |
139 | - sp:where ([ rdf:type sp:Union ; | 113 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
140 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
141 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
142 | - sp:subject spin:_this | ||
143 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
144 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 114 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
145 | sp:subject spin:_this | 115 | sp:subject spin:_this |
146 | - ])) | ||
147 | ] [ sp:object | 116 | ] [ sp:object |
148 | - [ sp:varName "companyName"^^xsd:string | 117 | + [ sp:varName "platformName"^^xsd:string |
149 | ] ; | 118 | ] ; |
150 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 119 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
151 | sp:subject spin:_this | 120 | sp:subject spin:_this |
152 | ] [ rdf:type sp:NamedGraph ; | 121 | ] [ rdf:type sp:NamedGraph ; |
153 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | 122 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; |
154 | sp:predicate rdf:type ; | 123 | sp:predicate rdf:type ; |
155 | sp:subject | 124 | sp:subject |
156 | - [ sp:varName "company"^^xsd:string | 125 | + [ sp:varName "platform"^^xsd:string |
157 | ] | 126 | ] |
158 | ] [ sp:object | 127 | ] [ sp:object |
159 | - [ sp:varName "companyName"^^xsd:string | 128 | + [ sp:varName "platformName"^^xsd:string |
160 | ] ; | 129 | ] ; |
161 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 130 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
162 | sp:subject | 131 | sp:subject |
163 | - [ sp:varName "company"^^xsd:string | 132 | + [ sp:varName "platform"^^xsd:string |
164 | ] | 133 | ] |
165 | ]) ; | 134 | ]) ; |
166 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 135 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -168,39 +137,44 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -168,39 +137,44 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
168 | ] ; | 137 | ] ; |
169 | spin:rule | 138 | spin:rule |
170 | [ rdf:type sp:Construct ; | 139 | [ rdf:type sp:Construct ; |
171 | - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" | 140 | + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany |
172 | Nothing is done with the namingSystem!"""^^xsd:string ; | 141 | Nothing is done with the namingSystem!"""^^xsd:string ; |
173 | sp:templates ([ sp:object spin:_this ; | 142 | sp:templates ([ sp:object spin:_this ; |
174 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 143 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
175 | sp:subject | 144 | sp:subject |
176 | - [ sp:varName "well"^^xsd:string | 145 | + [ sp:varName "company"^^xsd:string |
177 | ] | 146 | ] |
178 | ] [ sp:object | 147 | ] [ sp:object |
179 | - [ sp:varName "wellName"^^xsd:string | 148 | + [ sp:varName "companyName"^^xsd:string |
180 | ] ; | 149 | ] ; |
181 | sp:predicate rdfs:label ; | 150 | sp:predicate rdfs:label ; |
182 | sp:subject spin:_this | 151 | sp:subject spin:_this |
183 | ]) ; | 152 | ]) ; |
184 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | 153 | + sp:where ([ rdf:type sp:Union ; |
154 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
155 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
156 | + sp:subject spin:_this | ||
157 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
185 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 158 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
186 | sp:subject spin:_this | 159 | sp:subject spin:_this |
160 | + ])) | ||
187 | ] [ sp:object | 161 | ] [ sp:object |
188 | - [ sp:varName "wellName"^^xsd:string | 162 | + [ sp:varName "companyName"^^xsd:string |
189 | ] ; | 163 | ] ; |
190 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 164 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
191 | sp:subject spin:_this | 165 | sp:subject spin:_this |
192 | ] [ rdf:type sp:NamedGraph ; | 166 | ] [ rdf:type sp:NamedGraph ; |
193 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | 167 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
194 | sp:predicate rdf:type ; | 168 | sp:predicate rdf:type ; |
195 | sp:subject | 169 | sp:subject |
196 | - [ sp:varName "well"^^xsd:string | 170 | + [ sp:varName "company"^^xsd:string |
197 | ] | 171 | ] |
198 | ] [ sp:object | 172 | ] [ sp:object |
199 | - [ sp:varName "wellName"^^xsd:string | 173 | + [ sp:varName "companyName"^^xsd:string |
200 | ] ; | 174 | ] ; |
201 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 175 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
202 | sp:subject | 176 | sp:subject |
203 | - [ sp:varName "well"^^xsd:string | 177 | + [ sp:varName "company"^^xsd:string |
204 | ] | 178 | ] |
205 | ]) ; | 179 | ]) ; |
206 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 180 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -248,154 +222,150 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -248,154 +222,150 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
248 | ] ; | 222 | ] ; |
249 | spin:rule | 223 | spin:rule |
250 | [ rdf:type sp:Construct ; | 224 | [ rdf:type sp:Construct ; |
251 | - rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file | 225 | + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility |
252 | Nothing is done with the namingSystem!"""^^xsd:string ; | 226 | Nothing is done with the namingSystem!"""^^xsd:string ; |
253 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 227 | + sp:templates ([ sp:object spin:_this ; |
254 | - sp:predicate rdf:type ; | ||
255 | - sp:subject _:b1 | ||
256 | - ] [ sp:object | ||
257 | - [ sp:varName "productionFacilityType"^^xsd:string | ||
258 | - ] ; | ||
259 | - sp:predicate rdf:type ; | ||
260 | - sp:subject _:b1 | ||
261 | - ] [ sp:object | ||
262 | - [ sp:varName "facilityName"^^xsd:string | ||
263 | - ] ; | ||
264 | - sp:predicate rdfs:label ; | ||
265 | - sp:subject _:b1 | ||
266 | - ] [ sp:object spin:_this ; | ||
267 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 228 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
268 | - sp:subject _:b1 | 229 | + sp:subject |
230 | + [ sp:varName "platform"^^xsd:string | ||
231 | + ] | ||
269 | ] [ sp:object | 232 | ] [ sp:object |
270 | - [ sp:varName "facilityName"^^xsd:string | 233 | + [ sp:varName "platformName"^^xsd:string |
271 | ] ; | 234 | ] ; |
272 | sp:predicate rdfs:label ; | 235 | sp:predicate rdfs:label ; |
273 | sp:subject spin:_this | 236 | sp:subject spin:_this |
274 | ]) ; | 237 | ]) ; |
275 | - sp:where ([ rdf:type sp:Optional ; | 238 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
276 | - sp:elements ([ sp:object | ||
277 | - [ sp:varName "facilityKind"^^xsd:string | ||
278 | - ] ; | ||
279 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 239 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
280 | sp:subject spin:_this | 240 | sp:subject spin:_this |
281 | - ]) | ||
282 | ] [ sp:object | 241 | ] [ sp:object |
283 | - [ sp:varName "facilityName"^^xsd:string | 242 | + [ sp:varName "platformName"^^xsd:string |
284 | ] ; | 243 | ] ; |
285 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 244 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
286 | sp:subject spin:_this | 245 | sp:subject spin:_this |
287 | - ] [ rdf:type sp:NotExists ; | 246 | + ] [ rdf:type sp:NamedGraph ; |
288 | - sp:elements ([ sp:object spin:_this ; | 247 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; |
289 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 248 | + sp:predicate rdf:type ; |
290 | sp:subject | 249 | sp:subject |
291 | - [ sp:varName "something"^^xsd:string | 250 | + [ sp:varName "platform"^^xsd:string |
292 | - ] | ||
293 | - ]) | ||
294 | - ] [ rdf:type sp:Bind ; | ||
295 | - sp:expression | ||
296 | - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
297 | - sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
298 | ] | 251 | ] |
252 | + ] [ sp:object | ||
253 | + [ sp:varName "platformName"^^xsd:string | ||
299 | ] ; | 254 | ] ; |
300 | - sp:variable | 255 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
301 | - [ sp:varName "productionFacilityType"^^xsd:string | 256 | + sp:subject |
257 | + [ sp:varName "platform"^^xsd:string | ||
302 | ] | 258 | ] |
259 | + ]) ; | ||
260 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
303 | ]) | 261 | ]) |
304 | ] ; | 262 | ] ; |
305 | spin:rule | 263 | spin:rule |
306 | [ rdf:type sp:Construct ; | 264 | [ rdf:type sp:Construct ; |
307 | - rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file | 265 | + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. |
308 | Nothing is done with the namingSystem!"""^^xsd:string ; | 266 | Nothing is done with the namingSystem!"""^^xsd:string ; |
309 | sp:templates ([ sp:object spin:_this ; | 267 | sp:templates ([ sp:object spin:_this ; |
310 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 268 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
311 | sp:subject | 269 | sp:subject |
312 | - [ sp:varName "facility"^^xsd:string | 270 | + [ sp:varName "tuf"^^xsd:string |
313 | ] | 271 | ] |
314 | - ]) ; | 272 | + ] [ sp:object |
315 | - sp:where ([ rdf:type sp:Optional ; | 273 | + [ sp:varName "tufName"^^xsd:string |
316 | - sp:elements ([ sp:object | ||
317 | - [ sp:varName "facilityKind"^^xsd:string | ||
318 | ] ; | 274 | ] ; |
275 | + sp:predicate rdfs:label ; | ||
276 | + sp:subject spin:_this | ||
277 | + ]) ; | ||
278 | + sp:where ([ rdf:type sp:Union ; | ||
279 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
319 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 280 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
320 | sp:subject spin:_this | 281 | sp:subject spin:_this |
321 | - ]) | 282 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; |
283 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
284 | + sp:subject spin:_this | ||
285 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
286 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
287 | + sp:subject spin:_this | ||
288 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
289 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
290 | + sp:subject spin:_this | ||
291 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
292 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
293 | + sp:subject spin:_this | ||
294 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
295 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
296 | + sp:subject spin:_this | ||
297 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
298 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
299 | + sp:subject spin:_this | ||
300 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
301 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
302 | + sp:subject spin:_this | ||
303 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
304 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
305 | + sp:subject spin:_this | ||
306 | + ])) | ||
322 | ] [ sp:object | 307 | ] [ sp:object |
323 | - [ sp:varName "facilityName"^^xsd:string | 308 | + [ sp:varName "tufName"^^xsd:string |
324 | ] ; | 309 | ] ; |
325 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 310 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
326 | sp:subject spin:_this | 311 | sp:subject spin:_this |
327 | - ] [ rdf:type sp:NotExists ; | 312 | + ] [ rdf:type sp:NamedGraph ; |
328 | - sp:elements ([ sp:object spin:_this ; | 313 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; |
329 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
330 | - sp:subject | ||
331 | - [ sp:varName "something"^^xsd:string | ||
332 | - ] | ||
333 | - ]) | ||
334 | - ] [ sp:object | ||
335 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
336 | - ] ; | ||
337 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
338 | - sp:subject | ||
339 | - [ sp:varName "facility"^^xsd:string | ||
340 | - ] | ||
341 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
342 | sp:predicate rdf:type ; | 314 | sp:predicate rdf:type ; |
343 | sp:subject | 315 | sp:subject |
344 | - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | 316 | + [ sp:varName "tuf"^^xsd:string |
345 | ] | 317 | ] |
346 | ] [ sp:object | 318 | ] [ sp:object |
347 | - [ sp:varName "productionFacilityType"^^xsd:string | 319 | + [ sp:varName "tufName"^^xsd:string |
348 | ] ; | 320 | ] ; |
349 | - sp:predicate rdf:type ; | 321 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
350 | sp:subject | 322 | sp:subject |
351 | - [ sp:varName "facility"^^xsd:string | 323 | + [ sp:varName "tuf"^^xsd:string |
352 | - ] | ||
353 | - ] [ rdf:type sp:Bind ; | ||
354 | - sp:expression | ||
355 | - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
356 | - sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
357 | - ] | ||
358 | - ] ; | ||
359 | - sp:variable | ||
360 | - [ sp:varName "productionFacilityType"^^xsd:string | ||
361 | ] | 324 | ] |
325 | + ]) ; | ||
326 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
362 | ]) | 327 | ]) |
363 | ] ; | 328 | ] ; |
364 | spin:rule | 329 | spin:rule |
365 | [ rdf:type sp:Construct ; | 330 | [ rdf:type sp:Construct ; |
366 | - rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility | 331 | + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany |
367 | Nothing is done with the namingSystem!"""^^xsd:string ; | 332 | Nothing is done with the namingSystem!"""^^xsd:string ; |
368 | sp:templates ([ sp:object spin:_this ; | 333 | sp:templates ([ sp:object spin:_this ; |
369 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 334 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
370 | sp:subject | 335 | sp:subject |
371 | - [ sp:varName "platform"^^xsd:string | 336 | + [ sp:varName "company"^^xsd:string |
372 | ] | 337 | ] |
373 | ] [ sp:object | 338 | ] [ sp:object |
374 | - [ sp:varName "platformName"^^xsd:string | 339 | + [ sp:varName "companyName"^^xsd:string |
375 | ] ; | 340 | ] ; |
376 | sp:predicate rdfs:label ; | 341 | sp:predicate rdfs:label ; |
377 | sp:subject spin:_this | 342 | sp:subject spin:_this |
378 | ]) ; | 343 | ]) ; |
379 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 344 | + sp:where ([ rdf:type sp:Union ; |
345 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
346 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
347 | + sp:subject spin:_this | ||
348 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
380 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 349 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
381 | sp:subject spin:_this | 350 | sp:subject spin:_this |
351 | + ])) | ||
382 | ] [ sp:object | 352 | ] [ sp:object |
383 | - [ sp:varName "platformName"^^xsd:string | 353 | + [ sp:varName "companyName"^^xsd:string |
384 | ] ; | 354 | ] ; |
385 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 355 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
386 | sp:subject spin:_this | 356 | sp:subject spin:_this |
387 | ] [ rdf:type sp:NamedGraph ; | 357 | ] [ rdf:type sp:NamedGraph ; |
388 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | 358 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
389 | sp:predicate rdf:type ; | 359 | sp:predicate rdf:type ; |
390 | sp:subject | 360 | sp:subject |
391 | - [ sp:varName "platform"^^xsd:string | 361 | + [ sp:varName "company"^^xsd:string |
392 | ] | 362 | ] |
393 | ] [ sp:object | 363 | ] [ sp:object |
394 | - [ sp:varName "platformName"^^xsd:string | 364 | + [ sp:varName "companyName"^^xsd:string |
395 | ] ; | 365 | ] ; |
396 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 366 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
397 | sp:subject | 367 | sp:subject |
398 | - [ sp:varName "platform"^^xsd:string | 368 | + [ sp:varName "company"^^xsd:string |
399 | ] | 369 | ] |
400 | ]) ; | 370 | ]) ; |
401 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 371 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -403,87 +373,117 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -403,87 +373,117 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
403 | ] ; | 373 | ] ; |
404 | spin:rule | 374 | spin:rule |
405 | [ rdf:type sp:Construct ; | 375 | [ rdf:type sp:Construct ; |
406 | - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | 376 | + rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file |
407 | Nothing is done with the namingSystem!"""^^xsd:string ; | 377 | Nothing is done with the namingSystem!"""^^xsd:string ; |
408 | - sp:templates ([ sp:object spin:_this ; | 378 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
379 | + sp:predicate rdf:type ; | ||
380 | + sp:subject _:b1 | ||
381 | + ] [ sp:object | ||
382 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
383 | + ] ; | ||
384 | + sp:predicate rdf:type ; | ||
385 | + sp:subject _:b1 | ||
386 | + ] [ sp:object | ||
387 | + [ sp:varName "facilityName"^^xsd:string | ||
388 | + ] ; | ||
389 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
390 | + sp:subject _:b1 | ||
391 | + ] [ sp:object spin:_this ; | ||
409 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 392 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
410 | - sp:subject | 393 | + sp:subject _:b1 |
411 | - [ sp:varName "platform"^^xsd:string | ||
412 | - ] | ||
413 | ] [ sp:object | 394 | ] [ sp:object |
414 | - [ sp:varName "platformName"^^xsd:string | 395 | + [ sp:varName "facilityName"^^xsd:string |
415 | ] ; | 396 | ] ; |
416 | sp:predicate rdfs:label ; | 397 | sp:predicate rdfs:label ; |
417 | sp:subject spin:_this | 398 | sp:subject spin:_this |
418 | ]) ; | 399 | ]) ; |
419 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 400 | + sp:where ([ rdf:type sp:Optional ; |
401 | + sp:elements ([ sp:object | ||
402 | + [ sp:varName "facilityKind"^^xsd:string | ||
403 | + ] ; | ||
420 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 404 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
421 | sp:subject spin:_this | 405 | sp:subject spin:_this |
406 | + ]) | ||
422 | ] [ sp:object | 407 | ] [ sp:object |
423 | - [ sp:varName "platformName"^^xsd:string | 408 | + [ sp:varName "facilityName"^^xsd:string |
424 | ] ; | 409 | ] ; |
425 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 410 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
426 | sp:subject spin:_this | 411 | sp:subject spin:_this |
427 | - ] [ rdf:type sp:NamedGraph ; | 412 | + ] [ rdf:type sp:NotExists ; |
428 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | 413 | + sp:elements ([ sp:object spin:_this ; |
429 | - sp:predicate rdf:type ; | 414 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
430 | sp:subject | 415 | sp:subject |
431 | - [ sp:varName "platform"^^xsd:string | 416 | + [ sp:varName "something"^^xsd:string |
417 | + ] | ||
418 | + ]) | ||
419 | + ] [ rdf:type sp:Bind ; | ||
420 | + sp:expression | ||
421 | + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
422 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
432 | ] | 423 | ] |
433 | - ] [ sp:object | ||
434 | - [ sp:varName "platformName"^^xsd:string | ||
435 | ] ; | 424 | ] ; |
436 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 425 | + sp:variable |
437 | - sp:subject | 426 | + [ sp:varName "productionFacilityType"^^xsd:string |
438 | - [ sp:varName "platform"^^xsd:string | ||
439 | ] | 427 | ] |
440 | - ]) ; | ||
441 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
442 | ]) | 428 | ]) |
443 | ] ; | 429 | ] ; |
444 | spin:rule | 430 | spin:rule |
445 | [ rdf:type sp:Construct ; | 431 | [ rdf:type sp:Construct ; |
446 | - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany | 432 | + rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file |
447 | Nothing is done with the namingSystem!"""^^xsd:string ; | 433 | Nothing is done with the namingSystem!"""^^xsd:string ; |
448 | sp:templates ([ sp:object spin:_this ; | 434 | sp:templates ([ sp:object spin:_this ; |
449 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 435 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
450 | sp:subject | 436 | sp:subject |
451 | - [ sp:varName "company"^^xsd:string | 437 | + [ sp:varName "facility"^^xsd:string |
452 | ] | 438 | ] |
453 | - ] [ sp:object | ||
454 | - [ sp:varName "companyName"^^xsd:string | ||
455 | - ] ; | ||
456 | - sp:predicate rdfs:label ; | ||
457 | - sp:subject spin:_this | ||
458 | ]) ; | 439 | ]) ; |
459 | - sp:where ([ rdf:type sp:Union ; | 440 | + sp:where ([ rdf:type sp:Optional ; |
460 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | 441 | + sp:elements ([ sp:object |
461 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 442 | + [ sp:varName "facilityKind"^^xsd:string |
462 | - sp:subject spin:_this | 443 | + ] ; |
463 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
464 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 444 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
465 | sp:subject spin:_this | 445 | sp:subject spin:_this |
466 | - ])) | 446 | + ]) |
467 | ] [ sp:object | 447 | ] [ sp:object |
468 | - [ sp:varName "companyName"^^xsd:string | 448 | + [ sp:varName "facilityName"^^xsd:string |
469 | ] ; | 449 | ] ; |
470 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 450 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
471 | sp:subject spin:_this | 451 | sp:subject spin:_this |
472 | - ] [ rdf:type sp:NamedGraph ; | 452 | + ] [ rdf:type sp:NotExists ; |
473 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; | 453 | + sp:elements ([ sp:object spin:_this ; |
454 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
455 | + sp:subject | ||
456 | + [ sp:varName "something"^^xsd:string | ||
457 | + ] | ||
458 | + ]) | ||
459 | + ] [ sp:object | ||
460 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string | ||
461 | + ] ; | ||
462 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
463 | + sp:subject | ||
464 | + [ sp:varName "facility"^^xsd:string | ||
465 | + ] | ||
466 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ; | ||
474 | sp:predicate rdf:type ; | 467 | sp:predicate rdf:type ; |
475 | sp:subject | 468 | sp:subject |
476 | - [ sp:varName "company"^^xsd:string | 469 | + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string |
477 | ] | 470 | ] |
478 | ] [ sp:object | 471 | ] [ sp:object |
479 | - [ sp:varName "companyName"^^xsd:string | 472 | + [ sp:varName "productionFacilityType"^^xsd:string |
480 | ] ; | 473 | ] ; |
481 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 474 | + sp:predicate rdf:type ; |
482 | sp:subject | 475 | sp:subject |
483 | - [ sp:varName "company"^^xsd:string | 476 | + [ sp:varName "facility"^^xsd:string |
477 | + ] | ||
478 | + ] [ rdf:type sp:Bind ; | ||
479 | + sp:expression | ||
480 | + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; | ||
481 | + sp:arg1 [ sp:varName "facilityKind"^^xsd:string | ||
482 | + ] | ||
483 | + ] ; | ||
484 | + sp:variable | ||
485 | + [ sp:varName "productionFacilityType"^^xsd:string | ||
484 | ] | 486 | ] |
485 | - ]) ; | ||
486 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
487 | ]) | 487 | ]) |
488 | ] ; | 488 | ] ; |
489 | spin:rule | 489 | spin:rule |
... | @@ -540,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -540,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
540 | 540 | ||
541 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> | 541 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> |
542 | rdf:type owl:Ontology ; | 542 | rdf:type owl:Ontology ; |
543 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | 543 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; |
544 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 544 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
... | @@ -6,8 +6,6 @@ | ... | @@ -6,8 +6,6 @@ |
6 | 6 | ||
7 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . | 7 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . |
8 | @prefix arg: <http://spinrdf.org/arg#> . | 8 | @prefix arg: <http://spinrdf.org/arg#> . |
9 | -@prefix npd: <http://www.reportinghub.no/ep/schema/npd#> . | ||
10 | -@prefix npdata: <http://www.reportinghub.no/ep/data/> . | ||
11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
12 | @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 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 11 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
... | @@ -17,25 +15,63 @@ | ... | @@ -17,25 +15,63 @@ |
17 | @prefix spl: <http://spinrdf.org/spl#> . | 15 | @prefix spl: <http://spinrdf.org/spl#> . |
18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 16 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
19 | 17 | ||
20 | -<http://www.epim.no/schemas/mprml/1#RefNameString> | 18 | +<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> |
21 | spin:rule | 19 | spin:rule |
22 | [ rdf:type sp:Construct ; | 20 | [ rdf:type sp:Construct ; |
23 | - rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | 21 | + rdfs:comment "STEP 00044 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
24 | - sp:templates ([ sp:object spin:_this ; | 22 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
23 | + sp:predicate rdf:type ; | ||
24 | + sp:subject _:b1 | ||
25 | + ] [ sp:object | ||
26 | + [ sp:varName "organizationName"^^xsd:string | ||
27 | + ] ; | ||
28 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
29 | + sp:subject _:b1 | ||
30 | + ] [ sp:object spin:_this ; | ||
31 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
32 | + sp:subject _:b1 | ||
33 | + ]) ; | ||
34 | + sp:where ([ sp:object | ||
35 | + [ sp:varName "organizationName"^^xsd:string | ||
36 | + ] ; | ||
37 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
38 | + sp:subject spin:_this | ||
39 | + ] [ rdf:type sp:NotExists ; | ||
40 | + sp:elements ([ sp:object spin:_this ; | ||
25 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 41 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
26 | sp:subject | 42 | sp:subject |
27 | - [ sp:varName "organization"^^xsd:string | 43 | + [ sp:varName "somethingElse"^^xsd:string |
28 | ] | 44 | ] |
29 | - ]) ; | 45 | + ]) |
30 | - sp:where ([ sp:object spin:_this ; | 46 | + ] [ rdf:type sp:NotExists ; |
31 | - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; | 47 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
48 | + sp:predicate rdf:type ; | ||
32 | sp:subject | 49 | sp:subject |
33 | - [ sp:varName "something"^^xsd:string | 50 | + [ sp:varName "organization"^^xsd:string |
34 | ] | 51 | ] |
35 | ] [ sp:object | 52 | ] [ sp:object |
36 | [ sp:varName "organizationName"^^xsd:string | 53 | [ sp:varName "organizationName"^^xsd:string |
37 | ] ; | 54 | ] ; |
38 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 55 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
56 | + sp:subject | ||
57 | + [ sp:varName "organization"^^xsd:string | ||
58 | + ] | ||
59 | + ]) | ||
60 | + ]) | ||
61 | + ] ; | ||
62 | + spin:rule | ||
63 | + [ rdf:type sp:Construct ; | ||
64 | + rdfs:comment "STEP 00043 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | ||
65 | + sp:templates ([ sp:object spin:_this ; | ||
66 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
67 | + sp:subject | ||
68 | + [ sp:varName "organization"^^xsd:string | ||
69 | + ] | ||
70 | + ]) ; | ||
71 | + sp:where ([ sp:object | ||
72 | + [ sp:varName "organizationName"^^xsd:string | ||
73 | + ] ; | ||
74 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
39 | sp:subject spin:_this | 75 | sp:subject spin:_this |
40 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 76 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
41 | sp:predicate rdf:type ; | 77 | sp:predicate rdf:type ; |
... | @@ -53,25 +89,51 @@ | ... | @@ -53,25 +89,51 @@ |
53 | ] ; | 89 | ] ; |
54 | spin:rule | 90 | spin:rule |
55 | [ rdf:type sp:Construct ; | 91 | [ rdf:type sp:Construct ; |
56 | - rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ; | 92 | + rdfs:comment "STEP 00042 Set organization - operating company in NPD fact pages"^^xsd:string ; |
57 | sp:templates ([ sp:object spin:_this ; | 93 | sp:templates ([ sp:object spin:_this ; |
58 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 94 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
59 | sp:subject | 95 | sp:subject |
60 | [ sp:varName "organization"^^xsd:string | 96 | [ sp:varName "organization"^^xsd:string |
61 | ] | 97 | ] |
62 | ]) ; | 98 | ]) ; |
63 | - sp:where ([ sp:object spin:_this ; | 99 | + sp:where ([ sp:object |
64 | - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; | 100 | + [ sp:varName "organizationName"^^xsd:string |
101 | + ] ; | ||
102 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
103 | + sp:subject spin:_this | ||
104 | + ] [ rdf:type sp:NamedGraph ; | ||
105 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
106 | + sp:predicate rdf:type ; | ||
65 | sp:subject | 107 | sp:subject |
66 | - [ sp:varName "something"^^xsd:string | 108 | + [ sp:varName "organization"^^xsd:string |
67 | ] | 109 | ] |
68 | ] [ sp:object | 110 | ] [ sp:object |
69 | [ sp:varName "organizationName"^^xsd:string | 111 | [ sp:varName "organizationName"^^xsd:string |
70 | ] ; | 112 | ] ; |
71 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 113 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
114 | + sp:subject | ||
115 | + [ sp:varName "organization"^^xsd:string | ||
116 | + ] | ||
117 | + ]) ; | ||
118 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
119 | + ]) | ||
120 | + ] ; | ||
121 | + spin:rule | ||
122 | + [ rdf:type sp:Construct ; | ||
123 | + rdfs:comment "STEP 00041 Set organization - parent company in NPD fact pages"^^xsd:string ; | ||
124 | + sp:templates ([ sp:object spin:_this ; | ||
125 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
126 | + sp:subject | ||
127 | + [ sp:varName "organization"^^xsd:string | ||
128 | + ] | ||
129 | + ]) ; | ||
130 | + sp:where ([ sp:object | ||
131 | + [ sp:varName "organizationName"^^xsd:string | ||
132 | + ] ; | ||
133 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
72 | sp:subject spin:_this | 134 | sp:subject spin:_this |
73 | ] [ rdf:type sp:NamedGraph ; | 135 | ] [ rdf:type sp:NamedGraph ; |
74 | - sp:elements ([ sp:object npd:ParentCompany ; | 136 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
75 | sp:predicate rdf:type ; | 137 | sp:predicate rdf:type ; |
76 | sp:subject | 138 | sp:subject |
77 | [ sp:varName "organization"^^xsd:string | 139 | [ sp:varName "organization"^^xsd:string |
... | @@ -79,14 +141,16 @@ | ... | @@ -79,14 +141,16 @@ |
79 | ] [ sp:object | 141 | ] [ sp:object |
80 | [ sp:varName "organizationName"^^xsd:string | 142 | [ sp:varName "organizationName"^^xsd:string |
81 | ] ; | 143 | ] ; |
82 | - sp:predicate npd:name ; | 144 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
83 | sp:subject | 145 | sp:subject |
84 | [ sp:varName "organization"^^xsd:string | 146 | [ sp:varName "organization"^^xsd:string |
85 | ] | 147 | ] |
86 | ]) ; | 148 | ]) ; |
87 | - sp:graphNameNode npdata:npd | 149 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
88 | ]) | 150 | ]) |
89 | - ] ; | 151 | + ] . |
152 | + | ||
153 | +<http://www.epim.no/schemas/mprml/1#RefNameString> | ||
90 | spin:rule | 154 | spin:rule |
91 | [ rdf:type sp:Construct ; | 155 | [ rdf:type sp:Construct ; |
92 | rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ; | 156 | rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ; |
... | @@ -107,7 +171,7 @@ | ... | @@ -107,7 +171,7 @@ |
107 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 171 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
108 | sp:subject spin:_this | 172 | sp:subject spin:_this |
109 | ] [ rdf:type sp:NamedGraph ; | 173 | ] [ rdf:type sp:NamedGraph ; |
110 | - sp:elements ([ sp:object npd:OperatingCompany ; | 174 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
111 | sp:predicate rdf:type ; | 175 | sp:predicate rdf:type ; |
112 | sp:subject | 176 | sp:subject |
113 | [ sp:varName "organization"^^xsd:string | 177 | [ sp:varName "organization"^^xsd:string |
... | @@ -115,17 +179,17 @@ | ... | @@ -115,17 +179,17 @@ |
115 | ] [ sp:object | 179 | ] [ sp:object |
116 | [ sp:varName "organizationName"^^xsd:string | 180 | [ sp:varName "organizationName"^^xsd:string |
117 | ] ; | 181 | ] ; |
118 | - sp:predicate npd:name ; | 182 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
119 | sp:subject | 183 | sp:subject |
120 | [ sp:varName "organization"^^xsd:string | 184 | [ sp:varName "organization"^^xsd:string |
121 | ] | 185 | ] |
122 | ]) ; | 186 | ]) ; |
123 | - sp:graphNameNode npdata:npd | 187 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
124 | ]) | 188 | ]) |
125 | ] ; | 189 | ] ; |
126 | spin:rule | 190 | spin:rule |
127 | [ rdf:type sp:Construct ; | 191 | [ rdf:type sp:Construct ; |
128 | - rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | 192 | + rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ; |
129 | sp:templates ([ sp:object spin:_this ; | 193 | sp:templates ([ sp:object spin:_this ; |
130 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 194 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
131 | sp:subject | 195 | sp:subject |
... | @@ -133,7 +197,7 @@ | ... | @@ -133,7 +197,7 @@ |
133 | ] | 197 | ] |
134 | ]) ; | 198 | ]) ; |
135 | sp:where ([ sp:object spin:_this ; | 199 | sp:where ([ sp:object spin:_this ; |
136 | - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; | 200 | + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; |
137 | sp:subject | 201 | sp:subject |
138 | [ sp:varName "something"^^xsd:string | 202 | [ sp:varName "something"^^xsd:string |
139 | ] | 203 | ] |
... | @@ -142,7 +206,8 @@ | ... | @@ -142,7 +206,8 @@ |
142 | ] ; | 206 | ] ; |
143 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 207 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
144 | sp:subject spin:_this | 208 | sp:subject spin:_this |
145 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 209 | + ] [ rdf:type sp:NamedGraph ; |
210 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
146 | sp:predicate rdf:type ; | 211 | sp:predicate rdf:type ; |
147 | sp:subject | 212 | sp:subject |
148 | [ sp:varName "organization"^^xsd:string | 213 | [ sp:varName "organization"^^xsd:string |
... | @@ -150,29 +215,31 @@ | ... | @@ -150,29 +215,31 @@ |
150 | ] [ sp:object | 215 | ] [ sp:object |
151 | [ sp:varName "organizationName"^^xsd:string | 216 | [ sp:varName "organizationName"^^xsd:string |
152 | ] ; | 217 | ] ; |
153 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 218 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
154 | sp:subject | 219 | sp:subject |
155 | [ sp:varName "organization"^^xsd:string | 220 | [ sp:varName "organization"^^xsd:string |
156 | ] | 221 | ] |
222 | + ]) ; | ||
223 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
157 | ]) | 224 | ]) |
158 | ] ; | 225 | ] ; |
159 | spin:rule | 226 | spin:rule |
160 | [ rdf:type sp:Construct ; | 227 | [ rdf:type sp:Construct ; |
161 | - rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ; | 228 | + rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
162 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 229 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
163 | sp:predicate rdf:type ; | 230 | sp:predicate rdf:type ; |
164 | - sp:subject _:b1 | 231 | + sp:subject _:b2 |
165 | ] [ sp:object | 232 | ] [ sp:object |
166 | [ sp:varName "organizationName"^^xsd:string | 233 | [ sp:varName "organizationName"^^xsd:string |
167 | ] ; | 234 | ] ; |
168 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 235 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
169 | - sp:subject _:b1 | 236 | + sp:subject _:b2 |
170 | ] [ sp:object spin:_this ; | 237 | ] [ sp:object spin:_this ; |
171 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 238 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
172 | - sp:subject _:b1 | 239 | + sp:subject _:b2 |
173 | ]) ; | 240 | ]) ; |
174 | sp:where ([ sp:object spin:_this ; | 241 | sp:where ([ sp:object spin:_this ; |
175 | - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; | 242 | + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; |
176 | sp:subject | 243 | sp:subject |
177 | [ sp:varName "something"^^xsd:string | 244 | [ sp:varName "something"^^xsd:string |
178 | ] | 245 | ] |
... | @@ -206,21 +273,21 @@ | ... | @@ -206,21 +273,21 @@ |
206 | ] ; | 273 | ] ; |
207 | spin:rule | 274 | spin:rule |
208 | [ rdf:type sp:Construct ; | 275 | [ rdf:type sp:Construct ; |
209 | - rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ; | 276 | + rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
210 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 277 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
211 | sp:predicate rdf:type ; | 278 | sp:predicate rdf:type ; |
212 | - sp:subject _:b2 | 279 | + sp:subject _:b3 |
213 | ] [ sp:object | 280 | ] [ sp:object |
214 | [ sp:varName "organizationName"^^xsd:string | 281 | [ sp:varName "organizationName"^^xsd:string |
215 | ] ; | 282 | ] ; |
216 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 283 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
217 | - sp:subject _:b2 | 284 | + sp:subject _:b3 |
218 | ] [ sp:object spin:_this ; | 285 | ] [ sp:object spin:_this ; |
219 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 286 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
220 | - sp:subject _:b2 | 287 | + sp:subject _:b3 |
221 | ]) ; | 288 | ]) ; |
222 | sp:where ([ sp:object spin:_this ; | 289 | sp:where ([ sp:object spin:_this ; |
223 | - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | 290 | + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; |
224 | sp:subject | 291 | sp:subject |
225 | [ sp:varName "something"^^xsd:string | 292 | [ sp:varName "something"^^xsd:string |
226 | ] | 293 | ] |
... | @@ -254,7 +321,7 @@ | ... | @@ -254,7 +321,7 @@ |
254 | ] ; | 321 | ] ; |
255 | spin:rule | 322 | spin:rule |
256 | [ rdf:type sp:Construct ; | 323 | [ rdf:type sp:Construct ; |
257 | - rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ; | 324 | + rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ; |
258 | sp:templates ([ sp:object spin:_this ; | 325 | sp:templates ([ sp:object spin:_this ; |
259 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 326 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
260 | sp:subject | 327 | sp:subject |
... | @@ -272,7 +339,7 @@ | ... | @@ -272,7 +339,7 @@ |
272 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 339 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
273 | sp:subject spin:_this | 340 | sp:subject spin:_this |
274 | ] [ rdf:type sp:NamedGraph ; | 341 | ] [ rdf:type sp:NamedGraph ; |
275 | - sp:elements ([ sp:object npd:OperatingCompany ; | 342 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
276 | sp:predicate rdf:type ; | 343 | sp:predicate rdf:type ; |
277 | sp:subject | 344 | sp:subject |
278 | [ sp:varName "organization"^^xsd:string | 345 | [ sp:varName "organization"^^xsd:string |
... | @@ -280,20 +347,25 @@ | ... | @@ -280,20 +347,25 @@ |
280 | ] [ sp:object | 347 | ] [ sp:object |
281 | [ sp:varName "organizationName"^^xsd:string | 348 | [ sp:varName "organizationName"^^xsd:string |
282 | ] ; | 349 | ] ; |
283 | - sp:predicate npd:name ; | 350 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
284 | sp:subject | 351 | sp:subject |
285 | [ sp:varName "organization"^^xsd:string | 352 | [ sp:varName "organization"^^xsd:string |
286 | ] | 353 | ] |
287 | ]) ; | 354 | ]) ; |
288 | - sp:graphNameNode npdata:npd | 355 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
289 | ]) | 356 | ]) |
290 | ] ; | 357 | ] ; |
291 | spin:rule | 358 | spin:rule |
292 | [ rdf:type sp:Construct ; | 359 | [ rdf:type sp:Construct ; |
293 | - rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ; | 360 | + rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ; |
294 | - sp:templates () ; | 361 | + sp:templates ([ sp:object spin:_this ; |
362 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
363 | + sp:subject | ||
364 | + [ sp:varName "organization"^^xsd:string | ||
365 | + ] | ||
366 | + ]) ; | ||
295 | sp:where ([ sp:object spin:_this ; | 367 | sp:where ([ sp:object spin:_this ; |
296 | - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; | 368 | + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; |
297 | sp:subject | 369 | sp:subject |
298 | [ sp:varName "something"^^xsd:string | 370 | [ sp:varName "something"^^xsd:string |
299 | ] | 371 | ] |
... | @@ -303,7 +375,7 @@ | ... | @@ -303,7 +375,7 @@ |
303 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 375 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
304 | sp:subject spin:_this | 376 | sp:subject spin:_this |
305 | ] [ rdf:type sp:NamedGraph ; | 377 | ] [ rdf:type sp:NamedGraph ; |
306 | - sp:elements ([ sp:object npd:ParentCompany ; | 378 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
307 | sp:predicate rdf:type ; | 379 | sp:predicate rdf:type ; |
308 | sp:subject | 380 | sp:subject |
309 | [ sp:varName "organization"^^xsd:string | 381 | [ sp:varName "organization"^^xsd:string |
... | @@ -311,31 +383,31 @@ | ... | @@ -311,31 +383,31 @@ |
311 | ] [ sp:object | 383 | ] [ sp:object |
312 | [ sp:varName "organizationName"^^xsd:string | 384 | [ sp:varName "organizationName"^^xsd:string |
313 | ] ; | 385 | ] ; |
314 | - sp:predicate npd:name ; | 386 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
315 | sp:subject | 387 | sp:subject |
316 | [ sp:varName "organization"^^xsd:string | 388 | [ sp:varName "organization"^^xsd:string |
317 | ] | 389 | ] |
318 | ]) ; | 390 | ]) ; |
319 | - sp:graphNameNode npdata:npd | 391 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
320 | ]) | 392 | ]) |
321 | ] ; | 393 | ] ; |
322 | spin:rule | 394 | spin:rule |
323 | [ rdf:type sp:Construct ; | 395 | [ rdf:type sp:Construct ; |
324 | - rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ; | 396 | + rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
325 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 397 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
326 | sp:predicate rdf:type ; | 398 | sp:predicate rdf:type ; |
327 | - sp:subject _:b3 | 399 | + sp:subject _:b4 |
328 | ] [ sp:object | 400 | ] [ sp:object |
329 | [ sp:varName "organizationName"^^xsd:string | 401 | [ sp:varName "organizationName"^^xsd:string |
330 | ] ; | 402 | ] ; |
331 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 403 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
332 | - sp:subject _:b3 | 404 | + sp:subject _:b4 |
333 | ] [ sp:object spin:_this ; | 405 | ] [ sp:object spin:_this ; |
334 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 406 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
335 | - sp:subject _:b3 | 407 | + sp:subject _:b4 |
336 | ]) ; | 408 | ]) ; |
337 | sp:where ([ sp:object spin:_this ; | 409 | sp:where ([ sp:object spin:_this ; |
338 | - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; | 410 | + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; |
339 | sp:subject | 411 | sp:subject |
340 | [ sp:varName "something"^^xsd:string | 412 | [ sp:varName "something"^^xsd:string |
341 | ] | 413 | ] |
... | @@ -369,7 +441,7 @@ | ... | @@ -369,7 +441,7 @@ |
369 | ] ; | 441 | ] ; |
370 | spin:rule | 442 | spin:rule |
371 | [ rdf:type sp:Construct ; | 443 | [ rdf:type sp:Construct ; |
372 | - rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ; | 444 | + rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; |
373 | sp:templates ([ sp:object spin:_this ; | 445 | sp:templates ([ sp:object spin:_this ; |
374 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 446 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
375 | sp:subject | 447 | sp:subject |
... | @@ -377,7 +449,7 @@ | ... | @@ -377,7 +449,7 @@ |
377 | ] | 449 | ] |
378 | ]) ; | 450 | ]) ; |
379 | sp:where ([ sp:object spin:_this ; | 451 | sp:where ([ sp:object spin:_this ; |
380 | - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | 452 | + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; |
381 | sp:subject | 453 | sp:subject |
382 | [ sp:varName "something"^^xsd:string | 454 | [ sp:varName "something"^^xsd:string |
383 | ] | 455 | ] |
... | @@ -386,8 +458,7 @@ | ... | @@ -386,8 +458,7 @@ |
386 | ] ; | 458 | ] ; |
387 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 459 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
388 | sp:subject spin:_this | 460 | sp:subject spin:_this |
389 | - ] [ rdf:type sp:NamedGraph ; | 461 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
390 | - sp:elements ([ sp:object npd:OperatingCompany ; | ||
391 | sp:predicate rdf:type ; | 462 | sp:predicate rdf:type ; |
392 | sp:subject | 463 | sp:subject |
393 | [ sp:varName "organization"^^xsd:string | 464 | [ sp:varName "organization"^^xsd:string |
... | @@ -395,17 +466,15 @@ | ... | @@ -395,17 +466,15 @@ |
395 | ] [ sp:object | 466 | ] [ sp:object |
396 | [ sp:varName "organizationName"^^xsd:string | 467 | [ sp:varName "organizationName"^^xsd:string |
397 | ] ; | 468 | ] ; |
398 | - sp:predicate npd:name ; | 469 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
399 | sp:subject | 470 | sp:subject |
400 | [ sp:varName "organization"^^xsd:string | 471 | [ sp:varName "organization"^^xsd:string |
401 | ] | 472 | ] |
402 | - ]) ; | ||
403 | - sp:graphNameNode npdata:npd | ||
404 | ]) | 473 | ]) |
405 | ] ; | 474 | ] ; |
406 | spin:rule | 475 | spin:rule |
407 | [ rdf:type sp:Construct ; | 476 | [ rdf:type sp:Construct ; |
408 | - rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | 477 | + rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; |
409 | sp:templates ([ sp:object spin:_this ; | 478 | sp:templates ([ sp:object spin:_this ; |
410 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 479 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
411 | sp:subject | 480 | sp:subject |
... | @@ -413,7 +482,7 @@ | ... | @@ -413,7 +482,7 @@ |
413 | ] | 482 | ] |
414 | ]) ; | 483 | ]) ; |
415 | sp:where ([ sp:object spin:_this ; | 484 | sp:where ([ sp:object spin:_this ; |
416 | - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | 485 | + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; |
417 | sp:subject | 486 | sp:subject |
418 | [ sp:varName "something"^^xsd:string | 487 | [ sp:varName "something"^^xsd:string |
419 | ] | 488 | ] |
... | @@ -456,7 +525,43 @@ | ... | @@ -456,7 +525,43 @@ |
456 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 525 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
457 | sp:subject spin:_this | 526 | sp:subject spin:_this |
458 | ] [ rdf:type sp:NamedGraph ; | 527 | ] [ rdf:type sp:NamedGraph ; |
459 | - sp:elements ([ sp:object npd:ParentCompany ; | 528 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
529 | + sp:predicate rdf:type ; | ||
530 | + sp:subject | ||
531 | + [ sp:varName "organization"^^xsd:string | ||
532 | + ] | ||
533 | + ] [ sp:object | ||
534 | + [ sp:varName "organizationName"^^xsd:string | ||
535 | + ] ; | ||
536 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
537 | + sp:subject | ||
538 | + [ sp:varName "organization"^^xsd:string | ||
539 | + ] | ||
540 | + ]) ; | ||
541 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
542 | + ]) | ||
543 | + ] ; | ||
544 | + spin:rule | ||
545 | + [ rdf:type sp:Construct ; | ||
546 | + rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ; | ||
547 | + sp:templates ([ sp:object spin:_this ; | ||
548 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
549 | + sp:subject | ||
550 | + [ sp:varName "organization"^^xsd:string | ||
551 | + ] | ||
552 | + ]) ; | ||
553 | + sp:where ([ sp:object spin:_this ; | ||
554 | + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | ||
555 | + sp:subject | ||
556 | + [ sp:varName "something"^^xsd:string | ||
557 | + ] | ||
558 | + ] [ sp:object | ||
559 | + [ sp:varName "organizationName"^^xsd:string | ||
560 | + ] ; | ||
561 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
562 | + sp:subject spin:_this | ||
563 | + ] [ rdf:type sp:NamedGraph ; | ||
564 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
460 | sp:predicate rdf:type ; | 565 | sp:predicate rdf:type ; |
461 | sp:subject | 566 | sp:subject |
462 | [ sp:varName "organization"^^xsd:string | 567 | [ sp:varName "organization"^^xsd:string |
... | @@ -464,16 +569,49 @@ | ... | @@ -464,16 +569,49 @@ |
464 | ] [ sp:object | 569 | ] [ sp:object |
465 | [ sp:varName "organizationName"^^xsd:string | 570 | [ sp:varName "organizationName"^^xsd:string |
466 | ] ; | 571 | ] ; |
467 | - sp:predicate npd:name ; | 572 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
468 | sp:subject | 573 | sp:subject |
469 | [ sp:varName "organization"^^xsd:string | 574 | [ sp:varName "organization"^^xsd:string |
470 | ] | 575 | ] |
471 | ]) ; | 576 | ]) ; |
472 | - sp:graphNameNode npdata:npd | 577 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
578 | + ]) | ||
579 | + ] ; | ||
580 | + spin:rule | ||
581 | + [ rdf:type sp:Construct ; | ||
582 | + rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | ||
583 | + sp:templates ([ sp:object spin:_this ; | ||
584 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
585 | + sp:subject | ||
586 | + [ sp:varName "organization"^^xsd:string | ||
587 | + ] | ||
588 | + ]) ; | ||
589 | + sp:where ([ sp:object spin:_this ; | ||
590 | + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | ||
591 | + sp:subject | ||
592 | + [ sp:varName "something"^^xsd:string | ||
593 | + ] | ||
594 | + ] [ sp:object | ||
595 | + [ sp:varName "organizationName"^^xsd:string | ||
596 | + ] ; | ||
597 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
598 | + sp:subject spin:_this | ||
599 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
600 | + sp:predicate rdf:type ; | ||
601 | + sp:subject | ||
602 | + [ sp:varName "organization"^^xsd:string | ||
603 | + ] | ||
604 | + ] [ sp:object | ||
605 | + [ sp:varName "organizationName"^^xsd:string | ||
606 | + ] ; | ||
607 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
608 | + sp:subject | ||
609 | + [ sp:varName "organization"^^xsd:string | ||
610 | + ] | ||
473 | ]) | 611 | ]) |
474 | ] . | 612 | ] . |
475 | 613 | ||
476 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> | 614 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> |
477 | rdf:type owl:Ontology ; | 615 | rdf:type owl:Ontology ; |
478 | - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; | 616 | + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; |
479 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 617 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -19,6 +19,67 @@ | ... | @@ -19,6 +19,67 @@ |
19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
20 | spin:rule | 20 | spin:rule |
21 | [ rdf:type sp:Construct ; | 21 | [ rdf:type sp:Construct ; |
22 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; | ||
23 | + sp:templates ([ sp:object | ||
24 | + [ sp:varName "contextFacility"^^xsd:string | ||
25 | + ] ; | ||
26 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
27 | + sp:subject | ||
28 | + [ sp:varName "productionFacility"^^xsd:string | ||
29 | + ] | ||
30 | + ]) ; | ||
31 | + sp:where ([ sp:object | ||
32 | + [ sp:varName "contextRef"^^xsd:string | ||
33 | + ] ; | ||
34 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
35 | + sp:subject spin:_this | ||
36 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
37 | + sp:predicate rdf:type ; | ||
38 | + sp:subject | ||
39 | + [ sp:varName "contextRef"^^xsd:string | ||
40 | + ] | ||
41 | + ] [ sp:object | ||
42 | + [ sp:varName "contectFacilityRef"^^xsd:string | ||
43 | + ] ; | ||
44 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
45 | + sp:subject | ||
46 | + [ sp:varName "contextRef"^^xsd:string | ||
47 | + ] | ||
48 | + ] [ sp:object | ||
49 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
50 | + ] ; | ||
51 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
52 | + sp:subject | ||
53 | + [ sp:varName "contextFacility"^^xsd:string | ||
54 | + ] | ||
55 | + ] [ sp:object spin:_this ; | ||
56 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
57 | + sp:subject | ||
58 | + [ sp:varName "productionReport"^^xsd:string | ||
59 | + ] | ||
60 | + ] [ sp:object | ||
61 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
62 | + ] ; | ||
63 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
64 | + sp:subject | ||
65 | + [ sp:varName "productionReport"^^xsd:string | ||
66 | + ] | ||
67 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
68 | + sp:predicate rdf:type ; | ||
69 | + sp:subject | ||
70 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
71 | + ] | ||
72 | + ] [ sp:object | ||
73 | + [ sp:varName "productionFacility"^^xsd:string | ||
74 | + ] ; | ||
75 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
76 | + sp:subject | ||
77 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
78 | + ] | ||
79 | + ]) | ||
80 | + ] ; | ||
81 | + spin:rule | ||
82 | + [ rdf:type sp:Construct ; | ||
22 | rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 83 | rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; |
23 | sp:templates ([ sp:object | 84 | sp:templates ([ sp:object |
24 | [ sp:varName "date"^^xsd:string | 85 | [ sp:varName "date"^^xsd:string |
... | @@ -65,10 +126,8 @@ | ... | @@ -65,10 +126,8 @@ |
65 | ] ; | 126 | ] ; |
66 | spin:rule | 127 | spin:rule |
67 | [ rdf:type sp:Construct ; | 128 | [ rdf:type sp:Construct ; |
68 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | 129 | + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; |
69 | - sp:templates ([ sp:object | 130 | + sp:templates ([ sp:object "noDate" ; |
70 | - [ sp:varName "dateEnd"^^xsd:string | ||
71 | - ] ; | ||
72 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 131 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
73 | sp:subject spin:_this | 132 | sp:subject spin:_this |
74 | ]) ; | 133 | ]) ; |
... | @@ -82,13 +141,15 @@ | ... | @@ -82,13 +141,15 @@ |
82 | sp:subject | 141 | sp:subject |
83 | [ sp:varName "contextRef"^^xsd:string | 142 | [ sp:varName "contextRef"^^xsd:string |
84 | ] | 143 | ] |
85 | - ] [ sp:object | 144 | + ] [ rdf:type sp:NotExists ; |
145 | + sp:elements ([ sp:object | ||
86 | [ sp:varName "dateEnd"^^xsd:string | 146 | [ sp:varName "dateEnd"^^xsd:string |
87 | ] ; | 147 | ] ; |
88 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 148 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
89 | sp:subject | 149 | sp:subject |
90 | [ sp:varName "contextRef"^^xsd:string | 150 | [ sp:varName "contextRef"^^xsd:string |
91 | ] | 151 | ] |
152 | + ]) | ||
92 | ] [ rdf:type sp:NotExists ; | 153 | ] [ rdf:type sp:NotExists ; |
93 | sp:elements ([ sp:object | 154 | sp:elements ([ sp:object |
94 | [ sp:varName "date"^^xsd:string | 155 | [ sp:varName "date"^^xsd:string |
... | @@ -111,77 +172,68 @@ | ... | @@ -111,77 +172,68 @@ |
111 | ] ; | 172 | ] ; |
112 | spin:rule | 173 | spin:rule |
113 | [ rdf:type sp:Construct ; | 174 | [ rdf:type sp:Construct ; |
114 | - rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; | 175 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; |
115 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 176 | + sp:templates ([ sp:object |
116 | - sp:predicate rdf:type ; | 177 | + [ sp:varName "dateEnd"^^xsd:string |
117 | - sp:subject | ||
118 | - [ sp:varName "productionReport"^^xsd:string | ||
119 | - ] | ||
120 | - ] [ sp:object spin:_this ; | ||
121 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
122 | - sp:subject | ||
123 | - [ sp:varName "productionReport"^^xsd:string | ||
124 | - ] | ||
125 | - ]) ; | ||
126 | - sp:where ([ sp:object | ||
127 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
128 | ] ; | 178 | ] ; |
129 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 179 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
130 | sp:subject spin:_this | 180 | sp:subject spin:_this |
131 | - ] [ rdf:type sp:NotExists ; | 181 | + ]) ; |
132 | - sp:elements ([ sp:object | 182 | + sp:where ([ sp:object |
133 | - [ sp:varName "productVolumeRef"^^xsd:string | 183 | + [ sp:varName "contextRef"^^xsd:string |
134 | ] ; | 184 | ] ; |
135 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 185 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
136 | sp:subject spin:_this | 186 | sp:subject spin:_this |
137 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 187 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
138 | sp:predicate rdf:type ; | 188 | sp:predicate rdf:type ; |
139 | sp:subject | 189 | sp:subject |
140 | - [ sp:varName "productVolumeRef"^^xsd:string | 190 | + [ sp:varName "contextRef"^^xsd:string |
141 | ] | 191 | ] |
142 | ] [ sp:object | 192 | ] [ sp:object |
143 | - [ sp:varName "installationRef"^^xsd:string | 193 | + [ sp:varName "dateEnd"^^xsd:string |
144 | ] ; | 194 | ] ; |
145 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 195 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
146 | sp:subject | 196 | sp:subject |
147 | - [ sp:varName "productVolumeRef"^^xsd:string | 197 | + [ sp:varName "contextRef"^^xsd:string |
148 | ] | 198 | ] |
149 | - ] [ sp:object | 199 | + ] [ rdf:type sp:NotExists ; |
150 | - [ sp:varName "name"^^xsd:string | 200 | + sp:elements ([ sp:object |
201 | + [ sp:varName "date"^^xsd:string | ||
151 | ] ; | 202 | ] ; |
152 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 203 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
153 | sp:subject | 204 | sp:subject |
154 | - [ sp:varName "installationRef"^^xsd:string | 205 | + [ sp:varName "contextRef"^^xsd:string |
155 | ] | 206 | ] |
156 | ]) | 207 | ]) |
157 | ] [ rdf:type sp:NotExists ; | 208 | ] [ rdf:type sp:NotExists ; |
158 | sp:elements ([ sp:object | 209 | sp:elements ([ sp:object |
159 | - [ sp:varName "productionOperationRef"^^xsd:string | 210 | + [ sp:varName "dateStart"^^xsd:string |
160 | ] ; | 211 | ] ; |
161 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 212 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
162 | - sp:subject spin:_this | ||
163 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
164 | - sp:predicate rdf:type ; | ||
165 | sp:subject | 213 | sp:subject |
166 | - [ sp:varName "productionOperationRef"^^xsd:string | 214 | + [ sp:varName "contextRef"^^xsd:string |
167 | ] | 215 | ] |
168 | - ] [ sp:object | 216 | + ]) |
169 | - [ sp:varName "installationRef"^^xsd:string | 217 | + ]) |
170 | ] ; | 218 | ] ; |
171 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 219 | + spin:rule |
220 | + [ rdf:type sp:Construct ; | ||
221 | + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | ||
222 | + sp:templates ([ sp:object _:b1 ; | ||
223 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
172 | sp:subject | 224 | sp:subject |
173 | - [ sp:varName "productionOperationRef"^^xsd:string | 225 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
174 | ] | 226 | ] |
227 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
228 | + sp:predicate rdf:type ; | ||
229 | + sp:subject _:b1 | ||
175 | ] [ sp:object | 230 | ] [ sp:object |
176 | - [ sp:varName "name"^^xsd:string | 231 | + [ sp:varName "operator"^^xsd:string |
177 | ] ; | 232 | ] ; |
178 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 233 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
179 | - sp:subject | 234 | + sp:subject _:b1 |
180 | - [ sp:varName "installationRef"^^xsd:string | 235 | + ]) ; |
181 | - ] | 236 | + sp:where ([ sp:object |
182 | - ]) | ||
183 | - ] [ rdf:type sp:NotExists ; | ||
184 | - sp:elements ([ sp:object | ||
185 | [ sp:varName "contextRef"^^xsd:string | 237 | [ sp:varName "contextRef"^^xsd:string |
186 | ] ; | 238 | ] ; |
187 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 239 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -192,39 +244,36 @@ | ... | @@ -192,39 +244,36 @@ |
192 | [ sp:varName "contextRef"^^xsd:string | 244 | [ sp:varName "contextRef"^^xsd:string |
193 | ] | 245 | ] |
194 | ] [ sp:object | 246 | ] [ sp:object |
195 | - [ sp:varName "installationRef"^^xsd:string | 247 | + [ sp:varName "operatorRef"^^xsd:string |
196 | ] ; | 248 | ] ; |
197 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 249 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
198 | sp:subject | 250 | sp:subject |
199 | [ sp:varName "contextRef"^^xsd:string | 251 | [ sp:varName "contextRef"^^xsd:string |
200 | ] | 252 | ] |
201 | ] [ sp:object | 253 | ] [ sp:object |
202 | - [ sp:varName "name"^^xsd:string | 254 | + [ sp:varName "operatorRef"^^xsd:string |
203 | ] ; | 255 | ] ; |
204 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 256 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
205 | sp:subject | 257 | sp:subject |
206 | - [ sp:varName "installationRef"^^xsd:string | 258 | + [ sp:varName "operator"^^xsd:string |
207 | - ] | ||
208 | - ]) | ||
209 | - ] [ rdf:type sp:Bind ; | ||
210 | - sp:expression | ||
211 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
212 | - sp:arg1 "noInstallation" | ||
213 | - ] ; | ||
214 | - sp:variable | ||
215 | - [ sp:varName "normalizedName"^^xsd:string | ||
216 | ] | 259 | ] |
217 | - ] [ rdf:type sp:Bind ; | 260 | + ] [ sp:object spin:_this ; |
218 | - sp:expression | 261 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
219 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | 262 | + sp:subject |
220 | - sp:arg1 [ sp:varName "normalizedName"^^xsd:string | 263 | + [ sp:varName "productionReport"^^xsd:string |
221 | - ] ; | ||
222 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
223 | ] | 264 | ] |
265 | + ] [ sp:object | ||
266 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
224 | ] ; | 267 | ] ; |
225 | - sp:variable | 268 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
269 | + sp:subject | ||
226 | [ sp:varName "productionReport"^^xsd:string | 270 | [ sp:varName "productionReport"^^xsd:string |
227 | ] | 271 | ] |
272 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
273 | + sp:predicate rdf:type ; | ||
274 | + sp:subject | ||
275 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
276 | + ] | ||
228 | ]) | 277 | ]) |
229 | ] ; | 278 | ] ; |
230 | spin:rule | 279 | spin:rule |
... | @@ -275,12 +324,25 @@ | ... | @@ -275,12 +324,25 @@ |
275 | ] ; | 324 | ] ; |
276 | spin:rule | 325 | spin:rule |
277 | [ rdf:type sp:Construct ; | 326 | [ rdf:type sp:Construct ; |
278 | - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; | 327 | + rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; |
279 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 328 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
280 | sp:predicate rdf:type ; | 329 | sp:predicate rdf:type ; |
281 | sp:subject | 330 | sp:subject |
282 | [ sp:varName "productionReport"^^xsd:string | 331 | [ sp:varName "productionReport"^^xsd:string |
283 | ] | 332 | ] |
333 | + ] [ sp:object _:b2 ; | ||
334 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
335 | + sp:subject | ||
336 | + [ sp:varName "productionReport"^^xsd:string | ||
337 | + ] | ||
338 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
339 | + sp:predicate rdf:type ; | ||
340 | + sp:subject _:b2 | ||
341 | + ] [ sp:object | ||
342 | + [ sp:varName "installation"^^xsd:string | ||
343 | + ] ; | ||
344 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
345 | + sp:subject _:b2 | ||
284 | ] [ sp:object spin:_this ; | 346 | ] [ sp:object spin:_this ; |
285 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 347 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
286 | sp:subject | 348 | sp:subject |
... | @@ -293,6 +355,50 @@ | ... | @@ -293,6 +355,50 @@ |
293 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 355 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
294 | sp:subject spin:_this | 356 | sp:subject spin:_this |
295 | ] [ sp:object | 357 | ] [ sp:object |
358 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
359 | + ] ; | ||
360 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
361 | + sp:subject spin:_this | ||
362 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
363 | + sp:predicate rdf:type ; | ||
364 | + sp:subject | ||
365 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
366 | + ] | ||
367 | + ] [ sp:object | ||
368 | + [ sp:varName "installationRef"^^xsd:string | ||
369 | + ] ; | ||
370 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
371 | + sp:subject | ||
372 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
373 | + ] | ||
374 | + ] [ sp:object | ||
375 | + [ sp:varName "installationRef"^^xsd:string | ||
376 | + ] ; | ||
377 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
378 | + sp:subject | ||
379 | + [ sp:varName "installation"^^xsd:string | ||
380 | + ] | ||
381 | + ] [ rdf:type sp:NotExists ; | ||
382 | + sp:elements ([ sp:object | ||
383 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
384 | + ] ; | ||
385 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
386 | + sp:subject spin:_this | ||
387 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
388 | + sp:predicate rdf:type ; | ||
389 | + sp:subject | ||
390 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
391 | + ] | ||
392 | + ] [ sp:object | ||
393 | + [ sp:varName "installationRef"^^xsd:string | ||
394 | + ] ; | ||
395 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
396 | + sp:subject | ||
397 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
398 | + ] | ||
399 | + ]) | ||
400 | + ] [ rdf:type sp:NotExists ; | ||
401 | + sp:elements ([ sp:object | ||
296 | [ sp:varName "contextRef"^^xsd:string | 402 | [ sp:varName "contextRef"^^xsd:string |
297 | ] ; | 403 | ] ; |
298 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 404 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -309,6 +415,7 @@ | ... | @@ -309,6 +415,7 @@ |
309 | sp:subject | 415 | sp:subject |
310 | [ sp:varName "contextRef"^^xsd:string | 416 | [ sp:varName "contextRef"^^xsd:string |
311 | ] | 417 | ] |
418 | + ]) | ||
312 | ] [ rdf:type sp:Bind ; | 419 | ] [ rdf:type sp:Bind ; |
313 | sp:expression | 420 | sp:expression |
314 | [ rdf:type spl:object ; | 421 | [ rdf:type spl:object ; |
... | @@ -334,8 +441,10 @@ | ... | @@ -334,8 +441,10 @@ |
334 | ] ; | 441 | ] ; |
335 | spin:rule | 442 | spin:rule |
336 | [ rdf:type sp:Construct ; | 443 | [ rdf:type sp:Construct ; |
337 | - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | 444 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; |
338 | - sp:templates ([ sp:object "noDate" ; | 445 | + sp:templates ([ sp:object |
446 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
447 | + ] ; | ||
339 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 448 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
340 | sp:subject spin:_this | 449 | sp:subject spin:_this |
341 | ]) ; | 450 | ]) ; |
... | @@ -349,24 +458,13 @@ | ... | @@ -349,24 +458,13 @@ |
349 | sp:subject | 458 | sp:subject |
350 | [ sp:varName "contextRef"^^xsd:string | 459 | [ sp:varName "contextRef"^^xsd:string |
351 | ] | 460 | ] |
352 | - ] [ rdf:type sp:NotExists ; | 461 | + ] [ sp:object |
353 | - sp:elements ([ sp:object | ||
354 | - [ sp:varName "dateEnd"^^xsd:string | ||
355 | - ] ; | ||
356 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
357 | - sp:subject | ||
358 | - [ sp:varName "contextRef"^^xsd:string | ||
359 | - ] | ||
360 | - ]) | ||
361 | - ] [ rdf:type sp:NotExists ; | ||
362 | - sp:elements ([ sp:object | ||
363 | [ sp:varName "date"^^xsd:string | 462 | [ sp:varName "date"^^xsd:string |
364 | ] ; | 463 | ] ; |
365 | sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 464 | sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
366 | sp:subject | 465 | sp:subject |
367 | [ sp:varName "contextRef"^^xsd:string | 466 | [ sp:varName "contextRef"^^xsd:string |
368 | ] | 467 | ] |
369 | - ]) | ||
370 | ] [ rdf:type sp:NotExists ; | 468 | ] [ rdf:type sp:NotExists ; |
371 | sp:elements ([ sp:object | 469 | sp:elements ([ sp:object |
372 | [ sp:varName "dateStart"^^xsd:string | 470 | [ sp:varName "dateStart"^^xsd:string |
... | @@ -376,16 +474,47 @@ | ... | @@ -376,16 +474,47 @@ |
376 | [ sp:varName "contextRef"^^xsd:string | 474 | [ sp:varName "contextRef"^^xsd:string |
377 | ] | 475 | ] |
378 | ]) | 476 | ]) |
477 | + ] [ sp:object | ||
478 | + [ sp:varName "dateEnd"^^xsd:string | ||
479 | + ] ; | ||
480 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
481 | + sp:subject | ||
482 | + [ sp:varName "contextRef"^^xsd:string | ||
483 | + ] | ||
484 | + ] [ rdf:type sp:Bind ; | ||
485 | + sp:expression | ||
486 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
487 | + sp:arg1 [ sp:varName "date"^^xsd:string | ||
488 | + ] ; | ||
489 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
490 | + ] | ||
491 | + ] ; | ||
492 | + sp:variable | ||
493 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
494 | + ] | ||
379 | ]) | 495 | ]) |
380 | ] ; | 496 | ] ; |
381 | spin:rule | 497 | spin:rule |
382 | [ rdf:type sp:Construct ; | 498 | [ rdf:type sp:Construct ; |
383 | - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; | 499 | + rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; |
384 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 500 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
385 | sp:predicate rdf:type ; | 501 | sp:predicate rdf:type ; |
386 | sp:subject | 502 | sp:subject |
387 | [ sp:varName "productionReport"^^xsd:string | 503 | [ sp:varName "productionReport"^^xsd:string |
388 | ] | 504 | ] |
505 | + ] [ sp:object _:b3 ; | ||
506 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
507 | + sp:subject | ||
508 | + [ sp:varName "productionReport"^^xsd:string | ||
509 | + ] | ||
510 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
511 | + sp:predicate rdf:type ; | ||
512 | + sp:subject _:b3 | ||
513 | + ] [ sp:object | ||
514 | + [ sp:varName "installation"^^xsd:string | ||
515 | + ] ; | ||
516 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
517 | + sp:subject _:b3 | ||
389 | ] [ sp:object spin:_this ; | 518 | ] [ sp:object spin:_this ; |
390 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 519 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
391 | sp:subject | 520 | sp:subject |
... | @@ -398,32 +527,7 @@ | ... | @@ -398,32 +527,7 @@ |
398 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 527 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
399 | sp:subject spin:_this | 528 | sp:subject spin:_this |
400 | ] [ sp:object | 529 | ] [ sp:object |
401 | - [ sp:varName "productVolumeRef"^^xsd:string | 530 | + [ sp:varName "productionOperationRef"^^xsd:string |
402 | - ] ; | ||
403 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
404 | - sp:subject spin:_this | ||
405 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
406 | - sp:predicate rdf:type ; | ||
407 | - sp:subject | ||
408 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
409 | - ] | ||
410 | - ] [ sp:object | ||
411 | - [ sp:varName "installationRef"^^xsd:string | ||
412 | - ] ; | ||
413 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
414 | - sp:subject | ||
415 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
416 | - ] | ||
417 | - ] [ sp:object | ||
418 | - [ sp:varName "name"^^xsd:string | ||
419 | - ] ; | ||
420 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
421 | - sp:subject | ||
422 | - [ sp:varName "installationRef"^^xsd:string | ||
423 | - ] | ||
424 | - ] [ rdf:type sp:NotExists ; | ||
425 | - sp:elements ([ sp:object | ||
426 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
427 | ] ; | 531 | ] ; |
428 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 532 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
429 | sp:subject spin:_this | 533 | sp:subject spin:_this |
... | @@ -440,13 +544,12 @@ | ... | @@ -440,13 +544,12 @@ |
440 | [ sp:varName "productionOperationRef"^^xsd:string | 544 | [ sp:varName "productionOperationRef"^^xsd:string |
441 | ] | 545 | ] |
442 | ] [ sp:object | 546 | ] [ sp:object |
443 | - [ sp:varName "name"^^xsd:string | 547 | + [ sp:varName "installationRef"^^xsd:string |
444 | ] ; | 548 | ] ; |
445 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 549 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
446 | sp:subject | 550 | sp:subject |
447 | - [ sp:varName "installationRef"^^xsd:string | 551 | + [ sp:varName "installation"^^xsd:string |
448 | ] | 552 | ] |
449 | - ]) | ||
450 | ] [ rdf:type sp:NotExists ; | 553 | ] [ rdf:type sp:NotExists ; |
451 | sp:elements ([ sp:object | 554 | sp:elements ([ sp:object |
452 | [ sp:varName "contextRef"^^xsd:string | 555 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -459,19 +562,12 @@ | ... | @@ -459,19 +562,12 @@ |
459 | [ sp:varName "contextRef"^^xsd:string | 562 | [ sp:varName "contextRef"^^xsd:string |
460 | ] | 563 | ] |
461 | ] [ sp:object | 564 | ] [ sp:object |
462 | - [ sp:varName "installationRef"^^xsd:string | 565 | + [ sp:varName "something"^^xsd:string |
463 | ] ; | 566 | ] ; |
464 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 567 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
465 | sp:subject | 568 | sp:subject |
466 | [ sp:varName "contextRef"^^xsd:string | 569 | [ sp:varName "contextRef"^^xsd:string |
467 | ] | 570 | ] |
468 | - ] [ sp:object | ||
469 | - [ sp:varName "name"^^xsd:string | ||
470 | - ] ; | ||
471 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
472 | - sp:subject | ||
473 | - [ sp:varName "installationRef"^^xsd:string | ||
474 | - ] | ||
475 | ]) | 571 | ]) |
476 | ] [ rdf:type sp:Bind ; | 572 | ] [ rdf:type sp:Bind ; |
477 | sp:expression | 573 | sp:expression |
... | @@ -498,123 +594,130 @@ | ... | @@ -498,123 +594,130 @@ |
498 | ] ; | 594 | ] ; |
499 | spin:rule | 595 | spin:rule |
500 | [ rdf:type sp:Construct ; | 596 | [ rdf:type sp:Construct ; |
501 | - rdfs:comment "STEP 10001z Add the report kind, issue date and title"^^xsd:string ; | 597 | + rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; |
502 | - sp:templates ([ sp:object | 598 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
503 | - [ sp:varName "reportKind"^^xsd:string | ||
504 | - ] ; | ||
505 | sp:predicate rdf:type ; | 599 | sp:predicate rdf:type ; |
506 | sp:subject | 600 | sp:subject |
507 | [ sp:varName "productionReport"^^xsd:string | 601 | [ sp:varName "productionReport"^^xsd:string |
508 | ] | 602 | ] |
509 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 603 | + ] [ sp:object _:b4 ; |
510 | - sp:predicate rdfs:subClassOf ; | 604 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
511 | sp:subject | 605 | sp:subject |
512 | - [ sp:varName "reportKind"^^xsd:string | 606 | + [ sp:varName "productionReport"^^xsd:string |
513 | ] | 607 | ] |
514 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | 608 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
515 | sp:predicate rdf:type ; | 609 | sp:predicate rdf:type ; |
610 | + sp:subject _:b4 | ||
611 | + ] [ sp:object spin:_this ; | ||
612 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
516 | sp:subject | 613 | sp:subject |
517 | - [ sp:varName "reportKind"^^xsd:string | 614 | + [ sp:varName "productionReport"^^xsd:string |
518 | ] | 615 | ] |
519 | - ] [ sp:object | 616 | + ]) ; |
520 | - [ sp:varName "kind"^^xsd:string | 617 | + sp:where ([ sp:object |
618 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
521 | ] ; | 619 | ] ; |
522 | - sp:predicate rdfs:label ; | 620 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
523 | - sp:subject | 621 | + sp:subject spin:_this |
524 | - [ sp:varName "reportKind"^^xsd:string | 622 | + ] [ rdf:type sp:NotExists ; |
525 | - ] | 623 | + sp:elements ([ sp:object |
526 | - ] [ sp:object | 624 | + [ sp:varName "productVolumeRef"^^xsd:string |
527 | - [ sp:varName "issueDate"^^xsd:string | ||
528 | ] ; | 625 | ] ; |
529 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-report#issuedAt> ; | 626 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
627 | + sp:subject spin:_this | ||
628 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
629 | + sp:predicate rdf:type ; | ||
530 | sp:subject | 630 | sp:subject |
531 | - [ sp:varName "productionReport"^^xsd:string | 631 | + [ sp:varName "productVolumeRef"^^xsd:string |
532 | ] | 632 | ] |
533 | ] [ sp:object | 633 | ] [ sp:object |
534 | - [ sp:varName "title"^^xsd:string | 634 | + [ sp:varName "installationRef"^^xsd:string |
535 | ] ; | 635 | ] ; |
536 | - sp:predicate rdfs:label ; | 636 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
537 | sp:subject | 637 | sp:subject |
538 | - [ sp:varName "productionReport"^^xsd:string | 638 | + [ sp:varName "productVolumeRef"^^xsd:string |
539 | ] | 639 | ] |
540 | - ]) ; | 640 | + ]) |
541 | - sp:where ([ sp:object | 641 | + ] [ rdf:type sp:NotExists ; |
542 | - [ sp:varName "contextRef"^^xsd:string | 642 | + sp:elements ([ sp:object |
643 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
543 | ] ; | 644 | ] ; |
544 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 645 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
545 | sp:subject spin:_this | 646 | sp:subject spin:_this |
546 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 647 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
547 | sp:predicate rdf:type ; | 648 | sp:predicate rdf:type ; |
548 | sp:subject | 649 | sp:subject |
549 | - [ sp:varName "contextRef"^^xsd:string | 650 | + [ sp:varName "productionOperationRef"^^xsd:string |
550 | ] | 651 | ] |
551 | - ] [ rdf:type sp:Optional ; | 652 | + ] [ sp:object |
552 | - sp:elements ([ sp:object | 653 | + [ sp:varName "installationRef"^^xsd:string |
553 | - [ sp:varName "kind"^^xsd:string | ||
554 | ] ; | 654 | ] ; |
555 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | 655 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
556 | sp:subject | 656 | sp:subject |
557 | - [ sp:varName "contextRef"^^xsd:string | 657 | + [ sp:varName "productionOperationRef"^^xsd:string |
558 | ] | 658 | ] |
559 | ]) | 659 | ]) |
560 | - ] [ rdf:type sp:Optional ; | 660 | + ] [ rdf:type sp:NotExists ; |
561 | sp:elements ([ sp:object | 661 | sp:elements ([ sp:object |
562 | - [ sp:varName "issueDate"^^xsd:string | ||
563 | - ] ; | ||
564 | - sp:predicate <http://www.epim.no/schemas/mprml/1#issueDate> ; | ||
565 | - sp:subject | ||
566 | [ sp:varName "contextRef"^^xsd:string | 662 | [ sp:varName "contextRef"^^xsd:string |
567 | - ] | ||
568 | - ]) | ||
569 | - ] [ rdf:type sp:Optional ; | ||
570 | - sp:elements ([ sp:object | ||
571 | - [ sp:varName "titleRef"^^xsd:string | ||
572 | ] ; | 663 | ] ; |
573 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | 664 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
665 | + sp:subject spin:_this | ||
666 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
667 | + sp:predicate rdf:type ; | ||
574 | sp:subject | 668 | sp:subject |
575 | [ sp:varName "contextRef"^^xsd:string | 669 | [ sp:varName "contextRef"^^xsd:string |
576 | ] | 670 | ] |
577 | ] [ sp:object | 671 | ] [ sp:object |
578 | - [ sp:varName "title"^^xsd:string | 672 | + [ sp:varName "installationRef"^^xsd:string |
579 | ] ; | 673 | ] ; |
580 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 674 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
581 | sp:subject | 675 | sp:subject |
582 | - [ sp:varName "titleRef"^^xsd:string | 676 | + [ sp:varName "contextRef"^^xsd:string |
583 | ] | 677 | ] |
584 | ]) | 678 | ]) |
585 | - ] [ sp:object spin:_this ; | ||
586 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
587 | - sp:subject | ||
588 | - [ sp:varName "productionReport"^^xsd:string | ||
589 | - ] | ||
590 | ] [ rdf:type sp:Bind ; | 679 | ] [ rdf:type sp:Bind ; |
591 | sp:expression | 680 | sp:expression |
592 | [ rdf:type ep-spin-lib:normalizeString ; | 681 | [ rdf:type ep-spin-lib:normalizeString ; |
593 | - sp:arg1 [ sp:varName "kind"^^xsd:string | 682 | + sp:arg1 "noInstallation" |
594 | - ] | ||
595 | ] ; | 683 | ] ; |
596 | sp:variable | 684 | sp:variable |
597 | - [ sp:varName "normalizedKind"^^xsd:string | 685 | + [ sp:varName "normalizedName"^^xsd:string |
598 | ] | 686 | ] |
599 | ] [ rdf:type sp:Bind ; | 687 | ] [ rdf:type sp:Bind ; |
600 | sp:expression | 688 | sp:expression |
601 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | 689 | + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; |
602 | - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | 690 | + sp:arg1 [ sp:varName "normalizedName"^^xsd:string |
691 | + ] ; | ||
692 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
603 | ] | 693 | ] |
604 | ] ; | 694 | ] ; |
605 | sp:variable | 695 | sp:variable |
606 | - [ sp:varName "reportKind"^^xsd:string | 696 | + [ sp:varName "productionReport"^^xsd:string |
607 | ] | 697 | ] |
608 | ]) | 698 | ]) |
609 | ] ; | 699 | ] ; |
610 | spin:rule | 700 | spin:rule |
611 | [ rdf:type sp:Construct ; | 701 | [ rdf:type sp:Construct ; |
612 | - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; | 702 | + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; |
613 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 703 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
614 | sp:predicate rdf:type ; | 704 | sp:predicate rdf:type ; |
615 | sp:subject | 705 | sp:subject |
616 | [ sp:varName "productionReport"^^xsd:string | 706 | [ sp:varName "productionReport"^^xsd:string |
617 | ] | 707 | ] |
708 | + ] [ sp:object _:b5 ; | ||
709 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
710 | + sp:subject | ||
711 | + [ sp:varName "productionReport"^^xsd:string | ||
712 | + ] | ||
713 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
714 | + sp:predicate rdf:type ; | ||
715 | + sp:subject _:b5 | ||
716 | + ] [ sp:object | ||
717 | + [ sp:varName "installation"^^xsd:string | ||
718 | + ] ; | ||
719 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
720 | + sp:subject _:b5 | ||
618 | ] [ sp:object spin:_this ; | 721 | ] [ sp:object spin:_this ; |
619 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 722 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
620 | sp:subject | 723 | sp:subject |
... | @@ -627,24 +730,6 @@ | ... | @@ -627,24 +730,6 @@ |
627 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 730 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
628 | sp:subject spin:_this | 731 | sp:subject spin:_this |
629 | ] [ sp:object | 732 | ] [ sp:object |
630 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
631 | - ] ; | ||
632 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
633 | - sp:subject spin:_this | ||
634 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
635 | - sp:predicate rdf:type ; | ||
636 | - sp:subject | ||
637 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
638 | - ] | ||
639 | - ] [ sp:object | ||
640 | - [ sp:varName "installationRef"^^xsd:string | ||
641 | - ] ; | ||
642 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
643 | - sp:subject | ||
644 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
645 | - ] | ||
646 | - ] [ rdf:type sp:NotExists ; | ||
647 | - sp:elements ([ sp:object | ||
648 | [ sp:varName "contextRef"^^xsd:string | 733 | [ sp:varName "contextRef"^^xsd:string |
649 | ] ; | 734 | ] ; |
650 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 735 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -662,13 +747,12 @@ | ... | @@ -662,13 +747,12 @@ |
662 | [ sp:varName "contextRef"^^xsd:string | 747 | [ sp:varName "contextRef"^^xsd:string |
663 | ] | 748 | ] |
664 | ] [ sp:object | 749 | ] [ sp:object |
665 | - [ sp:varName "name"^^xsd:string | 750 | + [ sp:varName "installationRef"^^xsd:string |
666 | ] ; | 751 | ] ; |
667 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 752 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
668 | sp:subject | 753 | sp:subject |
669 | - [ sp:varName "installationRef"^^xsd:string | 754 | + [ sp:varName "installation"^^xsd:string |
670 | ] | 755 | ] |
671 | - ]) | ||
672 | ] [ rdf:type sp:Bind ; | 756 | ] [ rdf:type sp:Bind ; |
673 | sp:expression | 757 | sp:expression |
674 | [ rdf:type spl:object ; | 758 | [ rdf:type spl:object ; |
... | @@ -694,12 +778,45 @@ | ... | @@ -694,12 +778,45 @@ |
694 | ] ; | 778 | ] ; |
695 | spin:rule | 779 | spin:rule |
696 | [ rdf:type sp:Construct ; | 780 | [ rdf:type sp:Construct ; |
697 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | 781 | + rdfs:comment "STEP 10001z Add the report kind, issue date and title"^^xsd:string ; |
698 | sp:templates ([ sp:object | 782 | sp:templates ([ sp:object |
699 | - [ sp:varName "intervalIdentifier"^^xsd:string | 783 | + [ sp:varName "reportKind"^^xsd:string |
700 | ] ; | 784 | ] ; |
701 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 785 | + sp:predicate rdf:type ; |
702 | - sp:subject spin:_this | 786 | + sp:subject |
787 | + [ sp:varName "productionReport"^^xsd:string | ||
788 | + ] | ||
789 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | ||
790 | + sp:predicate rdfs:subClassOf ; | ||
791 | + sp:subject | ||
792 | + [ sp:varName "reportKind"^^xsd:string | ||
793 | + ] | ||
794 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
795 | + sp:predicate rdf:type ; | ||
796 | + sp:subject | ||
797 | + [ sp:varName "reportKind"^^xsd:string | ||
798 | + ] | ||
799 | + ] [ sp:object | ||
800 | + [ sp:varName "kind"^^xsd:string | ||
801 | + ] ; | ||
802 | + sp:predicate rdfs:label ; | ||
803 | + sp:subject | ||
804 | + [ sp:varName "reportKind"^^xsd:string | ||
805 | + ] | ||
806 | + ] [ sp:object | ||
807 | + [ sp:varName "issueDate"^^xsd:string | ||
808 | + ] ; | ||
809 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-report#issuedAt> ; | ||
810 | + sp:subject | ||
811 | + [ sp:varName "productionReport"^^xsd:string | ||
812 | + ] | ||
813 | + ] [ sp:object | ||
814 | + [ sp:varName "title"^^xsd:string | ||
815 | + ] ; | ||
816 | + sp:predicate rdfs:label ; | ||
817 | + sp:subject | ||
818 | + [ sp:varName "productionReport"^^xsd:string | ||
819 | + ] | ||
703 | ]) ; | 820 | ]) ; |
704 | sp:where ([ sp:object | 821 | sp:where ([ sp:object |
705 | [ sp:varName "contextRef"^^xsd:string | 822 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -711,44 +828,67 @@ | ... | @@ -711,44 +828,67 @@ |
711 | sp:subject | 828 | sp:subject |
712 | [ sp:varName "contextRef"^^xsd:string | 829 | [ sp:varName "contextRef"^^xsd:string |
713 | ] | 830 | ] |
714 | - ] [ sp:object | 831 | + ] [ rdf:type sp:Optional ; |
715 | - [ sp:varName "date"^^xsd:string | 832 | + sp:elements ([ sp:object |
833 | + [ sp:varName "kind"^^xsd:string | ||
716 | ] ; | 834 | ] ; |
717 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 835 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; |
718 | sp:subject | 836 | sp:subject |
719 | [ sp:varName "contextRef"^^xsd:string | 837 | [ sp:varName "contextRef"^^xsd:string |
720 | ] | 838 | ] |
721 | - ] [ rdf:type sp:NotExists ; | 839 | + ]) |
840 | + ] [ rdf:type sp:Optional ; | ||
722 | sp:elements ([ sp:object | 841 | sp:elements ([ sp:object |
723 | - [ sp:varName "dateStart"^^xsd:string | 842 | + [ sp:varName "issueDate"^^xsd:string |
724 | ] ; | 843 | ] ; |
725 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 844 | + sp:predicate <http://www.epim.no/schemas/mprml/1#issueDate> ; |
726 | sp:subject | 845 | sp:subject |
727 | [ sp:varName "contextRef"^^xsd:string | 846 | [ sp:varName "contextRef"^^xsd:string |
728 | ] | 847 | ] |
729 | ]) | 848 | ]) |
730 | - ] [ sp:object | 849 | + ] [ rdf:type sp:Optional ; |
731 | - [ sp:varName "dateEnd"^^xsd:string | 850 | + sp:elements ([ sp:object |
851 | + [ sp:varName "titleRef"^^xsd:string | ||
732 | ] ; | 852 | ] ; |
733 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 853 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; |
734 | sp:subject | 854 | sp:subject |
735 | [ sp:varName "contextRef"^^xsd:string | 855 | [ sp:varName "contextRef"^^xsd:string |
736 | ] | 856 | ] |
857 | + ] [ sp:object | ||
858 | + [ sp:varName "title"^^xsd:string | ||
859 | + ] ; | ||
860 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
861 | + sp:subject | ||
862 | + [ sp:varName "titleRef"^^xsd:string | ||
863 | + ] | ||
864 | + ]) | ||
865 | + ] [ sp:object spin:_this ; | ||
866 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
867 | + sp:subject | ||
868 | + [ sp:varName "productionReport"^^xsd:string | ||
869 | + ] | ||
737 | ] [ rdf:type sp:Bind ; | 870 | ] [ rdf:type sp:Bind ; |
738 | sp:expression | 871 | sp:expression |
739 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 872 | + [ rdf:type ep-spin-lib:normalizeString ; |
740 | - sp:arg1 [ sp:varName "date"^^xsd:string | 873 | + sp:arg1 [ sp:varName "kind"^^xsd:string |
874 | + ] | ||
741 | ] ; | 875 | ] ; |
742 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 876 | + sp:variable |
877 | + [ sp:varName "normalizedKind"^^xsd:string | ||
878 | + ] | ||
879 | + ] [ rdf:type sp:Bind ; | ||
880 | + sp:expression | ||
881 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
882 | + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | ||
743 | ] | 883 | ] |
744 | ] ; | 884 | ] ; |
745 | sp:variable | 885 | sp:variable |
746 | - [ sp:varName "intervalIdentifier"^^xsd:string | 886 | + [ sp:varName "reportKind"^^xsd:string |
747 | ] | 887 | ] |
748 | ]) | 888 | ]) |
749 | ] . | 889 | ] . |
750 | 890 | ||
751 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | 891 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> |
752 | rdf:type owl:Ontology ; | 892 | rdf:type owl:Ontology ; |
753 | - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | 893 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; |
754 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 894 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment