Showing
2 changed files
with
209 additions
and
503 deletions
| ... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
| 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/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> ; | 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> ; |
| 17 | owl:versionInfo "0.1.0"^^xsd:string . | 17 | owl:versionInfo "0.1.0"^^xsd:string . |
| 18 | 18 | ||
| 19 | ep-report:DailyDrillingReport | 19 | ep-report:DailyDrillingReport |
| ... | @@ -31,12 +31,12 @@ ep-report:DailyProductionReport | ... | @@ -31,12 +31,12 @@ ep-report:DailyProductionReport |
| 31 | rdfs:subClassOf ep-report:ProductionReport . | 31 | rdfs:subClassOf ep-report:ProductionReport . |
| 32 | 32 | ||
| 33 | ep-report:DailyReport | 33 | ep-report:DailyReport |
| 34 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 34 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 35 | rdfs:label "daily report"^^xsd:string ; | 35 | rdfs:label "daily report"^^xsd:string ; |
| 36 | rdfs:subClassOf ep-report:Report . | 36 | rdfs:subClassOf ep-report:Report . |
| 37 | 37 | ||
| 38 | ep-report:FinalDailyDrillingReport | 38 | ep-report:FinalDailyDrillingReport |
| 39 | - rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ; | 39 | + rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ; |
| 40 | rdfs:label "final daily drilling report"^^xsd:string ; | 40 | rdfs:label "final daily drilling report"^^xsd:string ; |
| 41 | rdfs:subClassOf ep-report:DailyDrillingReport . | 41 | rdfs:subClassOf ep-report:DailyDrillingReport . |
| 42 | 42 | ||
| ... | @@ -51,7 +51,7 @@ ep-report:MonthlyProductionReport | ... | @@ -51,7 +51,7 @@ ep-report:MonthlyProductionReport |
| 51 | rdfs:subClassOf ep-report:ProductionReport . | 51 | rdfs:subClassOf ep-report:ProductionReport . |
| 52 | 52 | ||
| 53 | ep-report:MonthlyReport | 53 | ep-report:MonthlyReport |
| 54 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 54 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 55 | rdfs:label "monthly report"^^xsd:string ; | 55 | rdfs:label "monthly report"^^xsd:string ; |
| 56 | rdfs:subClassOf ep-report:Report . | 56 | rdfs:subClassOf ep-report:Report . |
| 57 | 57 | ||
| ... | @@ -60,13 +60,8 @@ ep-report:NonProductivetimeReport | ... | @@ -60,13 +60,8 @@ ep-report:NonProductivetimeReport |
| 60 | rdfs:subClassOf ep-report:Report ; | 60 | rdfs:subClassOf ep-report:Report ; |
| 61 | rdfs:subClassOf | 61 | rdfs:subClassOf |
| 62 | [ rdf:type owl:Restriction ; | 62 | [ rdf:type owl:Restriction ; |
| 63 | - owl:allValuesFrom xsd:dateTime ; | ||
| 64 | - owl:onProperty ep-report:createdAt | ||
| 65 | - ] ; | ||
| 66 | - rdfs:subClassOf | ||
| 67 | - [ rdf:type owl:Restriction ; | ||
| 68 | owl:cardinality "1"^^xsd:nonNegativeInteger ; | 63 | owl:cardinality "1"^^xsd:nonNegativeInteger ; |
| 69 | - owl:onProperty ep-report:createdAt | 64 | + owl:onProperty ep-report:reportOn |
| 70 | ] ; | 65 | ] ; |
| 71 | rdfs:subClassOf | 66 | rdfs:subClassOf |
| 72 | [ rdf:type owl:Restriction ; | 67 | [ rdf:type owl:Restriction ; |
| ... | @@ -76,16 +71,21 @@ ep-report:NonProductivetimeReport | ... | @@ -76,16 +71,21 @@ ep-report:NonProductivetimeReport |
| 76 | rdfs:subClassOf | 71 | rdfs:subClassOf |
| 77 | [ rdf:type owl:Restriction ; | 72 | [ rdf:type owl:Restriction ; |
| 78 | owl:cardinality "1"^^xsd:nonNegativeInteger ; | 73 | owl:cardinality "1"^^xsd:nonNegativeInteger ; |
| 79 | - owl:onProperty ep-report:reportOn | 74 | + owl:onProperty ep-report:createdAt |
| 75 | + ] ; | ||
| 76 | + rdfs:subClassOf | ||
| 77 | + [ rdf:type owl:Restriction ; | ||
| 78 | + owl:allValuesFrom xsd:dateTime ; | ||
| 79 | + owl:onProperty ep-report:createdAt | ||
| 80 | ] . | 80 | ] . |
| 81 | 81 | ||
| 82 | ep-report:NormalDailyDrillingReport | 82 | ep-report:NormalDailyDrillingReport |
| 83 | - rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ; | 83 | + rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ; |
| 84 | rdfs:label "normal daily drilling report"^^xsd:string ; | 84 | rdfs:label "normal daily drilling report"^^xsd:string ; |
| 85 | rdfs:subClassOf ep-report:DailyDrillingReport . | 85 | rdfs:subClassOf ep-report:DailyDrillingReport . |
| 86 | 86 | ||
| 87 | ep-report:PreliminaryDailyDrillingReport | 87 | ep-report:PreliminaryDailyDrillingReport |
| 88 | - rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ; | 88 | + rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ; |
| 89 | rdfs:label "preliminary daily drilling report"^^xsd:string ; | 89 | rdfs:label "preliminary daily drilling report"^^xsd:string ; |
| 90 | rdfs:subClassOf ep-report:DailyDrillingReport . | 90 | rdfs:subClassOf ep-report:DailyDrillingReport . |
| 91 | 91 | ||
| ... | @@ -129,8 +129,8 @@ ep-report:ReportAliasIdentifier | ... | @@ -129,8 +129,8 @@ ep-report:ReportAliasIdentifier |
| 129 | rdfs:subClassOf owl:Thing ; | 129 | rdfs:subClassOf owl:Thing ; |
| 130 | rdfs:subClassOf | 130 | rdfs:subClassOf |
| 131 | [ rdf:type owl:Restriction ; | 131 | [ rdf:type owl:Restriction ; |
| 132 | - owl:minCardinality "1"^^xsd:nonNegativeInteger ; | 132 | + owl:cardinality "1"^^xsd:nonNegativeInteger ; |
| 133 | - owl:onProperty ep-report:aliasName | 133 | + owl:onProperty ep-report:isAliasFor |
| 134 | ] ; | 134 | ] ; |
| 135 | rdfs:subClassOf | 135 | rdfs:subClassOf |
| 136 | [ rdf:type owl:Restriction ; | 136 | [ rdf:type owl:Restriction ; |
| ... | @@ -139,17 +139,17 @@ ep-report:ReportAliasIdentifier | ... | @@ -139,17 +139,17 @@ ep-report:ReportAliasIdentifier |
| 139 | ] ; | 139 | ] ; |
| 140 | rdfs:subClassOf | 140 | rdfs:subClassOf |
| 141 | [ rdf:type owl:Restriction ; | 141 | [ rdf:type owl:Restriction ; |
| 142 | - owl:cardinality "1"^^xsd:nonNegativeInteger ; | 142 | + owl:minCardinality "1"^^xsd:nonNegativeInteger ; |
| 143 | - owl:onProperty ep-report:isAliasFor | 143 | + owl:onProperty ep-report:aliasName |
| 144 | ] . | 144 | ] . |
| 145 | 145 | ||
| 146 | ep-report:ReportForInstant | 146 | ep-report:ReportForInstant |
| 147 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 147 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 148 | rdfs:label "report for instant"^^xsd:string ; | 148 | rdfs:label "report for instant"^^xsd:string ; |
| 149 | rdfs:subClassOf ep-report:Report . | 149 | rdfs:subClassOf ep-report:Report . |
| 150 | 150 | ||
| 151 | ep-report:ReportMonthToDate | 151 | ep-report:ReportMonthToDate |
| 152 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 152 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 153 | rdfs:label "report month to date"^^xsd:string ; | 153 | rdfs:label "report month to date"^^xsd:string ; |
| 154 | rdfs:subClassOf ep-report:Report . | 154 | rdfs:subClassOf ep-report:Report . |
| 155 | 155 | ||
| ... | @@ -159,7 +159,7 @@ ep-report:ReportPeriodType | ... | @@ -159,7 +159,7 @@ ep-report:ReportPeriodType |
| 159 | rdfs:subClassOf owl:Class . | 159 | rdfs:subClassOf owl:Class . |
| 160 | 160 | ||
| 161 | ep-report:ReportYearToDate | 161 | ep-report:ReportYearToDate |
| 162 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 162 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 163 | rdfs:label "report year to date"^^xsd:string ; | 163 | rdfs:label "report year to date"^^xsd:string ; |
| 164 | rdfs:subClassOf ep-report:Report . | 164 | rdfs:subClassOf ep-report:Report . |
| 165 | 165 | ||
| ... | @@ -168,27 +168,27 @@ ep-report:WeeklyDrillingReport | ... | @@ -168,27 +168,27 @@ ep-report:WeeklyDrillingReport |
| 168 | rdfs:subClassOf ep-report:Report ; | 168 | rdfs:subClassOf ep-report:Report ; |
| 169 | rdfs:subClassOf | 169 | rdfs:subClassOf |
| 170 | [ rdf:type owl:Restriction ; | 170 | [ rdf:type owl:Restriction ; |
| 171 | - owl:allValuesFrom ep-report:DailyDrillingReport ; | 171 | + owl:cardinality "1"^^xsd:nonNegativeInteger ; |
| 172 | - owl:onProperty ep-report:reportOn | 172 | + owl:onProperty ep-report:createdAt |
| 173 | ] ; | 173 | ] ; |
| 174 | rdfs:subClassOf | 174 | rdfs:subClassOf |
| 175 | [ rdf:type owl:Restriction ; | 175 | [ rdf:type owl:Restriction ; |
| 176 | - owl:cardinality "7"^^xsd:nonNegativeInteger ; | 176 | + owl:allValuesFrom xsd:dateTime ; |
| 177 | - owl:onProperty ep-report:reportOn | 177 | + owl:onProperty ep-report:createdAt |
| 178 | ] ; | 178 | ] ; |
| 179 | rdfs:subClassOf | 179 | rdfs:subClassOf |
| 180 | [ rdf:type owl:Restriction ; | 180 | [ rdf:type owl:Restriction ; |
| 181 | - owl:allValuesFrom xsd:dateTime ; | 181 | + owl:cardinality "7"^^xsd:nonNegativeInteger ; |
| 182 | - owl:onProperty ep-report:createdAt | 182 | + owl:onProperty ep-report:reportOn |
| 183 | ] ; | 183 | ] ; |
| 184 | rdfs:subClassOf | 184 | rdfs:subClassOf |
| 185 | [ rdf:type owl:Restriction ; | 185 | [ rdf:type owl:Restriction ; |
| 186 | - owl:cardinality "1"^^xsd:nonNegativeInteger ; | 186 | + owl:allValuesFrom ep-report:DailyDrillingReport ; |
| 187 | - owl:onProperty ep-report:createdAt | 187 | + owl:onProperty ep-report:reportOn |
| 188 | ] . | 188 | ] . |
| 189 | 189 | ||
| 190 | ep-report:WeeklyReport | 190 | ep-report:WeeklyReport |
| 191 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 191 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 192 | rdfs:label "weekly report"^^xsd:string ; | 192 | rdfs:label "weekly report"^^xsd:string ; |
| 193 | rdfs:subClassOf ep-report:Report . | 193 | rdfs:subClassOf ep-report:Report . |
| 194 | 194 | ||
| ... | @@ -198,7 +198,7 @@ ep-report:WellTestReport | ... | @@ -198,7 +198,7 @@ ep-report:WellTestReport |
| 198 | rdfs:subClassOf ep-report:Report . | 198 | rdfs:subClassOf ep-report:Report . |
| 199 | 199 | ||
| 200 | ep-report:YearlyReport | 200 | ep-report:YearlyReport |
| 201 | - rdf:type owl:Class , ep-report:ReportPeriodType ; | 201 | + rdf:type ep-report:ReportPeriodType , owl:Class ; |
| 202 | rdfs:label "yearly report"^^xsd:string ; | 202 | rdfs:label "yearly report"^^xsd:string ; |
| 203 | rdfs:subClassOf ep-report:Report . | 203 | rdfs:subClassOf ep-report:Report . |
| 204 | 204 | ||
| ... | @@ -211,12 +211,12 @@ ep-report:aliasOwner | ... | @@ -211,12 +211,12 @@ ep-report:aliasOwner |
| 211 | rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . | 211 | rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . |
| 212 | 212 | ||
| 213 | ep-report:createdAt | 213 | ep-report:createdAt |
| 214 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 214 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 215 | rdfs:domain ep-report:Report ; | 215 | rdfs:domain ep-report:Report ; |
| 216 | rdfs:label "created at"^^xsd:string . | 216 | rdfs:label "created at"^^xsd:string . |
| 217 | 217 | ||
| 218 | ep-report:dailyDrillingReportNumber | 218 | ep-report:dailyDrillingReportNumber |
| 219 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 219 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 220 | rdfs:domain ep-report:DailyDrillingReport ; | 220 | rdfs:domain ep-report:DailyDrillingReport ; |
| 221 | rdfs:label "daily drilling report number"^^xsd:string . | 221 | rdfs:label "daily drilling report number"^^xsd:string . |
| 222 | 222 | ||
| ... | @@ -241,7 +241,7 @@ ep-report:disclaimer | ... | @@ -241,7 +241,7 @@ ep-report:disclaimer |
| 241 | rdfs:range xsd:string . | 241 | rdfs:range xsd:string . |
| 242 | 242 | ||
| 243 | ep-report:hasContent | 243 | ep-report:hasContent |
| 244 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 244 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 245 | rdfs:domain ep-report:Report ; | 245 | rdfs:domain ep-report:Report ; |
| 246 | rdfs:label "has content"^^xsd:string . | 246 | rdfs:label "has content"^^xsd:string . |
| 247 | 247 | ||
| ... | @@ -250,12 +250,12 @@ ep-report:isAliasFor | ... | @@ -250,12 +250,12 @@ ep-report:isAliasFor |
| 250 | rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . | 250 | rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . |
| 251 | 251 | ||
| 252 | ep-report:issuedAt | 252 | ep-report:issuedAt |
| 253 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 253 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 254 | rdfs:domain ep-report:Report ; | 254 | rdfs:domain ep-report:Report ; |
| 255 | rdfs:label "issued at"^^xsd:string . | 255 | rdfs:label "issued at"^^xsd:string . |
| 256 | 256 | ||
| 257 | ep-report:nameAsDatumObject | 257 | ep-report:nameAsDatumObject |
| 258 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 258 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 259 | rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; | 259 | rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; |
| 260 | rdfs:label "name as datum object"^^xsd:string . | 260 | rdfs:label "name as datum object"^^xsd:string . |
| 261 | 261 | ||
| ... | @@ -263,3 +263,9 @@ ep-report:reportOn | ... | @@ -263,3 +263,9 @@ ep-report:reportOn |
| 263 | rdf:type owl:ObjectProperty ; | 263 | rdf:type owl:ObjectProperty ; |
| 264 | rdfs:domain ep-report:Report ; | 264 | rdfs:domain ep-report:Report ; |
| 265 | rdfs:label "report on"^^xsd:string . | 265 | rdfs:label "report on"^^xsd:string . |
| 266 | + | ||
| 267 | +ep-report:reportSubmittedBy | ||
| 268 | + rdf:type owl:FunctionalProperty , owl:ObjectProperty ; | ||
| 269 | + rdfs:domain ep-report:Report ; | ||
| 270 | + rdfs:label "report submitted by"^^xsd:string ; | ||
| 271 | + rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | ... | ... |
| ... | @@ -20,10 +20,8 @@ | ... | @@ -20,10 +20,8 @@ |
| 20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
| 21 | spin:rule | 21 | spin:rule |
| 22 | [ rdf:type sp:Construct ; | 22 | [ rdf:type sp:Construct ; |
| 23 | - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | 23 | + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; |
| 24 | - sp:templates ([ sp:object | 24 | + sp:templates ([ sp:object "noDate" ; |
| 25 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 26 | - ] ; | ||
| 27 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 25 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
| 28 | sp:subject spin:_this | 26 | sp:subject spin:_this |
| 29 | ]) ; | 27 | ]) ; |
| ... | @@ -37,105 +35,100 @@ | ... | @@ -37,105 +35,100 @@ |
| 37 | sp:subject | 35 | sp:subject |
| 38 | [ sp:varName "contextRef"^^xsd:string | 36 | [ sp:varName "contextRef"^^xsd:string |
| 39 | ] | 37 | ] |
| 40 | - ] [ sp:object | 38 | + ] [ rdf:type sp:NotExists ; |
| 41 | - [ sp:varName "dateStart"^^xsd:string | 39 | + sp:elements ([ sp:object |
| 42 | - ] ; | ||
| 43 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 44 | - sp:subject | ||
| 45 | - [ sp:varName "contextRef"^^xsd:string | ||
| 46 | - ] | ||
| 47 | - ] [ sp:object | ||
| 48 | [ sp:varName "dateEnd"^^xsd:string | 40 | [ sp:varName "dateEnd"^^xsd:string |
| 49 | ] ; | 41 | ] ; |
| 50 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 42 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 51 | sp:subject | 43 | sp:subject |
| 52 | [ sp:varName "contextRef"^^xsd:string | 44 | [ sp:varName "contextRef"^^xsd:string |
| 53 | ] | 45 | ] |
| 54 | - ] [ rdf:type sp:Bind ; | 46 | + ]) |
| 55 | - sp:expression | 47 | + ] [ rdf:type sp:NotExists ; |
| 56 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 48 | + sp:elements ([ sp:object |
| 57 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | 49 | + [ sp:varName "date"^^xsd:string |
| 58 | ] ; | 50 | ] ; |
| 59 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 51 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
| 52 | + sp:subject | ||
| 53 | + [ sp:varName "contextRef"^^xsd:string | ||
| 60 | ] | 54 | ] |
| 55 | + ]) | ||
| 56 | + ] [ rdf:type sp:NotExists ; | ||
| 57 | + sp:elements ([ sp:object | ||
| 58 | + [ sp:varName "dateStart"^^xsd:string | ||
| 61 | ] ; | 59 | ] ; |
| 62 | - sp:variable | 60 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 63 | - [ sp:varName "intervalIdentifier"^^xsd:string | 61 | + sp:subject |
| 62 | + [ sp:varName "contextRef"^^xsd:string | ||
| 64 | ] | 63 | ] |
| 65 | ]) | 64 | ]) |
| 65 | + ]) | ||
| 66 | ] ; | 66 | ] ; |
| 67 | spin:rule | 67 | spin:rule |
| 68 | [ rdf:type sp:Construct ; | 68 | [ rdf:type sp:Construct ; |
| 69 | - rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; | 69 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; |
| 70 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 70 | + sp:templates ([ sp:object |
| 71 | - sp:predicate rdf:type ; | 71 | + [ sp:varName "dateEnd"^^xsd:string |
| 72 | - sp:subject | ||
| 73 | - [ sp:varName "productionReport"^^xsd:string | ||
| 74 | - ] | ||
| 75 | - ] [ sp:object _:b1 ; | ||
| 76 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 77 | - sp:subject | ||
| 78 | - [ sp:varName "productionReport"^^xsd:string | ||
| 79 | - ] | ||
| 80 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 81 | - sp:predicate rdf:type ; | ||
| 82 | - sp:subject _:b1 | ||
| 83 | - ] [ sp:object spin:_this ; | ||
| 84 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 85 | - sp:subject | ||
| 86 | - [ sp:varName "productionReport"^^xsd:string | ||
| 87 | - ] | ||
| 88 | - ] [ sp:object | ||
| 89 | - [ sp:varName "contextRef"^^xsd:string | ||
| 90 | - ] ; | ||
| 91 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 92 | - sp:subject _:b1 | ||
| 93 | - ]) ; | ||
| 94 | - sp:where ([ sp:object | ||
| 95 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 96 | ] ; | 72 | ] ; |
| 97 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 73 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
| 98 | sp:subject spin:_this | 74 | sp:subject spin:_this |
| 99 | - ] [ rdf:type sp:NotExists ; | 75 | + ]) ; |
| 100 | - sp:elements ([ sp:object | 76 | + sp:where ([ sp:object |
| 101 | - [ sp:varName "productVolumeRef"^^xsd:string | 77 | + [ sp:varName "contextRef"^^xsd:string |
| 102 | ] ; | 78 | ] ; |
| 103 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 79 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
| 104 | sp:subject spin:_this | 80 | sp:subject spin:_this |
| 105 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 81 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
| 106 | sp:predicate rdf:type ; | 82 | sp:predicate rdf:type ; |
| 107 | sp:subject | 83 | sp:subject |
| 108 | - [ sp:varName "productVolumeRef"^^xsd:string | 84 | + [ sp:varName "contextRef"^^xsd:string |
| 109 | ] | 85 | ] |
| 110 | ] [ sp:object | 86 | ] [ sp:object |
| 111 | - [ sp:varName "something"^^xsd:string | 87 | + [ sp:varName "dateEnd"^^xsd:string |
| 112 | ] ; | 88 | ] ; |
| 113 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 89 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 114 | sp:subject | 90 | sp:subject |
| 115 | - [ sp:varName "productVolumeRef"^^xsd:string | 91 | + [ sp:varName "contextRef"^^xsd:string |
| 92 | + ] | ||
| 93 | + ] [ rdf:type sp:NotExists ; | ||
| 94 | + sp:elements ([ sp:object | ||
| 95 | + [ sp:varName "date"^^xsd:string | ||
| 96 | + ] ; | ||
| 97 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 98 | + sp:subject | ||
| 99 | + [ sp:varName "contextRef"^^xsd:string | ||
| 116 | ] | 100 | ] |
| 117 | ]) | 101 | ]) |
| 118 | ] [ rdf:type sp:NotExists ; | 102 | ] [ rdf:type sp:NotExists ; |
| 119 | sp:elements ([ sp:object | 103 | sp:elements ([ sp:object |
| 120 | - [ sp:varName "productionOperationRef"^^xsd:string | 104 | + [ sp:varName "dateStart"^^xsd:string |
| 121 | ] ; | 105 | ] ; |
| 122 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 106 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 123 | - sp:subject spin:_this | 107 | + sp:subject |
| 124 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 108 | + [ sp:varName "contextRef"^^xsd:string |
| 125 | - sp:predicate rdf:type ; | 109 | + ] |
| 110 | + ]) | ||
| 111 | + ]) | ||
| 112 | + ] ; | ||
| 113 | + spin:rule | ||
| 114 | + [ rdf:type sp:Construct ; | ||
| 115 | + rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; | ||
| 116 | + sp:templates ([ sp:object | ||
| 117 | + [ sp:varName "month"^^xsd:string | ||
| 118 | + ] ; | ||
| 119 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
| 126 | sp:subject | 120 | sp:subject |
| 127 | - [ sp:varName "productionOperationRef"^^xsd:string | 121 | + [ sp:varName "productionReport"^^xsd:string |
| 128 | ] | 122 | ] |
| 129 | ] [ sp:object | 123 | ] [ sp:object |
| 130 | - [ sp:varName "somethingElse"^^xsd:string | 124 | + [ sp:varName "title"^^xsd:string |
| 131 | ] ; | 125 | ] ; |
| 132 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 126 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 133 | sp:subject | 127 | sp:subject |
| 134 | - [ sp:varName "productionOperationRef"^^xsd:string | 128 | + [ sp:varName "productionReport"^^xsd:string |
| 135 | ] | 129 | ] |
| 136 | - ]) | 130 | + ]) ; |
| 137 | - ] [ rdf:type sp:NotExists ; | 131 | + sp:where ([ sp:object |
| 138 | - sp:elements ([ sp:object | ||
| 139 | [ sp:varName "contextRef"^^xsd:string | 132 | [ sp:varName "contextRef"^^xsd:string |
| 140 | ] ; | 133 | ] ; |
| 141 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 134 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
| ... | @@ -145,31 +138,34 @@ | ... | @@ -145,31 +138,34 @@ |
| 145 | sp:subject | 138 | sp:subject |
| 146 | [ sp:varName "contextRef"^^xsd:string | 139 | [ sp:varName "contextRef"^^xsd:string |
| 147 | ] | 140 | ] |
| 148 | - ] [ sp:object | 141 | + ] [ rdf:type sp:Optional ; |
| 149 | - [ sp:varName "somethingElseElse"^^xsd:string | 142 | + sp:elements ([ sp:object |
| 143 | + [ sp:varName "month"^^xsd:string | ||
| 150 | ] ; | 144 | ] ; |
| 151 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 145 | + sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; |
| 152 | sp:subject | 146 | sp:subject |
| 153 | [ sp:varName "contextRef"^^xsd:string | 147 | [ sp:varName "contextRef"^^xsd:string |
| 154 | ] | 148 | ] |
| 155 | ]) | 149 | ]) |
| 156 | - ] [ rdf:type sp:Bind ; | 150 | + ] [ rdf:type sp:Optional ; |
| 157 | - sp:expression | 151 | + sp:elements ([ sp:object |
| 158 | - [ rdf:type ep-spin-lib:normalizeString ; | 152 | + [ sp:varName "titleRef"^^xsd:string |
| 159 | - sp:arg1 "noInstallation" | ||
| 160 | ] ; | 153 | ] ; |
| 161 | - sp:variable | 154 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; |
| 162 | - [ sp:varName "normalizedName"^^xsd:string | 155 | + sp:subject |
| 156 | + [ sp:varName "contextRef"^^xsd:string | ||
| 163 | ] | 157 | ] |
| 164 | - ] [ rdf:type sp:Bind ; | 158 | + ] [ sp:object |
| 165 | - sp:expression | 159 | + [ sp:varName "title"^^xsd:string |
| 166 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
| 167 | - sp:arg1 [ sp:varName "normalizedName"^^xsd:string | ||
| 168 | ] ; | 160 | ] ; |
| 169 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | 161 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 162 | + sp:subject | ||
| 163 | + [ sp:varName "titleRef"^^xsd:string | ||
| 170 | ] | 164 | ] |
| 171 | - ] ; | 165 | + ]) |
| 172 | - sp:variable | 166 | + ] [ sp:object spin:_this ; |
| 167 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 168 | + sp:subject | ||
| 173 | [ sp:varName "productionReport"^^xsd:string | 169 | [ sp:varName "productionReport"^^xsd:string |
| 174 | ] | 170 | ] |
| 175 | ]) | 171 | ]) |
| ... | @@ -217,7 +213,7 @@ | ... | @@ -217,7 +213,7 @@ |
| 217 | ] [ sp:object | 213 | ] [ sp:object |
| 218 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 214 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 219 | ] ; | 215 | ] ; |
| 220 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 216 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
| 221 | sp:subject | 217 | sp:subject |
| 222 | [ sp:varName "productionReport"^^xsd:string | 218 | [ sp:varName "productionReport"^^xsd:string |
| 223 | ] | 219 | ] |
| ... | @@ -292,95 +288,111 @@ | ... | @@ -292,95 +288,111 @@ |
| 292 | ] ; | 288 | ] ; |
| 293 | spin:rule | 289 | spin:rule |
| 294 | [ rdf:type sp:Construct ; | 290 | [ rdf:type sp:Construct ; |
| 295 | - rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; | 291 | + rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ; |
| 296 | - sp:templates ([ sp:object | 292 | + sp:templates ([ sp:object _:b1 ; |
| 297 | - [ sp:varName "month"^^xsd:string | 293 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
| 298 | - ] ; | ||
| 299 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
| 300 | sp:subject | 294 | sp:subject |
| 301 | [ sp:varName "productionReport"^^xsd:string | 295 | [ sp:varName "productionReport"^^xsd:string |
| 302 | ] | 296 | ] |
| 297 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 298 | + sp:predicate rdf:type ; | ||
| 299 | + sp:subject _:b1 | ||
| 303 | ] [ sp:object | 300 | ] [ sp:object |
| 304 | - [ sp:varName "title"^^xsd:string | 301 | + [ sp:varName "installation"^^xsd:string |
| 305 | ] ; | 302 | ] ; |
| 306 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 303 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 307 | - sp:subject | 304 | + sp:subject _:b1 |
| 308 | - [ sp:varName "productionReport"^^xsd:string | ||
| 309 | - ] | ||
| 310 | ]) ; | 305 | ]) ; |
| 311 | sp:where ([ sp:object | 306 | sp:where ([ sp:object |
| 312 | [ sp:varName "contextRef"^^xsd:string | 307 | [ sp:varName "contextRef"^^xsd:string |
| 313 | ] ; | 308 | ] ; |
| 314 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 309 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
| 315 | sp:subject spin:_this | 310 | sp:subject spin:_this |
| 311 | + ] [ sp:object spin:_this ; | ||
| 312 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 313 | + sp:subject | ||
| 314 | + [ sp:varName "productionReport"^^xsd:string | ||
| 315 | + ] | ||
| 316 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 316 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
| 317 | sp:predicate rdf:type ; | 317 | sp:predicate rdf:type ; |
| 318 | sp:subject | 318 | sp:subject |
| 319 | [ sp:varName "contextRef"^^xsd:string | 319 | [ sp:varName "contextRef"^^xsd:string |
| 320 | ] | 320 | ] |
| 321 | - ] [ rdf:type sp:Optional ; | 321 | + ] [ sp:object |
| 322 | - sp:elements ([ sp:object | 322 | + [ sp:varName "installationRef"^^xsd:string |
| 323 | - [ sp:varName "month"^^xsd:string | ||
| 324 | ] ; | 323 | ] ; |
| 325 | - sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; | 324 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 326 | sp:subject | 325 | sp:subject |
| 327 | [ sp:varName "contextRef"^^xsd:string | 326 | [ sp:varName "contextRef"^^xsd:string |
| 328 | ] | 327 | ] |
| 328 | + ] [ sp:object | ||
| 329 | + [ sp:varName "installationRef"^^xsd:string | ||
| 330 | + ] ; | ||
| 331 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 332 | + sp:subject | ||
| 333 | + [ sp:varName "installation"^^xsd:string | ||
| 334 | + ] | ||
| 329 | ]) | 335 | ]) |
| 330 | - ] [ rdf:type sp:Optional ; | ||
| 331 | - sp:elements ([ sp:object | ||
| 332 | - [ sp:varName "titleRef"^^xsd:string | ||
| 333 | ] ; | 336 | ] ; |
| 334 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | 337 | + spin:rule |
| 338 | + [ rdf:type sp:Construct ; | ||
| 339 | + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | ||
| 340 | + sp:templates ([ sp:object | ||
| 341 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 342 | + ] ; | ||
| 343 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 344 | + sp:subject spin:_this | ||
| 345 | + ]) ; | ||
| 346 | + sp:where ([ sp:object | ||
| 347 | + [ sp:varName "contextRef"^^xsd:string | ||
| 348 | + ] ; | ||
| 349 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 350 | + sp:subject spin:_this | ||
| 351 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 352 | + sp:predicate rdf:type ; | ||
| 335 | sp:subject | 353 | sp:subject |
| 336 | [ sp:varName "contextRef"^^xsd:string | 354 | [ sp:varName "contextRef"^^xsd:string |
| 337 | ] | 355 | ] |
| 338 | ] [ sp:object | 356 | ] [ sp:object |
| 339 | - [ sp:varName "title"^^xsd:string | 357 | + [ sp:varName "dateStart"^^xsd:string |
| 340 | ] ; | 358 | ] ; |
| 341 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 359 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 342 | sp:subject | 360 | sp:subject |
| 343 | - [ sp:varName "titleRef"^^xsd:string | 361 | + [ sp:varName "contextRef"^^xsd:string |
| 344 | ] | 362 | ] |
| 345 | - ]) | 363 | + ] [ sp:object |
| 346 | - ] [ sp:object spin:_this ; | 364 | + [ sp:varName "dateEnd"^^xsd:string |
| 347 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 365 | + ] ; |
| 366 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 348 | sp:subject | 367 | sp:subject |
| 349 | - [ sp:varName "productionReport"^^xsd:string | 368 | + [ sp:varName "contextRef"^^xsd:string |
| 369 | + ] | ||
| 370 | + ] [ rdf:type sp:Bind ; | ||
| 371 | + sp:expression | ||
| 372 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
| 373 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 374 | + ] ; | ||
| 375 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
| 376 | + ] | ||
| 377 | + ] ; | ||
| 378 | + sp:variable | ||
| 379 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 350 | ] | 380 | ] |
| 351 | ]) | 381 | ]) |
| 352 | ] ; | 382 | ] ; |
| 353 | spin:rule | 383 | spin:rule |
| 354 | [ rdf:type sp:Construct ; | 384 | [ rdf:type sp:Construct ; |
| 355 | - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; | 385 | + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from productVolume/installation where the installation is a field"^^xsd:string ; |
| 356 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 386 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; |
| 357 | sp:predicate rdf:type ; | 387 | sp:predicate rdf:type ; |
| 358 | sp:subject | 388 | sp:subject |
| 359 | [ sp:varName "productionReport"^^xsd:string | 389 | [ sp:varName "productionReport"^^xsd:string |
| 360 | ] | 390 | ] |
| 361 | - ] [ sp:object _:b2 ; | ||
| 362 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 363 | - sp:subject | ||
| 364 | - [ sp:varName "productionReport"^^xsd:string | ||
| 365 | - ] | ||
| 366 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 367 | - sp:predicate rdf:type ; | ||
| 368 | - sp:subject _:b2 | ||
| 369 | - ] [ sp:object | ||
| 370 | - [ sp:varName "installation"^^xsd:string | ||
| 371 | - ] ; | ||
| 372 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 373 | - sp:subject _:b2 | ||
| 374 | ] [ sp:object spin:_this ; | 391 | ] [ sp:object spin:_this ; |
| 375 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 392 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 376 | sp:subject | 393 | sp:subject |
| 377 | [ sp:varName "productionReport"^^xsd:string | 394 | [ sp:varName "productionReport"^^xsd:string |
| 378 | ] | 395 | ] |
| 379 | - ] [ sp:object | ||
| 380 | - [ sp:varName "contextRef"^^xsd:string | ||
| 381 | - ] ; | ||
| 382 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 383 | - sp:subject _:b2 | ||
| 384 | ]) ; | 396 | ]) ; |
| 385 | sp:where ([ sp:object | 397 | sp:where ([ sp:object |
| 386 | [ sp:varName "intervalIdentifier"^^xsd:string | 398 | [ sp:varName "intervalIdentifier"^^xsd:string |
| ... | @@ -411,44 +423,11 @@ | ... | @@ -411,44 +423,11 @@ |
| 411 | sp:subject | 423 | sp:subject |
| 412 | [ sp:varName "installation"^^xsd:string | 424 | [ sp:varName "installation"^^xsd:string |
| 413 | ] | 425 | ] |
| 414 | - ] [ rdf:type sp:NotExists ; | 426 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; |
| 415 | - sp:elements ([ sp:object | 427 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
| 416 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 417 | - ] ; | ||
| 418 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 419 | - sp:subject spin:_this | ||
| 420 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 421 | - sp:predicate rdf:type ; | ||
| 422 | sp:subject | 428 | sp:subject |
| 423 | - [ sp:varName "productionOperationRef"^^xsd:string | 429 | + [ sp:varName "installationRef"^^xsd:string |
| 424 | ] | 430 | ] |
| 425 | - ] [ sp:object | ||
| 426 | - [ sp:varName "something"^^xsd:string | ||
| 427 | - ] ; | ||
| 428 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 429 | - sp:subject | ||
| 430 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 431 | - ] | ||
| 432 | - ]) | ||
| 433 | - ] [ rdf:type sp:NotExists ; | ||
| 434 | - sp:elements ([ sp:object | ||
| 435 | - [ sp:varName "contextRef"^^xsd:string | ||
| 436 | - ] ; | ||
| 437 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 438 | - sp:subject spin:_this | ||
| 439 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 440 | - sp:predicate rdf:type ; | ||
| 441 | - sp:subject | ||
| 442 | - [ sp:varName "contextRef"^^xsd:string | ||
| 443 | - ] | ||
| 444 | - ] [ sp:object | ||
| 445 | - [ sp:varName "somethingElse"^^xsd:string | ||
| 446 | - ] ; | ||
| 447 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 448 | - sp:subject | ||
| 449 | - [ sp:varName "contextRef"^^xsd:string | ||
| 450 | - ] | ||
| 451 | - ]) | ||
| 452 | ] [ rdf:type sp:Bind ; | 431 | ] [ rdf:type sp:Bind ; |
| 453 | sp:expression | 432 | sp:expression |
| 454 | [ rdf:type spl:object ; | 433 | [ rdf:type spl:object ; |
| ... | @@ -474,67 +453,22 @@ | ... | @@ -474,67 +453,22 @@ |
| 474 | ] ; | 453 | ] ; |
| 475 | spin:rule | 454 | spin:rule |
| 476 | [ rdf:type sp:Construct ; | 455 | [ rdf:type sp:Construct ; |
| 477 | - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; | 456 | + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; |
| 478 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 457 | + sp:templates ([ sp:object _:b2 ; |
| 479 | - sp:predicate rdf:type ; | 458 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
| 480 | - sp:subject | ||
| 481 | - [ sp:varName "productionReport"^^xsd:string | ||
| 482 | - ] | ||
| 483 | - ] [ sp:object _:b3 ; | ||
| 484 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 485 | sp:subject | 459 | sp:subject |
| 486 | - [ sp:varName "productionReport"^^xsd:string | 460 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 487 | ] | 461 | ] |
| 488 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 462 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
| 489 | sp:predicate rdf:type ; | 463 | sp:predicate rdf:type ; |
| 490 | - sp:subject _:b3 | 464 | + sp:subject _:b2 |
| 491 | ] [ sp:object | 465 | ] [ sp:object |
| 492 | - [ sp:varName "installation"^^xsd:string | 466 | + [ sp:varName "operator"^^xsd:string |
| 493 | ] ; | 467 | ] ; |
| 494 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 468 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 495 | - sp:subject _:b3 | 469 | + sp:subject _:b2 |
| 496 | - ] [ sp:object spin:_this ; | ||
| 497 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 498 | - sp:subject | ||
| 499 | - [ sp:varName "productionReport"^^xsd:string | ||
| 500 | - ] | ||
| 501 | - ] [ sp:object | ||
| 502 | - [ sp:varName "contextRef"^^xsd:string | ||
| 503 | - ] ; | ||
| 504 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 505 | - sp:subject _:b3 | ||
| 506 | ]) ; | 470 | ]) ; |
| 507 | sp:where ([ sp:object | 471 | sp:where ([ sp:object |
| 508 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 509 | - ] ; | ||
| 510 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 511 | - sp:subject spin:_this | ||
| 512 | - ] [ sp:object | ||
| 513 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 514 | - ] ; | ||
| 515 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 516 | - sp:subject spin:_this | ||
| 517 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 518 | - sp:predicate rdf:type ; | ||
| 519 | - sp:subject | ||
| 520 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 521 | - ] | ||
| 522 | - ] [ sp:object | ||
| 523 | - [ sp:varName "installationRef"^^xsd:string | ||
| 524 | - ] ; | ||
| 525 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 526 | - sp:subject | ||
| 527 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 528 | - ] | ||
| 529 | - ] [ sp:object | ||
| 530 | - [ sp:varName "installationRef"^^xsd:string | ||
| 531 | - ] ; | ||
| 532 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 533 | - sp:subject | ||
| 534 | - [ sp:varName "installation"^^xsd:string | ||
| 535 | - ] | ||
| 536 | - ] [ rdf:type sp:NotExists ; | ||
| 537 | - sp:elements ([ sp:object | ||
| 538 | [ sp:varName "contextRef"^^xsd:string | 472 | [ sp:varName "contextRef"^^xsd:string |
| 539 | ] ; | 473 | ] ; |
| 540 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 474 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
| ... | @@ -545,81 +479,37 @@ | ... | @@ -545,81 +479,37 @@ |
| 545 | [ sp:varName "contextRef"^^xsd:string | 479 | [ sp:varName "contextRef"^^xsd:string |
| 546 | ] | 480 | ] |
| 547 | ] [ sp:object | 481 | ] [ sp:object |
| 548 | - [ sp:varName "something"^^xsd:string | 482 | + [ sp:varName "operatorRef"^^xsd:string |
| 549 | ] ; | 483 | ] ; |
| 550 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 484 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
| 551 | sp:subject | 485 | sp:subject |
| 552 | [ sp:varName "contextRef"^^xsd:string | 486 | [ sp:varName "contextRef"^^xsd:string |
| 553 | ] | 487 | ] |
| 554 | - ]) | 488 | + ] [ sp:object |
| 555 | - ] [ rdf:type sp:Bind ; | 489 | + [ sp:varName "operatorRef"^^xsd:string |
| 556 | - sp:expression | ||
| 557 | - [ rdf:type spl:object ; | ||
| 558 | - sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
| 559 | - ] ; | ||
| 560 | - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
| 561 | - ] ; | ||
| 562 | - sp:variable | ||
| 563 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 564 | - ] | ||
| 565 | - ] [ rdf:type sp:Bind ; | ||
| 566 | - sp:expression | ||
| 567 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
| 568 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 569 | - ] ; | ||
| 570 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 571 | - ] | ||
| 572 | - ] ; | ||
| 573 | - sp:variable | ||
| 574 | - [ sp:varName "productionReport"^^xsd:string | ||
| 575 | - ] | ||
| 576 | - ]) | ||
| 577 | - ] ; | ||
| 578 | - spin:rule | ||
| 579 | - [ rdf:type sp:Construct ; | ||
| 580 | - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | ||
| 581 | - sp:templates ([ sp:object "noDate" ; | ||
| 582 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 583 | - sp:subject spin:_this | ||
| 584 | - ]) ; | ||
| 585 | - sp:where ([ sp:object | ||
| 586 | - [ sp:varName "contextRef"^^xsd:string | ||
| 587 | ] ; | 490 | ] ; |
| 588 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 491 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 589 | - sp:subject spin:_this | ||
| 590 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 591 | - sp:predicate rdf:type ; | ||
| 592 | sp:subject | 492 | sp:subject |
| 593 | - [ sp:varName "contextRef"^^xsd:string | 493 | + [ sp:varName "operator"^^xsd:string |
| 594 | ] | 494 | ] |
| 595 | - ] [ rdf:type sp:NotExists ; | 495 | + ] [ sp:object spin:_this ; |
| 596 | - sp:elements ([ sp:object | 496 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 597 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 598 | - ] ; | ||
| 599 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 600 | sp:subject | 497 | sp:subject |
| 601 | - [ sp:varName "contextRef"^^xsd:string | 498 | + [ sp:varName "productionReport"^^xsd:string |
| 602 | ] | 499 | ] |
| 603 | - ]) | 500 | + ] [ sp:object |
| 604 | - ] [ rdf:type sp:NotExists ; | 501 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 605 | - sp:elements ([ sp:object | ||
| 606 | - [ sp:varName "date"^^xsd:string | ||
| 607 | ] ; | 502 | ] ; |
| 608 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 503 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
| 609 | sp:subject | 504 | sp:subject |
| 610 | - [ sp:varName "contextRef"^^xsd:string | 505 | + [ sp:varName "productionReport"^^xsd:string |
| 611 | ] | 506 | ] |
| 612 | - ]) | 507 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 613 | - ] [ rdf:type sp:NotExists ; | 508 | + sp:predicate rdf:type ; |
| 614 | - sp:elements ([ sp:object | ||
| 615 | - [ sp:varName "dateStart"^^xsd:string | ||
| 616 | - ] ; | ||
| 617 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 618 | sp:subject | 509 | sp:subject |
| 619 | - [ sp:varName "contextRef"^^xsd:string | 510 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 620 | ] | 511 | ] |
| 621 | ]) | 512 | ]) |
| 622 | - ]) | ||
| 623 | ] ; | 513 | ] ; |
| 624 | spin:rule | 514 | spin:rule |
| 625 | [ rdf:type sp:Construct ; | 515 | [ rdf:type sp:Construct ; |
| ... | @@ -666,199 +556,9 @@ | ... | @@ -666,199 +556,9 @@ |
| 666 | ] | 556 | ] |
| 667 | ]) | 557 | ]) |
| 668 | ]) | 558 | ]) |
| 669 | - ] ; | ||
| 670 | - spin:rule | ||
| 671 | - [ rdf:type sp:Construct ; | ||
| 672 | - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; | ||
| 673 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 674 | - sp:predicate rdf:type ; | ||
| 675 | - sp:subject | ||
| 676 | - [ sp:varName "productionReport"^^xsd:string | ||
| 677 | - ] | ||
| 678 | - ] [ sp:object _:b4 ; | ||
| 679 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 680 | - sp:subject | ||
| 681 | - [ sp:varName "productionReport"^^xsd:string | ||
| 682 | - ] | ||
| 683 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 684 | - sp:predicate rdf:type ; | ||
| 685 | - sp:subject _:b4 | ||
| 686 | - ] [ sp:object | ||
| 687 | - [ sp:varName "installation"^^xsd:string | ||
| 688 | - ] ; | ||
| 689 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 690 | - sp:subject _:b4 | ||
| 691 | - ] [ sp:object spin:_this ; | ||
| 692 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 693 | - sp:subject | ||
| 694 | - [ sp:varName "productionReport"^^xsd:string | ||
| 695 | - ] | ||
| 696 | - ] [ sp:object | ||
| 697 | - [ sp:varName "contextRef"^^xsd:string | ||
| 698 | - ] ; | ||
| 699 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 700 | - sp:subject _:b4 | ||
| 701 | - ]) ; | ||
| 702 | - sp:where ([ sp:object | ||
| 703 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 704 | - ] ; | ||
| 705 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 706 | - sp:subject spin:_this | ||
| 707 | - ] [ sp:object | ||
| 708 | - [ sp:varName "contextRef"^^xsd:string | ||
| 709 | - ] ; | ||
| 710 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 711 | - sp:subject spin:_this | ||
| 712 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 713 | - sp:predicate rdf:type ; | ||
| 714 | - sp:subject | ||
| 715 | - [ sp:varName "contextRef"^^xsd:string | ||
| 716 | - ] | ||
| 717 | - ] [ sp:object | ||
| 718 | - [ sp:varName "installationRef"^^xsd:string | ||
| 719 | - ] ; | ||
| 720 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 721 | - sp:subject | ||
| 722 | - [ sp:varName "contextRef"^^xsd:string | ||
| 723 | - ] | ||
| 724 | - ] [ sp:object | ||
| 725 | - [ sp:varName "installationRef"^^xsd:string | ||
| 726 | - ] ; | ||
| 727 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 728 | - sp:subject | ||
| 729 | - [ sp:varName "installation"^^xsd:string | ||
| 730 | - ] | ||
| 731 | - ] [ rdf:type sp:Bind ; | ||
| 732 | - sp:expression | ||
| 733 | - [ rdf:type spl:object ; | ||
| 734 | - sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
| 735 | - ] ; | ||
| 736 | - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> | ||
| 737 | - ] ; | ||
| 738 | - sp:variable | ||
| 739 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 740 | - ] | ||
| 741 | - ] [ rdf:type sp:Bind ; | ||
| 742 | - sp:expression | ||
| 743 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
| 744 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
| 745 | - ] ; | ||
| 746 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 747 | - ] | ||
| 748 | - ] ; | ||
| 749 | - sp:variable | ||
| 750 | - [ sp:varName "productionReport"^^xsd:string | ||
| 751 | - ] | ||
| 752 | - ]) | ||
| 753 | - ] ; | ||
| 754 | - spin:rule | ||
| 755 | - [ rdf:type sp:Construct ; | ||
| 756 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | ||
| 757 | - sp:templates ([ sp:object | ||
| 758 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 759 | - ] ; | ||
| 760 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 761 | - sp:subject spin:_this | ||
| 762 | - ]) ; | ||
| 763 | - sp:where ([ sp:object | ||
| 764 | - [ sp:varName "contextRef"^^xsd:string | ||
| 765 | - ] ; | ||
| 766 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 767 | - sp:subject spin:_this | ||
| 768 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 769 | - sp:predicate rdf:type ; | ||
| 770 | - sp:subject | ||
| 771 | - [ sp:varName "contextRef"^^xsd:string | ||
| 772 | - ] | ||
| 773 | - ] [ sp:object | ||
| 774 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 775 | - ] ; | ||
| 776 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 777 | - sp:subject | ||
| 778 | - [ sp:varName "contextRef"^^xsd:string | ||
| 779 | - ] | ||
| 780 | - ] [ rdf:type sp:NotExists ; | ||
| 781 | - sp:elements ([ sp:object | ||
| 782 | - [ sp:varName "date"^^xsd:string | ||
| 783 | - ] ; | ||
| 784 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 785 | - sp:subject | ||
| 786 | - [ sp:varName "contextRef"^^xsd:string | ||
| 787 | - ] | ||
| 788 | - ]) | ||
| 789 | - ] [ rdf:type sp:NotExists ; | ||
| 790 | - sp:elements ([ sp:object | ||
| 791 | - [ sp:varName "dateStart"^^xsd:string | ||
| 792 | - ] ; | ||
| 793 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 794 | - sp:subject | ||
| 795 | - [ sp:varName "contextRef"^^xsd:string | ||
| 796 | - ] | ||
| 797 | - ]) | ||
| 798 | - ]) | ||
| 799 | - ] ; | ||
| 800 | - spin:rule | ||
| 801 | - [ rdf:type sp:Construct ; | ||
| 802 | - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | ||
| 803 | - sp:templates ([ sp:object _:b5 ; | ||
| 804 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 805 | - sp:subject | ||
| 806 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 807 | - ] | ||
| 808 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 809 | - sp:predicate rdf:type ; | ||
| 810 | - sp:subject _:b5 | ||
| 811 | - ] [ sp:object | ||
| 812 | - [ sp:varName "operator"^^xsd:string | ||
| 813 | - ] ; | ||
| 814 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 815 | - sp:subject _:b5 | ||
| 816 | - ]) ; | ||
| 817 | - sp:where ([ sp:object | ||
| 818 | - [ sp:varName "contextRef"^^xsd:string | ||
| 819 | - ] ; | ||
| 820 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 821 | - sp:subject spin:_this | ||
| 822 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 823 | - sp:predicate rdf:type ; | ||
| 824 | - sp:subject | ||
| 825 | - [ sp:varName "contextRef"^^xsd:string | ||
| 826 | - ] | ||
| 827 | - ] [ sp:object | ||
| 828 | - [ sp:varName "operatorRef"^^xsd:string | ||
| 829 | - ] ; | ||
| 830 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
| 831 | - sp:subject | ||
| 832 | - [ sp:varName "contextRef"^^xsd:string | ||
| 833 | - ] | ||
| 834 | - ] [ sp:object | ||
| 835 | - [ sp:varName "operatorRef"^^xsd:string | ||
| 836 | - ] ; | ||
| 837 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 838 | - sp:subject | ||
| 839 | - [ sp:varName "operator"^^xsd:string | ||
| 840 | - ] | ||
| 841 | - ] [ sp:object spin:_this ; | ||
| 842 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 843 | - sp:subject | ||
| 844 | - [ sp:varName "productionReport"^^xsd:string | ||
| 845 | - ] | ||
| 846 | - ] [ sp:object | ||
| 847 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 848 | - ] ; | ||
| 849 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 850 | - sp:subject | ||
| 851 | - [ sp:varName "productionReport"^^xsd:string | ||
| 852 | - ] | ||
| 853 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 854 | - sp:predicate rdf:type ; | ||
| 855 | - sp:subject | ||
| 856 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 857 | - ] | ||
| 858 | - ]) | ||
| 859 | ] . | 559 | ] . |
| 860 | 560 | ||
| 861 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | 561 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> |
| 862 | rdf:type owl:Ontology ; | 562 | rdf:type owl:Ontology ; |
| 863 | - 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> ; | 563 | + 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> ; |
| 864 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 564 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment