David Leal

ProductionReporrtKind changed to ProductionReportType

...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
13 13
14 <http://www.reportinghub.no/ep/schema/1.0/report> 14 <http://www.reportinghub.no/ep/schema/1.0/report>
15 rdf:type owl:Ontology ; 15 rdf:type owl:Ontology ;
16 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/np/schema/1.0/npd> ; 16 + owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
17 owl:versionInfo "0.1.0"^^xsd:string . 17 owl:versionInfo "0.1.0"^^xsd:string .
18 18
19 <http://www.reportinghub.no/ep/schema/activity#existsThroughout> 19 <http://www.reportinghub.no/ep/schema/activity#existsThroughout>
20 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 20 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
21 rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; 21 rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
22 rdfs:label "exists throughout"^^xsd:string ; 22 rdfs:label "exists throughout"^^xsd:string ;
23 rdfs:range xsd:dateTime . 23 rdfs:range xsd:dateTime .
...@@ -43,7 +43,7 @@ ep-report:DailyProductionReport ...@@ -43,7 +43,7 @@ ep-report:DailyProductionReport
43 rdfs:subClassOf ep-report:ProductionReport . 43 rdfs:subClassOf ep-report:ProductionReport .
44 44
45 ep-report:FinalDailyDrillingReport 45 ep-report:FinalDailyDrillingReport
46 - rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ; 46 + rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
47 rdfs:label "final daily drilling report"^^xsd:string ; 47 rdfs:label "final daily drilling report"^^xsd:string ;
48 rdfs:subClassOf ep-report:DailyDrillingReport . 48 rdfs:subClassOf ep-report:DailyDrillingReport .
49 49
...@@ -62,8 +62,13 @@ ep-report:NonProductivetimeReport ...@@ -62,8 +62,13 @@ ep-report:NonProductivetimeReport
62 rdfs:subClassOf ep-report:Report ; 62 rdfs:subClassOf ep-report:Report ;
63 rdfs:subClassOf 63 rdfs:subClassOf
64 [ rdf:type owl:Restriction ; 64 [ rdf:type owl:Restriction ;
65 + owl:allValuesFrom xsd:dateTime ;
66 + owl:onProperty ep-report:createdAt
67 + ] ;
68 + rdfs:subClassOf
69 + [ rdf:type owl:Restriction ;
65 owl:cardinality "1"^^xsd:nonNegativeInteger ; 70 owl:cardinality "1"^^xsd:nonNegativeInteger ;
66 - owl:onProperty ep-report:reportOn 71 + owl:onProperty ep-report:createdAt
67 ] ; 72 ] ;
68 rdfs:subClassOf 73 rdfs:subClassOf
69 [ rdf:type owl:Restriction ; 74 [ rdf:type owl:Restriction ;
...@@ -73,21 +78,16 @@ ep-report:NonProductivetimeReport ...@@ -73,21 +78,16 @@ ep-report:NonProductivetimeReport
73 rdfs:subClassOf 78 rdfs:subClassOf
74 [ rdf:type owl:Restriction ; 79 [ rdf:type owl:Restriction ;
75 owl:cardinality "1"^^xsd:nonNegativeInteger ; 80 owl:cardinality "1"^^xsd:nonNegativeInteger ;
76 - owl:onProperty ep-report:createdAt 81 + owl:onProperty ep-report:reportOn
77 - ] ;
78 - rdfs:subClassOf
79 - [ rdf:type owl:Restriction ;
80 - owl:allValuesFrom xsd:dateTime ;
81 - owl:onProperty ep-report:createdAt
82 ] . 82 ] .
83 83
84 ep-report:NormalDailyDrillingReport 84 ep-report:NormalDailyDrillingReport
85 - rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ; 85 + rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
86 rdfs:label "normal daily drilling report"^^xsd:string ; 86 rdfs:label "normal daily drilling report"^^xsd:string ;
87 rdfs:subClassOf ep-report:DailyDrillingReport . 87 rdfs:subClassOf ep-report:DailyDrillingReport .
88 88
89 ep-report:PreliminaryDailyDrillingReport 89 ep-report:PreliminaryDailyDrillingReport
90 - rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ; 90 + rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
91 rdfs:label "preliminary daily drilling report"^^xsd:string ; 91 rdfs:label "preliminary daily drilling report"^^xsd:string ;
92 rdfs:subClassOf ep-report:DailyDrillingReport . 92 rdfs:subClassOf ep-report:DailyDrillingReport .
93 93
...@@ -116,9 +116,9 @@ ep-report:ProductionReport ...@@ -116,9 +116,9 @@ ep-report:ProductionReport
116 rdfs:label "Production Report"^^xsd:string ; 116 rdfs:label "Production Report"^^xsd:string ;
117 rdfs:subClassOf ep-report:Report . 117 rdfs:subClassOf ep-report:Report .
118 118
119 -ep-report:ProductionReportKind 119 +ep-report:ProductionReportType
120 rdf:type rdfs:Class ; 120 rdf:type rdfs:Class ;
121 - rdfs:label "production report kind"^^xsd:string ; 121 + rdfs:label "production report type"^^xsd:string ;
122 rdfs:subClassOf owl:Class . 122 rdfs:subClassOf owl:Class .
123 123
124 ep-report:Report 124 ep-report:Report
...@@ -131,8 +131,8 @@ ep-report:ReportAliasIdentifier ...@@ -131,8 +131,8 @@ ep-report:ReportAliasIdentifier
131 rdfs:subClassOf owl:Thing ; 131 rdfs:subClassOf owl:Thing ;
132 rdfs:subClassOf 132 rdfs:subClassOf
133 [ rdf:type owl:Restriction ; 133 [ rdf:type owl:Restriction ;
134 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 134 + owl:minCardinality "1"^^xsd:nonNegativeInteger ;
135 - owl:onProperty ep-report:isAliasFor 135 + owl:onProperty ep-report:aliasName
136 ] ; 136 ] ;
137 rdfs:subClassOf 137 rdfs:subClassOf
138 [ rdf:type owl:Restriction ; 138 [ rdf:type owl:Restriction ;
...@@ -141,62 +141,62 @@ ep-report:ReportAliasIdentifier ...@@ -141,62 +141,62 @@ ep-report:ReportAliasIdentifier
141 ] ; 141 ] ;
142 rdfs:subClassOf 142 rdfs:subClassOf
143 [ rdf:type owl:Restriction ; 143 [ rdf:type owl:Restriction ;
144 - owl:minCardinality "1"^^xsd:nonNegativeInteger ; 144 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
145 - owl:onProperty ep-report:aliasName 145 + owl:onProperty ep-report:isAliasFor
146 ] . 146 ] .
147 147
148 ep-report:ReportForGasYearToDate 148 ep-report:ReportForGasYearToDate
149 - rdf:type ep-report:ReportPeriodType , owl:Class ; 149 + rdf:type owl:Class , ep-report:ReportPeriodType ;
150 rdfs:label "report for gas year to date"^^xsd:string ; 150 rdfs:label "report for gas year to date"^^xsd:string ;
151 rdfs:subClassOf ep-report:Report . 151 rdfs:subClassOf ep-report:Report .
152 152
153 ep-report:ReportForInstant 153 ep-report:ReportForInstant
154 - rdf:type ep-report:ReportPeriodType , owl:Class ; 154 + rdf:type owl:Class , ep-report:ReportPeriodType ;
155 rdfs:label "report for instant"^^xsd:string ; 155 rdfs:label "report for instant"^^xsd:string ;
156 rdfs:subClassOf ep-report:Report . 156 rdfs:subClassOf ep-report:Report .
157 157
158 ep-report:ReportForMonthToDate 158 ep-report:ReportForMonthToDate
159 - rdf:type ep-report:ReportPeriodType , owl:Class ; 159 + rdf:type owl:Class , ep-report:ReportPeriodType ;
160 rdfs:label "report for month to date"^^xsd:string ; 160 rdfs:label "report for month to date"^^xsd:string ;
161 rdfs:subClassOf ep-report:Report . 161 rdfs:subClassOf ep-report:Report .
162 162
163 ep-report:ReportForOneDay 163 ep-report:ReportForOneDay
164 - rdf:type ep-report:ReportPeriodType , owl:Class ; 164 + rdf:type owl:Class , ep-report:ReportPeriodType ;
165 rdfs:label "report for one day"^^xsd:string ; 165 rdfs:label "report for one day"^^xsd:string ;
166 rdfs:subClassOf ep-report:Report . 166 rdfs:subClassOf ep-report:Report .
167 167
168 ep-report:ReportForOneGasDay 168 ep-report:ReportForOneGasDay
169 - rdf:type ep-report:ReportPeriodType , owl:Class ; 169 + rdf:type owl:Class , ep-report:ReportPeriodType ;
170 rdfs:label "report for one gas day"^^xsd:string ; 170 rdfs:label "report for one gas day"^^xsd:string ;
171 rdfs:subClassOf ep-report:Report . 171 rdfs:subClassOf ep-report:Report .
172 172
173 ep-report:ReportForOneGasMonth 173 ep-report:ReportForOneGasMonth
174 - rdf:type ep-report:ReportPeriodType , owl:Class ; 174 + rdf:type owl:Class , ep-report:ReportPeriodType ;
175 rdfs:label "report for one gas month"^^xsd:string ; 175 rdfs:label "report for one gas month"^^xsd:string ;
176 rdfs:subClassOf ep-report:Report . 176 rdfs:subClassOf ep-report:Report .
177 177
178 ep-report:ReportForOneGasYear 178 ep-report:ReportForOneGasYear
179 - rdf:type ep-report:ReportPeriodType , owl:Class ; 179 + rdf:type owl:Class , ep-report:ReportPeriodType ;
180 rdfs:label "report for one gas year"^^xsd:string ; 180 rdfs:label "report for one gas year"^^xsd:string ;
181 rdfs:subClassOf ep-report:Report . 181 rdfs:subClassOf ep-report:Report .
182 182
183 ep-report:ReportForOneMonth 183 ep-report:ReportForOneMonth
184 - rdf:type ep-report:ReportPeriodType , owl:Class ; 184 + rdf:type owl:Class , ep-report:ReportPeriodType ;
185 rdfs:label "report for one month"^^xsd:string ; 185 rdfs:label "report for one month"^^xsd:string ;
186 rdfs:subClassOf ep-report:Report . 186 rdfs:subClassOf ep-report:Report .
187 187
188 ep-report:ReportForOneWeek 188 ep-report:ReportForOneWeek
189 - rdf:type ep-report:ReportPeriodType , owl:Class ; 189 + rdf:type owl:Class , ep-report:ReportPeriodType ;
190 rdfs:label "report for one week"^^xsd:string ; 190 rdfs:label "report for one week"^^xsd:string ;
191 rdfs:subClassOf ep-report:Report . 191 rdfs:subClassOf ep-report:Report .
192 192
193 ep-report:ReportForOneYear 193 ep-report:ReportForOneYear
194 - rdf:type ep-report:ReportPeriodType , owl:Class ; 194 + rdf:type owl:Class , ep-report:ReportPeriodType ;
195 rdfs:label "report for one year"^^xsd:string ; 195 rdfs:label "report for one year"^^xsd:string ;
196 rdfs:subClassOf ep-report:Report . 196 rdfs:subClassOf ep-report:Report .
197 197
198 ep-report:ReportForYearToDate 198 ep-report:ReportForYearToDate
199 - rdf:type owl:Class , ep-report:ReportPeriodType ; 199 + rdf:type ep-report:ReportPeriodType , owl:Class ;
200 rdfs:label "report for year to date"^^xsd:string ; 200 rdfs:label "report for year to date"^^xsd:string ;
201 rdfs:subClassOf ep-report:Report . 201 rdfs:subClassOf ep-report:Report .
202 202
...@@ -210,23 +210,23 @@ ep-report:WeeklyDrillingReport ...@@ -210,23 +210,23 @@ ep-report:WeeklyDrillingReport
210 rdfs:subClassOf ep-report:Report ; 210 rdfs:subClassOf ep-report:Report ;
211 rdfs:subClassOf 211 rdfs:subClassOf
212 [ rdf:type owl:Restriction ; 212 [ rdf:type owl:Restriction ;
213 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 213 + owl:allValuesFrom ep-report:DailyDrillingReport ;
214 - owl:onProperty ep-report:createdAt 214 + owl:onProperty ep-report:reportOn
215 ] ; 215 ] ;
216 rdfs:subClassOf 216 rdfs:subClassOf
217 [ rdf:type owl:Restriction ; 217 [ rdf:type owl:Restriction ;
218 - owl:allValuesFrom xsd:dateTime ; 218 + owl:cardinality "7"^^xsd:nonNegativeInteger ;
219 - owl:onProperty ep-report:createdAt 219 + owl:onProperty ep-report:reportOn
220 ] ; 220 ] ;
221 rdfs:subClassOf 221 rdfs:subClassOf
222 [ rdf:type owl:Restriction ; 222 [ rdf:type owl:Restriction ;
223 - owl:cardinality "7"^^xsd:nonNegativeInteger ; 223 + owl:allValuesFrom xsd:dateTime ;
224 - owl:onProperty ep-report:reportOn 224 + owl:onProperty ep-report:createdAt
225 ] ; 225 ] ;
226 rdfs:subClassOf 226 rdfs:subClassOf
227 [ rdf:type owl:Restriction ; 227 [ rdf:type owl:Restriction ;
228 - owl:allValuesFrom ep-report:DailyDrillingReport ; 228 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
229 - owl:onProperty ep-report:reportOn 229 + owl:onProperty ep-report:createdAt
230 ] . 230 ] .
231 231
232 ep-report:WellTestReport 232 ep-report:WellTestReport
...@@ -243,12 +243,12 @@ ep-report:aliasOwner ...@@ -243,12 +243,12 @@ ep-report:aliasOwner
243 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . 243 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
244 244
245 ep-report:createdAt 245 ep-report:createdAt
246 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 246 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
247 rdfs:domain ep-report:Report ; 247 rdfs:domain ep-report:Report ;
248 rdfs:label "created at"^^xsd:string . 248 rdfs:label "created at"^^xsd:string .
249 249
250 ep-report:dailyDrillingReportNumber 250 ep-report:dailyDrillingReportNumber
251 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 251 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
252 rdfs:domain ep-report:DailyDrillingReport ; 252 rdfs:domain ep-report:DailyDrillingReport ;
253 rdfs:label "daily drilling report number"^^xsd:string . 253 rdfs:label "daily drilling report number"^^xsd:string .
254 254
...@@ -273,7 +273,7 @@ ep-report:disclaimer ...@@ -273,7 +273,7 @@ ep-report:disclaimer
273 rdfs:range xsd:string . 273 rdfs:range xsd:string .
274 274
275 ep-report:hasContent 275 ep-report:hasContent
276 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 276 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
277 rdfs:domain ep-report:Report ; 277 rdfs:domain ep-report:Report ;
278 rdfs:label "has content"^^xsd:string . 278 rdfs:label "has content"^^xsd:string .
279 279
...@@ -282,12 +282,12 @@ ep-report:isAliasFor ...@@ -282,12 +282,12 @@ ep-report:isAliasFor
282 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . 282 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
283 283
284 ep-report:issuedAt 284 ep-report:issuedAt
285 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 285 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
286 rdfs:domain ep-report:Report ; 286 rdfs:domain ep-report:Report ;
287 rdfs:label "issued at"^^xsd:string . 287 rdfs:label "issued at"^^xsd:string .
288 288
289 ep-report:nameAsDatumObject 289 ep-report:nameAsDatumObject
290 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 290 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
291 rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; 291 rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
292 rdfs:label "name as datum object"^^xsd:string . 292 rdfs:label "name as datum object"^^xsd:string .
293 293
...@@ -297,13 +297,13 @@ ep-report:reportOn ...@@ -297,13 +297,13 @@ ep-report:reportOn
297 rdfs:label "report on"^^xsd:string . 297 rdfs:label "report on"^^xsd:string .
298 298
299 ep-report:reportSubmittedBy 299 ep-report:reportSubmittedBy
300 - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; 300 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
301 rdfs:domain ep-report:Report ; 301 rdfs:domain ep-report:Report ;
302 rdfs:label "report submitted by"^^xsd:string ; 302 rdfs:label "report submitted by"^^xsd:string ;
303 rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . 303 rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
304 304
305 ep-report:reportSubmittedFrom 305 ep-report:reportSubmittedFrom
306 - rdf:type owl:ObjectProperty , owl:FunctionalProperty ; 306 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
307 rdfs:domain ep-report:Report ; 307 rdfs:domain ep-report:Report ;
308 rdfs:label "report submitted from"^^xsd:string ; 308 rdfs:label "report submitted from"^^xsd:string ;
309 rdfs:range <http://www.reportinghub.no/ep/schema/facility#Facility> . 309 rdfs:range <http://www.reportinghub.no/ep/schema/facility#Facility> .
......
...@@ -22,20 +22,26 @@ ...@@ -22,20 +22,26 @@
22 <http://www.epim.no/schemas/mprml/1#Cs_datedComment> 22 <http://www.epim.no/schemas/mprml/1#Cs_datedComment>
23 spin:rule 23 spin:rule
24 [ rdf:type sp:Construct ; 24 [ rdf:type sp:Construct ;
25 - rdfs:comment "STEP 90202 Set the commentation role (whole life person set)"^^xsd:string ; 25 + rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ;
26 sp:templates ([ sp:object _:b1 ; 26 sp:templates ([ sp:object _:b1 ;
27 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 27 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
28 sp:subject 28 sp:subject
29 - [ sp:varName "commentator"^^xsd:string 29 + [ sp:varName "commentingActivity"^^xsd:string
30 ] 30 ]
31 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; 31 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
32 sp:predicate rdf:type ; 32 sp:predicate rdf:type ;
33 sp:subject _:b1 33 sp:subject _:b1
34 + ] [ sp:object _:b2 ;
35 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
36 + sp:subject _:b1
37 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ;
38 + sp:predicate rdf:type ;
39 + sp:subject _:b2
34 ] [ sp:object 40 ] [ sp:object
35 [ sp:varName "personRoleType"^^xsd:string 41 [ sp:varName "personRoleType"^^xsd:string
36 ] ; 42 ] ;
37 sp:predicate rdf:type ; 43 sp:predicate rdf:type ;
38 - sp:subject _:b1 44 + sp:subject _:b2
39 ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ; 45 ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ;
40 sp:predicate rdf:type ; 46 sp:predicate rdf:type ;
41 sp:subject 47 sp:subject
...@@ -49,7 +55,7 @@ ...@@ -49,7 +55,7 @@
49 ] [ sp:object 55 ] [ sp:object
50 [ sp:varName "role"^^xsd:string 56 [ sp:varName "role"^^xsd:string
51 ] ; 57 ] ;
52 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 58 + sp:predicate rdfs:label ;
53 sp:subject 59 sp:subject
54 [ sp:varName "personRoleType"^^xsd:string 60 [ sp:varName "personRoleType"^^xsd:string
55 ] 61 ]
...@@ -59,13 +65,15 @@ ...@@ -59,13 +65,15 @@
59 sp:subject 65 sp:subject
60 [ sp:varName "commentingActivity"^^xsd:string 66 [ sp:varName "commentingActivity"^^xsd:string
61 ] 67 ]
62 - ] [ sp:object 68 + ] [ rdf:type sp:NotExists ;
69 + sp:elements ([ sp:object
63 [ sp:varName "commentator"^^xsd:string 70 [ sp:varName "commentator"^^xsd:string
64 ] ; 71 ] ;
65 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; 72 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
66 sp:subject 73 sp:subject
67 [ sp:varName "commentingActivity"^^xsd:string 74 [ sp:varName "commentingActivity"^^xsd:string
68 ] 75 ]
76 + ])
69 ] [ sp:object 77 ] [ sp:object
70 [ sp:varName "role"^^xsd:string 78 [ sp:varName "role"^^xsd:string
71 ] ; 79 ] ;
...@@ -84,31 +92,36 @@ ...@@ -84,31 +92,36 @@
84 ] ; 92 ] ;
85 spin:rule 93 spin:rule
86 [ rdf:type sp:Construct ; 94 [ rdf:type sp:Construct ;
87 - rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ; 95 + rdfs:comment "STEP 90202 Set the commentation role (whole life person set)"^^xsd:string ;
88 - sp:templates ([ sp:object _:b2 ; 96 + sp:templates ([ sp:object _:b3 ;
89 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; 97 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
90 sp:subject 98 sp:subject
91 - [ sp:varName "commentingActivity"^^xsd:string 99 + [ sp:varName "commentator"^^xsd:string
92 ] 100 ]
93 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; 101 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ;
94 sp:predicate rdf:type ; 102 sp:predicate rdf:type ;
95 - sp:subject _:b2 103 + sp:subject _:b3
96 ] [ sp:object 104 ] [ sp:object
97 - [ sp:varName "person"^^xsd:string 105 + [ sp:varName "personRoleType"^^xsd:string
98 ] ; 106 ] ;
99 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 107 + sp:predicate rdf:type ;
100 - sp:subject _:b2 108 + sp:subject _:b3
101 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#WholeLifePerson> ; 109 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ;
102 sp:predicate rdf:type ; 110 sp:predicate rdf:type ;
103 sp:subject 111 sp:subject
104 - [ sp:varName "person"^^xsd:string 112 + [ sp:varName "personRoleType"^^xsd:string
113 + ]
114 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ;
115 + sp:predicate rdfs:subClassOf ;
116 + sp:subject
117 + [ sp:varName "personRoleType"^^xsd:string
105 ] 118 ]
106 ] [ sp:object 119 ] [ sp:object
107 - [ sp:varName "who"^^xsd:string 120 + [ sp:varName "role"^^xsd:string
108 ] ; 121 ] ;
109 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 122 + sp:predicate rdfs:label ;
110 sp:subject 123 sp:subject
111 - [ sp:varName "person"^^xsd:string 124 + [ sp:varName "personRoleType"^^xsd:string
112 ] 125 ]
113 ]) ; 126 ]) ;
114 sp:where ([ sp:object spin:_this ; 127 sp:where ([ sp:object spin:_this ;
...@@ -117,59 +130,55 @@ ...@@ -117,59 +130,55 @@
117 [ sp:varName "commentingActivity"^^xsd:string 130 [ sp:varName "commentingActivity"^^xsd:string
118 ] 131 ]
119 ] [ sp:object 132 ] [ sp:object
120 - [ sp:varName "who"^^xsd:string 133 + [ sp:varName "commentator"^^xsd:string
121 ] ; 134 ] ;
122 - sp:predicate <http://www.epim.no/schemas/mprml/1#who> ; 135 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
136 + sp:subject
137 + [ sp:varName "commentingActivity"^^xsd:string
138 + ]
139 + ] [ sp:object
140 + [ sp:varName "role"^^xsd:string
141 + ] ;
142 + sp:predicate <http://www.epim.no/schemas/mprml/1#role> ;
123 sp:subject spin:_this 143 sp:subject spin:_this
124 ] [ rdf:type sp:Bind ; 144 ] [ rdf:type sp:Bind ;
125 sp:expression 145 sp:expression
126 - [ rdf:type ep-dpr-spin-lib:buildPersonURI ; 146 + [ rdf:type ep-mpr-spin-lib:buildPersonRoleTypeURI ;
127 - sp:arg1 [ sp:varName "who"^^xsd:string 147 + sp:arg1 [ sp:varName "role"^^xsd:string
128 ] 148 ]
129 ] ; 149 ] ;
130 sp:variable 150 sp:variable
131 - [ sp:varName "person"^^xsd:string 151 + [ sp:varName "personRoleType"^^xsd:string
132 ] 152 ]
133 ]) 153 ])
134 ] ; 154 ] ;
135 spin:rule 155 spin:rule
136 [ rdf:type sp:Construct ; 156 [ rdf:type sp:Construct ;
137 - rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ; 157 + rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ;
138 - sp:templates ([ sp:object _:b3 ; 158 + sp:templates ([ sp:object _:b4 ;
139 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; 159 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
140 sp:subject 160 sp:subject
141 [ sp:varName "commentingActivity"^^xsd:string 161 [ sp:varName "commentingActivity"^^xsd:string
142 ] 162 ]
143 ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; 163 ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
144 sp:predicate rdf:type ; 164 sp:predicate rdf:type ;
145 - sp:subject _:b3
146 - ] [ sp:object _:b4 ;
147 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
148 - sp:subject _:b3
149 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ;
150 - sp:predicate rdf:type ;
151 sp:subject _:b4 165 sp:subject _:b4
152 ] [ sp:object 166 ] [ sp:object
153 - [ sp:varName "personRoleType"^^xsd:string 167 + [ sp:varName "person"^^xsd:string
154 ] ; 168 ] ;
155 - sp:predicate rdf:type ; 169 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
156 sp:subject _:b4 170 sp:subject _:b4
157 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ; 171 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#WholeLifePerson> ;
158 sp:predicate rdf:type ; 172 sp:predicate rdf:type ;
159 sp:subject 173 sp:subject
160 - [ sp:varName "personRoleType"^^xsd:string 174 + [ sp:varName "person"^^xsd:string
161 - ]
162 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ;
163 - sp:predicate rdfs:subClassOf ;
164 - sp:subject
165 - [ sp:varName "personRoleType"^^xsd:string
166 ] 175 ]
167 ] [ sp:object 176 ] [ sp:object
168 - [ sp:varName "role"^^xsd:string 177 + [ sp:varName "who"^^xsd:string
169 ] ; 178 ] ;
170 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 179 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
171 sp:subject 180 sp:subject
172 - [ sp:varName "personRoleType"^^xsd:string 181 + [ sp:varName "person"^^xsd:string
173 ] 182 ]
174 ]) ; 183 ]) ;
175 sp:where ([ sp:object spin:_this ; 184 sp:where ([ sp:object spin:_this ;
...@@ -177,28 +186,19 @@ ...@@ -177,28 +186,19 @@
177 sp:subject 186 sp:subject
178 [ sp:varName "commentingActivity"^^xsd:string 187 [ sp:varName "commentingActivity"^^xsd:string
179 ] 188 ]
180 - ] [ rdf:type sp:NotExists ;
181 - sp:elements ([ sp:object
182 - [ sp:varName "commentator"^^xsd:string
183 - ] ;
184 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
185 - sp:subject
186 - [ sp:varName "commentingActivity"^^xsd:string
187 - ]
188 - ])
189 ] [ sp:object 189 ] [ sp:object
190 - [ sp:varName "role"^^xsd:string 190 + [ sp:varName "who"^^xsd:string
191 ] ; 191 ] ;
192 - sp:predicate <http://www.epim.no/schemas/mprml/1#role> ; 192 + sp:predicate <http://www.epim.no/schemas/mprml/1#who> ;
193 sp:subject spin:_this 193 sp:subject spin:_this
194 ] [ rdf:type sp:Bind ; 194 ] [ rdf:type sp:Bind ;
195 sp:expression 195 sp:expression
196 - [ rdf:type ep-mpr-spin-lib:buildPersonRoleTypeURI ; 196 + [ rdf:type ep-dpr-spin-lib:buildPersonURI ;
197 - sp:arg1 [ sp:varName "role"^^xsd:string 197 + sp:arg1 [ sp:varName "who"^^xsd:string
198 ] 198 ]
199 ] ; 199 ] ;
200 sp:variable 200 sp:variable
201 - [ sp:varName "personRoleType"^^xsd:string 201 + [ sp:varName "person"^^xsd:string
202 ] 202 ]
203 ]) 203 ])
204 ] ; 204 ] ;
......
...@@ -22,32 +22,30 @@ ...@@ -22,32 +22,30 @@
22 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 22 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
23 spin:rule 23 spin:rule
24 [ rdf:type sp:Construct ; 24 [ rdf:type sp:Construct ;
25 - rdfs:comment "STEP 20040 Set the production facility - supplied"^^xsd:string ; 25 + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
26 sp:templates ([ sp:object 26 sp:templates ([ sp:object
27 - [ sp:varName "productionFacility"^^xsd:string 27 + [ sp:varName "reportKind"^^xsd:string
28 ] ; 28 ] ;
29 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 29 + sp:predicate rdf:type ;
30 sp:subject 30 sp:subject
31 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 31 + [ sp:varName "productVolumeReport"^^xsd:string
32 ] 32 ]
33 - ] [ sp:object 33 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportType> ;
34 - [ sp:varName "productionFacility"^^xsd:string 34 + sp:predicate rdf:type ;
35 - ] ;
36 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
37 sp:subject 35 sp:subject
38 - [ sp:varName "productionFacilityToDate"^^xsd:string 36 + [ sp:varName "reportKind"^^xsd:string
39 ] 37 ]
40 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; 38 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
41 - sp:predicate rdf:type ; 39 + sp:predicate rdfs:subClassOf ;
42 sp:subject 40 sp:subject
43 - [ sp:varName "productionFacility"^^xsd:string 41 + [ sp:varName "reportKind"^^xsd:string
44 ] 42 ]
45 ] [ sp:object 43 ] [ sp:object
46 - [ sp:varName "normalizedProductionFacilityName"^^xsd:string 44 + [ sp:varName "kind"^^xsd:string
47 ] ; 45 ] ;
48 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 46 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
49 sp:subject 47 sp:subject
50 - [ sp:varName "productVolumeRef"^^xsd:string 48 + [ sp:varName "reportKind"^^xsd:string
51 ] 49 ]
52 ]) ; 50 ]) ;
53 sp:where ([ sp:object 51 sp:where ([ sp:object
...@@ -61,110 +59,93 @@ ...@@ -61,110 +59,93 @@
61 [ sp:varName "productVolumeRef"^^xsd:string 59 [ sp:varName "productVolumeRef"^^xsd:string
62 ] 60 ]
63 ] [ sp:object 61 ] [ sp:object
64 - [ sp:varName "installationRef"^^xsd:string
65 - ] ;
66 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
67 - sp:subject
68 [ sp:varName "productVolumeRef"^^xsd:string 62 [ sp:varName "productVolumeRef"^^xsd:string
69 - ]
70 - ] [ sp:object
71 - [ sp:varName "installationRef"^^xsd:string
72 ] ; 63 ] ;
73 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 64 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
74 sp:subject 65 sp:subject
75 - [ sp:varName "productionFacility"^^xsd:string 66 + [ sp:varName "productVolumeReport"^^xsd:string
76 ] 67 ]
77 - ] [ sp:object 68 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
78 - [ sp:varName "productVolumeRef"^^xsd:string 69 + sp:predicate rdf:type ;
79 - ] ;
80 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
81 sp:subject 70 sp:subject
82 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 71 + [ sp:varName "productVolumeReport"^^xsd:string
83 ] 72 ]
84 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 73 + ] [ sp:object
85 - sp:predicate rdf:type ; 74 + [ sp:varName "nameRef"^^xsd:string
75 + ] ;
76 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
86 sp:subject 77 sp:subject
87 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 78 + [ sp:varName "productVolumeRef"^^xsd:string
88 ] 79 ]
89 ] [ sp:object 80 ] [ sp:object
90 - [ sp:varName "productionFacilityToDate"^^xsd:string 81 + [ sp:varName "name"^^xsd:string
91 ] ; 82 ] ;
92 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 83 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
93 sp:subject 84 sp:subject
94 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 85 + [ sp:varName "nameRef"^^xsd:string
95 ] 86 ]
96 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 87 + ] [ sp:object
97 - sp:predicate rdf:type ; 88 + [ sp:varName "kind"^^xsd:string
89 + ] ;
90 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
98 sp:subject 91 sp:subject
99 - [ sp:varName "productionFacilityToDate"^^xsd:string 92 + [ sp:varName "productVolumeRef"^^xsd:string
100 ] 93 ]
101 ] [ rdf:type sp:Bind ; 94 ] [ rdf:type sp:Bind ;
102 sp:expression 95 sp:expression
103 - [ rdf:type spl:object ; 96 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
104 - sp:arg1 [ sp:varName "installationRef"^^xsd:string 97 + sp:arg1 [ sp:varName "kind"^^xsd:string
105 - ] ; 98 + ]
106 - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
107 ] ; 99 ] ;
108 sp:variable 100 sp:variable
109 - [ sp:varName "normalizedProductionFacilityName"^^xsd:string 101 + [ sp:varName "reportKind"^^xsd:string
110 ] 102 ]
111 ]) 103 ])
112 ] ; 104 ] ;
113 spin:rule 105 spin:rule
114 [ rdf:type sp:Construct ; 106 [ rdf:type sp:Construct ;
115 - rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ; 107 + rdfs:comment "STEP 20041 Set the production facility - taken from context"^^xsd:string ;
116 sp:templates ([ sp:object 108 sp:templates ([ sp:object
117 - [ sp:varName "dateEnd"^^xsd:string 109 + [ sp:varName "productionFacility"^^xsd:string
118 ] ; 110 ] ;
119 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 111 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
120 sp:subject 112 sp:subject
121 - [ sp:varName "productionFlowNetwork"^^xsd:string 113 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
122 ] 114 ]
123 ] [ sp:object 115 ] [ sp:object
124 - [ sp:varName "dateEnd"^^xsd:string 116 + [ sp:varName "productionFacility"^^xsd:string
125 ] ; 117 ] ;
126 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 118 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
127 sp:subject 119 sp:subject
128 - [ sp:varName "productionFlowNetworkToDate"^^xsd:string 120 + [ sp:varName "productionFacilityToDate"^^xsd:string
129 ] 121 ]
130 ] [ sp:object 122 ] [ sp:object
131 - [ sp:varName "dateEnd"^^xsd:string 123 + [ sp:varName "normalizedProductionFacilityName"^^xsd:string
132 ] ; 124 ] ;
133 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 125 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
134 sp:subject 126 sp:subject
135 - [ sp:varName "productionInventoryCollection"^^xsd:string 127 + [ sp:varName "productVolumeRef"^^xsd:string
136 ] 128 ]
137 - ] [ sp:object 129 + ]) ;
138 - [ sp:varName "dateEnd"^^xsd:string 130 + sp:where ([ sp:object spin:_this ;
139 - ] ; 131 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
140 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
141 sp:subject 132 sp:subject
142 - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string 133 + [ sp:varName "productionFacility"^^xsd:string
143 ] 134 ]
144 - ] [ sp:object 135 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
145 - [ sp:varName "dateEnd"^^xsd:string 136 + sp:predicate rdf:type ;
146 - ] ;
147 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
148 sp:subject 137 sp:subject
149 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 138 + [ sp:varName "productionFacility"^^xsd:string
150 ] 139 ]
151 ] [ sp:object 140 ] [ sp:object
152 - [ sp:varName "dateEnd"^^xsd:string 141 + [ sp:varName "normalizedProductionFacilityName"^^xsd:string
153 - ] ;
154 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
155 - sp:subject
156 - [ sp:varName "productionFacilityToDate"^^xsd:string
157 - ]
158 - ]) ;
159 - sp:where ([ sp:object
160 - [ sp:varName "productVolumeRef"^^xsd:string
161 ] ; 142 ] ;
162 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 143 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
163 sp:subject spin:_this 144 sp:subject spin:_this
164 ] [ sp:object 145 ] [ sp:object
165 - [ sp:varName "dateEnd"^^xsd:string 146 + [ sp:varName "productVolumeRef"^^xsd:string
166 ] ; 147 ] ;
167 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; 148 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
168 sp:subject spin:_this 149 sp:subject spin:_this
169 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 150 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
170 sp:predicate rdf:type ; 151 sp:predicate rdf:type ;
...@@ -173,18 +154,9 @@ ...@@ -173,18 +154,9 @@
173 ] 154 ]
174 ] [ rdf:type sp:NotExists ; 155 ] [ rdf:type sp:NotExists ;
175 sp:elements ([ sp:object 156 sp:elements ([ sp:object
176 - [ sp:varName "dateEndx"^^xsd:string 157 + [ sp:varName "installationRefx"^^xsd:string
177 - ] ;
178 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
179 - sp:subject
180 - [ sp:varName "productVolumeRef"^^xsd:string
181 - ]
182 - ])
183 - ] [ rdf:type sp:NotExists ;
184 - sp:elements ([ sp:object
185 - [ sp:varName "dTimEndx"^^xsd:string
186 ] ; 158 ] ;
187 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 159 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
188 sp:subject 160 sp:subject
189 [ sp:varName "productVolumeRef"^^xsd:string 161 [ sp:varName "productVolumeRef"^^xsd:string
190 ] 162 ]
...@@ -194,54 +166,6 @@ ...@@ -194,54 +166,6 @@
194 ] ; 166 ] ;
195 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 167 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
196 sp:subject 168 sp:subject
197 - [ sp:varName "productionFlowNetwork"^^xsd:string
198 - ]
199 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
200 - sp:predicate rdf:type ;
201 - sp:subject
202 - [ sp:varName "productionFlowNetwork"^^xsd:string
203 - ]
204 - ] [ sp:object
205 - [ sp:varName "productionFlowNetworkToDate"^^xsd:string
206 - ] ;
207 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
208 - sp:subject
209 - [ sp:varName "productionFlowNetwork"^^xsd:string
210 - ]
211 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
212 - sp:predicate rdf:type ;
213 - sp:subject
214 - [ sp:varName "productionFlowNetworkToDate"^^xsd:string
215 - ]
216 - ] [ sp:object
217 - [ sp:varName "productVolumeRef"^^xsd:string
218 - ] ;
219 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
220 - sp:subject
221 - [ sp:varName "productionInventoryCollection"^^xsd:string
222 - ]
223 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
224 - sp:predicate rdf:type ;
225 - sp:subject
226 - [ sp:varName "productionInventoryCollection"^^xsd:string
227 - ]
228 - ] [ sp:object
229 - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
230 - ] ;
231 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
232 - sp:subject
233 - [ sp:varName "productionInventoryCollection"^^xsd:string
234 - ]
235 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
236 - sp:predicate rdf:type ;
237 - sp:subject
238 - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
239 - ]
240 - ] [ sp:object
241 - [ sp:varName "productVolumeRef"^^xsd:string
242 - ] ;
243 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
244 - sp:subject
245 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 169 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
246 ] 170 ]
247 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 171 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
...@@ -321,6 +245,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -321,6 +245,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
321 ] ; 245 ] ;
322 spin:rule 246 spin:rule
323 [ rdf:type sp:Construct ; 247 [ rdf:type sp:Construct ;
248 + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ;
249 + sp:templates ([ sp:object
250 + [ sp:varName "contextFacility"^^xsd:string
251 + ] ;
252 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
253 + sp:subject
254 + [ sp:varName "productionFacility"^^xsd:string
255 + ]
256 + ]) ;
257 + sp:where ([ sp:object
258 + [ sp:varName "productVolumeRef"^^xsd:string
259 + ] ;
260 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
261 + sp:subject spin:_this
262 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
263 + sp:predicate rdf:type ;
264 + sp:subject
265 + [ sp:varName "productVolumeRef"^^xsd:string
266 + ]
267 + ] [ sp:object
268 + [ sp:varName "installationRef"^^xsd:string
269 + ] ;
270 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
271 + sp:subject
272 + [ sp:varName "productVolumeRef"^^xsd:string
273 + ]
274 + ] [ sp:object
275 + [ sp:varName "installationRef"^^xsd:string
276 + ] ;
277 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
278 + sp:subject
279 + [ sp:varName "productionFacility"^^xsd:string
280 + ]
281 + ] [ sp:object
282 + [ sp:varName "contextFacilityRef"^^xsd:string
283 + ] ;
284 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
285 + sp:subject
286 + [ sp:varName "productVolumeRef"^^xsd:string
287 + ]
288 + ] [ sp:object
289 + [ sp:varName "contextFacilityRef"^^xsd:string
290 + ] ;
291 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
292 + sp:subject
293 + [ sp:varName "contextFacility"^^xsd:string
294 + ]
295 + ])
296 + ] ;
297 + spin:rule
298 + [ rdf:type sp:Construct ;
324 rdfs:comment "STEP 20012 Create the period ProductionInventoryCollection and the ProductionInventoryCollectionToDate."^^xsd:string ; 299 rdfs:comment "STEP 20012 Create the period ProductionInventoryCollection and the ProductionInventoryCollectionToDate."^^xsd:string ;
325 sp:templates ([ sp:object _:b2 ; 300 sp:templates ([ sp:object _:b2 ;
326 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 301 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
...@@ -378,79 +353,244 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -378,79 +353,244 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
378 [ sp:varName "productVolumeRef"^^xsd:string 353 [ sp:varName "productVolumeRef"^^xsd:string
379 ] 354 ]
380 ] [ sp:object 355 ] [ sp:object
381 - [ sp:varName "productVolumeRef"^^xsd:string 356 + [ sp:varName "productVolumeRef"^^xsd:string
357 + ] ;
358 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
359 + sp:subject
360 + [ sp:varName "productVolumeReport"^^xsd:string
361 + ]
362 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
363 + sp:predicate rdf:type ;
364 + sp:subject
365 + [ sp:varName "productVolumeReport"^^xsd:string
366 + ]
367 + ] [ sp:object
368 + [ sp:varName "productVolumeRef"^^xsd:string
369 + ] ;
370 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
371 + sp:subject
372 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
373 + ]
374 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
375 + sp:predicate rdf:type ;
376 + sp:subject
377 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
378 + ]
379 + ] [ sp:object
380 + [ sp:varName "productionFacilityToDate"^^xsd:string
381 + ] ;
382 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
383 + sp:subject
384 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
385 + ]
386 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
387 + sp:predicate rdf:type ;
388 + sp:subject
389 + [ sp:varName "productionFacilityToDate"^^xsd:string
390 + ]
391 + ] [ rdf:type sp:Optional ;
392 + sp:elements ([ sp:object
393 + [ sp:varName "periodKindRef"^^xsd:string
394 + ] ;
395 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
396 + sp:subject
397 + [ sp:varName "productVolumeRef"^^xsd:string
398 + ]
399 + ])
400 + ] [ rdf:type sp:Exists ;
401 + sp:elements ([ sp:object
402 + [ sp:varName "facilityRef"^^xsd:string
403 + ] ;
404 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
405 + sp:subject
406 + [ sp:varName "productVolumeRef"^^xsd:string
407 + ]
408 + ] [ sp:object
409 + [ sp:varName "flowRef"^^xsd:string
410 + ] ;
411 + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
412 + sp:subject
413 + [ sp:varName "facilityRef"^^xsd:string
414 + ]
415 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
416 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
417 + sp:subject
418 + [ sp:varName "flowRef"^^xsd:string
419 + ]
420 + ])
421 + ] [ rdf:type sp:Bind ;
422 + sp:expression
423 + [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ;
424 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
425 + ]
426 + ] ;
427 + sp:variable
428 + [ sp:varName "temporalPartDurationType"^^xsd:string
429 + ]
430 + ])
431 + ] ;
432 + spin:rule
433 + [ rdf:type sp:Construct ;
434 + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
435 + sp:templates ([ sp:object
436 + [ sp:varName "dTimStart"^^xsd:string
437 + ] ;
438 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
439 + sp:subject
440 + [ sp:varName "productionFlowNetwork"^^xsd:string
441 + ]
442 + ] [ sp:object
443 + [ sp:varName "dTimEnd"^^xsd:string
444 + ] ;
445 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
446 + sp:subject
447 + [ sp:varName "productionFlowNetwork"^^xsd:string
448 + ]
449 + ] [ sp:object
450 + [ sp:varName "dTimEnd"^^xsd:string
451 + ] ;
452 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
453 + sp:subject
454 + [ sp:varName "productionFlowNetworkToDate"^^xsd:string
455 + ]
456 + ] [ sp:object
457 + [ sp:varName "dTimStart"^^xsd:string
458 + ] ;
459 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
460 + sp:subject
461 + [ sp:varName "productionInventoryCollection"^^xsd:string
462 + ]
463 + ] [ sp:object
464 + [ sp:varName "dTimEnd"^^xsd:string
465 + ] ;
466 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
467 + sp:subject
468 + [ sp:varName "productionInventoryCollection"^^xsd:string
469 + ]
470 + ] [ sp:object
471 + [ sp:varName "dTimEnd"^^xsd:string
472 + ] ;
473 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
474 + sp:subject
475 + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
476 + ]
477 + ] [ sp:object
478 + [ sp:varName "dTimStart"^^xsd:string
479 + ] ;
480 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
481 + sp:subject
482 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
483 + ]
484 + ] [ sp:object
485 + [ sp:varName "dTimEnd"^^xsd:string
486 + ] ;
487 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
488 + sp:subject
489 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
490 + ]
491 + ] [ sp:object
492 + [ sp:varName "dTimEnd"^^xsd:string
493 + ] ;
494 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
495 + sp:subject
496 + [ sp:varName "productionFacilityToDate"^^xsd:string
497 + ]
498 + ]) ;
499 + sp:where ([ sp:object
500 + [ sp:varName "productVolumeRef"^^xsd:string
501 + ] ;
502 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
503 + sp:subject spin:_this
504 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
505 + sp:predicate rdf:type ;
506 + sp:subject
507 + [ sp:varName "productVolumeRef"^^xsd:string
508 + ]
509 + ] [ sp:object
510 + [ sp:varName "dTimStart"^^xsd:string
382 ] ; 511 ] ;
383 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 512 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
384 sp:subject 513 sp:subject
385 - [ sp:varName "productVolumeReport"^^xsd:string 514 + [ sp:varName "productVolumeRef"^^xsd:string
386 ] 515 ]
387 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; 516 + ] [ sp:object
388 - sp:predicate rdf:type ; 517 + [ sp:varName "dTimEnd"^^xsd:string
518 + ] ;
519 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
389 sp:subject 520 sp:subject
390 - [ sp:varName "productVolumeReport"^^xsd:string 521 + [ sp:varName "productVolumeRef"^^xsd:string
391 ] 522 ]
392 ] [ sp:object 523 ] [ sp:object
393 [ sp:varName "productVolumeRef"^^xsd:string 524 [ sp:varName "productVolumeRef"^^xsd:string
394 ] ; 525 ] ;
395 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 526 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
396 sp:subject 527 sp:subject
397 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 528 + [ sp:varName "productionFlowNetwork"^^xsd:string
398 ] 529 ]
399 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 530 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
400 sp:predicate rdf:type ; 531 sp:predicate rdf:type ;
401 sp:subject 532 sp:subject
402 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 533 + [ sp:varName "productionFlowNetwork"^^xsd:string
403 ] 534 ]
404 ] [ sp:object 535 ] [ sp:object
405 - [ sp:varName "productionFacilityToDate"^^xsd:string 536 + [ sp:varName "productionFlowNetworkToDate"^^xsd:string
406 ] ; 537 ] ;
407 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 538 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
408 sp:subject 539 sp:subject
409 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 540 + [ sp:varName "productionFlowNetwork"^^xsd:string
410 ] 541 ]
411 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 542 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
412 sp:predicate rdf:type ; 543 sp:predicate rdf:type ;
413 sp:subject 544 sp:subject
414 - [ sp:varName "productionFacilityToDate"^^xsd:string 545 + [ sp:varName "productionFlowNetworkToDate"^^xsd:string
415 ] 546 ]
416 - ] [ rdf:type sp:Optional ; 547 + ] [ sp:object
417 - sp:elements ([ sp:object 548 + [ sp:varName "productVolumeRef"^^xsd:string
418 - [ sp:varName "periodKindRef"^^xsd:string
419 ] ; 549 ] ;
420 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; 550 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
421 sp:subject 551 sp:subject
422 - [ sp:varName "productVolumeRef"^^xsd:string 552 + [ sp:varName "productionInventoryCollection"^^xsd:string
423 ] 553 ]
424 - ]) 554 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
425 - ] [ rdf:type sp:Exists ; 555 + sp:predicate rdf:type ;
426 - sp:elements ([ sp:object
427 - [ sp:varName "facilityRef"^^xsd:string
428 - ] ;
429 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
430 sp:subject 556 sp:subject
431 - [ sp:varName "productVolumeRef"^^xsd:string 557 + [ sp:varName "productionInventoryCollection"^^xsd:string
432 ] 558 ]
433 ] [ sp:object 559 ] [ sp:object
434 - [ sp:varName "flowRef"^^xsd:string 560 + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
435 ] ; 561 ] ;
436 - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; 562 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
437 sp:subject 563 sp:subject
438 - [ sp:varName "facilityRef"^^xsd:string 564 + [ sp:varName "productionInventoryCollection"^^xsd:string
439 ] 565 ]
440 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; 566 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
441 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 567 + sp:predicate rdf:type ;
442 sp:subject 568 sp:subject
443 - [ sp:varName "flowRef"^^xsd:string 569 + [ sp:varName "productionInventoryCollecctionToDate"^^xsd:string
444 ] 570 ]
445 - ]) 571 + ] [ sp:object
446 - ] [ rdf:type sp:Bind ; 572 + [ sp:varName "productVolumeRef"^^xsd:string
447 - sp:expression 573 + ] ;
448 - [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ; 574 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
449 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string 575 + sp:subject
576 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
577 + ]
578 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
579 + sp:predicate rdf:type ;
580 + sp:subject
581 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
450 ] 582 ]
583 + ] [ sp:object
584 + [ sp:varName "productionFacilityToDate"^^xsd:string
451 ] ; 585 ] ;
452 - sp:variable 586 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
453 - [ sp:varName "temporalPartDurationType"^^xsd:string 587 + sp:subject
588 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
589 + ]
590 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
591 + sp:predicate rdf:type ;
592 + sp:subject
593 + [ sp:varName "productionFacilityToDate"^^xsd:string
454 ] 594 ]
455 ]) 595 ])
456 ] ; 596 ] ;
...@@ -737,27 +877,32 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -737,27 +877,32 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
737 ] ; 877 ] ;
738 spin:rule 878 spin:rule
739 [ rdf:type sp:Construct ; 879 [ rdf:type sp:Construct ;
740 - rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ; 880 + rdfs:comment "STEP 20040 Set the production facility - supplied"^^xsd:string ;
741 sp:templates ([ sp:object 881 sp:templates ([ sp:object
742 - [ sp:varName "dateStart"^^xsd:string 882 + [ sp:varName "productionFacility"^^xsd:string
743 ] ; 883 ] ;
744 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 884 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
745 sp:subject 885 sp:subject
746 - [ sp:varName "productionFlowNetwork"^^xsd:string 886 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
747 ] 887 ]
748 ] [ sp:object 888 ] [ sp:object
749 - [ sp:varName "dateStart"^^xsd:string 889 + [ sp:varName "productionFacility"^^xsd:string
750 ] ; 890 ] ;
751 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 891 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
752 sp:subject 892 sp:subject
753 - [ sp:varName "productionInventoryCollection"^^xsd:string 893 + [ sp:varName "productionFacilityToDate"^^xsd:string
894 + ]
895 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
896 + sp:predicate rdf:type ;
897 + sp:subject
898 + [ sp:varName "productionFacility"^^xsd:string
754 ] 899 ]
755 ] [ sp:object 900 ] [ sp:object
756 - [ sp:varName "dateStart"^^xsd:string 901 + [ sp:varName "normalizedProductionFacilityName"^^xsd:string
757 ] ; 902 ] ;
758 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 903 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
759 sp:subject 904 sp:subject
760 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 905 + [ sp:varName "productVolumeRef"^^xsd:string
761 ] 906 ]
762 ]) ; 907 ]) ;
763 sp:where ([ sp:object 908 sp:where ([ sp:object
...@@ -765,81 +910,24 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -765,81 +910,24 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
765 ] ; 910 ] ;
766 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 911 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
767 sp:subject spin:_this 912 sp:subject spin:_this
768 - ] [ sp:object
769 - [ sp:varName "dateStart"^^xsd:string
770 - ] ;
771 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
772 - sp:subject spin:_this
773 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 913 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
774 sp:predicate rdf:type ; 914 sp:predicate rdf:type ;
775 sp:subject 915 sp:subject
776 [ sp:varName "productVolumeRef"^^xsd:string 916 [ sp:varName "productVolumeRef"^^xsd:string
777 ] 917 ]
778 - ] [ rdf:type sp:NotExists ;
779 - sp:elements ([ sp:object
780 - [ sp:varName "dateStartx"^^xsd:string
781 - ] ;
782 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
783 - sp:subject
784 - [ sp:varName "productVolumeRef"^^xsd:string
785 - ]
786 - ])
787 - ] [ rdf:type sp:NotExists ;
788 - sp:elements ([ sp:object
789 - [ sp:varName "dTimStartx"^^xsd:string
790 - ] ;
791 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
792 - sp:subject
793 - [ sp:varName "productVolumeRef"^^xsd:string
794 - ]
795 - ])
796 - ] [ sp:object
797 - [ sp:varName "productVolumeRef"^^xsd:string
798 - ] ;
799 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
800 - sp:subject
801 - [ sp:varName "productionFlowNetwork"^^xsd:string
802 - ]
803 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
804 - sp:predicate rdf:type ;
805 - sp:subject
806 - [ sp:varName "productionFlowNetwork"^^xsd:string
807 - ]
808 ] [ sp:object 918 ] [ sp:object
809 - [ sp:varName "productionFlowNetworkToDate"^^xsd:string 919 + [ sp:varName "installationRef"^^xsd:string
810 ] ; 920 ] ;
811 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 921 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
812 - sp:subject
813 - [ sp:varName "productionFlowNetwork"^^xsd:string
814 - ]
815 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
816 - sp:predicate rdf:type ;
817 sp:subject 922 sp:subject
818 - [ sp:varName "productionFlowNetworkToDate"^^xsd:string
819 - ]
820 - ] [ sp:object
821 [ sp:varName "productVolumeRef"^^xsd:string 923 [ sp:varName "productVolumeRef"^^xsd:string
822 - ] ;
823 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
824 - sp:subject
825 - [ sp:varName "productionInventoryCollection"^^xsd:string
826 - ]
827 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
828 - sp:predicate rdf:type ;
829 - sp:subject
830 - [ sp:varName "productionInventoryCollection"^^xsd:string
831 ] 924 ]
832 ] [ sp:object 925 ] [ sp:object
833 - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string 926 + [ sp:varName "installationRef"^^xsd:string
834 ] ; 927 ] ;
835 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 928 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
836 - sp:subject
837 - [ sp:varName "productionInventoryCollection"^^xsd:string
838 - ]
839 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
840 - sp:predicate rdf:type ;
841 sp:subject 929 sp:subject
842 - [ sp:varName "productionInventoryCollectionToDate"^^xsd:string 930 + [ sp:varName "productionFacility"^^xsd:string
843 ] 931 ]
844 ] [ sp:object 932 ] [ sp:object
845 [ sp:varName "productVolumeRef"^^xsd:string 933 [ sp:varName "productVolumeRef"^^xsd:string
...@@ -865,151 +953,58 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -865,151 +953,58 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
865 sp:subject 953 sp:subject
866 [ sp:varName "productionFacilityToDate"^^xsd:string 954 [ sp:varName "productionFacilityToDate"^^xsd:string
867 ] 955 ]
868 - ]) 956 + ] [ rdf:type sp:Bind ;
869 - ] ; 957 + sp:expression
870 - spin:rule 958 + [ rdf:type spl:object ;
871 - [ rdf:type sp:Construct ; 959 + sp:arg1 [ sp:varName "installationRef"^^xsd:string
872 - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; 960 + ] ;
873 - sp:templates ([ sp:object 961 + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
874 - [ sp:varName "reportKind"^^xsd:string
875 - ] ;
876 - sp:predicate rdf:type ;
877 - sp:subject
878 - [ sp:varName "productVolumeReport"^^xsd:string
879 - ]
880 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
881 - sp:predicate rdf:type ;
882 - sp:subject
883 - [ sp:varName "reportKind"^^xsd:string
884 - ]
885 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
886 - sp:predicate rdfs:subClassOf ;
887 - sp:subject
888 - [ sp:varName "reportKind"^^xsd:string
889 - ]
890 - ] [ sp:object
891 - [ sp:varName "kind"^^xsd:string
892 - ] ;
893 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
894 - sp:subject
895 - [ sp:varName "reportKind"^^xsd:string
896 - ]
897 - ]) ;
898 - sp:where ([ sp:object
899 - [ sp:varName "productVolumeRef"^^xsd:string
900 - ] ;
901 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
902 - sp:subject spin:_this
903 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
904 - sp:predicate rdf:type ;
905 - sp:subject
906 - [ sp:varName "productVolumeRef"^^xsd:string
907 - ]
908 - ] [ sp:object
909 - [ sp:varName "productVolumeRef"^^xsd:string
910 - ] ;
911 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
912 - sp:subject
913 - [ sp:varName "productVolumeReport"^^xsd:string
914 - ]
915 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
916 - sp:predicate rdf:type ;
917 - sp:subject
918 - [ sp:varName "productVolumeReport"^^xsd:string
919 - ]
920 - ] [ sp:object
921 - [ sp:varName "nameRef"^^xsd:string
922 - ] ;
923 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
924 - sp:subject
925 - [ sp:varName "productVolumeRef"^^xsd:string
926 - ]
927 - ] [ sp:object
928 - [ sp:varName "name"^^xsd:string
929 - ] ;
930 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
931 - sp:subject
932 - [ sp:varName "nameRef"^^xsd:string
933 - ]
934 - ] [ sp:object
935 - [ sp:varName "kind"^^xsd:string
936 - ] ;
937 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
938 - sp:subject
939 - [ sp:varName "productVolumeRef"^^xsd:string
940 - ]
941 - ] [ rdf:type sp:Bind ;
942 - sp:expression
943 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
944 - sp:arg1 [ sp:varName "kind"^^xsd:string
945 - ]
946 ] ; 962 ] ;
947 sp:variable 963 sp:variable
948 - [ sp:varName "reportKind"^^xsd:string 964 + [ sp:varName "normalizedProductionFacilityName"^^xsd:string
949 ] 965 ]
950 ]) 966 ])
951 ] ; 967 ] ;
952 spin:rule 968 spin:rule
953 [ rdf:type sp:Construct ; 969 [ rdf:type sp:Construct ;
954 - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; 970 + rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ;
955 sp:templates ([ sp:object 971 sp:templates ([ sp:object
956 - [ sp:varName "dTimStart"^^xsd:string 972 + [ sp:varName "dateEnd"^^xsd:string
957 - ] ;
958 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
959 - sp:subject
960 - [ sp:varName "productionFlowNetwork"^^xsd:string
961 - ]
962 - ] [ sp:object
963 - [ sp:varName "dTimEnd"^^xsd:string
964 ] ; 973 ] ;
965 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 974 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
966 sp:subject 975 sp:subject
967 [ sp:varName "productionFlowNetwork"^^xsd:string 976 [ sp:varName "productionFlowNetwork"^^xsd:string
968 ] 977 ]
969 ] [ sp:object 978 ] [ sp:object
970 - [ sp:varName "dTimEnd"^^xsd:string 979 + [ sp:varName "dateEnd"^^xsd:string
971 ] ; 980 ] ;
972 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 981 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
973 sp:subject 982 sp:subject
974 [ sp:varName "productionFlowNetworkToDate"^^xsd:string 983 [ sp:varName "productionFlowNetworkToDate"^^xsd:string
975 ] 984 ]
976 ] [ sp:object 985 ] [ sp:object
977 - [ sp:varName "dTimStart"^^xsd:string 986 + [ sp:varName "dateEnd"^^xsd:string
978 - ] ;
979 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
980 - sp:subject
981 - [ sp:varName "productionInventoryCollection"^^xsd:string
982 - ]
983 - ] [ sp:object
984 - [ sp:varName "dTimEnd"^^xsd:string
985 ] ; 987 ] ;
986 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 988 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
987 sp:subject 989 sp:subject
988 [ sp:varName "productionInventoryCollection"^^xsd:string 990 [ sp:varName "productionInventoryCollection"^^xsd:string
989 ] 991 ]
990 ] [ sp:object 992 ] [ sp:object
991 - [ sp:varName "dTimEnd"^^xsd:string 993 + [ sp:varName "dateEnd"^^xsd:string
992 ] ; 994 ] ;
993 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 995 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
994 sp:subject 996 sp:subject
995 [ sp:varName "productionInventoryCollectionToDate"^^xsd:string 997 [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
996 ] 998 ]
997 ] [ sp:object 999 ] [ sp:object
998 - [ sp:varName "dTimStart"^^xsd:string 1000 + [ sp:varName "dateEnd"^^xsd:string
999 - ] ;
1000 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
1001 - sp:subject
1002 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1003 - ]
1004 - ] [ sp:object
1005 - [ sp:varName "dTimEnd"^^xsd:string
1006 ] ; 1001 ] ;
1007 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1002 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
1008 sp:subject 1003 sp:subject
1009 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 1004 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1010 ] 1005 ]
1011 ] [ sp:object 1006 ] [ sp:object
1012 - [ sp:varName "dTimEnd"^^xsd:string 1007 + [ sp:varName "dateEnd"^^xsd:string
1013 ] ; 1008 ] ;
1014 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1009 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
1015 sp:subject 1010 sp:subject
...@@ -1021,25 +1016,34 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -1021,25 +1016,34 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
1021 ] ; 1016 ] ;
1022 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 1017 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
1023 sp:subject spin:_this 1018 sp:subject spin:_this
1019 + ] [ sp:object
1020 + [ sp:varName "dateEnd"^^xsd:string
1021 + ] ;
1022 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
1023 + sp:subject spin:_this
1024 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 1024 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
1025 sp:predicate rdf:type ; 1025 sp:predicate rdf:type ;
1026 sp:subject 1026 sp:subject
1027 [ sp:varName "productVolumeRef"^^xsd:string 1027 [ sp:varName "productVolumeRef"^^xsd:string
1028 ] 1028 ]
1029 - ] [ sp:object 1029 + ] [ rdf:type sp:NotExists ;
1030 - [ sp:varName "dTimStart"^^xsd:string 1030 + sp:elements ([ sp:object
1031 + [ sp:varName "dateEndx"^^xsd:string
1031 ] ; 1032 ] ;
1032 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 1033 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
1033 sp:subject 1034 sp:subject
1034 [ sp:varName "productVolumeRef"^^xsd:string 1035 [ sp:varName "productVolumeRef"^^xsd:string
1035 ] 1036 ]
1036 - ] [ sp:object 1037 + ])
1037 - [ sp:varName "dTimEnd"^^xsd:string 1038 + ] [ rdf:type sp:NotExists ;
1039 + sp:elements ([ sp:object
1040 + [ sp:varName "dTimEndx"^^xsd:string
1038 ] ; 1041 ] ;
1039 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 1042 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
1040 sp:subject 1043 sp:subject
1041 [ sp:varName "productVolumeRef"^^xsd:string 1044 [ sp:varName "productVolumeRef"^^xsd:string
1042 ] 1045 ]
1046 + ])
1043 ] [ sp:object 1047 ] [ sp:object
1044 [ sp:varName "productVolumeRef"^^xsd:string 1048 [ sp:varName "productVolumeRef"^^xsd:string
1045 ] ; 1049 ] ;
...@@ -1086,93 +1090,8 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -1086,93 +1090,8 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
1086 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; 1090 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
1087 sp:predicate rdf:type ; 1091 sp:predicate rdf:type ;
1088 sp:subject 1092 sp:subject
1089 - [ sp:varName "productionInventoryCollecctionToDate"^^xsd:string 1093 + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
1090 - ]
1091 - ] [ sp:object
1092 - [ sp:varName "productVolumeRef"^^xsd:string
1093 - ] ;
1094 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1095 - sp:subject
1096 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1097 - ]
1098 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
1099 - sp:predicate rdf:type ;
1100 - sp:subject
1101 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1102 - ]
1103 - ] [ sp:object
1104 - [ sp:varName "productionFacilityToDate"^^xsd:string
1105 - ] ;
1106 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1107 - sp:subject
1108 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1109 - ]
1110 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
1111 - sp:predicate rdf:type ;
1112 - sp:subject
1113 - [ sp:varName "productionFacilityToDate"^^xsd:string
1114 - ]
1115 - ])
1116 - ] ;
1117 - spin:rule
1118 - [ rdf:type sp:Construct ;
1119 - rdfs:comment "STEP 20041 Set the production facility - taken from context"^^xsd:string ;
1120 - sp:templates ([ sp:object
1121 - [ sp:varName "productionFacility"^^xsd:string
1122 - ] ;
1123 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1124 - sp:subject
1125 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1126 - ]
1127 - ] [ sp:object
1128 - [ sp:varName "productionFacility"^^xsd:string
1129 - ] ;
1130 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1131 - sp:subject
1132 - [ sp:varName "productionFacilityToDate"^^xsd:string
1133 - ]
1134 - ] [ sp:object
1135 - [ sp:varName "normalizedProductionFacilityName"^^xsd:string
1136 - ] ;
1137 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
1138 - sp:subject
1139 - [ sp:varName "productVolumeRef"^^xsd:string
1140 - ]
1141 - ]) ;
1142 - sp:where ([ sp:object spin:_this ;
1143 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1144 - sp:subject
1145 - [ sp:varName "productionFacility"^^xsd:string
1146 - ]
1147 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
1148 - sp:predicate rdf:type ;
1149 - sp:subject
1150 - [ sp:varName "productionFacility"^^xsd:string
1151 - ]
1152 - ] [ sp:object
1153 - [ sp:varName "normalizedProductionFacilityName"^^xsd:string
1154 - ] ;
1155 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
1156 - sp:subject spin:_this
1157 - ] [ sp:object
1158 - [ sp:varName "productVolumeRef"^^xsd:string
1159 - ] ;
1160 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
1161 - sp:subject spin:_this
1162 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
1163 - sp:predicate rdf:type ;
1164 - sp:subject
1165 - [ sp:varName "productVolumeRef"^^xsd:string
1166 - ]
1167 - ] [ rdf:type sp:NotExists ;
1168 - sp:elements ([ sp:object
1169 - [ sp:varName "installationRefx"^^xsd:string
1170 - ] ;
1171 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
1172 - sp:subject
1173 - [ sp:varName "productVolumeRef"^^xsd:string
1174 ] 1094 ]
1175 - ])
1176 ] [ sp:object 1095 ] [ sp:object
1177 [ sp:varName "productVolumeRef"^^xsd:string 1096 [ sp:varName "productVolumeRef"^^xsd:string
1178 ] ; 1097 ] ;
...@@ -1366,13 +1285,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -1366,13 +1285,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
1366 ] ; 1285 ] ;
1367 spin:rule 1286 spin:rule
1368 [ rdf:type sp:Construct ; 1287 [ rdf:type sp:Construct ;
1369 - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; 1288 + rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ;
1370 sp:templates ([ sp:object 1289 sp:templates ([ sp:object
1371 - [ sp:varName "contextFacility"^^xsd:string 1290 + [ sp:varName "dateStart"^^xsd:string
1372 ] ; 1291 ] ;
1373 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; 1292 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
1374 sp:subject 1293 sp:subject
1375 - [ sp:varName "productionFacility"^^xsd:string 1294 + [ sp:varName "productionFlowNetwork"^^xsd:string
1295 + ]
1296 + ] [ sp:object
1297 + [ sp:varName "dateStart"^^xsd:string
1298 + ] ;
1299 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
1300 + sp:subject
1301 + [ sp:varName "productionInventoryCollection"^^xsd:string
1302 + ]
1303 + ] [ sp:object
1304 + [ sp:varName "dateStart"^^xsd:string
1305 + ] ;
1306 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
1307 + sp:subject
1308 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1376 ] 1309 ]
1377 ]) ; 1310 ]) ;
1378 sp:where ([ sp:object 1311 sp:where ([ sp:object
...@@ -1380,43 +1313,110 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -1380,43 +1313,110 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
1380 ] ; 1313 ] ;
1381 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 1314 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
1382 sp:subject spin:_this 1315 sp:subject spin:_this
1316 + ] [ sp:object
1317 + [ sp:varName "dateStart"^^xsd:string
1318 + ] ;
1319 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
1320 + sp:subject spin:_this
1383 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 1321 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
1384 sp:predicate rdf:type ; 1322 sp:predicate rdf:type ;
1385 sp:subject 1323 sp:subject
1386 [ sp:varName "productVolumeRef"^^xsd:string 1324 [ sp:varName "productVolumeRef"^^xsd:string
1387 ] 1325 ]
1388 - ] [ sp:object 1326 + ] [ rdf:type sp:NotExists ;
1389 - [ sp:varName "installationRef"^^xsd:string 1327 + sp:elements ([ sp:object
1328 + [ sp:varName "dateStartx"^^xsd:string
1390 ] ; 1329 ] ;
1391 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 1330 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
1331 + sp:subject
1332 + [ sp:varName "productVolumeRef"^^xsd:string
1333 + ]
1334 + ])
1335 + ] [ rdf:type sp:NotExists ;
1336 + sp:elements ([ sp:object
1337 + [ sp:varName "dTimStartx"^^xsd:string
1338 + ] ;
1339 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
1392 sp:subject 1340 sp:subject
1393 [ sp:varName "productVolumeRef"^^xsd:string 1341 [ sp:varName "productVolumeRef"^^xsd:string
1394 ] 1342 ]
1343 + ])
1395 ] [ sp:object 1344 ] [ sp:object
1396 - [ sp:varName "installationRef"^^xsd:string 1345 + [ sp:varName "productVolumeRef"^^xsd:string
1397 ] ; 1346 ] ;
1398 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1347 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1399 sp:subject 1348 sp:subject
1400 - [ sp:varName "productionFacility"^^xsd:string 1349 + [ sp:varName "productionFlowNetwork"^^xsd:string
1350 + ]
1351 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
1352 + sp:predicate rdf:type ;
1353 + sp:subject
1354 + [ sp:varName "productionFlowNetwork"^^xsd:string
1401 ] 1355 ]
1402 ] [ sp:object 1356 ] [ sp:object
1403 - [ sp:varName "contextFacilityRef"^^xsd:string 1357 + [ sp:varName "productionFlowNetworkToDate"^^xsd:string
1404 ] ; 1358 ] ;
1405 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 1359 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1360 + sp:subject
1361 + [ sp:varName "productionFlowNetwork"^^xsd:string
1362 + ]
1363 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
1364 + sp:predicate rdf:type ;
1406 sp:subject 1365 sp:subject
1366 + [ sp:varName "productionFlowNetworkToDate"^^xsd:string
1367 + ]
1368 + ] [ sp:object
1407 [ sp:varName "productVolumeRef"^^xsd:string 1369 [ sp:varName "productVolumeRef"^^xsd:string
1370 + ] ;
1371 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1372 + sp:subject
1373 + [ sp:varName "productionInventoryCollection"^^xsd:string
1374 + ]
1375 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
1376 + sp:predicate rdf:type ;
1377 + sp:subject
1378 + [ sp:varName "productionInventoryCollection"^^xsd:string
1408 ] 1379 ]
1409 ] [ sp:object 1380 ] [ sp:object
1410 - [ sp:varName "contextFacilityRef"^^xsd:string 1381 + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
1382 + ] ;
1383 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1384 + sp:subject
1385 + [ sp:varName "productionInventoryCollection"^^xsd:string
1386 + ]
1387 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
1388 + sp:predicate rdf:type ;
1389 + sp:subject
1390 + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string
1391 + ]
1392 + ] [ sp:object
1393 + [ sp:varName "productVolumeRef"^^xsd:string
1411 ] ; 1394 ] ;
1412 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1395 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1413 sp:subject 1396 sp:subject
1414 - [ sp:varName "contextFacility"^^xsd:string 1397 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1398 + ]
1399 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
1400 + sp:predicate rdf:type ;
1401 + sp:subject
1402 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1403 + ]
1404 + ] [ sp:object
1405 + [ sp:varName "productionFacilityToDate"^^xsd:string
1406 + ] ;
1407 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1408 + sp:subject
1409 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1410 + ]
1411 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
1412 + sp:predicate rdf:type ;
1413 + sp:subject
1414 + [ sp:varName "productionFacilityToDate"^^xsd:string
1415 ] 1415 ]
1416 ]) 1416 ])
1417 ] . 1417 ] .
1418 1418
1419 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> 1419 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
1420 rdf:type owl:Ontology ; 1420 rdf:type owl:Ontology ;
1421 - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ; 1421 + 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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
1422 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 1422 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -22,57 +22,48 @@ ...@@ -22,57 +22,48 @@
22 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 22 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
23 spin:rule 23 spin:rule
24 [ rdf:type sp:Construct ; 24 [ rdf:type sp:Construct ;
25 - rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 25 + rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ;
26 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; 26 + sp:templates ([ sp:object
27 - sp:predicate rdf:type ; 27 + [ sp:varName "reportKind"^^xsd:string
28 - sp:subject _:b1
29 - ] [ sp:object
30 - [ sp:varName "productionReport"^^xsd:string
31 - ] ;
32 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
33 - sp:subject _:b1
34 - ] [ sp:object
35 - [ sp:varName "name"^^xsd:string
36 - ] ;
37 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
38 - sp:subject _:b1
39 - ] [ sp:object
40 - [ sp:varName "reportPeriodType"^^xsd:string
41 ] ; 28 ] ;
42 sp:predicate rdf:type ; 29 sp:predicate rdf:type ;
43 - sp:subject _:b1 30 + sp:subject
44 - ] [ sp:object _:b2 ; 31 + [ sp:varName "productionOperationReport"^^xsd:string
45 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 32 + ]
46 - sp:subject _:b1 33 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportType> ;
47 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
48 - sp:predicate rdf:type ;
49 - sp:subject _:b2
50 - ] [ sp:object
51 - [ sp:varName "productionOperationRef"^^xsd:string
52 - ] ;
53 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
54 - sp:subject _:b2
55 - ] [ sp:object _:b3 ;
56 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
57 - sp:subject _:b2
58 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
59 sp:predicate rdf:type ; 34 sp:predicate rdf:type ;
60 - sp:subject _:b3 35 + sp:subject
36 + [ sp:varName "reportKind"^^xsd:string
37 + ]
38 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
39 + sp:predicate rdfs:subClassOf ;
40 + sp:subject
41 + [ sp:varName "reportKind"^^xsd:string
42 + ]
61 ] [ sp:object 43 ] [ sp:object
62 - [ sp:varName "title"^^xsd:string 44 + [ sp:varName "kind"^^xsd:string
63 ] ; 45 ] ;
64 - sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ; 46 + sp:predicate rdfs:label ;
65 - sp:subject _:b1 47 + sp:subject
48 + [ sp:varName "reportKind"^^xsd:string
49 + ]
66 ]) ; 50 ]) ;
67 sp:where ([ sp:object spin:_this ; 51 sp:where ([ sp:object spin:_this ;
68 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 52 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
69 sp:subject 53 sp:subject
70 [ sp:varName "productionReport"^^xsd:string 54 [ sp:varName "productionReport"^^xsd:string
71 ] 55 ]
72 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 56 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
73 sp:predicate rdf:type ; 57 sp:predicate rdf:type ;
74 sp:subject 58 sp:subject
59 + [ sp:varName "productionOperationReport"^^xsd:string
60 + ]
61 + ] [ sp:object
75 [ sp:varName "productionReport"^^xsd:string 62 [ sp:varName "productionReport"^^xsd:string
63 + ] ;
64 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
65 + sp:subject
66 + [ sp:varName "productionOperationReport"^^xsd:string
76 ] 67 ]
77 ] [ sp:object 68 ] [ sp:object
78 [ sp:varName "productionOperationRef"^^xsd:string 69 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -98,59 +89,37 @@ ...@@ -98,59 +89,37 @@
98 sp:subject 89 sp:subject
99 [ sp:varName "nameRef"^^xsd:string 90 [ sp:varName "nameRef"^^xsd:string
100 ] 91 ]
101 - ] [ rdf:type sp:Optional ;
102 - sp:elements ([ sp:object
103 - [ sp:varName "periodKindRef"^^xsd:string
104 - ] ;
105 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
106 - sp:subject
107 - [ sp:varName "productionOperationRef"^^xsd:string
108 - ]
109 - ])
110 - ] [ rdf:type sp:Optional ;
111 - sp:elements ([ sp:object
112 - [ sp:varName "titleRef"^^xsd:string
113 - ] ;
114 - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
115 - sp:subject
116 - [ sp:varName "productionOperationRef"^^xsd:string
117 - ]
118 ] [ sp:object 92 ] [ sp:object
119 - [ sp:varName "title"^^xsd:string 93 + [ sp:varName "kind"^^xsd:string
120 ] ; 94 ] ;
121 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 95 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
122 sp:subject 96 sp:subject
123 - [ sp:varName "titleRef"^^xsd:string 97 + [ sp:varName "productionOperationRef"^^xsd:string
124 ] 98 ]
125 - ])
126 ] [ rdf:type sp:Bind ; 99 ] [ rdf:type sp:Bind ;
127 sp:expression 100 sp:expression
128 - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; 101 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
129 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string 102 + sp:arg1 [ sp:varName "kind"^^xsd:string
130 ] 103 ]
131 ] ; 104 ] ;
132 sp:variable 105 sp:variable
133 - [ sp:varName "reportPeriodType"^^xsd:string 106 + [ sp:varName "reportKind"^^xsd:string
134 ] 107 ]
135 ]) 108 ])
136 ] ; 109 ] ;
137 spin:rule 110 spin:rule
138 [ rdf:type sp:Construct ; 111 [ rdf:type sp:Construct ;
139 - rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ; 112 + rdfs:comment "STEP 40040 Set the installation"^^xsd:string ;
140 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; 113 + sp:templates ([ sp:object
141 - sp:predicate rdf:type ; 114 + [ sp:varName "productionFacility"^^xsd:string
142 - sp:subject _:b4
143 - ] [ sp:object
144 - [ sp:varName "contextFacility"^^xsd:string
145 ] ; 115 ] ;
146 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
147 - sp:subject _:b4
148 - ] [ sp:object _:b4 ;
149 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 116 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
150 sp:subject 117 sp:subject
151 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 118 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
152 ] 119 ]
153 - ] [ sp:object _:b4 ; 120 + ] [ sp:object
121 + [ sp:varName "productionFacility"^^xsd:string
122 + ] ;
154 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 123 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
155 sp:subject 124 sp:subject
156 [ sp:varName "productionFacilityToDate"^^xsd:string 125 [ sp:varName "productionFacilityToDate"^^xsd:string
...@@ -166,8 +135,7 @@ ...@@ -166,8 +135,7 @@
166 sp:subject 135 sp:subject
167 [ sp:varName "productionOperationRef"^^xsd:string 136 [ sp:varName "productionOperationRef"^^xsd:string
168 ] 137 ]
169 - ] [ rdf:type sp:NotExists ; 138 + ] [ sp:object
170 - sp:elements ([ sp:object
171 [ sp:varName "installationRef"^^xsd:string 139 [ sp:varName "installationRef"^^xsd:string
172 ] ; 140 ] ;
173 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 141 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
...@@ -181,23 +149,8 @@ ...@@ -181,23 +149,8 @@
181 sp:subject 149 sp:subject
182 [ sp:varName "productionFacility"^^xsd:string 150 [ sp:varName "productionFacility"^^xsd:string
183 ] 151 ]
184 - ])
185 ] [ sp:object 152 ] [ sp:object
186 - [ sp:varName "contextFacilityRef"^^xsd:string
187 - ] ;
188 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
189 - sp:subject
190 [ sp:varName "productionOperationRef"^^xsd:string 153 [ sp:varName "productionOperationRef"^^xsd:string
191 - ]
192 - ] [ sp:object
193 - [ sp:varName "contextFacilityRef"^^xsd:string
194 - ] ;
195 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
196 - sp:subject
197 - [ sp:varName "contextFacility"^^xsd:string
198 - ]
199 - ] [ sp:object
200 - [ sp:varName "productVolumeRef"^^xsd:string
201 ] ; 154 ] ;
202 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 155 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
203 sp:subject 156 sp:subject
...@@ -224,27 +177,69 @@ ...@@ -224,27 +177,69 @@
224 ] ; 177 ] ;
225 spin:rule 178 spin:rule
226 [ rdf:type sp:Construct ; 179 [ rdf:type sp:Construct ;
227 - rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ; 180 + rdfs:comment """STEP 40060 Set the facility operator
228 - sp:templates ([ sp:object 181 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
229 - [ sp:varName "dateStart"^^xsd:string 182 + sp:templates ([ sp:object _:b1 ;
230 - ] ; 183 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
231 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
232 sp:subject 184 sp:subject
233 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 185 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
234 ] 186 ]
187 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
188 + sp:predicate rdf:type ;
189 + sp:subject _:b1
235 ] [ sp:object 190 ] [ sp:object
236 - [ sp:varName "dateEnd"^^xsd:string 191 + [ sp:varName "operator"^^xsd:string
237 ] ; 192 ] ;
238 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 193 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
194 + sp:subject _:b1
195 + ]) ;
196 + sp:where ([ sp:object
197 + [ sp:varName "productionOperationRef"^^xsd:string
198 + ] ;
199 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
200 + sp:subject spin:_this
201 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
202 + sp:predicate rdf:type ;
203 + sp:subject
204 + [ sp:varName "productionOperationRef"^^xsd:string
205 + ]
206 + ] [ sp:object
207 + [ sp:varName "productionOperationRef"^^xsd:string
208 + ] ;
209 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
210 + sp:subject
211 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
212 + ]
213 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
214 + sp:predicate rdf:type ;
239 sp:subject 215 sp:subject
240 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 216 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
241 ] 217 ]
242 ] [ sp:object 218 ] [ sp:object
243 - [ sp:varName "dateEnd"^^xsd:string 219 + [ sp:varName "operatorRef"^^xsd:string
244 ] ; 220 ] ;
245 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 221 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
246 sp:subject 222 sp:subject
247 - [ sp:varName "productionFacilityToDate"^^xsd:string 223 + [ sp:varName "productionOperationRef"^^xsd:string
224 + ]
225 + ] [ sp:object
226 + [ sp:varName "operatorRef"^^xsd:string
227 + ] ;
228 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
229 + sp:subject
230 + [ sp:varName "operator"^^xsd:string
231 + ]
232 + ])
233 + ] ;
234 + spin:rule
235 + [ rdf:type sp:Construct ;
236 + rdfs:comment "STEP 40050 Set the context facility - installation exists"^^xsd:string ;
237 + sp:templates ([ sp:object
238 + [ sp:varName "contextFacility"^^xsd:string
239 + ] ;
240 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
241 + sp:subject
242 + [ sp:varName "productionFacility"^^xsd:string
248 ] 243 ]
249 ]) ; 244 ]) ;
250 sp:where ([ sp:object 245 sp:where ([ sp:object
...@@ -258,42 +253,32 @@ ...@@ -258,42 +253,32 @@
258 [ sp:varName "productionOperationRef"^^xsd:string 253 [ sp:varName "productionOperationRef"^^xsd:string
259 ] 254 ]
260 ] [ sp:object 255 ] [ sp:object
261 - [ sp:varName "dateStart"^^xsd:string 256 + [ sp:varName "installationRef"^^xsd:string
262 ] ; 257 ] ;
263 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 258 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
264 sp:subject 259 sp:subject
265 [ sp:varName "productionOperationRef"^^xsd:string 260 [ sp:varName "productionOperationRef"^^xsd:string
266 ] 261 ]
267 ] [ sp:object 262 ] [ sp:object
268 - [ sp:varName "dateEnd"^^xsd:string 263 + [ sp:varName "installationRef"^^xsd:string
269 ] ; 264 ] ;
270 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 265 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
271 sp:subject 266 sp:subject
272 - [ sp:varName "productionOperationsRef"^^xsd:string 267 + [ sp:varName "productionFacility"^^xsd:string
273 ] 268 ]
274 ] [ sp:object 269 ] [ sp:object
275 - [ sp:varName "productionOperationRef"^^xsd:string 270 + [ sp:varName "contextFacilityRef"^^xsd:string
276 ] ; 271 ] ;
277 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 272 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
278 - sp:subject
279 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
280 - ]
281 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
282 - sp:predicate rdf:type ;
283 sp:subject 273 sp:subject
284 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 274 + [ sp:varName "productionOperationRef"^^xsd:string
285 ] 275 ]
286 ] [ sp:object 276 ] [ sp:object
287 - [ sp:varName "productionFacilityToDate"^^xsd:string 277 + [ sp:varName "contextFacilityRef"^^xsd:string
288 ] ; 278 ] ;
289 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 279 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
290 - sp:subject
291 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
292 - ]
293 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
294 - sp:predicate rdf:type ;
295 sp:subject 280 sp:subject
296 - [ sp:varName "productionFacilityToDate"^^xsd:string 281 + [ sp:varName "contextFacility"^^xsd:string
297 ] 282 ]
298 ]) 283 ])
299 ] ; 284 ] ;
...@@ -374,82 +359,52 @@ ...@@ -374,82 +359,52 @@
374 ] ; 359 ] ;
375 spin:rule 360 spin:rule
376 [ rdf:type sp:Construct ; 361 [ rdf:type sp:Construct ;
377 - rdfs:comment "STEP 40050 Set the context facility - installation exists"^^xsd:string ; 362 + rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ;
378 sp:templates ([ sp:object 363 sp:templates ([ sp:object
379 - [ sp:varName "contextFacility"^^xsd:string 364 + [ sp:varName "dateStart"^^xsd:string
380 - ] ;
381 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
382 - sp:subject
383 - [ sp:varName "productionFacility"^^xsd:string
384 - ]
385 - ]) ;
386 - sp:where ([ sp:object
387 - [ sp:varName "productionOperationRef"^^xsd:string
388 ] ; 365 ] ;
389 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 366 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
390 - sp:subject spin:_this
391 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
392 - sp:predicate rdf:type ;
393 sp:subject 367 sp:subject
394 - [ sp:varName "productionOperationRef"^^xsd:string 368 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
395 ] 369 ]
396 ] [ sp:object 370 ] [ sp:object
397 - [ sp:varName "installationRef"^^xsd:string 371 + [ sp:varName "dateEnd"^^xsd:string
398 ] ; 372 ] ;
399 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 373 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
400 sp:subject 374 sp:subject
401 - [ sp:varName "productionOperationRef"^^xsd:string 375 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
402 ] 376 ]
403 ] [ sp:object 377 ] [ sp:object
404 - [ sp:varName "installationRef"^^xsd:string 378 + [ sp:varName "dateEnd"^^xsd:string
405 ] ; 379 ] ;
406 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 380 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
407 sp:subject 381 sp:subject
408 - [ sp:varName "productionFacility"^^xsd:string 382 + [ sp:varName "productionFacilityToDate"^^xsd:string
409 ] 383 ]
410 - ] [ sp:object 384 + ]) ;
411 - [ sp:varName "contextFacilityRef"^^xsd:string 385 + sp:where ([ sp:object
386 + [ sp:varName "productionOperationRef"^^xsd:string
412 ] ; 387 ] ;
413 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 388 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
389 + sp:subject spin:_this
390 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
391 + sp:predicate rdf:type ;
414 sp:subject 392 sp:subject
415 [ sp:varName "productionOperationRef"^^xsd:string 393 [ sp:varName "productionOperationRef"^^xsd:string
416 ] 394 ]
417 ] [ sp:object 395 ] [ sp:object
418 - [ sp:varName "contextFacilityRef"^^xsd:string 396 + [ sp:varName "dateStart"^^xsd:string
419 - ] ;
420 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
421 - sp:subject
422 - [ sp:varName "contextFacility"^^xsd:string
423 - ]
424 - ])
425 ] ; 397 ] ;
426 - spin:rule 398 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
427 - [ rdf:type sp:Construct ;
428 - rdfs:comment """STEP 40060 Set the facility operator
429 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
430 - sp:templates ([ sp:object _:b5 ;
431 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
432 sp:subject 399 sp:subject
433 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 400 + [ sp:varName "productionOperationRef"^^xsd:string
434 ] 401 ]
435 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
436 - sp:predicate rdf:type ;
437 - sp:subject _:b5
438 ] [ sp:object 402 ] [ sp:object
439 - [ sp:varName "operator"^^xsd:string 403 + [ sp:varName "dateEnd"^^xsd:string
440 - ] ;
441 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
442 - sp:subject _:b5
443 - ]) ;
444 - sp:where ([ sp:object
445 - [ sp:varName "productionOperationRef"^^xsd:string
446 ] ; 404 ] ;
447 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 405 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
448 - sp:subject spin:_this
449 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
450 - sp:predicate rdf:type ;
451 sp:subject 406 sp:subject
452 - [ sp:varName "productionOperationRef"^^xsd:string 407 + [ sp:varName "productionOperationsRef"^^xsd:string
453 ] 408 ]
454 ] [ sp:object 409 ] [ sp:object
455 [ sp:varName "productionOperationRef"^^xsd:string 410 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -464,34 +419,36 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -464,34 +419,36 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
464 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 419 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
465 ] 420 ]
466 ] [ sp:object 421 ] [ sp:object
467 - [ sp:varName "operatorRef"^^xsd:string 422 + [ sp:varName "productionFacilityToDate"^^xsd:string
468 ] ; 423 ] ;
469 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 424 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
470 sp:subject 425 sp:subject
471 - [ sp:varName "productionOperationRef"^^xsd:string 426 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
472 ] 427 ]
473 - ] [ sp:object 428 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
474 - [ sp:varName "operatorRef"^^xsd:string 429 + sp:predicate rdf:type ;
475 - ] ;
476 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
477 sp:subject 430 sp:subject
478 - [ sp:varName "operator"^^xsd:string 431 + [ sp:varName "productionFacilityToDate"^^xsd:string
479 ] 432 ]
480 ]) 433 ])
481 ] ; 434 ] ;
482 spin:rule 435 spin:rule
483 [ rdf:type sp:Construct ; 436 [ rdf:type sp:Construct ;
484 - rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; 437 + rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ;
485 - sp:templates ([ sp:object 438 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
486 - [ sp:varName "productionFacility"^^xsd:string 439 + sp:predicate rdf:type ;
440 + sp:subject _:b2
441 + ] [ sp:object
442 + [ sp:varName "contextFacility"^^xsd:string
487 ] ; 443 ] ;
444 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
445 + sp:subject _:b2
446 + ] [ sp:object _:b2 ;
488 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 447 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
489 sp:subject 448 sp:subject
490 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 449 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
491 ] 450 ]
492 - ] [ sp:object 451 + ] [ sp:object _:b2 ;
493 - [ sp:varName "productionFacility"^^xsd:string
494 - ] ;
495 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 452 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
496 sp:subject 453 sp:subject
497 [ sp:varName "productionFacilityToDate"^^xsd:string 454 [ sp:varName "productionFacilityToDate"^^xsd:string
...@@ -507,7 +464,8 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -507,7 +464,8 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
507 sp:subject 464 sp:subject
508 [ sp:varName "productionOperationRef"^^xsd:string 465 [ sp:varName "productionOperationRef"^^xsd:string
509 ] 466 ]
510 - ] [ sp:object 467 + ] [ rdf:type sp:NotExists ;
468 + sp:elements ([ sp:object
511 [ sp:varName "installationRef"^^xsd:string 469 [ sp:varName "installationRef"^^xsd:string
512 ] ; 470 ] ;
513 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 471 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
...@@ -521,8 +479,23 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -521,8 +479,23 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
521 sp:subject 479 sp:subject
522 [ sp:varName "productionFacility"^^xsd:string 480 [ sp:varName "productionFacility"^^xsd:string
523 ] 481 ]
482 + ])
524 ] [ sp:object 483 ] [ sp:object
484 + [ sp:varName "contextFacilityRef"^^xsd:string
485 + ] ;
486 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
487 + sp:subject
525 [ sp:varName "productionOperationRef"^^xsd:string 488 [ sp:varName "productionOperationRef"^^xsd:string
489 + ]
490 + ] [ sp:object
491 + [ sp:varName "contextFacilityRef"^^xsd:string
492 + ] ;
493 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
494 + sp:subject
495 + [ sp:varName "contextFacility"^^xsd:string
496 + ]
497 + ] [ sp:object
498 + [ sp:varName "productVolumeRef"^^xsd:string
526 ] ; 499 ] ;
527 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 500 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
528 sp:subject 501 sp:subject
...@@ -549,48 +522,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -549,48 +522,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
549 ] ; 522 ] ;
550 spin:rule 523 spin:rule
551 [ rdf:type sp:Construct ; 524 [ rdf:type sp:Construct ;
552 - rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ; 525 + rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
553 - sp:templates ([ sp:object 526 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
554 - [ sp:varName "reportKind"^^xsd:string 527 + sp:predicate rdf:type ;
528 + sp:subject _:b3
529 + ] [ sp:object
530 + [ sp:varName "productionReport"^^xsd:string
531 + ] ;
532 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
533 + sp:subject _:b3
534 + ] [ sp:object
535 + [ sp:varName "name"^^xsd:string
536 + ] ;
537 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
538 + sp:subject _:b3
539 + ] [ sp:object
540 + [ sp:varName "reportPeriodType"^^xsd:string
555 ] ; 541 ] ;
556 sp:predicate rdf:type ; 542 sp:predicate rdf:type ;
557 - sp:subject 543 + sp:subject _:b3
558 - [ sp:varName "productionOperationReport"^^xsd:string 544 + ] [ sp:object _:b4 ;
559 - ] 545 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
560 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; 546 + sp:subject _:b3
547 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
561 sp:predicate rdf:type ; 548 sp:predicate rdf:type ;
562 - sp:subject 549 + sp:subject _:b4
563 - [ sp:varName "reportKind"^^xsd:string
564 - ]
565 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
566 - sp:predicate rdfs:subClassOf ;
567 - sp:subject
568 - [ sp:varName "reportKind"^^xsd:string
569 - ]
570 ] [ sp:object 550 ] [ sp:object
571 - [ sp:varName "kind"^^xsd:string 551 + [ sp:varName "productionOperationRef"^^xsd:string
572 ] ; 552 ] ;
573 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 553 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
574 - sp:subject 554 + sp:subject _:b4
575 - [ sp:varName "reportKind"^^xsd:string 555 + ] [ sp:object _:b5 ;
576 - ] 556 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
557 + sp:subject _:b4
558 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
559 + sp:predicate rdf:type ;
560 + sp:subject _:b5
561 + ] [ sp:object
562 + [ sp:varName "title"^^xsd:string
563 + ] ;
564 + sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ;
565 + sp:subject _:b3
577 ]) ; 566 ]) ;
578 sp:where ([ sp:object spin:_this ; 567 sp:where ([ sp:object spin:_this ;
579 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 568 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
580 sp:subject 569 sp:subject
581 [ sp:varName "productionReport"^^xsd:string 570 [ sp:varName "productionReport"^^xsd:string
582 ] 571 ]
583 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; 572 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
584 sp:predicate rdf:type ; 573 sp:predicate rdf:type ;
585 sp:subject 574 sp:subject
586 - [ sp:varName "productionOperationReport"^^xsd:string
587 - ]
588 - ] [ sp:object
589 [ sp:varName "productionReport"^^xsd:string 575 [ sp:varName "productionReport"^^xsd:string
590 - ] ;
591 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
592 - sp:subject
593 - [ sp:varName "productionOperationReport"^^xsd:string
594 ] 576 ]
595 ] [ sp:object 577 ] [ sp:object
596 [ sp:varName "productionOperationRef"^^xsd:string 578 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -616,26 +598,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -616,26 +598,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
616 sp:subject 598 sp:subject
617 [ sp:varName "nameRef"^^xsd:string 599 [ sp:varName "nameRef"^^xsd:string
618 ] 600 ]
619 - ] [ sp:object 601 + ] [ rdf:type sp:Optional ;
620 - [ sp:varName "kind"^^xsd:string 602 + sp:elements ([ sp:object
603 + [ sp:varName "periodKindRef"^^xsd:string
621 ] ; 604 ] ;
622 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; 605 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
606 + sp:subject
607 + [ sp:varName "productionOperationRef"^^xsd:string
608 + ]
609 + ])
610 + ] [ rdf:type sp:Optional ;
611 + sp:elements ([ sp:object
612 + [ sp:varName "titleRef"^^xsd:string
613 + ] ;
614 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
623 sp:subject 615 sp:subject
624 [ sp:varName "productionOperationRef"^^xsd:string 616 [ sp:varName "productionOperationRef"^^xsd:string
625 ] 617 ]
618 + ] [ sp:object
619 + [ sp:varName "title"^^xsd:string
620 + ] ;
621 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
622 + sp:subject
623 + [ sp:varName "titleRef"^^xsd:string
624 + ]
625 + ])
626 ] [ rdf:type sp:Bind ; 626 ] [ rdf:type sp:Bind ;
627 sp:expression 627 sp:expression
628 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; 628 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
629 - sp:arg1 [ sp:varName "kind"^^xsd:string 629 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
630 ] 630 ]
631 ] ; 631 ] ;
632 sp:variable 632 sp:variable
633 - [ sp:varName "reportKind"^^xsd:string 633 + [ sp:varName "reportPeriodType"^^xsd:string
634 ] 634 ]
635 ]) 635 ])
636 ] . 636 ] .
637 637
638 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> 638 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1>
639 rdf:type owl:Ontology ; 639 rdf:type owl:Ontology ;
640 - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ; 640 + 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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
641 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 641 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......