Showing
1 changed file
with
640 additions
and
635 deletions
| 1 | -# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1 | 1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-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/transform/transform-helper-schema | 6 | +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema |
| 7 | - | 7 | + |
| 8 | -@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#> . | 8 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#> . |
| 9 | -@prefix arg: <http://spinrdf.org/arg#> . | 9 | +@prefix arg: <http://spinrdf.org/arg#> . |
| 10 | -@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | 10 | +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . |
| 11 | -@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | 11 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . |
| 12 | -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 12 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
| 13 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 13 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 14 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 14 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 15 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 15 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 16 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 16 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
| 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#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 40020 Add the report kind ."^^xsd:string ; | 25 | + rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; |
| 26 | - sp:templates ([ sp:object | 26 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; |
| 27 | - [ sp:varName "reportKind"^^xsd:string | 27 | + sp:predicate rdf:type ; |
| 28 | - ] ; | 28 | + sp:subject _:b1 |
| 29 | - sp:predicate rdf:type ; | 29 | + ] [ sp:object |
| 30 | - sp:subject | 30 | + [ sp:varName "productionReport"^^xsd:string |
| 31 | - [ sp:varName "productionOperationReport"^^xsd:string | 31 | + ] ; |
| 32 | - ] | 32 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
| 33 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | 33 | + sp:subject _:b1 |
| 34 | - sp:predicate rdf:type ; | 34 | + ] [ sp:object |
| 35 | - sp:subject | 35 | + [ sp:varName "name"^^xsd:string |
| 36 | - [ sp:varName "reportKind"^^xsd:string | 36 | + ] ; |
| 37 | - ] | 37 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 38 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 38 | + sp:subject _:b1 |
| 39 | - sp:predicate rdfs:subClassOf ; | 39 | + ] [ sp:object |
| 40 | - sp:subject | 40 | + [ sp:varName "reportPeriodType"^^xsd:string |
| 41 | - [ sp:varName "reportKind"^^xsd:string | 41 | + ] ; |
| 42 | - ] | 42 | + sp:predicate rdf:type ; |
| 43 | - ] [ sp:object | 43 | + sp:subject _:b1 |
| 44 | - [ sp:varName "kind"^^xsd:string | 44 | + ] [ sp:object _:b2 ; |
| 45 | - ] ; | 45 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
| 46 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 46 | + sp:subject _:b1 |
| 47 | - sp:subject | 47 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 48 | - [ sp:varName "reportKind"^^xsd:string | 48 | + sp:predicate rdf:type ; |
| 49 | - ] | 49 | + sp:subject _:b2 |
| 50 | - ]) ; | 50 | + ] [ sp:object |
| 51 | - sp:where ([ sp:object spin:_this ; | 51 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 52 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 52 | + ] ; |
| 53 | - sp:subject | 53 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 54 | - [ sp:varName "productionReport"^^xsd:string | 54 | + sp:subject _:b2 |
| 55 | - ] | 55 | + ] [ sp:object _:b3 ; |
| 56 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | 56 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 57 | - sp:predicate rdf:type ; | 57 | + sp:subject _:b2 |
| 58 | - sp:subject | 58 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 59 | - [ sp:varName "productionOperationReport"^^xsd:string | 59 | + sp:predicate rdf:type ; |
| 60 | - ] | 60 | + sp:subject _:b3 |
| 61 | - ] [ sp:object | 61 | + ] [ sp:object |
| 62 | - [ sp:varName "productionReport"^^xsd:string | 62 | + [ sp:varName "title"^^xsd:string |
| 63 | - ] ; | 63 | + ] ; |
| 64 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 64 | + sp:predicate <http://purl.org/dc/elements/1.1/title> ; |
| 65 | - sp:subject | 65 | + sp:subject _:b1 |
| 66 | - [ sp:varName "productionOperationReport"^^xsd:string | 66 | + ]) ; |
| 67 | - ] | 67 | + sp:where ([ sp:object spin:_this ; |
| 68 | - ] [ sp:object | 68 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 69 | - [ sp:varName "productionOperationRef"^^xsd:string | 69 | + sp:subject |
| 70 | - ] ; | 70 | + [ sp:varName "productionReport"^^xsd:string |
| 71 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 71 | + ] |
| 72 | - sp:subject spin:_this | 72 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; |
| 73 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 73 | + sp:predicate rdf:type ; |
| 74 | - sp:predicate rdf:type ; | 74 | + sp:subject |
| 75 | - sp:subject | 75 | + [ sp:varName "productionReport"^^xsd:string |
| 76 | - [ sp:varName "productionOperationRef"^^xsd:string | 76 | + ] |
| 77 | - ] | 77 | + ] [ sp:object |
| 78 | - ] [ sp:object | 78 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 79 | - [ sp:varName "nameRef"^^xsd:string | 79 | + ] ; |
| 80 | - ] ; | 80 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 81 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 81 | + sp:subject spin:_this |
| 82 | - sp:subject | 82 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
| 83 | - [ sp:varName "productionOperationRef"^^xsd:string | 83 | + sp:predicate rdf:type ; |
| 84 | - ] | 84 | + sp:subject |
| 85 | - ] [ sp:object | 85 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 86 | - [ sp:varName "name"^^xsd:string | 86 | + ] |
| 87 | - ] ; | 87 | + ] [ sp:object |
| 88 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 88 | + [ sp:varName "nameRef"^^xsd:string |
| 89 | - sp:subject | 89 | + ] ; |
| 90 | - [ sp:varName "nameRef"^^xsd:string | 90 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 91 | - ] | 91 | + sp:subject |
| 92 | - ] [ sp:object | 92 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 93 | - [ sp:varName "kind"^^xsd:string | 93 | + ] |
| 94 | - ] ; | 94 | + ] [ sp:object |
| 95 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | 95 | + [ sp:varName "name"^^xsd:string |
| 96 | - sp:subject | 96 | + ] ; |
| 97 | - [ sp:varName "productionOperationRef"^^xsd:string | 97 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 98 | - ] | 98 | + sp:subject |
| 99 | - ] [ rdf:type sp:Bind ; | 99 | + [ sp:varName "nameRef"^^xsd:string |
| 100 | - sp:expression | 100 | + ] |
| 101 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | 101 | + ] [ rdf:type sp:Optional ; |
| 102 | - sp:arg1 [ sp:varName "kind"^^xsd:string | 102 | + sp:elements ([ sp:object |
| 103 | - ] | 103 | + [ sp:varName "periodKindRef"^^xsd:string |
| 104 | - ] ; | 104 | + ] ; |
| 105 | - sp:variable | 105 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; |
| 106 | - [ sp:varName "reportKind"^^xsd:string | 106 | + sp:subject |
| 107 | - ] | 107 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 108 | - ]) | 108 | + ] |
| 109 | - ] ; | 109 | + ]) |
| 110 | - spin:rule | 110 | + ] [ rdf:type sp:Optional ; |
| 111 | - [ rdf:type sp:Construct ; | 111 | + sp:elements ([ sp:object |
| 112 | - rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 112 | + [ sp:varName "titleRef"^^xsd:string |
| 113 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | 113 | + ] ; |
| 114 | - sp:predicate rdf:type ; | 114 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; |
| 115 | - sp:subject _:b1 | 115 | + sp:subject |
| 116 | - ] [ sp:object | 116 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 117 | - [ sp:varName "productionReport"^^xsd:string | 117 | + ] |
| 118 | - ] ; | 118 | + ] [ sp:object |
| 119 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 119 | + [ sp:varName "title"^^xsd:string |
| 120 | - sp:subject _:b1 | 120 | + ] ; |
| 121 | - ] [ sp:object | 121 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 122 | - [ sp:varName "name"^^xsd:string | 122 | + sp:subject |
| 123 | - ] ; | 123 | + [ sp:varName "titleRef"^^xsd:string |
| 124 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 124 | + ] |
| 125 | - sp:subject _:b1 | 125 | + ]) |
| 126 | - ] [ sp:object | 126 | + ] [ rdf:type sp:Bind ; |
| 127 | - [ sp:varName "reportPeriodType"^^xsd:string | 127 | + sp:expression |
| 128 | - ] ; | 128 | + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; |
| 129 | - sp:predicate rdf:type ; | 129 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string |
| 130 | - sp:subject _:b1 | 130 | + ] |
| 131 | - ] [ sp:object _:b2 ; | 131 | + ] ; |
| 132 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 132 | + sp:variable |
| 133 | - sp:subject _:b1 | 133 | + [ sp:varName "reportPeriodType"^^xsd:string |
| 134 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 134 | + ] |
| 135 | - sp:predicate rdf:type ; | 135 | + ]) |
| 136 | - sp:subject _:b2 | 136 | + ] ; |
| 137 | - ] [ sp:object | 137 | + spin:rule |
| 138 | - [ sp:varName "productionOperationRef"^^xsd:string | 138 | + [ rdf:type sp:Construct ; |
| 139 | - ] ; | 139 | + rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; |
| 140 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 140 | + sp:templates ([ sp:object |
| 141 | - sp:subject _:b2 | 141 | + [ sp:varName "productionFacility"^^xsd:string |
| 142 | - ] [ sp:object _:b3 ; | 142 | + ] ; |
| 143 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 143 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 144 | - sp:subject _:b2 | 144 | + sp:subject |
| 145 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 145 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 146 | - sp:predicate rdf:type ; | 146 | + ] |
| 147 | - sp:subject _:b3 | 147 | + ] [ sp:object |
| 148 | - ] [ sp:object | 148 | + [ sp:varName "productionFacility"^^xsd:string |
| 149 | - [ sp:varName "title"^^xsd:string | 149 | + ] ; |
| 150 | - ] ; | 150 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 151 | - sp:predicate <http://purl.org/dc/elements/1.1/title> ; | 151 | + sp:subject |
| 152 | - sp:subject _:b1 | 152 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 153 | - ]) ; | 153 | + ] |
| 154 | - sp:where ([ sp:object spin:_this ; | 154 | + ]) ; |
| 155 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 155 | + sp:where ([ sp:object |
| 156 | - sp:subject | 156 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 157 | - [ sp:varName "productionReport"^^xsd:string | 157 | + ] ; |
| 158 | - ] | 158 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 159 | - ] [ sp:object | 159 | + sp:subject spin:_this |
| 160 | - [ sp:varName "productionOperationRef"^^xsd:string | 160 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
| 161 | - ] ; | 161 | + sp:predicate rdf:type ; |
| 162 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 162 | + sp:subject |
| 163 | - sp:subject spin:_this | 163 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 164 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 164 | + ] |
| 165 | - sp:predicate rdf:type ; | 165 | + ] [ sp:object |
| 166 | - sp:subject | 166 | + [ sp:varName "installationRef"^^xsd:string |
| 167 | - [ sp:varName "productionOperationRef"^^xsd:string | 167 | + ] ; |
| 168 | - ] | 168 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 169 | - ] [ sp:object | 169 | + sp:subject |
| 170 | - [ sp:varName "nameRef"^^xsd:string | 170 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 171 | - ] ; | 171 | + ] |
| 172 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 172 | + ] [ sp:object |
| 173 | - sp:subject | 173 | + [ sp:varName "installationRef"^^xsd:string |
| 174 | - [ sp:varName "productionOperationRef"^^xsd:string | 174 | + ] ; |
| 175 | - ] | 175 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 176 | - ] [ sp:object | 176 | + sp:subject |
| 177 | - [ sp:varName "name"^^xsd:string | 177 | + [ sp:varName "productionFacility"^^xsd:string |
| 178 | - ] ; | 178 | + ] |
| 179 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 179 | + ] [ sp:object |
| 180 | - sp:subject | 180 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 181 | - [ sp:varName "nameRef"^^xsd:string | 181 | + ] ; |
| 182 | - ] | 182 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 183 | - ] [ rdf:type sp:Optional ; | 183 | + sp:subject |
| 184 | - sp:elements ([ sp:object | 184 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 185 | - [ sp:varName "periodKindRef"^^xsd:string | 185 | + ] |
| 186 | - ] ; | 186 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 187 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | 187 | + sp:predicate rdf:type ; |
| 188 | - sp:subject | 188 | + sp:subject |
| 189 | - [ sp:varName "productionOperationRef"^^xsd:string | 189 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 190 | - ] | 190 | + ] |
| 191 | - ]) | 191 | + ] [ sp:object |
| 192 | - ] [ rdf:type sp:Optional ; | 192 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 193 | - sp:elements ([ sp:object | 193 | + ] ; |
| 194 | - [ sp:varName "titleRef"^^xsd:string | 194 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 195 | - ] ; | 195 | + sp:subject |
| 196 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | 196 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 197 | - sp:subject | 197 | + ] |
| 198 | - [ sp:varName "productionOperationRef"^^xsd:string | 198 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 199 | - ] | 199 | + sp:predicate rdf:type ; |
| 200 | - ] [ sp:object | 200 | + sp:subject |
| 201 | - [ sp:varName "title"^^xsd:string | 201 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 202 | - ] ; | 202 | + ] |
| 203 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 203 | + ]) |
| 204 | - sp:subject | 204 | + ] ; |
| 205 | - [ sp:varName "titleRef"^^xsd:string | 205 | + spin:rule |
| 206 | - ] | 206 | + [ rdf:type sp:Construct ; |
| 207 | - ]) | ||
| 208 | - ] [ rdf:type sp:Bind ; | ||
| 209 | - sp:expression | ||
| 210 | - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
| 211 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
| 212 | - ] | ||
| 213 | - ] ; | ||
| 214 | - sp:variable | ||
| 215 | - [ sp:varName "reportPeriodType"^^xsd:string | ||
| 216 | - ] | ||
| 217 | - ]) | ||
| 218 | - ] ; | ||
| 219 | - spin:rule | ||
| 220 | - [ rdf:type sp:Construct ; | ||
| 221 | - rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ; | ||
| 222 | - sp:templates ([ sp:object | ||
| 223 | - [ sp:varName "dateStart"^^xsd:string | ||
| 224 | - ] ; | ||
| 225 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 226 | - sp:subject | ||
| 227 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 228 | - ] | ||
| 229 | - ] [ sp:object | ||
| 230 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 231 | - ] ; | ||
| 232 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 233 | - sp:subject | ||
| 234 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 235 | - ] | ||
| 236 | - ] [ sp:object | ||
| 237 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 238 | - ] ; | ||
| 239 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 240 | - sp:subject | ||
| 241 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 242 | - ] | ||
| 243 | - ]) ; | ||
| 244 | - sp:where ([ sp:object | ||
| 245 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 246 | - ] ; | ||
| 247 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 248 | - sp:subject spin:_this | ||
| 249 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 250 | - sp:predicate rdf:type ; | ||
| 251 | - sp:subject | ||
| 252 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 253 | - ] | ||
| 254 | - ] [ sp:object | ||
| 255 | - [ sp:varName "dateStart"^^xsd:string | ||
| 256 | - ] ; | ||
| 257 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 258 | - sp:subject | ||
| 259 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 260 | - ] | ||
| 261 | - ] [ sp:object | ||
| 262 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 263 | - ] ; | ||
| 264 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 265 | - sp:subject | ||
| 266 | - [ sp:varName "productionOperationsRef"^^xsd:string | ||
| 267 | - ] | ||
| 268 | - ] [ sp:object | ||
| 269 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 270 | - ] ; | ||
| 271 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 272 | - sp:subject | ||
| 273 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 274 | - ] | ||
| 275 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 276 | - sp:predicate rdf:type ; | ||
| 277 | - sp:subject | ||
| 278 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 279 | - ] | ||
| 280 | - ] [ sp:object | ||
| 281 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 282 | - ] ; | ||
| 283 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 284 | - sp:subject | ||
| 285 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 286 | - ] | ||
| 287 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 288 | - sp:predicate rdf:type ; | ||
| 289 | - sp:subject | ||
| 290 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 291 | - ] | ||
| 292 | - ]) | ||
| 293 | - ] ; | ||
| 294 | - spin:rule | ||
| 295 | - [ rdf:type sp:Construct ; | ||
| 296 | - rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; | ||
| 297 | - sp:templates ([ sp:object | ||
| 298 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 299 | - ] ; | ||
| 300 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 301 | - sp:subject | ||
| 302 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 303 | - ] | ||
| 304 | - ] [ sp:object | ||
| 305 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 306 | - ] ; | ||
| 307 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 308 | - sp:subject | ||
| 309 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 310 | - ] | ||
| 311 | - ] [ sp:object | ||
| 312 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 313 | - ] ; | ||
| 314 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 315 | - sp:subject | ||
| 316 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 317 | - ] | ||
| 318 | - ]) ; | ||
| 319 | - sp:where ([ sp:object | ||
| 320 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 321 | - ] ; | ||
| 322 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 323 | - sp:subject spin:_this | ||
| 324 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 325 | - sp:predicate rdf:type ; | ||
| 326 | - sp:subject | ||
| 327 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 328 | - ] | ||
| 329 | - ] [ sp:object | ||
| 330 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 331 | - ] ; | ||
| 332 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 333 | - sp:subject | ||
| 334 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 335 | - ] | ||
| 336 | - ] [ sp:object | ||
| 337 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 338 | - ] ; | ||
| 339 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 340 | - sp:subject | ||
| 341 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 342 | - ] | ||
| 343 | - ] [ sp:object | ||
| 344 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 345 | - ] ; | ||
| 346 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 347 | - sp:subject | ||
| 348 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 349 | - ] | ||
| 350 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 351 | - sp:predicate rdf:type ; | ||
| 352 | - sp:subject | ||
| 353 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 354 | - ] | ||
| 355 | - ] [ sp:object | ||
| 356 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 357 | - ] ; | ||
| 358 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 359 | - sp:subject | ||
| 360 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 361 | - ] | ||
| 362 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 363 | - sp:predicate rdf:type ; | ||
| 364 | - sp:subject | ||
| 365 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 366 | - ] | ||
| 367 | - ]) | ||
| 368 | - ] ; | ||
| 369 | - spin:rule | ||
| 370 | - [ rdf:type sp:Construct ; | ||
| 371 | - rdfs:comment "STEP 40050 Set the context facility - installation exists"^^xsd:string ; | ||
| 372 | - sp:templates ([ sp:object | ||
| 373 | - [ sp:varName "contextFacility"^^xsd:string | ||
| 374 | - ] ; | ||
| 375 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 376 | - sp:subject | ||
| 377 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 378 | - ] | ||
| 379 | - ]) ; | ||
| 380 | - sp:where ([ sp:object | ||
| 381 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 382 | - ] ; | ||
| 383 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 384 | - sp:subject spin:_this | ||
| 385 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 386 | - sp:predicate rdf:type ; | ||
| 387 | - sp:subject | ||
| 388 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 389 | - ] | ||
| 390 | - ] [ sp:object | ||
| 391 | - [ sp:varName "installationRef"^^xsd:string | ||
| 392 | - ] ; | ||
| 393 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 394 | - sp:subject | ||
| 395 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 396 | - ] | ||
| 397 | - ] [ sp:object | ||
| 398 | - [ sp:varName "installationRef"^^xsd:string | ||
| 399 | - ] ; | ||
| 400 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 401 | - sp:subject | ||
| 402 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 403 | - ] | ||
| 404 | - ] [ sp:object | ||
| 405 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 406 | - ] ; | ||
| 407 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 408 | - sp:subject | ||
| 409 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
| 410 | - ] | ||
| 411 | - ] [ sp:object | ||
| 412 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 413 | - ] ; | ||
| 414 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 415 | - sp:subject | ||
| 416 | - [ sp:varName "contextFacility"^^xsd:string | ||
| 417 | - ] | ||
| 418 | - ]) | ||
| 419 | - ] ; | ||
| 420 | - spin:rule | ||
| 421 | - [ rdf:type sp:Construct ; | ||
| 422 | rdfs:comment """STEP 40060 Set the facility operator | 207 | rdfs:comment """STEP 40060 Set the facility operator |
| 423 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | 208 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
| 424 | - sp:templates ([ sp:object _:b4 ; | 209 | + sp:templates ([ sp:object _:b4 ; |
| 425 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 210 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
| 426 | - sp:subject | 211 | + sp:subject |
| 427 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 212 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 428 | - ] | 213 | + ] |
| 429 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 214 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
| 430 | - sp:predicate rdf:type ; | 215 | + sp:predicate rdf:type ; |
| 431 | - sp:subject _:b4 | 216 | + sp:subject _:b4 |
| 432 | - ] [ sp:object | 217 | + ] [ sp:object |
| 433 | - [ sp:varName "operator"^^xsd:string | 218 | + [ sp:varName "operator"^^xsd:string |
| 434 | - ] ; | 219 | + ] ; |
| 435 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 220 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 436 | - sp:subject _:b4 | 221 | + sp:subject _:b4 |
| 437 | - ]) ; | 222 | + ]) ; |
| 438 | - sp:where ([ sp:object | 223 | + sp:where ([ sp:object |
| 439 | - [ sp:varName "productionOperationRef"^^xsd:string | 224 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 440 | - ] ; | 225 | + ] ; |
| 441 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 226 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 442 | - sp:subject spin:_this | 227 | + sp:subject spin:_this |
| 443 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 228 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
| 444 | - sp:predicate rdf:type ; | 229 | + sp:predicate rdf:type ; |
| 445 | - sp:subject | 230 | + sp:subject |
| 446 | - [ sp:varName "productionOperationRef"^^xsd:string | 231 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 447 | - ] | 232 | + ] |
| 448 | - ] [ sp:object | 233 | + ] [ sp:object |
| 449 | - [ sp:varName "productionOperationRef"^^xsd:string | 234 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 450 | - ] ; | 235 | + ] ; |
| 451 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 236 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 452 | - sp:subject | 237 | + sp:subject |
| 453 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 238 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 454 | - ] | 239 | + ] |
| 455 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 240 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 456 | - sp:predicate rdf:type ; | 241 | + sp:predicate rdf:type ; |
| 457 | - sp:subject | 242 | + sp:subject |
| 458 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 243 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 459 | - ] | 244 | + ] |
| 460 | - ] [ sp:object | 245 | + ] [ sp:object |
| 461 | - [ sp:varName "operatorRef"^^xsd:string | 246 | + [ sp:varName "operatorRef"^^xsd:string |
| 462 | - ] ; | 247 | + ] ; |
| 463 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 248 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
| 464 | - sp:subject | 249 | + sp:subject |
| 465 | - [ sp:varName "productionOperationRef"^^xsd:string | 250 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 466 | - ] | 251 | + ] |
| 467 | - ] [ sp:object | 252 | + ] [ sp:object |
| 468 | - [ sp:varName "operatorRef"^^xsd:string | 253 | + [ sp:varName "operatorRef"^^xsd:string |
| 469 | - ] ; | 254 | + ] ; |
| 470 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 255 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 471 | - sp:subject | 256 | + sp:subject |
| 472 | - [ sp:varName "operator"^^xsd:string | 257 | + [ sp:varName "operator"^^xsd:string |
| 473 | - ] | 258 | + ] |
| 474 | - ]) | 259 | + ]) |
| 475 | - ] ; | 260 | + ] ; |
| 476 | - spin:rule | 261 | + spin:rule |
| 477 | - [ rdf:type sp:Construct ; | 262 | + [ rdf:type sp:Construct ; |
| 478 | - rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; | 263 | + rdfs:comment "STEP 40050 Set the context facility - installation exists"^^xsd:string ; |
| 479 | - sp:templates ([ sp:object | 264 | + sp:templates ([ sp:object |
| 480 | - [ sp:varName "productionFacility"^^xsd:string | 265 | + [ sp:varName "contextFacility"^^xsd:string |
| 481 | - ] ; | 266 | + ] ; |
| 482 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 267 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 483 | - sp:subject | 268 | + sp:subject |
| 484 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 269 | + [ sp:varName "productionFacility"^^xsd:string |
| 485 | - ] | 270 | + ] |
| 486 | - ] [ sp:object | 271 | + ]) ; |
| 487 | - [ sp:varName "productionFacility"^^xsd:string | 272 | + sp:where ([ sp:object |
| 488 | - ] ; | 273 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 489 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 274 | + ] ; |
| 490 | - sp:subject | 275 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 491 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 276 | + sp:subject spin:_this |
| 492 | - ] | 277 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
| 493 | - ]) ; | 278 | + sp:predicate rdf:type ; |
| 494 | - sp:where ([ sp:object | 279 | + sp:subject |
| 495 | - [ sp:varName "productionOperationRef"^^xsd:string | 280 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 496 | - ] ; | 281 | + ] |
| 497 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 282 | + ] [ sp:object |
| 498 | - sp:subject spin:_this | 283 | + [ sp:varName "installationRef"^^xsd:string |
| 499 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 284 | + ] ; |
| 500 | - sp:predicate rdf:type ; | 285 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
| 501 | - sp:subject | 286 | + sp:subject |
| 502 | - [ sp:varName "productionOperationRef"^^xsd:string | 287 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 503 | - ] | 288 | + ] |
| 504 | - ] [ sp:object | 289 | + ] [ sp:object |
| 505 | - [ sp:varName "installationRef"^^xsd:string | 290 | + [ sp:varName "installationRef"^^xsd:string |
| 506 | - ] ; | 291 | + ] ; |
| 507 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 292 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 508 | - sp:subject | 293 | + sp:subject |
| 509 | - [ sp:varName "productionOperationRef"^^xsd:string | 294 | + [ sp:varName "productionFacility"^^xsd:string |
| 510 | - ] | 295 | + ] |
| 511 | - ] [ sp:object | 296 | + ] [ sp:object |
| 512 | - [ sp:varName "installationRef"^^xsd:string | 297 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 513 | - ] ; | 298 | + ] ; |
| 514 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 299 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
| 515 | - sp:subject | 300 | + sp:subject |
| 516 | - [ sp:varName "productionFacility"^^xsd:string | 301 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 517 | - ] | 302 | + ] |
| 518 | - ] [ sp:object | 303 | + ] [ sp:object |
| 519 | - [ sp:varName "productionOperationRef"^^xsd:string | 304 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 520 | - ] ; | 305 | + ] ; |
| 521 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 306 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 522 | - sp:subject | 307 | + sp:subject |
| 523 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 308 | + [ sp:varName "contextFacility"^^xsd:string |
| 524 | - ] | 309 | + ] |
| 525 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 310 | + ]) |
| 526 | - sp:predicate rdf:type ; | 311 | + ] ; |
| 527 | - sp:subject | 312 | + spin:rule |
| 528 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 313 | + [ rdf:type sp:Construct ; |
| 529 | - ] | 314 | + rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; |
| 530 | - ] [ sp:object | 315 | + sp:templates ([ sp:object |
| 531 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 316 | + [ sp:varName "dTimStart"^^xsd:string |
| 532 | - ] ; | 317 | + ] ; |
| 533 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 318 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 534 | - sp:subject | 319 | + sp:subject |
| 535 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 320 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 536 | - ] | 321 | + ] |
| 537 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 322 | + ] [ sp:object |
| 538 | - sp:predicate rdf:type ; | 323 | + [ sp:varName "dTimEnd"^^xsd:string |
| 539 | - sp:subject | 324 | + ] ; |
| 540 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 325 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 541 | - ] | 326 | + sp:subject |
| 542 | - ]) | 327 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 543 | - ] ; | 328 | + ] |
| 544 | - spin:rule | 329 | + ] [ sp:object |
| 545 | - [ rdf:type sp:Construct ; | 330 | + [ sp:varName "dTimEnd"^^xsd:string |
| 546 | - rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ; | 331 | + ] ; |
| 547 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 332 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 548 | - sp:predicate rdf:type ; | 333 | + sp:subject |
| 549 | - sp:subject _:b5 | 334 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 550 | - ] [ sp:object | 335 | + ] |
| 551 | - [ sp:varName "contextFacility"^^xsd:string | 336 | + ]) ; |
| 552 | - ] ; | 337 | + sp:where ([ sp:object |
| 553 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 338 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 554 | - sp:subject _:b5 | 339 | + ] ; |
| 555 | - ] [ sp:object _:b5 ; | 340 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 556 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 341 | + sp:subject spin:_this |
| 557 | - sp:subject | 342 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
| 558 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 343 | + sp:predicate rdf:type ; |
| 559 | - ] | 344 | + sp:subject |
| 560 | - ] [ sp:object _:b5 ; | 345 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 561 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 346 | + ] |
| 562 | - sp:subject | 347 | + ] [ sp:object |
| 563 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 348 | + [ sp:varName "dTimStart"^^xsd:string |
| 564 | - ] | 349 | + ] ; |
| 565 | - ]) ; | 350 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
| 566 | - sp:where ([ sp:object | 351 | + sp:subject |
| 567 | - [ sp:varName "productionOperationRef"^^xsd:string | 352 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 568 | - ] ; | 353 | + ] |
| 569 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 354 | + ] [ sp:object |
| 570 | - sp:subject spin:_this | 355 | + [ sp:varName "dTimEnd"^^xsd:string |
| 571 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 356 | + ] ; |
| 572 | - sp:predicate rdf:type ; | 357 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
| 573 | - sp:subject | 358 | + sp:subject |
| 574 | - [ sp:varName "productionOperationRef"^^xsd:string | 359 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 575 | - ] | 360 | + ] |
| 576 | - ] [ rdf:type sp:NotExists ; | 361 | + ] [ sp:object |
| 577 | - sp:elements ([ sp:object | 362 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 578 | - [ sp:varName "installationRef"^^xsd:string | 363 | + ] ; |
| 579 | - ] ; | 364 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 580 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 365 | + sp:subject |
| 581 | - sp:subject | 366 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 582 | - [ sp:varName "productionOperationRef"^^xsd:string | 367 | + ] |
| 583 | - ] | 368 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 584 | - ] [ sp:object | 369 | + sp:predicate rdf:type ; |
| 585 | - [ sp:varName "installationRef"^^xsd:string | 370 | + sp:subject |
| 586 | - ] ; | 371 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 587 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 372 | + ] |
| 588 | - sp:subject | 373 | + ] [ sp:object |
| 589 | - [ sp:varName "productionFacility"^^xsd:string | 374 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 590 | - ] | 375 | + ] ; |
| 591 | - ]) | 376 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 592 | - ] [ sp:object | 377 | + sp:subject |
| 593 | - [ sp:varName "contextFacilityRef"^^xsd:string | 378 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 594 | - ] ; | 379 | + ] |
| 595 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 380 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
| 596 | - sp:subject | 381 | + sp:predicate rdf:type ; |
| 597 | - [ sp:varName "productionOperationRef"^^xsd:string | 382 | + sp:subject |
| 598 | - ] | 383 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 599 | - ] [ sp:object | 384 | + ] |
| 600 | - [ sp:varName "contextFacilityRef"^^xsd:string | 385 | + ]) |
| 601 | - ] ; | 386 | + ] ; |
| 602 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 387 | + spin:rule |
| 603 | - sp:subject | 388 | + [ rdf:type sp:Construct ; |
| 604 | - [ sp:varName "contextFacility"^^xsd:string | 389 | + rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ; |
| 605 | - ] | 390 | + sp:templates ([ sp:object |
| 606 | - ] [ sp:object | 391 | + [ sp:varName "dateStart"^^xsd:string |
| 607 | - [ sp:varName "productVolumeRef"^^xsd:string | 392 | + ] ; |
| 608 | - ] ; | 393 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 609 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 394 | + sp:subject |
| 610 | - sp:subject | 395 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 611 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 396 | + ] |
| 612 | - ] | 397 | + ] [ sp:object |
| 613 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 398 | + [ sp:varName "dateEnd"^^xsd:string |
| 614 | - sp:predicate rdf:type ; | 399 | + ] ; |
| 615 | - sp:subject | 400 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 616 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 401 | + sp:subject |
| 617 | - ] | 402 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 618 | - ] [ sp:object | 403 | + ] |
| 619 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 404 | + ] [ sp:object |
| 620 | - ] ; | 405 | + [ sp:varName "dateEnd"^^xsd:string |
| 621 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 406 | + ] ; |
| 622 | - sp:subject | 407 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 623 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 408 | + sp:subject |
| 624 | - ] | 409 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
| 625 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 410 | + ] |
| 626 | - sp:predicate rdf:type ; | 411 | + ]) ; |
| 627 | - sp:subject | 412 | + sp:where ([ sp:object |
| 628 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 413 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 629 | - ] | 414 | + ] ; |
| 630 | - ]) | 415 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
| 631 | - ] . | 416 | + sp:subject spin:_this |
| 632 | - | 417 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
| 633 | -<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> | 418 | + sp:predicate rdf:type ; |
| 634 | - rdf:type owl:Ontology ; | 419 | + sp:subject |
| 635 | - 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> ; | 420 | + [ sp:varName "productionOperationRef"^^xsd:string |
| 636 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 421 | + ] |
| 422 | + ] [ sp:object | ||
| 423 | + [ sp:varName "dateStart"^^xsd:string | ||
| 424 | + ] ; | ||
| 425 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 426 | + sp:subject | ||
| 427 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 428 | + ] | ||
| 429 | + ] [ sp:object | ||
| 430 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 431 | + ] ; | ||
| 432 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 433 | + sp:subject | ||
| 434 | + [ sp:varName "productionOperationsRef"^^xsd:string | ||
| 435 | + ] | ||
| 436 | + ] [ sp:object | ||
| 437 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 438 | + ] ; | ||
| 439 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 440 | + sp:subject | ||
| 441 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 442 | + ] | ||
| 443 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 444 | + sp:predicate rdf:type ; | ||
| 445 | + sp:subject | ||
| 446 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 447 | + ] | ||
| 448 | + ] [ sp:object | ||
| 449 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 450 | + ] ; | ||
| 451 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 452 | + sp:subject | ||
| 453 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 454 | + ] | ||
| 455 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 456 | + sp:predicate rdf:type ; | ||
| 457 | + sp:subject | ||
| 458 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 459 | + ] | ||
| 460 | + ]) | ||
| 461 | + ] ; | ||
| 462 | + spin:rule | ||
| 463 | + [ rdf:type sp:Construct ; | ||
| 464 | + rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ; | ||
| 465 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
| 466 | + sp:predicate rdf:type ; | ||
| 467 | + sp:subject _:b5 | ||
| 468 | + ] [ sp:object | ||
| 469 | + [ sp:varName "contextFacility"^^xsd:string | ||
| 470 | + ] ; | ||
| 471 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 472 | + sp:subject _:b5 | ||
| 473 | + ] [ sp:object _:b5 ; | ||
| 474 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 475 | + sp:subject | ||
| 476 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 477 | + ] | ||
| 478 | + ] [ sp:object _:b5 ; | ||
| 479 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 480 | + sp:subject | ||
| 481 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 482 | + ] | ||
| 483 | + ]) ; | ||
| 484 | + sp:where ([ sp:object | ||
| 485 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 486 | + ] ; | ||
| 487 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 488 | + sp:subject spin:_this | ||
| 489 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 490 | + sp:predicate rdf:type ; | ||
| 491 | + sp:subject | ||
| 492 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 493 | + ] | ||
| 494 | + ] [ rdf:type sp:NotExists ; | ||
| 495 | + sp:elements ([ sp:object | ||
| 496 | + [ sp:varName "installationRef"^^xsd:string | ||
| 497 | + ] ; | ||
| 498 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
| 499 | + sp:subject | ||
| 500 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 501 | + ] | ||
| 502 | + ] [ sp:object | ||
| 503 | + [ sp:varName "installationRef"^^xsd:string | ||
| 504 | + ] ; | ||
| 505 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 506 | + sp:subject | ||
| 507 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 508 | + ] | ||
| 509 | + ]) | ||
| 510 | + ] [ sp:object | ||
| 511 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 512 | + ] ; | ||
| 513 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
| 514 | + sp:subject | ||
| 515 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 516 | + ] | ||
| 517 | + ] [ sp:object | ||
| 518 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
| 519 | + ] ; | ||
| 520 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 521 | + sp:subject | ||
| 522 | + [ sp:varName "contextFacility"^^xsd:string | ||
| 523 | + ] | ||
| 524 | + ] [ sp:object | ||
| 525 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
| 526 | + ] ; | ||
| 527 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 528 | + sp:subject | ||
| 529 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 530 | + ] | ||
| 531 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 532 | + sp:predicate rdf:type ; | ||
| 533 | + sp:subject | ||
| 534 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 535 | + ] | ||
| 536 | + ] [ sp:object | ||
| 537 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 538 | + ] ; | ||
| 539 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 540 | + sp:subject | ||
| 541 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 542 | + ] | ||
| 543 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
| 544 | + sp:predicate rdf:type ; | ||
| 545 | + sp:subject | ||
| 546 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
| 547 | + ] | ||
| 548 | + ]) | ||
| 549 | + ] ; | ||
| 550 | + spin:rule | ||
| 551 | + [ rdf:type sp:Construct ; | ||
| 552 | + rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ; | ||
| 553 | + sp:templates ([ sp:object | ||
| 554 | + [ sp:varName "reportKind"^^xsd:string | ||
| 555 | + ] ; | ||
| 556 | + sp:predicate rdf:type ; | ||
| 557 | + sp:subject | ||
| 558 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 559 | + ] | ||
| 560 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | ||
| 561 | + sp:predicate rdf:type ; | ||
| 562 | + sp:subject | ||
| 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 | ||
| 571 | + [ sp:varName "kind"^^xsd:string | ||
| 572 | + ] ; | ||
| 573 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 574 | + sp:subject | ||
| 575 | + [ sp:varName "reportKind"^^xsd:string | ||
| 576 | + ] | ||
| 577 | + ]) ; | ||
| 578 | + sp:where ([ sp:object spin:_this ; | ||
| 579 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 580 | + sp:subject | ||
| 581 | + [ sp:varName "productionReport"^^xsd:string | ||
| 582 | + ] | ||
| 583 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
| 584 | + sp:predicate rdf:type ; | ||
| 585 | + sp:subject | ||
| 586 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 587 | + ] | ||
| 588 | + ] [ sp:object | ||
| 589 | + [ 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 | + ] | ||
| 595 | + ] [ sp:object | ||
| 596 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 597 | + ] ; | ||
| 598 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
| 599 | + sp:subject spin:_this | ||
| 600 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
| 601 | + sp:predicate rdf:type ; | ||
| 602 | + sp:subject | ||
| 603 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 604 | + ] | ||
| 605 | + ] [ sp:object | ||
| 606 | + [ sp:varName "nameRef"^^xsd:string | ||
| 607 | + ] ; | ||
| 608 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 609 | + sp:subject | ||
| 610 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 611 | + ] | ||
| 612 | + ] [ sp:object | ||
| 613 | + [ sp:varName "name"^^xsd:string | ||
| 614 | + ] ; | ||
| 615 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 616 | + sp:subject | ||
| 617 | + [ sp:varName "nameRef"^^xsd:string | ||
| 618 | + ] | ||
| 619 | + ] [ sp:object | ||
| 620 | + [ sp:varName "kind"^^xsd:string | ||
| 621 | + ] ; | ||
| 622 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
| 623 | + sp:subject | ||
| 624 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
| 625 | + ] | ||
| 626 | + ] [ rdf:type sp:Bind ; | ||
| 627 | + sp:expression | ||
| 628 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
| 629 | + sp:arg1 [ sp:varName "kind"^^xsd:string | ||
| 630 | + ] | ||
| 631 | + ] ; | ||
| 632 | + sp:variable | ||
| 633 | + [ sp:varName "reportKind"^^xsd:string | ||
| 634 | + ] | ||
| 635 | + ]) | ||
| 636 | + ] . | ||
| 637 | + | ||
| 638 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> | ||
| 639 | + rdf:type owl:Ontology ; | ||
| 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 . | ... | ... |
-
Please register or login to post a comment