Showing
6 changed files
with
1039 additions
and
1039 deletions
| ... | @@ -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> . | ... | ... |
This diff could not be displayed because it is too large.
| 1 | -# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1 | 1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1 |
| 2 | -# imports: http://spinrdf.org/spin | 2 | +# imports: http://spinrdf.org/spin |
| 3 | -# imports: http://www.epim.no/schemas/mprml/1 | 3 | +# imports: http://www.epim.no/schemas/mprml/1 |
| 4 | -# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib | 4 | +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib |
| 5 | -# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib | 5 | +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib |
| 6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
| 7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/flow | 7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/flow |
| 8 | -# imports: http://www.reportinghub.no/ep/schema/1.0/material | 8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/material |
| 9 | -# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema | 9 | +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema |
| 10 | - | 10 | + |
| 11 | -@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> . | 11 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> . |
| 12 | -@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | 12 | +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . |
| 13 | -@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | 13 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . |
| 14 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 15 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 15 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 16 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 16 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 17 | -@prefix sp: <http://spinrdf.org/sp#> . | 17 | +@prefix sp: <http://spinrdf.org/sp#> . |
| 18 | -@prefix spin: <http://spinrdf.org/spin#> . | 18 | +@prefix spin: <http://spinrdf.org/spin#> . |
| 19 | -@prefix spl: <http://spinrdf.org/spl#> . | 19 | +@prefix spl: <http://spinrdf.org/spl#> . |
| 20 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 20 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 21 | - | 21 | + |
| 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 | 34 | + ] [ sp:object _:b2 ; |
| 35 | - [ sp:varName "personRoleType"^^xsd:string | 35 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 36 | - ] ; | 36 | + sp:subject _:b1 |
| 37 | - sp:predicate rdf:type ; | 37 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; |
| 38 | - sp:subject _:b1 | 38 | + sp:predicate rdf:type ; |
| 39 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ; | 39 | + sp:subject _:b2 |
| 40 | - sp:predicate rdf:type ; | 40 | + ] [ sp:object |
| 41 | - sp:subject | 41 | + [ sp:varName "personRoleType"^^xsd:string |
| 42 | - [ sp:varName "personRoleType"^^xsd:string | 42 | + ] ; |
| 43 | - ] | 43 | + sp:predicate rdf:type ; |
| 44 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; | 44 | + sp:subject _:b2 |
| 45 | - sp:predicate rdfs:subClassOf ; | 45 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ; |
| 46 | - sp:subject | 46 | + sp:predicate rdf:type ; |
| 47 | - [ sp:varName "personRoleType"^^xsd:string | 47 | + sp:subject |
| 48 | - ] | 48 | + [ sp:varName "personRoleType"^^xsd:string |
| 49 | - ] [ sp:object | 49 | + ] |
| 50 | - [ sp:varName "role"^^xsd:string | 50 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; |
| 51 | - ] ; | 51 | + sp:predicate rdfs:subClassOf ; |
| 52 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 52 | + sp:subject |
| 53 | - sp:subject | 53 | + [ sp:varName "personRoleType"^^xsd:string |
| 54 | - [ sp:varName "personRoleType"^^xsd:string | 54 | + ] |
| 55 | - ] | 55 | + ] [ sp:object |
| 56 | - ]) ; | 56 | + [ sp:varName "role"^^xsd:string |
| 57 | - sp:where ([ sp:object spin:_this ; | 57 | + ] ; |
| 58 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 58 | + sp:predicate rdfs:label ; |
| 59 | - sp:subject | 59 | + sp:subject |
| 60 | - [ sp:varName "commentingActivity"^^xsd:string | 60 | + [ sp:varName "personRoleType"^^xsd:string |
| 61 | - ] | 61 | + ] |
| 62 | - ] [ sp:object | 62 | + ]) ; |
| 63 | - [ sp:varName "commentator"^^xsd:string | 63 | + sp:where ([ sp:object spin:_this ; |
| 64 | - ] ; | 64 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 65 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; | 65 | + sp:subject |
| 66 | - sp:subject | 66 | + [ sp:varName "commentingActivity"^^xsd:string |
| 67 | - [ sp:varName "commentingActivity"^^xsd:string | 67 | + ] |
| 68 | - ] | 68 | + ] [ rdf:type sp:NotExists ; |
| 69 | - ] [ sp:object | 69 | + sp:elements ([ sp:object |
| 70 | - [ sp:varName "role"^^xsd:string | 70 | + [ sp:varName "commentator"^^xsd:string |
| 71 | - ] ; | 71 | + ] ; |
| 72 | - sp:predicate <http://www.epim.no/schemas/mprml/1#role> ; | 72 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; |
| 73 | - sp:subject spin:_this | 73 | + sp:subject |
| 74 | - ] [ rdf:type sp:Bind ; | 74 | + [ sp:varName "commentingActivity"^^xsd:string |
| 75 | - sp:expression | 75 | + ] |
| 76 | - [ rdf:type ep-mpr-spin-lib:buildPersonRoleTypeURI ; | 76 | + ]) |
| 77 | - sp:arg1 [ sp:varName "role"^^xsd:string | 77 | + ] [ sp:object |
| 78 | - ] | 78 | + [ sp:varName "role"^^xsd:string |
| 79 | - ] ; | 79 | + ] ; |
| 80 | - sp:variable | 80 | + sp:predicate <http://www.epim.no/schemas/mprml/1#role> ; |
| 81 | - [ sp:varName "personRoleType"^^xsd:string | 81 | + sp:subject spin:_this |
| 82 | - ] | 82 | + ] [ rdf:type sp:Bind ; |
| 83 | - ]) | 83 | + sp:expression |
| 84 | - ] ; | 84 | + [ rdf:type ep-mpr-spin-lib:buildPersonRoleTypeURI ; |
| 85 | - spin:rule | 85 | + sp:arg1 [ sp:varName "role"^^xsd:string |
| 86 | - [ rdf:type sp:Construct ; | 86 | + ] |
| 87 | - rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ; | 87 | + ] ; |
| 88 | - sp:templates ([ sp:object _:b2 ; | 88 | + sp:variable |
| 89 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; | 89 | + [ sp:varName "personRoleType"^^xsd:string |
| 90 | - sp:subject | 90 | + ] |
| 91 | - [ sp:varName "commentingActivity"^^xsd:string | 91 | + ]) |
| 92 | - ] | 92 | + ] ; |
| 93 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | 93 | + spin:rule |
| 94 | - sp:predicate rdf:type ; | 94 | + [ rdf:type sp:Construct ; |
| 95 | - sp:subject _:b2 | 95 | + rdfs:comment "STEP 90202 Set the commentation role (whole life person set)"^^xsd:string ; |
| 96 | - ] [ sp:object | 96 | + sp:templates ([ sp:object _:b3 ; |
| 97 | - [ sp:varName "person"^^xsd:string | 97 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 98 | - ] ; | 98 | + sp:subject |
| 99 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 99 | + [ sp:varName "commentator"^^xsd:string |
| 100 | - sp:subject _:b2 | 100 | + ] |
| 101 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#WholeLifePerson> ; | 101 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; |
| 102 | - sp:predicate rdf:type ; | 102 | + sp:predicate rdf:type ; |
| 103 | - sp:subject | 103 | + sp:subject _:b3 |
| 104 | - [ sp:varName "person"^^xsd:string | 104 | + ] [ sp:object |
| 105 | - ] | 105 | + [ sp:varName "personRoleType"^^xsd:string |
| 106 | - ] [ sp:object | 106 | + ] ; |
| 107 | - [ sp:varName "who"^^xsd:string | 107 | + sp:predicate rdf:type ; |
| 108 | - ] ; | 108 | + sp:subject _:b3 |
| 109 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 109 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ; |
| 110 | - sp:subject | 110 | + sp:predicate rdf:type ; |
| 111 | - [ sp:varName "person"^^xsd:string | 111 | + sp:subject |
| 112 | - ] | 112 | + [ sp:varName "personRoleType"^^xsd:string |
| 113 | - ]) ; | 113 | + ] |
| 114 | - sp:where ([ sp:object spin:_this ; | 114 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; |
| 115 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 115 | + sp:predicate rdfs:subClassOf ; |
| 116 | - sp:subject | 116 | + sp:subject |
| 117 | - [ sp:varName "commentingActivity"^^xsd:string | 117 | + [ sp:varName "personRoleType"^^xsd:string |
| 118 | - ] | 118 | + ] |
| 119 | - ] [ sp:object | 119 | + ] [ sp:object |
| 120 | - [ sp:varName "who"^^xsd:string | 120 | + [ sp:varName "role"^^xsd:string |
| 121 | - ] ; | 121 | + ] ; |
| 122 | - sp:predicate <http://www.epim.no/schemas/mprml/1#who> ; | 122 | + sp:predicate rdfs:label ; |
| 123 | - sp:subject spin:_this | 123 | + sp:subject |
| 124 | - ] [ rdf:type sp:Bind ; | 124 | + [ sp:varName "personRoleType"^^xsd:string |
| 125 | - sp:expression | 125 | + ] |
| 126 | - [ rdf:type ep-dpr-spin-lib:buildPersonURI ; | 126 | + ]) ; |
| 127 | - sp:arg1 [ sp:varName "who"^^xsd:string | 127 | + sp:where ([ sp:object spin:_this ; |
| 128 | - ] | 128 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 129 | - ] ; | 129 | + sp:subject |
| 130 | - sp:variable | 130 | + [ sp:varName "commentingActivity"^^xsd:string |
| 131 | - [ sp:varName "person"^^xsd:string | 131 | + ] |
| 132 | - ] | 132 | + ] [ sp:object |
| 133 | - ]) | 133 | + [ sp:varName "commentator"^^xsd:string |
| 134 | - ] ; | 134 | + ] ; |
| 135 | - spin:rule | 135 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; |
| 136 | - [ rdf:type sp:Construct ; | 136 | + sp:subject |
| 137 | - rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ; | 137 | + [ sp:varName "commentingActivity"^^xsd:string |
| 138 | - sp:templates ([ sp:object _:b3 ; | 138 | + ] |
| 139 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; | 139 | + ] [ sp:object |
| 140 | - sp:subject | 140 | + [ sp:varName "role"^^xsd:string |
| 141 | - [ sp:varName "commentingActivity"^^xsd:string | 141 | + ] ; |
| 142 | - ] | 142 | + sp:predicate <http://www.epim.no/schemas/mprml/1#role> ; |
| 143 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | 143 | + sp:subject spin:_this |
| 144 | - sp:predicate rdf:type ; | 144 | + ] [ rdf:type sp:Bind ; |
| 145 | - sp:subject _:b3 | 145 | + sp:expression |
| 146 | - ] [ sp:object _:b4 ; | 146 | + [ rdf:type ep-mpr-spin-lib:buildPersonRoleTypeURI ; |
| 147 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 147 | + sp:arg1 [ sp:varName "role"^^xsd:string |
| 148 | - sp:subject _:b3 | 148 | + ] |
| 149 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; | 149 | + ] ; |
| 150 | - sp:predicate rdf:type ; | 150 | + sp:variable |
| 151 | - sp:subject _:b4 | 151 | + [ sp:varName "personRoleType"^^xsd:string |
| 152 | - ] [ sp:object | 152 | + ] |
| 153 | - [ sp:varName "personRoleType"^^xsd:string | 153 | + ]) |
| 154 | - ] ; | 154 | + ] ; |
| 155 | - sp:predicate rdf:type ; | 155 | + spin:rule |
| 156 | - sp:subject _:b4 | 156 | + [ rdf:type sp:Construct ; |
| 157 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRoleType> ; | 157 | + rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ; |
| 158 | - sp:predicate rdf:type ; | 158 | + sp:templates ([ sp:object _:b4 ; |
| 159 | - sp:subject | 159 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; |
| 160 | - [ sp:varName "personRoleType"^^xsd:string | 160 | + sp:subject |
| 161 | - ] | 161 | + [ sp:varName "commentingActivity"^^xsd:string |
| 162 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonRole> ; | 162 | + ] |
| 163 | - sp:predicate rdfs:subClassOf ; | 163 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; |
| 164 | - sp:subject | 164 | + sp:predicate rdf:type ; |
| 165 | - [ sp:varName "personRoleType"^^xsd:string | 165 | + sp:subject _:b4 |
| 166 | - ] | 166 | + ] [ sp:object |
| 167 | - ] [ sp:object | 167 | + [ sp:varName "person"^^xsd:string |
| 168 | - [ sp:varName "role"^^xsd:string | 168 | + ] ; |
| 169 | - ] ; | 169 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 170 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 170 | + sp:subject _:b4 |
| 171 | - sp:subject | 171 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#WholeLifePerson> ; |
| 172 | - [ sp:varName "personRoleType"^^xsd:string | 172 | + sp:predicate rdf:type ; |
| 173 | - ] | 173 | + sp:subject |
| 174 | - ]) ; | 174 | + [ sp:varName "person"^^xsd:string |
| 175 | - sp:where ([ sp:object spin:_this ; | 175 | + ] |
| 176 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 176 | + ] [ sp:object |
| 177 | - sp:subject | 177 | + [ sp:varName "who"^^xsd:string |
| 178 | - [ sp:varName "commentingActivity"^^xsd:string | 178 | + ] ; |
| 179 | - ] | 179 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 180 | - ] [ rdf:type sp:NotExists ; | 180 | + sp:subject |
| 181 | - sp:elements ([ sp:object | 181 | + [ sp:varName "person"^^xsd:string |
| 182 | - [ sp:varName "commentator"^^xsd:string | 182 | + ] |
| 183 | - ] ; | 183 | + ]) ; |
| 184 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; | 184 | + sp:where ([ sp:object spin:_this ; |
| 185 | - sp:subject | 185 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 186 | - [ sp:varName "commentingActivity"^^xsd:string | 186 | + sp:subject |
| 187 | - ] | 187 | + [ sp:varName "commentingActivity"^^xsd:string |
| 188 | - ]) | 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 | + ] ; |
| 205 | - spin:rule | 205 | + spin:rule |
| 206 | - [ rdf:type sp:Construct ; | 206 | + [ rdf:type sp:Construct ; |
| 207 | - rdfs:comment "STEP 90200 Create the commenting activity"^^xsd:string ; | 207 | + rdfs:comment "STEP 90200 Create the commenting activity"^^xsd:string ; |
| 208 | - sp:templates ([ sp:object _:b5 ; | 208 | + sp:templates ([ sp:object _:b5 ; |
| 209 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 209 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
| 210 | - sp:subject | 210 | + sp:subject |
| 211 | - [ sp:varName "activityForComment"^^xsd:string | 211 | + [ sp:varName "activityForComment"^^xsd:string |
| 212 | - ] | 212 | + ] |
| 213 | - ] [ sp:object | 213 | + ] [ sp:object |
| 214 | - [ sp:varName "typeOfPartCommentedOn"^^xsd:string | 214 | + [ sp:varName "typeOfPartCommentedOn"^^xsd:string |
| 215 | - ] ; | 215 | + ] ; |
| 216 | - sp:predicate rdf:type ; | 216 | + sp:predicate rdf:type ; |
| 217 | - sp:subject _:b5 | 217 | + sp:subject _:b5 |
| 218 | - ] [ sp:object | 218 | + ] [ sp:object |
| 219 | - [ sp:varName "dTimStart"^^xsd:string | 219 | + [ sp:varName "dTimStart"^^xsd:string |
| 220 | - ] ; | 220 | + ] ; |
| 221 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 221 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 222 | - sp:subject _:b5 | 222 | + sp:subject _:b5 |
| 223 | - ] [ sp:object | 223 | + ] [ sp:object |
| 224 | - [ sp:varName "dTimEnd"^^xsd:string | 224 | + [ sp:varName "dTimEnd"^^xsd:string |
| 225 | - ] ; | 225 | + ] ; |
| 226 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 226 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 227 | - sp:subject _:b5 | 227 | + sp:subject _:b5 |
| 228 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MakeAComment> ; | 228 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MakeAComment> ; |
| 229 | - sp:predicate rdf:type ; | 229 | + sp:predicate rdf:type ; |
| 230 | - sp:subject _:b6 | 230 | + sp:subject _:b6 |
| 231 | - ] [ sp:object _:b5 ; | 231 | + ] [ sp:object _:b5 ; |
| 232 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ; | 232 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ; |
| 233 | - sp:subject _:b6 | 233 | + sp:subject _:b6 |
| 234 | - ] [ sp:object | 234 | + ] [ sp:object |
| 235 | - [ sp:varName "remark"^^xsd:string | 235 | + [ sp:varName "remark"^^xsd:string |
| 236 | - ] ; | 236 | + ] ; |
| 237 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ; | 237 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ; |
| 238 | - sp:subject _:b6 | 238 | + sp:subject _:b6 |
| 239 | - ] [ sp:object spin:_this ; | 239 | + ] [ sp:object spin:_this ; |
| 240 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 240 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 241 | - sp:subject _:b6 | 241 | + sp:subject _:b6 |
| 242 | - ]) ; | 242 | + ]) ; |
| 243 | - sp:where ([ sp:object spin:_this ; | 243 | + sp:where ([ sp:object spin:_this ; |
| 244 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#forComment> ; | 244 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#forComment> ; |
| 245 | - sp:subject | 245 | + sp:subject |
| 246 | - [ sp:varName "activityForComment"^^xsd:string | 246 | + [ sp:varName "activityForComment"^^xsd:string |
| 247 | - ] | 247 | + ] |
| 248 | - ] [ sp:object spin:_this ; | 248 | + ] [ sp:object spin:_this ; |
| 249 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#typeOfPartCommentedOn> ; | 249 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#typeOfPartCommentedOn> ; |
| 250 | - sp:subject | 250 | + sp:subject |
| 251 | - [ sp:varName "typeOfPartCommentedOn"^^xsd:string | 251 | + [ sp:varName "typeOfPartCommentedOn"^^xsd:string |
| 252 | - ] | 252 | + ] |
| 253 | - ] [ rdf:type sp:Optional ; | 253 | + ] [ rdf:type sp:Optional ; |
| 254 | - sp:elements ([ sp:object | 254 | + sp:elements ([ sp:object |
| 255 | - [ sp:varName "dTimStart"^^xsd:string | 255 | + [ sp:varName "dTimStart"^^xsd:string |
| 256 | - ] ; | 256 | + ] ; |
| 257 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 257 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
| 258 | - sp:subject spin:_this | 258 | + sp:subject spin:_this |
| 259 | - ]) | 259 | + ]) |
| 260 | - ] [ rdf:type sp:Optional ; | 260 | + ] [ rdf:type sp:Optional ; |
| 261 | - sp:elements ([ sp:object | 261 | + sp:elements ([ sp:object |
| 262 | - [ sp:varName "dTimEnd"^^xsd:string | 262 | + [ sp:varName "dTimEnd"^^xsd:string |
| 263 | - ] ; | 263 | + ] ; |
| 264 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 264 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
| 265 | - sp:subject spin:_this | 265 | + sp:subject spin:_this |
| 266 | - ]) | 266 | + ]) |
| 267 | - ] [ sp:object | 267 | + ] [ sp:object |
| 268 | - [ sp:varName "remark"^^xsd:string | 268 | + [ sp:varName "remark"^^xsd:string |
| 269 | - ] ; | 269 | + ] ; |
| 270 | - sp:predicate <http://www.epim.no/schemas/mprml/1#remark> ; | 270 | + sp:predicate <http://www.epim.no/schemas/mprml/1#remark> ; |
| 271 | - sp:subject spin:_this | 271 | + sp:subject spin:_this |
| 272 | - ]) | 272 | + ]) |
| 273 | - ] . | 273 | + ] . |
| 274 | - | 274 | + |
| 275 | -<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> | 275 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> |
| 276 | - rdf:type owl:Ontology ; | 276 | + rdf:type owl:Ontology ; |
| 277 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> ; | 277 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> ; |
| 278 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 278 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
| ... | @@ -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> ; |
| ... | @@ -360,34 +335,238 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -360,34 +335,238 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 360 | sp:where ([ sp:object spin:_this ; | 335 | sp:where ([ sp:object spin:_this ; |
| 361 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 336 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 362 | sp:subject | 337 | sp:subject |
| 363 | - [ sp:varName "productionReport"^^xsd:string | 338 | + [ sp:varName "productionReport"^^xsd:string |
| 339 | + ] | ||
| 340 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 341 | + sp:predicate rdf:type ; | ||
| 342 | + sp:subject | ||
| 343 | + [ sp:varName "productionReport"^^xsd:string | ||
| 344 | + ] | ||
| 345 | + ] [ sp:object | ||
| 346 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 347 | + ] ; | ||
| 348 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 349 | + sp:subject spin:_this | ||
| 350 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 351 | + sp:predicate rdf:type ; | ||
| 352 | + sp:subject | ||
| 353 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 354 | + ] | ||
| 355 | + ] [ sp:object | ||
| 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 | ||
| 511 | + ] ; | ||
| 512 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 513 | + sp:subject | ||
| 514 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 515 | + ] | ||
| 516 | + ] [ sp:object | ||
| 517 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 518 | + ] ; | ||
| 519 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 520 | + sp:subject | ||
| 521 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 522 | + ] | ||
| 523 | + ] [ sp:object | ||
| 524 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 525 | + ] ; | ||
| 526 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 527 | + sp:subject | ||
| 528 | + [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 529 | + ] | ||
| 530 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ; | ||
| 531 | + sp:predicate rdf:type ; | ||
| 532 | + sp:subject | ||
| 533 | + [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 534 | + ] | ||
| 535 | + ] [ sp:object | ||
| 536 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string | ||
| 537 | + ] ; | ||
| 538 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 539 | + sp:subject | ||
| 540 | + [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 364 | ] | 541 | ] |
| 365 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 542 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ; |
| 366 | sp:predicate rdf:type ; | 543 | sp:predicate rdf:type ; |
| 367 | sp:subject | 544 | sp:subject |
| 368 | - [ sp:varName "productionReport"^^xsd:string | 545 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string |
| 369 | ] | 546 | ] |
| 370 | ] [ sp:object | 547 | ] [ sp:object |
| 371 | [ sp:varName "productVolumeRef"^^xsd:string | 548 | [ sp:varName "productVolumeRef"^^xsd:string |
| 372 | ] ; | 549 | ] ; |
| 373 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 550 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 374 | - sp:subject spin:_this | 551 | + sp:subject |
| 375 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 552 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 553 | + ] | ||
| 554 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ; | ||
| 376 | sp:predicate rdf:type ; | 555 | sp:predicate rdf:type ; |
| 377 | sp:subject | 556 | sp:subject |
| 378 | - [ sp:varName "productVolumeRef"^^xsd:string | 557 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 379 | ] | 558 | ] |
| 380 | ] [ sp:object | 559 | ] [ sp:object |
| 381 | - [ sp:varName "productVolumeRef"^^xsd:string | 560 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string |
| 382 | ] ; | 561 | ] ; |
| 383 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 562 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 384 | sp:subject | 563 | sp:subject |
| 385 | - [ sp:varName "productVolumeReport"^^xsd:string | 564 | + [ sp:varName "productionInventoryCollection"^^xsd:string |
| 386 | ] | 565 | ] |
| 387 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 566 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ; |
| 388 | sp:predicate rdf:type ; | 567 | sp:predicate rdf:type ; |
| 389 | sp:subject | 568 | sp:subject |
| 390 | - [ sp:varName "productVolumeReport"^^xsd:string | 569 | + [ sp:varName "productionInventoryCollecctionToDate"^^xsd:string |
| 391 | ] | 570 | ] |
| 392 | ] [ sp:object | 571 | ] [ sp:object |
| 393 | [ sp:varName "productVolumeRef"^^xsd:string | 572 | [ sp:varName "productVolumeRef"^^xsd:string |
| ... | @@ -413,45 +592,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -413,45 +592,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 413 | sp:subject | 592 | sp:subject |
| 414 | [ sp:varName "productionFacilityToDate"^^xsd:string | 593 | [ sp:varName "productionFacilityToDate"^^xsd:string |
| 415 | ] | 594 | ] |
| 416 | - ] [ rdf:type sp:Optional ; | ||
| 417 | - sp:elements ([ sp:object | ||
| 418 | - [ sp:varName "periodKindRef"^^xsd:string | ||
| 419 | - ] ; | ||
| 420 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
| 421 | - sp:subject | ||
| 422 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 423 | - ] | ||
| 424 | - ]) | ||
| 425 | - ] [ rdf:type sp:Exists ; | ||
| 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 | ||
| 431 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 432 | - ] | ||
| 433 | - ] [ sp:object | ||
| 434 | - [ sp:varName "flowRef"^^xsd:string | ||
| 435 | - ] ; | ||
| 436 | - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; | ||
| 437 | - sp:subject | ||
| 438 | - [ sp:varName "facilityRef"^^xsd:string | ||
| 439 | - ] | ||
| 440 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; | ||
| 441 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
| 442 | - sp:subject | ||
| 443 | - [ sp:varName "flowRef"^^xsd:string | ||
| 444 | - ] | ||
| 445 | - ]) | ||
| 446 | - ] [ rdf:type sp:Bind ; | ||
| 447 | - sp:expression | ||
| 448 | - [ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ; | ||
| 449 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 450 | - ] | ||
| 451 | - ] ; | ||
| 452 | - sp:variable | ||
| 453 | - [ sp:varName "temporalPartDurationType"^^xsd:string | ||
| 454 | - ] | ||
| 455 | ]) | 595 | ]) |
| 456 | ] ; | 596 | ] ; |
| 457 | spin:rule | 597 | spin:rule |
| ... | @@ -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 | - ]) | ||
| 869 | - ] ; | ||
| 870 | - spin:rule | ||
| 871 | - [ rdf:type sp:Construct ; | ||
| 872 | - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; | ||
| 873 | - sp:templates ([ sp:object | ||
| 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 ; | 956 | ] [ rdf:type sp:Bind ; |
| 942 | sp:expression | 957 | sp:expression |
| 943 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | 958 | + [ rdf:type spl:object ; |
| 944 | - sp:arg1 [ sp:varName "kind"^^xsd:string | 959 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string |
| 945 | - ] | 960 | + ] ; |
| 961 | + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
| 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 | - ] ; | ||
| 965 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 966 | - sp:subject | ||
| 967 | - [ sp:varName "productionFlowNetwork"^^xsd:string | ||
| 968 | - ] | ||
| 969 | - ] [ sp:object | ||
| 970 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 971 | ] ; | 973 | ] ; |
| 972 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 974 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 973 | sp:subject | 975 | sp:subject |
| 974 | - [ sp:varName "productionFlowNetworkToDate"^^xsd:string | 976 | + [ sp:varName "productionFlowNetwork"^^xsd:string |
| 975 | ] | 977 | ] |
| 976 | ] [ sp:object | 978 | ] [ sp:object |
| 977 | - [ sp:varName "dTimStart"^^xsd:string | 979 | + [ sp:varName "dateEnd"^^xsd:string |
| 978 | ] ; | 980 | ] ; |
| 979 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 981 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 980 | sp:subject | 982 | sp:subject |
| 981 | - [ sp:varName "productionInventoryCollection"^^xsd:string | 983 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string |
| 982 | ] | 984 | ] |
| 983 | ] [ sp:object | 985 | ] [ sp:object |
| 984 | - [ sp:varName "dTimEnd"^^xsd:string | 986 | + [ sp:varName "dateEnd"^^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 |
| 1024 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
| 1025 | - sp:predicate rdf:type ; | ||
| 1026 | - sp:subject | ||
| 1027 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1028 | - ] | ||
| 1029 | - ] [ sp:object | ||
| 1030 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 1031 | - ] ; | ||
| 1032 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 1033 | - sp:subject | ||
| 1034 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1035 | - ] | ||
| 1036 | ] [ sp:object | 1019 | ] [ sp:object |
| 1037 | - [ sp:varName "dTimEnd"^^xsd:string | 1020 | + [ sp:varName "dateEnd"^^xsd:string |
| 1038 | ] ; | 1021 | ] ; |
| 1039 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 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> ; | ||
| 1025 | + sp:predicate rdf:type ; | ||
| 1040 | sp:subject | 1026 | sp:subject |
| 1041 | [ sp:varName "productVolumeRef"^^xsd:string | 1027 | [ sp:varName "productVolumeRef"^^xsd:string |
| 1042 | ] | 1028 | ] |
| 1029 | + ] [ rdf:type sp:NotExists ; | ||
| 1030 | + sp:elements ([ sp:object | ||
| 1031 | + [ sp:varName "dateEndx"^^xsd:string | ||
| 1032 | + ] ; | ||
| 1033 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 1034 | + sp:subject | ||
| 1035 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1036 | + ] | ||
| 1037 | + ]) | ||
| 1038 | + ] [ rdf:type sp:NotExists ; | ||
| 1039 | + sp:elements ([ sp:object | ||
| 1040 | + [ sp:varName "dTimEndx"^^xsd:string | ||
| 1041 | + ] ; | ||
| 1042 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 1043 | + sp:subject | ||
| 1044 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 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 | ] | 1094 | ] |
| 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 | - ] | ||
| 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 | ] |
| 1326 | + ] [ rdf:type sp:NotExists ; | ||
| 1327 | + sp:elements ([ sp:object | ||
| 1328 | + [ sp:varName "dateStartx"^^xsd:string | ||
| 1329 | + ] ; | ||
| 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> ; | ||
| 1340 | + sp:subject | ||
| 1341 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1342 | + ] | ||
| 1343 | + ]) | ||
| 1344 | + ] [ sp:object | ||
| 1345 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 1346 | + ] ; | ||
| 1347 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1348 | + sp:subject | ||
| 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 | ||
| 1355 | + ] | ||
| 1388 | ] [ sp:object | 1356 | ] [ sp:object |
| 1389 | - [ sp:varName "installationRef"^^xsd:string | 1357 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string |
| 1390 | ] ; | 1358 | ] ; |
| 1391 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 1359 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 1392 | sp:subject | 1360 | sp:subject |
| 1393 | - [ sp:varName "productVolumeRef"^^xsd:string | 1361 | + [ sp:varName "productionFlowNetwork"^^xsd:string |
| 1362 | + ] | ||
| 1363 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ; | ||
| 1364 | + sp:predicate rdf:type ; | ||
| 1365 | + sp:subject | ||
| 1366 | + [ sp:varName "productionFlowNetworkToDate"^^xsd:string | ||
| 1394 | ] | 1367 | ] |
| 1395 | ] [ sp:object | 1368 | ] [ sp:object |
| 1396 | - [ sp:varName "installationRef"^^xsd:string | 1369 | + [ sp:varName "productVolumeRef"^^xsd:string |
| 1397 | ] ; | 1370 | ] ; |
| 1398 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1371 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1399 | sp:subject | 1372 | sp:subject |
| 1400 | - [ sp:varName "productionFacility"^^xsd:string | 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 | ||
| 1401 | ] | 1379 | ] |
| 1402 | ] [ sp:object | 1380 | ] [ sp:object |
| 1403 | - [ sp:varName "contextFacilityRef"^^xsd:string | 1381 | + [ sp:varName "productionInventoryCollectionToDate"^^xsd:string |
| 1404 | ] ; | 1382 | ] ; |
| 1405 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 1383 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 1406 | sp:subject | 1384 | sp:subject |
| 1407 | - [ sp:varName "productVolumeRef"^^xsd:string | 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 | ||
| 1408 | ] | 1391 | ] |
| 1409 | ] [ sp:object | 1392 | ] [ sp:object |
| 1410 | - [ sp:varName "contextFacilityRef"^^xsd:string | 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 . | ... | ... |
This diff could not be displayed because it is too large.
| ... | @@ -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 ; | 92 | + ] [ sp:object |
| 102 | - sp:elements ([ sp:object | 93 | + [ sp:varName "kind"^^xsd:string |
| 103 | - [ sp:varName "periodKindRef"^^xsd:string | 94 | + ] ; |
| 104 | - ] ; | 95 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; |
| 105 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | 96 | + sp:subject |
| 106 | - sp:subject | 97 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 107 | - [ sp:varName "productionOperationRef"^^xsd:string | 98 | + ] |
| 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 | ||
| 119 | - [ sp:varName "title"^^xsd:string | ||
| 120 | - ] ; | ||
| 121 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 122 | - sp:subject | ||
| 123 | - [ sp:varName "titleRef"^^xsd:string | ||
| 124 | - ] | ||
| 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,38 +135,22 @@ | ... | @@ -166,38 +135,22 @@ |
| 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 ; | ||
| 170 | - sp:elements ([ sp:object | ||
| 171 | - [ sp:varName "installationRef"^^xsd:string | ||
| 172 | - ] ; | ||
| 173 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 174 | - sp:subject | ||
| 175 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 176 | - ] | ||
| 177 | - ] [ sp:object | ||
| 178 | - [ sp:varName "installationRef"^^xsd:string | ||
| 179 | - ] ; | ||
| 180 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 181 | - sp:subject | ||
| 182 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 183 | - ] | ||
| 184 | - ]) | ||
| 185 | ] [ sp:object | 138 | ] [ sp:object |
| 186 | - [ sp:varName "contextFacilityRef"^^xsd:string | 139 | + [ sp:varName "installationRef"^^xsd:string |
| 187 | ] ; | 140 | ] ; |
| 188 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 141 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 189 | sp:subject | 142 | sp:subject |
| 190 | [ sp:varName "productionOperationRef"^^xsd:string | 143 | [ sp:varName "productionOperationRef"^^xsd:string |
| 191 | ] | 144 | ] |
| 192 | ] [ sp:object | 145 | ] [ sp:object |
| 193 | - [ sp:varName "contextFacilityRef"^^xsd:string | 146 | + [ sp:varName "installationRef"^^xsd:string |
| 194 | ] ; | 147 | ] ; |
| 195 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 148 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 196 | sp:subject | 149 | sp:subject |
| 197 | - [ sp:varName "contextFacility"^^xsd:string | 150 | + [ sp:varName "productionFacility"^^xsd:string |
| 198 | ] | 151 | ] |
| 199 | ] [ sp:object | 152 | ] [ sp:object |
| 200 | - [ sp:varName "productVolumeRef"^^xsd:string | 153 | + [ sp:varName "productionOperationRef"^^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,13 +359,27 @@ | ... | @@ -374,13 +359,27 @@ |
| 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 | ] ; | 365 | ] ; |
| 381 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 366 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 382 | sp:subject | 367 | sp:subject |
| 383 | - [ sp:varName "productionFacility"^^xsd:string | 368 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 369 | + ] | ||
| 370 | + ] [ sp:object | ||
| 371 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 372 | + ] ; | ||
| 373 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 374 | + sp:subject | ||
| 375 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 376 | + ] | ||
| 377 | + ] [ sp:object | ||
| 378 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 379 | + ] ; | ||
| 380 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 381 | + sp:subject | ||
| 382 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 384 | ] | 383 | ] |
| 385 | ]) ; | 384 | ]) ; |
| 386 | sp:where ([ sp:object | 385 | sp:where ([ sp:object |
| ... | @@ -394,62 +393,18 @@ | ... | @@ -394,62 +393,18 @@ |
| 394 | [ sp:varName "productionOperationRef"^^xsd:string | 393 | [ sp:varName "productionOperationRef"^^xsd:string |
| 395 | ] | 394 | ] |
| 396 | ] [ sp:object | 395 | ] [ sp:object |
| 397 | - [ sp:varName "installationRef"^^xsd:string | 396 | + [ sp:varName "dateStart"^^xsd:string |
| 398 | - ] ; | ||
| 399 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 400 | - sp:subject | ||
| 401 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 402 | - ] | ||
| 403 | - ] [ sp:object | ||
| 404 | - [ sp:varName "installationRef"^^xsd:string | ||
| 405 | - ] ; | ||
| 406 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 407 | - sp:subject | ||
| 408 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 409 | - ] | ||
| 410 | - ] [ sp:object | ||
| 411 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 412 | ] ; | 397 | ] ; |
| 413 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 398 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 414 | sp:subject | 399 | sp:subject |
| 415 | [ sp:varName "productionOperationRef"^^xsd:string | 400 | [ sp:varName "productionOperationRef"^^xsd:string |
| 416 | ] | 401 | ] |
| 417 | ] [ sp:object | 402 | ] [ sp:object |
| 418 | - [ sp:varName "contextFacilityRef"^^xsd:string | 403 | + [ sp:varName "dateEnd"^^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 | - ] ; | ||
| 426 | - spin:rule | ||
| 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 | ||
| 433 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 434 | - ] | ||
| 435 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 436 | - sp:predicate rdf:type ; | ||
| 437 | - sp:subject _:b5 | ||
| 438 | - ] [ sp:object | ||
| 439 | - [ sp:varName "operator"^^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,22 +464,38 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -507,22 +464,38 @@ 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 | ] |
| 467 | + ] [ rdf:type sp:NotExists ; | ||
| 468 | + sp:elements ([ sp:object | ||
| 469 | + [ sp:varName "installationRef"^^xsd:string | ||
| 470 | + ] ; | ||
| 471 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 472 | + sp:subject | ||
| 473 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 474 | + ] | ||
| 475 | + ] [ sp:object | ||
| 476 | + [ sp:varName "installationRef"^^xsd:string | ||
| 477 | + ] ; | ||
| 478 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 479 | + sp:subject | ||
| 480 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 481 | + ] | ||
| 482 | + ]) | ||
| 510 | ] [ sp:object | 483 | ] [ sp:object |
| 511 | - [ sp:varName "installationRef"^^xsd:string | 484 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 512 | ] ; | 485 | ] ; |
| 513 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 486 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
| 514 | sp:subject | 487 | sp:subject |
| 515 | [ sp:varName "productionOperationRef"^^xsd:string | 488 | [ sp:varName "productionOperationRef"^^xsd:string |
| 516 | ] | 489 | ] |
| 517 | ] [ sp:object | 490 | ] [ sp:object |
| 518 | - [ sp:varName "installationRef"^^xsd:string | 491 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 519 | ] ; | 492 | ] ; |
| 520 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 493 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 521 | sp:subject | 494 | sp:subject |
| 522 | - [ sp:varName "productionFacility"^^xsd:string | 495 | + [ sp:varName "contextFacility"^^xsd:string |
| 523 | ] | 496 | ] |
| 524 | ] [ sp:object | 497 | ] [ sp:object |
| 525 | - [ sp:varName "productionOperationRef"^^xsd:string | 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 |
| 621 | - ] ; | 603 | + [ sp:varName "periodKindRef"^^xsd:string |
| 622 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | 604 | + ] ; |
| 623 | - sp:subject | 605 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; |
| 624 | - [ sp:varName "productionOperationRef"^^xsd:string | 606 | + sp:subject |
| 625 | - ] | 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> ; | ||
| 615 | + sp:subject | ||
| 616 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 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 . | ... | ... |
-
Please register or login to post a comment