Showing
1 changed file
with
566 additions
and
573 deletions
| ... | @@ -23,19 +23,29 @@ | ... | @@ -23,19 +23,29 @@ |
| 23 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> | 23 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> |
| 24 | spin:rule | 24 | spin:rule |
| 25 | [ rdf:type sp:Construct ; | 25 | [ rdf:type sp:Construct ; |
| 26 | - rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; | 26 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; |
| 27 | - sp:templates ([ sp:object spin:_this ; | 27 | + sp:templates ([ sp:object |
| 28 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 29 | - sp:subject | ||
| 30 | [ sp:varName "classOfSpatialPart"^^xsd:string | 28 | [ sp:varName "classOfSpatialPart"^^xsd:string |
| 31 | - ] | ||
| 32 | - ]) ; | ||
| 33 | - sp:where ([ sp:object | ||
| 34 | - [ sp:varName "parameterSetRef"^^xsd:string | ||
| 35 | ] ; | 29 | ] ; |
| 36 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | 30 | + sp:predicate rdf:type ; |
| 37 | - sp:subject spin:_this | 31 | + sp:subject _:b1 |
| 38 | - ] [ sp:object spin:_this ; | 32 | + ] [ sp:object |
| 33 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 34 | + ] ; | ||
| 35 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 36 | + sp:subject _:b1 | ||
| 37 | + ] [ sp:object | ||
| 38 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 39 | + ] ; | ||
| 40 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 41 | + sp:subject _:b1 | ||
| 42 | + ] [ sp:object | ||
| 43 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
| 44 | + ] ; | ||
| 45 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 46 | + sp:subject _:b1 | ||
| 47 | + ]) ; | ||
| 48 | + sp:where ([ sp:object spin:_this ; | ||
| 39 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 49 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 40 | sp:subject | 50 | sp:subject |
| 41 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 51 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| ... | @@ -46,28 +56,58 @@ | ... | @@ -46,28 +56,58 @@ |
| 46 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 56 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 47 | ] | 57 | ] |
| 48 | ] [ sp:object | 58 | ] [ sp:object |
| 49 | - [ sp:varName "nameRef"^^xsd:string | 59 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 50 | ] ; | 60 | ] ; |
| 51 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 61 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
| 52 | sp:subject | 62 | sp:subject |
| 53 | - [ sp:varName "parameterSetRef"^^xsd:string | 63 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
| 54 | ] | 64 | ] |
| 55 | ] [ sp:object | 65 | ] [ sp:object |
| 56 | - [ sp:varName "nameRef"^^xsd:string | 66 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
| 57 | ] ; | 67 | ] ; |
| 58 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 68 | + sp:predicate rdf:type ; |
| 59 | sp:subject | 69 | sp:subject |
| 60 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 70 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
| 71 | + ] | ||
| 72 | + ] [ sp:object | ||
| 73 | + [ sp:varName "intervalString"^^xsd:string | ||
| 74 | + ] ; | ||
| 75 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | ||
| 76 | + sp:subject | ||
| 77 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
| 78 | + ] | ||
| 79 | + ] [ rdf:type sp:Bind ; | ||
| 80 | + sp:expression | ||
| 81 | + [ rdf:type afn:substr ; | ||
| 82 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 83 | + ] ; | ||
| 84 | + sp:arg2 0 ; | ||
| 85 | + sp:arg3 [ rdf:type smf:indexOf ; | ||
| 86 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 87 | + ] ; | ||
| 88 | + sp:arg2 "$" | ||
| 89 | + ] | ||
| 90 | + ] ; | ||
| 91 | + sp:variable | ||
| 92 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 93 | + ] | ||
| 94 | + ] [ rdf:type sp:Bind ; | ||
| 95 | + sp:expression | ||
| 96 | + [ rdf:type afn:substr ; | ||
| 97 | + sp:arg1 [ rdf:type afn:substr ; | ||
| 98 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 99 | + ] ; | ||
| 100 | + sp:arg2 [ rdf:type smf:indexOf ; | ||
| 101 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 102 | + ] ; | ||
| 103 | + sp:arg2 "$" | ||
| 104 | + ] | ||
| 105 | + ] ; | ||
| 106 | + sp:arg2 1 | ||
| 107 | + ] ; | ||
| 108 | + sp:variable | ||
| 109 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 61 | ] | 110 | ] |
| 62 | - ] [ rdf:type sp:NotExists ; | ||
| 63 | - sp:elements ([ sp:object | ||
| 64 | - [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 65 | - ] ; | ||
| 66 | - sp:predicate rdf:type ; | ||
| 67 | - sp:subject | ||
| 68 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 69 | - ] | ||
| 70 | - ]) | ||
| 71 | ]) | 111 | ]) |
| 72 | ] ; | 112 | ] ; |
| 73 | spin:rule | 113 | spin:rule |
| ... | @@ -77,22 +117,22 @@ | ... | @@ -77,22 +117,22 @@ |
| 77 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 117 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 78 | ] ; | 118 | ] ; |
| 79 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 119 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
| 80 | - sp:subject _:b1 | 120 | + sp:subject _:b2 |
| 81 | ] [ sp:object | 121 | ] [ sp:object |
| 82 | [ sp:varName "classOfSpatialPart"^^xsd:string | 122 | [ sp:varName "classOfSpatialPart"^^xsd:string |
| 83 | ] ; | 123 | ] ; |
| 84 | sp:predicate rdf:type ; | 124 | sp:predicate rdf:type ; |
| 85 | - sp:subject _:b1 | 125 | + sp:subject _:b2 |
| 86 | ] [ sp:object | 126 | ] [ sp:object |
| 87 | [ sp:varName "startedAt"^^xsd:string | 127 | [ sp:varName "startedAt"^^xsd:string |
| 88 | ] ; | 128 | ] ; |
| 89 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 129 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 90 | - sp:subject _:b1 | 130 | + sp:subject _:b2 |
| 91 | ] [ sp:object | 131 | ] [ sp:object |
| 92 | [ sp:varName "finishedAt"^^xsd:string | 132 | [ sp:varName "finishedAt"^^xsd:string |
| 93 | ] ; | 133 | ] ; |
| 94 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 134 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 95 | - sp:subject _:b1 | 135 | + sp:subject _:b2 |
| 96 | ]) ; | 136 | ]) ; |
| 97 | sp:where ([ sp:object spin:_this ; | 137 | sp:where ([ sp:object spin:_this ; |
| 98 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 138 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -133,128 +173,114 @@ | ... | @@ -133,128 +173,114 @@ |
| 133 | ] | 173 | ] |
| 134 | ]) | 174 | ]) |
| 135 | ]) | 175 | ]) |
| 136 | - ] . | 176 | + ] ; |
| 137 | - | ||
| 138 | -<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | ||
| 139 | spin:rule | 177 | spin:rule |
| 140 | [ rdf:type sp:Construct ; | 178 | [ rdf:type sp:Construct ; |
| 141 | - rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; | 179 | + rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; |
| 142 | - sp:templates ([ sp:object | 180 | + sp:templates ([ sp:object spin:_this ; |
| 143 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 144 | - ] ; | ||
| 145 | - sp:predicate rdf:type ; | ||
| 146 | - sp:subject _:b2 | ||
| 147 | - ] [ sp:object | ||
| 148 | - [ sp:varName "dTim"^^xsd:string | ||
| 149 | - ] ; | ||
| 150 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 151 | - sp:subject _:b2 | ||
| 152 | - ] [ sp:object | ||
| 153 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 154 | - ] ; | ||
| 155 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 156 | - sp:subject _:b2 | ||
| 157 | - ] [ sp:object | ||
| 158 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 159 | - ] ; | ||
| 160 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 181 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 161 | - sp:subject _:b2 | 182 | + sp:subject |
| 183 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 184 | + ] | ||
| 162 | ]) ; | 185 | ]) ; |
| 163 | - sp:where ([ sp:object spin:_this ; | 186 | + sp:where ([ sp:object |
| 187 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
| 188 | + ] ; | ||
| 189 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
| 190 | + sp:subject spin:_this | ||
| 191 | + ] [ sp:object spin:_this ; | ||
| 164 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 192 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 165 | sp:subject | 193 | sp:subject |
| 166 | - [ sp:varName "parameterSetFacility"^^xsd:string | 194 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 167 | ] | 195 | ] |
| 168 | - ] [ sp:object | 196 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 169 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 170 | - ] ; | ||
| 171 | sp:predicate rdf:type ; | 197 | sp:predicate rdf:type ; |
| 172 | sp:subject | 198 | sp:subject |
| 173 | - [ sp:varName "parameterSetFacility"^^xsd:string | 199 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 174 | ] | 200 | ] |
| 175 | ] [ sp:object | 201 | ] [ sp:object |
| 176 | - [ sp:varName "parameterRef"^^xsd:string | 202 | + [ sp:varName "nameRef"^^xsd:string |
| 177 | ] ; | 203 | ] ; |
| 178 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 204 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 179 | - sp:subject spin:_this | 205 | + sp:subject |
| 206 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
| 207 | + ] | ||
| 180 | ] [ sp:object | 208 | ] [ sp:object |
| 181 | - [ sp:varName "dTim"^^xsd:string | 209 | + [ sp:varName "nameRef"^^xsd:string |
| 182 | ] ; | 210 | ] ; |
| 183 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 211 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
| 184 | sp:subject | 212 | sp:subject |
| 185 | - [ sp:varName "parameterRef"^^xsd:string | 213 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
| 186 | ] | 214 | ] |
| 187 | ] [ rdf:type sp:NotExists ; | 215 | ] [ rdf:type sp:NotExists ; |
| 188 | sp:elements ([ sp:object | 216 | sp:elements ([ sp:object |
| 189 | - [ sp:varName "dTim"^^xsd:string | 217 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
| 190 | - ] ; | ||
| 191 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 192 | - sp:subject | ||
| 193 | - [ sp:varName "parameterFacility"^^xsd:string | ||
| 194 | - ] | ||
| 195 | - ] [ sp:object | ||
| 196 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 197 | ] ; | 218 | ] ; |
| 198 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 219 | + sp:predicate rdf:type ; |
| 199 | sp:subject | 220 | sp:subject |
| 200 | - [ sp:varName "parameterFacility"^^xsd:string | 221 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 201 | ] | 222 | ] |
| 202 | ]) | 223 | ]) |
| 203 | ]) | 224 | ]) |
| 204 | - ] ; | 225 | + ] . |
| 226 | + | ||
| 227 | +<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | ||
| 205 | spin:rule | 228 | spin:rule |
| 206 | [ rdf:type sp:Construct ; | 229 | [ rdf:type sp:Construct ; |
| 207 | - rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; | 230 | + rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; |
| 208 | - sp:templates ([ sp:object | 231 | + sp:templates ([ sp:object spin:_this ; |
| 209 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 210 | - ] ; | ||
| 211 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 232 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 212 | sp:subject | 233 | sp:subject |
| 213 | - [ sp:varName "parameterFacility"^^xsd:string | 234 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 214 | ] | 235 | ] |
| 215 | ]) ; | 236 | ]) ; |
| 216 | sp:where ([ sp:object spin:_this ; | 237 | sp:where ([ sp:object spin:_this ; |
| 217 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 238 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
| 218 | sp:subject | 239 | sp:subject |
| 219 | - [ sp:varName "parameterSetFacility"^^xsd:string | 240 | + [ sp:varName "facilityRef"^^xsd:string |
| 220 | ] | 241 | ] |
| 221 | ] [ sp:object | 242 | ] [ sp:object |
| 222 | - [ sp:varName "parameterRef"^^xsd:string | 243 | + [ sp:varName "facilityRef"^^xsd:string |
| 223 | - ] ; | ||
| 224 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 225 | - sp:subject spin:_this | ||
| 226 | - ] [ sp:object | ||
| 227 | - [ sp:varName "dTim"^^xsd:string | ||
| 228 | ] ; | 244 | ] ; |
| 229 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 245 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 230 | sp:subject | 246 | sp:subject |
| 231 | - [ sp:varName "parameterRef"^^xsd:string | 247 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 248 | + ] | ||
| 249 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 250 | + sp:predicate rdf:type ; | ||
| 251 | + sp:subject | ||
| 252 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 232 | ] | 253 | ] |
| 233 | ] [ sp:object | 254 | ] [ sp:object |
| 234 | - [ sp:varName "dTim"^^xsd:string | 255 | + [ sp:varName "nameRef"^^xsd:string |
| 235 | ] ; | 256 | ] ; |
| 236 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 257 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 258 | + sp:subject spin:_this | ||
| 259 | + ] [ sp:object | ||
| 260 | + [ sp:varName "nameRef"^^xsd:string | ||
| 261 | + ] ; | ||
| 262 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | ||
| 237 | sp:subject | 263 | sp:subject |
| 238 | - [ sp:varName "parameterFacility"^^xsd:string | 264 | + [ sp:varName "classOfProductionFacility"^^xsd:string |
| 239 | ] | 265 | ] |
| 240 | ] [ sp:object | 266 | ] [ sp:object |
| 241 | - [ sp:varName "parameterSetFacility"^^xsd:string | 267 | + [ sp:varName "classOfProductionFacility"^^xsd:string |
| 242 | ] ; | 268 | ] ; |
| 243 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 269 | + sp:predicate rdf:type ; |
| 244 | sp:subject | 270 | sp:subject |
| 245 | - [ sp:varName "parameterFacility"^^xsd:string | 271 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 246 | ] | 272 | ] |
| 247 | ]) | 273 | ]) |
| 248 | ] ; | 274 | ] ; |
| 249 | spin:rule | 275 | spin:rule |
| 250 | [ rdf:type sp:Construct ; | 276 | [ rdf:type sp:Construct ; |
| 251 | - rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; | 277 | + rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; |
| 252 | sp:templates ([ sp:object | 278 | sp:templates ([ sp:object |
| 253 | - [ sp:varName "intervalString"^^xsd:string | 279 | + [ sp:varName "parameterRef"^^xsd:string |
| 254 | ] ; | 280 | ] ; |
| 255 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | 281 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 256 | sp:subject | 282 | sp:subject |
| 257 | - [ sp:varName "parameterSetFacility"^^xsd:string | 283 | + [ sp:varName "parameterFacility"^^xsd:string |
| 258 | ] | 284 | ] |
| 259 | ]) ; | 285 | ]) ; |
| 260 | sp:where ([ sp:object spin:_this ; | 286 | sp:where ([ sp:object spin:_this ; |
| ... | @@ -270,6 +296,34 @@ | ... | @@ -270,6 +296,34 @@ |
| 270 | [ sp:varName "parameterSetFacility"^^xsd:string | 296 | [ sp:varName "parameterSetFacility"^^xsd:string |
| 271 | ] | 297 | ] |
| 272 | ] [ sp:object | 298 | ] [ sp:object |
| 299 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 300 | + ] ; | ||
| 301 | + sp:predicate rdf:type ; | ||
| 302 | + sp:subject | ||
| 303 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 304 | + ] | ||
| 305 | + ] [ sp:object | ||
| 306 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 307 | + ] ; | ||
| 308 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 309 | + sp:subject | ||
| 310 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 311 | + ] | ||
| 312 | + ] [ sp:object | ||
| 313 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 314 | + ] ; | ||
| 315 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 316 | + sp:subject | ||
| 317 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 318 | + ] | ||
| 319 | + ] [ sp:object | ||
| 320 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 321 | + ] ; | ||
| 322 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 323 | + sp:subject | ||
| 324 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 325 | + ] | ||
| 326 | + ] [ sp:object | ||
| 273 | [ sp:varName "parameterRef"^^xsd:string | 327 | [ sp:varName "parameterRef"^^xsd:string |
| 274 | ] ; | 328 | ] ; |
| 275 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 329 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| ... | @@ -288,33 +342,104 @@ | ... | @@ -288,33 +342,104 @@ |
| 288 | sp:subject | 342 | sp:subject |
| 289 | [ sp:varName "parameterRef"^^xsd:string | 343 | [ sp:varName "parameterRef"^^xsd:string |
| 290 | ] | 344 | ] |
| 291 | - ] [ rdf:type sp:NotExists ; | 345 | + ]) |
| 346 | + ] ; | ||
| 347 | + spin:rule | ||
| 348 | + [ rdf:type sp:Construct ; | ||
| 349 | + rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; | ||
| 350 | + sp:templates ([ sp:object | ||
| 351 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 352 | + ] ; | ||
| 353 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 354 | + sp:subject | ||
| 355 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 356 | + ] | ||
| 357 | + ]) ; | ||
| 358 | + sp:where ([ sp:object spin:_this ; | ||
| 359 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 360 | + sp:subject | ||
| 361 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 362 | + ] | ||
| 363 | + ] [ sp:object | ||
| 364 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 365 | + ] ; | ||
| 366 | + sp:predicate rdf:type ; | ||
| 367 | + sp:subject | ||
| 368 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 369 | + ] | ||
| 370 | + ] [ sp:object | ||
| 371 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 372 | + ] ; | ||
| 373 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 374 | + sp:subject spin:_this | ||
| 375 | + ] [ sp:object | ||
| 376 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 377 | + ] ; | ||
| 378 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 379 | + sp:subject | ||
| 380 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 381 | + ] | ||
| 382 | + ] [ sp:object | ||
| 383 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 384 | + ] ; | ||
| 385 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
| 386 | + sp:subject | ||
| 387 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 388 | + ] | ||
| 389 | + ] [ sp:object | ||
| 390 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 391 | + ] ; | ||
| 392 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 393 | + sp:subject | ||
| 394 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 395 | + ] | ||
| 396 | + ] [ sp:object | ||
| 397 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 398 | + ] ; | ||
| 399 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 400 | + sp:subject | ||
| 401 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 402 | + ] | ||
| 403 | + ]) | ||
| 404 | + ] ; | ||
| 405 | + spin:rule | ||
| 406 | + [ rdf:type sp:Construct ; | ||
| 407 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates - moved to a rule on Cs_productVolumeFacility"^^xsd:string ; | ||
| 408 | + sp:templates () ; | ||
| 409 | + sp:where () | ||
| 410 | + ] ; | ||
| 411 | + spin:rule | ||
| 412 | + [ rdf:type sp:Construct ; | ||
| 413 | + rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; | ||
| 414 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
| 415 | + sp:predicate rdf:type ; | ||
| 416 | + sp:subject | ||
| 417 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 418 | + ] | ||
| 419 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | ||
| 420 | + sp:predicate rdf:type ; | ||
| 421 | + sp:subject | ||
| 422 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 423 | + ] | ||
| 424 | + ]) ; | ||
| 425 | + sp:where ([ rdf:type sp:NotExists ; | ||
| 292 | sp:elements ([ sp:object | 426 | sp:elements ([ sp:object |
| 293 | - [ sp:varName "intervalStart"^^xsd:string | 427 | + [ sp:varName "qualifierRef"^^xsd:string |
| 294 | - ] ; | ||
| 295 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 296 | - sp:subject | ||
| 297 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 298 | - ] | ||
| 299 | - ] [ sp:object | ||
| 300 | - [ sp:varName "intervalEnd"^^xsd:string | ||
| 301 | ] ; | 428 | ] ; |
| 302 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 429 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; |
| 303 | - sp:subject | 430 | + sp:subject spin:_this |
| 304 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 305 | - ] | ||
| 306 | ]) | 431 | ]) |
| 307 | - ] [ rdf:type sp:Bind ; | 432 | + ] [ sp:object |
| 308 | - sp:expression | 433 | + [ sp:varName "parameterRef"^^xsd:string |
| 309 | - [ rdf:type fn:concat ; | ||
| 310 | - sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
| 311 | - ] ; | ||
| 312 | - sp:arg2 "$" ; | ||
| 313 | - sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | ||
| 314 | - ] | ||
| 315 | ] ; | 434 | ] ; |
| 316 | - sp:variable | 435 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 317 | - [ sp:varName "intervalString"^^xsd:string | 436 | + sp:subject spin:_this |
| 437 | + ] [ sp:object | ||
| 438 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 439 | + ] ; | ||
| 440 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 441 | + sp:subject | ||
| 442 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 318 | ] | 443 | ] |
| 319 | ]) | 444 | ]) |
| 320 | ] ; | 445 | ] ; |
| ... | @@ -322,28 +447,28 @@ | ... | @@ -322,28 +447,28 @@ |
| 322 | [ rdf:type sp:Construct ; | 447 | [ rdf:type sp:Construct ; |
| 323 | rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; | 448 | rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; |
| 324 | sp:templates ([ sp:object | 449 | sp:templates ([ sp:object |
| 325 | - [ sp:varName "start1"^^xsd:string | 450 | + [ sp:varName "dTimStartString"^^xsd:string |
| 326 | ] ; | 451 | ] ; |
| 327 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 452 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
| 328 | sp:subject | 453 | sp:subject |
| 329 | [ sp:varName "parameterRef"^^xsd:string | 454 | [ sp:varName "parameterRef"^^xsd:string |
| 330 | ] | 455 | ] |
| 331 | ] [ sp:object | 456 | ] [ sp:object |
| 332 | - [ sp:varName "start2"^^xsd:string | 457 | + [ sp:varName "dateStartString"^^xsd:string |
| 333 | ] ; | 458 | ] ; |
| 334 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 459 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
| 335 | sp:subject | 460 | sp:subject |
| 336 | [ sp:varName "parameterRef"^^xsd:string | 461 | [ sp:varName "parameterRef"^^xsd:string |
| 337 | ] | 462 | ] |
| 338 | ] [ sp:object | 463 | ] [ sp:object |
| 339 | - [ sp:varName "end1"^^xsd:string | 464 | + [ sp:varName "dTimEndString"^^xsd:string |
| 340 | ] ; | 465 | ] ; |
| 341 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 466 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
| 342 | sp:subject | 467 | sp:subject |
| 343 | [ sp:varName "parameterRef"^^xsd:string | 468 | [ sp:varName "parameterRef"^^xsd:string |
| 344 | ] | 469 | ] |
| 345 | ] [ sp:object | 470 | ] [ sp:object |
| 346 | - [ sp:varName "end2"^^xsd:string | 471 | + [ sp:varName "dateEndString"^^xsd:string |
| 347 | ] ; | 472 | ] ; |
| 348 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 473 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
| 349 | sp:subject | 474 | sp:subject |
| ... | @@ -363,6 +488,16 @@ | ... | @@ -363,6 +488,16 @@ |
| 363 | sp:subject | 488 | sp:subject |
| 364 | [ sp:varName "parameterRef"^^xsd:string | 489 | [ sp:varName "parameterRef"^^xsd:string |
| 365 | ] | 490 | ] |
| 491 | + ] [ rdf:type sp:Bind ; | ||
| 492 | + sp:expression | ||
| 493 | + [ rdf:type smf:cast ; | ||
| 494 | + arg:datatype xsd:string ; | ||
| 495 | + sp:arg1 [ sp:varName "dTimStart"^^xsd:string | ||
| 496 | + ] | ||
| 497 | + ] ; | ||
| 498 | + sp:variable | ||
| 499 | + [ sp:varName "dTimStartString"^^xsd:string | ||
| 500 | + ] | ||
| 366 | ]) | 501 | ]) |
| 367 | ] [ rdf:type sp:Optional ; | 502 | ] [ rdf:type sp:Optional ; |
| 368 | sp:elements ([ sp:object | 503 | sp:elements ([ sp:object |
| ... | @@ -372,6 +507,16 @@ | ... | @@ -372,6 +507,16 @@ |
| 372 | sp:subject | 507 | sp:subject |
| 373 | [ sp:varName "parameterRef"^^xsd:string | 508 | [ sp:varName "parameterRef"^^xsd:string |
| 374 | ] | 509 | ] |
| 510 | + ] [ rdf:type sp:Bind ; | ||
| 511 | + sp:expression | ||
| 512 | + [ rdf:type smf:cast ; | ||
| 513 | + arg:datatype xsd:string ; | ||
| 514 | + sp:arg1 [ sp:varName "dTimEnd"^^xsd:string | ||
| 515 | + ] | ||
| 516 | + ] ; | ||
| 517 | + sp:variable | ||
| 518 | + [ sp:varName "dTimEndString"^^xsd:string | ||
| 519 | + ] | ||
| 375 | ]) | 520 | ]) |
| 376 | ] [ rdf:type sp:Optional ; | 521 | ] [ rdf:type sp:Optional ; |
| 377 | sp:elements ([ sp:object | 522 | sp:elements ([ sp:object |
| ... | @@ -381,6 +526,16 @@ | ... | @@ -381,6 +526,16 @@ |
| 381 | sp:subject | 526 | sp:subject |
| 382 | [ sp:varName "parameterRef"^^xsd:string | 527 | [ sp:varName "parameterRef"^^xsd:string |
| 383 | ] | 528 | ] |
| 529 | + ] [ rdf:type sp:Bind ; | ||
| 530 | + sp:expression | ||
| 531 | + [ rdf:type smf:cast ; | ||
| 532 | + arg:datatype xsd:string ; | ||
| 533 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 534 | + ] | ||
| 535 | + ] ; | ||
| 536 | + sp:variable | ||
| 537 | + [ sp:varName "dateStartString"^^xsd:string | ||
| 538 | + ] | ||
| 384 | ]) | 539 | ]) |
| 385 | ] [ rdf:type sp:Optional ; | 540 | ] [ rdf:type sp:Optional ; |
| 386 | sp:elements ([ sp:object | 541 | sp:elements ([ sp:object |
| ... | @@ -390,104 +545,60 @@ | ... | @@ -390,104 +545,60 @@ |
| 390 | sp:subject | 545 | sp:subject |
| 391 | [ sp:varName "parameterRef"^^xsd:string | 546 | [ sp:varName "parameterRef"^^xsd:string |
| 392 | ] | 547 | ] |
| 548 | + ] [ rdf:type sp:Bind ; | ||
| 549 | + sp:expression | ||
| 550 | + [ rdf:type smf:cast ; | ||
| 551 | + arg:datatype xsd:string ; | ||
| 552 | + sp:arg1 [ sp:varName "dateEnd"^^xsd:string | ||
| 553 | + ] | ||
| 554 | + ] ; | ||
| 555 | + sp:variable | ||
| 556 | + [ sp:varName "dateEndString"^^xsd:string | ||
| 557 | + ] | ||
| 393 | ]) | 558 | ]) |
| 394 | - ] [ rdf:type sp:Bind ; | ||
| 395 | - sp:expression | ||
| 396 | - [ rdf:type smf:cast ; | ||
| 397 | - arg:datatype xsd:string ; | ||
| 398 | - sp:arg1 [ sp:varName "dTimStart"^^xsd:string | ||
| 399 | - ] | ||
| 400 | - ] ; | ||
| 401 | - sp:variable | ||
| 402 | - [ sp:varName "start1"^^xsd:string | ||
| 403 | - ] | ||
| 404 | - ] [ rdf:type sp:Bind ; | ||
| 405 | - sp:expression | ||
| 406 | - [ rdf:type smf:cast ; | ||
| 407 | - arg:datatype xsd:string ; | ||
| 408 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 409 | - ] | ||
| 410 | - ] ; | ||
| 411 | - sp:variable | ||
| 412 | - [ sp:varName "start2"^^xsd:string | ||
| 413 | - ] | ||
| 414 | - ] [ rdf:type sp:Bind ; | ||
| 415 | - sp:expression | ||
| 416 | - [ rdf:type smf:cast ; | ||
| 417 | - arg:datatype xsd:string ; | ||
| 418 | - sp:arg1 [ sp:varName "dTimEnd"^^xsd:string | ||
| 419 | - ] | ||
| 420 | - ] ; | ||
| 421 | - sp:variable | ||
| 422 | - [ sp:varName "end1"^^xsd:string | ||
| 423 | - ] | ||
| 424 | - ] [ rdf:type sp:Bind ; | ||
| 425 | - sp:expression | ||
| 426 | - [ rdf:type smf:cast ; | ||
| 427 | - arg:datatype xsd:string ; | ||
| 428 | - sp:arg1 [ sp:varName "dateEnd"^^xsd:string | ||
| 429 | - ] | ||
| 430 | - ] ; | ||
| 431 | - sp:variable | ||
| 432 | - [ sp:varName "end2"^^xsd:string | ||
| 433 | - ] | ||
| 434 | ]) | 559 | ]) |
| 435 | ] ; | 560 | ] ; |
| 436 | spin:rule | 561 | spin:rule |
| 437 | [ rdf:type sp:Construct ; | 562 | [ rdf:type sp:Construct ; |
| 438 | - rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; | 563 | + rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; |
| 439 | - sp:templates ([ sp:object | 564 | + sp:templates ([ sp:object _:b3 ; |
| 440 | - [ sp:varName "parameterRef"^^xsd:string | 565 | + sp:predicate |
| 566 | + [ sp:varName "propertyType"^^xsd:string | ||
| 441 | ] ; | 567 | ] ; |
| 442 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 443 | - sp:subject | ||
| 444 | - [ sp:varName "parameterFacility"^^xsd:string | ||
| 445 | - ] | ||
| 446 | - ] [ sp:object "80003c" ; | ||
| 447 | - sp:predicate rdfs:label ; | ||
| 448 | sp:subject | 568 | sp:subject |
| 449 | [ sp:varName "parameterFacility"^^xsd:string | 569 | [ sp:varName "parameterFacility"^^xsd:string |
| 450 | ] | 570 | ] |
| 451 | - ]) ; | ||
| 452 | - sp:where ([ sp:object spin:_this ; | ||
| 453 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 454 | - sp:subject | ||
| 455 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 456 | - ] | ||
| 457 | ] [ sp:object | 571 | ] [ sp:object |
| 458 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 572 | + [ sp:varName "quantityType"^^xsd:string |
| 459 | ] ; | 573 | ] ; |
| 460 | sp:predicate rdf:type ; | 574 | sp:predicate rdf:type ; |
| 461 | - sp:subject | 575 | + sp:subject _:b3 |
| 462 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 463 | - ] | ||
| 464 | ] [ sp:object | 576 | ] [ sp:object |
| 465 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 577 | + [ sp:varName "measureValue"^^xsd:string |
| 466 | ] ; | 578 | ] ; |
| 467 | - sp:predicate rdf:type ; | 579 | + sp:predicate |
| 468 | - sp:subject | 580 | + [ sp:varName "measureScale"^^xsd:string |
| 469 | - [ sp:varName "parameterFacility"^^xsd:string | ||
| 470 | - ] | ||
| 471 | - ] [ sp:object | ||
| 472 | - [ sp:varName "intervalStartString"^^xsd:string | ||
| 473 | ] ; | 581 | ] ; |
| 474 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 582 | + sp:subject _:b3 |
| 475 | - sp:subject | 583 | + ]) ; |
| 476 | - [ sp:varName "parameterFacility"^^xsd:string | 584 | + sp:where ([ sp:object |
| 477 | - ] | 585 | + [ sp:varName "nameRef"^^xsd:string |
| 586 | + ] ; | ||
| 587 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 588 | + sp:subject spin:_this | ||
| 478 | ] [ sp:object | 589 | ] [ sp:object |
| 479 | - [ sp:varName "intervalEndString"^^xsd:string | 590 | + [ sp:varName "nameRef"^^xsd:string |
| 480 | ] ; | 591 | ] ; |
| 481 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 592 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#propertyMapsToMPREnumeration> ; |
| 482 | sp:subject | 593 | sp:subject |
| 483 | - [ sp:varName "parameterFacility"^^xsd:string | 594 | + [ sp:varName "propertyType"^^xsd:string |
| 484 | ] | 595 | ] |
| 485 | ] [ sp:object | 596 | ] [ sp:object |
| 486 | - [ sp:varName "parameterSetFacility"^^xsd:string | 597 | + [ sp:varName "nameRef"^^xsd:string |
| 487 | ] ; | 598 | ] ; |
| 488 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 599 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; |
| 489 | sp:subject | 600 | sp:subject |
| 490 | - [ sp:varName "parameterFacility"^^xsd:string | 601 | + [ sp:varName "quantityType"^^xsd:string |
| 491 | ] | 602 | ] |
| 492 | ] [ sp:object | 603 | ] [ sp:object |
| 493 | [ sp:varName "parameterRef"^^xsd:string | 604 | [ sp:varName "parameterRef"^^xsd:string |
| ... | @@ -495,57 +606,120 @@ | ... | @@ -495,57 +606,120 @@ |
| 495 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 606 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 496 | sp:subject spin:_this | 607 | sp:subject spin:_this |
| 497 | ] [ sp:object | 608 | ] [ sp:object |
| 498 | - [ sp:varName "intervalStart"^^xsd:string | 609 | + [ sp:varName "parameterRef"^^xsd:string |
| 499 | ] ; | 610 | ] ; |
| 500 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 611 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 501 | sp:subject | 612 | sp:subject |
| 502 | - [ sp:varName "parameterRef"^^xsd:string | 613 | + [ sp:varName "parameterFacility"^^xsd:string |
| 503 | ] | 614 | ] |
| 504 | ] [ sp:object | 615 | ] [ sp:object |
| 505 | - [ sp:varName "intervalEnd"^^xsd:string | 616 | + [ sp:varName "measureValueRef"^^xsd:string |
| 506 | ] ; | 617 | ] ; |
| 507 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 618 | + sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ; |
| 508 | sp:subject | 619 | sp:subject |
| 509 | [ sp:varName "parameterRef"^^xsd:string | 620 | [ sp:varName "parameterRef"^^xsd:string |
| 510 | ] | 621 | ] |
| 511 | - ] [ rdf:type sp:Bind ; | 622 | + ] [ sp:object |
| 512 | - sp:expression | 623 | + [ sp:varName "measureValue"^^xsd:string |
| 513 | - [ rdf:type smf:cast ; | ||
| 514 | - arg:datatype xsd:string ; | ||
| 515 | - sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
| 516 | - ] | ||
| 517 | ] ; | 624 | ] ; |
| 518 | - sp:variable | 625 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 519 | - [ sp:varName "intervalStartString"^^xsd:string | 626 | + sp:subject |
| 627 | + [ sp:varName "measureValueRef"^^xsd:string | ||
| 628 | + ] | ||
| 629 | + ] [ sp:object | ||
| 630 | + [ sp:varName "measureUomString"^^xsd:string | ||
| 631 | + ] ; | ||
| 632 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ; | ||
| 633 | + sp:subject | ||
| 634 | + [ sp:varName "measureValueRef"^^xsd:string | ||
| 520 | ] | 635 | ] |
| 521 | ] [ rdf:type sp:Bind ; | 636 | ] [ rdf:type sp:Bind ; |
| 522 | sp:expression | 637 | sp:expression |
| 523 | - [ rdf:type smf:cast ; | 638 | + [ rdf:type ep-mpr-spin-lib:selectQuantityTypeUomScale ; |
| 524 | - arg:datatype xsd:string ; | 639 | + sp:arg1 [ sp:varName "quantityType"^^xsd:string |
| 525 | - sp:arg1 [ sp:varName "intervalEnd"^^xsd:string | 640 | + ] ; |
| 641 | + sp:arg2 [ sp:varName "measureUomString"^^xsd:string | ||
| 526 | ] | 642 | ] |
| 527 | ] ; | 643 | ] ; |
| 528 | sp:variable | 644 | sp:variable |
| 529 | - [ sp:varName "intervalEndString"^^xsd:string | 645 | + [ sp:varName "measureScale"^^xsd:string |
| 530 | ] | 646 | ] |
| 531 | ]) | 647 | ]) |
| 532 | ] ; | 648 | ] ; |
| 533 | spin:rule | 649 | spin:rule |
| 534 | [ rdf:type sp:Construct ; | 650 | [ rdf:type sp:Construct ; |
| 535 | - rdfs:comment "STEP 80006 Set flowing or not-flowing state"^^xsd:string ; | 651 | + rdfs:comment "STEP 80001c Regularise start and end times - end time inherited from temporal part of production facility"^^xsd:string ; |
| 536 | sp:templates ([ sp:object | 652 | sp:templates ([ sp:object |
| 537 | - [ sp:varName "flowingStateType"^^xsd:string | 653 | + [ sp:varName "endString"^^xsd:string |
| 538 | ] ; | 654 | ] ; |
| 539 | - sp:predicate rdf:type ; | 655 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
| 540 | sp:subject | 656 | sp:subject |
| 541 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 657 | + [ sp:varName "parameterRef"^^xsd:string |
| 542 | ] | 658 | ] |
| 543 | ]) ; | 659 | ]) ; |
| 544 | - sp:where ([ sp:object | 660 | + sp:where ([ sp:object spin:_this ; |
| 545 | - [ sp:varName "parameterRef"^^xsd:string | 661 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 546 | - ] ; | 662 | + sp:subject |
| 547 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 663 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 548 | - sp:subject spin:_this | 664 | + ] |
| 665 | + ] [ sp:object | ||
| 666 | + [ sp:varName "finishedAt"^^xsd:string | ||
| 667 | + ] ; | ||
| 668 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 669 | + sp:subject | ||
| 670 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 671 | + ] | ||
| 672 | + ] [ rdf:type sp:Bind ; | ||
| 673 | + sp:expression | ||
| 674 | + [ rdf:type smf:cast ; | ||
| 675 | + arg:datatype xsd:string ; | ||
| 676 | + sp:arg1 [ sp:varName "finishedAt"^^xsd:string | ||
| 677 | + ] | ||
| 678 | + ] ; | ||
| 679 | + sp:variable | ||
| 680 | + [ sp:varName "endString"^^xsd:string | ||
| 681 | + ] | ||
| 682 | + ] [ sp:object | ||
| 683 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 684 | + ] ; | ||
| 685 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 686 | + sp:subject spin:_this | ||
| 687 | + ] [ rdf:type sp:NotExists ; | ||
| 688 | + sp:elements ([ rdf:type sp:Union ; | ||
| 689 | + sp:elements (([ sp:object | ||
| 690 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 691 | + ] ; | ||
| 692 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 693 | + sp:subject | ||
| 694 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 695 | + ] | ||
| 696 | + ]) ([ sp:object | ||
| 697 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 698 | + ] ; | ||
| 699 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 700 | + sp:subject | ||
| 701 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 702 | + ] | ||
| 703 | + ])) | ||
| 704 | + ]) | ||
| 705 | + ]) | ||
| 706 | + ] ; | ||
| 707 | + spin:rule | ||
| 708 | + [ rdf:type sp:Construct ; | ||
| 709 | + rdfs:comment "STEP 80006 Set flowing or not-flowing state"^^xsd:string ; | ||
| 710 | + sp:templates ([ sp:object | ||
| 711 | + [ sp:varName "flowingStateType"^^xsd:string | ||
| 712 | + ] ; | ||
| 713 | + sp:predicate rdf:type ; | ||
| 714 | + sp:subject | ||
| 715 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 716 | + ] | ||
| 717 | + ]) ; | ||
| 718 | + sp:where ([ sp:object | ||
| 719 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 720 | + ] ; | ||
| 721 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 722 | + sp:subject spin:_this | ||
| 549 | ] [ sp:object | 723 | ] [ sp:object |
| 550 | [ sp:varName "parameterRef"^^xsd:string | 724 | [ sp:varName "parameterRef"^^xsd:string |
| 551 | ] ; | 725 | ] ; |
| ... | @@ -576,6 +750,64 @@ | ... | @@ -576,6 +750,64 @@ |
| 576 | ] ; | 750 | ] ; |
| 577 | spin:rule | 751 | spin:rule |
| 578 | [ rdf:type sp:Construct ; | 752 | [ rdf:type sp:Construct ; |
| 753 | + rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; | ||
| 754 | + sp:templates ([ sp:object | ||
| 755 | + [ sp:varName "startString"^^xsd:string | ||
| 756 | + ] ; | ||
| 757 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 758 | + sp:subject | ||
| 759 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 760 | + ] | ||
| 761 | + ]) ; | ||
| 762 | + sp:where ([ sp:object spin:_this ; | ||
| 763 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 764 | + sp:subject | ||
| 765 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 766 | + ] | ||
| 767 | + ] [ sp:object | ||
| 768 | + [ sp:varName "startedAt"^^xsd:string | ||
| 769 | + ] ; | ||
| 770 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 771 | + sp:subject | ||
| 772 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 773 | + ] | ||
| 774 | + ] [ rdf:type sp:Bind ; | ||
| 775 | + sp:expression | ||
| 776 | + [ rdf:type smf:cast ; | ||
| 777 | + arg:datatype xsd:string ; | ||
| 778 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
| 779 | + ] | ||
| 780 | + ] ; | ||
| 781 | + sp:variable | ||
| 782 | + [ sp:varName "startString"^^xsd:string | ||
| 783 | + ] | ||
| 784 | + ] [ sp:object | ||
| 785 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 786 | + ] ; | ||
| 787 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 788 | + sp:subject spin:_this | ||
| 789 | + ] [ rdf:type sp:NotExists ; | ||
| 790 | + sp:elements ([ rdf:type sp:Union ; | ||
| 791 | + sp:elements (([ sp:object | ||
| 792 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 793 | + ] ; | ||
| 794 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 795 | + sp:subject | ||
| 796 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 797 | + ] | ||
| 798 | + ]) ([ sp:object | ||
| 799 | + [ sp:varName "dateStart"^^xsd:string | ||
| 800 | + ] ; | ||
| 801 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 802 | + sp:subject | ||
| 803 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 804 | + ] | ||
| 805 | + ])) | ||
| 806 | + ]) | ||
| 807 | + ]) | ||
| 808 | + ] ; | ||
| 809 | + spin:rule | ||
| 810 | + [ rdf:type sp:Construct ; | ||
| 579 | rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; | 811 | rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; |
| 580 | sp:templates ([ sp:object spin:_this ; | 812 | sp:templates ([ sp:object spin:_this ; |
| 581 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 813 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -639,57 +871,79 @@ | ... | @@ -639,57 +871,79 @@ |
| 639 | ] ; | 871 | ] ; |
| 640 | spin:rule | 872 | spin:rule |
| 641 | [ rdf:type sp:Construct ; | 873 | [ rdf:type sp:Construct ; |
| 642 | - rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; | 874 | + rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; |
| 643 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | 875 | + sp:templates ([ sp:object |
| 876 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 877 | + ] ; | ||
| 644 | sp:predicate rdf:type ; | 878 | sp:predicate rdf:type ; |
| 879 | + sp:subject _:b4 | ||
| 880 | + ] [ sp:object | ||
| 881 | + [ sp:varName "dTim"^^xsd:string | ||
| 882 | + ] ; | ||
| 883 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 884 | + sp:subject _:b4 | ||
| 885 | + ] [ sp:object | ||
| 886 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 887 | + ] ; | ||
| 888 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 889 | + sp:subject _:b4 | ||
| 890 | + ] [ sp:object | ||
| 891 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 892 | + ] ; | ||
| 893 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 894 | + sp:subject _:b4 | ||
| 895 | + ]) ; | ||
| 896 | + sp:where ([ sp:object spin:_this ; | ||
| 897 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 645 | sp:subject | 898 | sp:subject |
| 646 | - [ sp:varName "parameterFacility"^^xsd:string | 899 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 647 | ] | 900 | ] |
| 648 | ] [ sp:object | 901 | ] [ sp:object |
| 649 | - [ sp:varName "measuredQualityType"^^xsd:string | 902 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
| 650 | ] ; | 903 | ] ; |
| 651 | sp:predicate rdf:type ; | 904 | sp:predicate rdf:type ; |
| 652 | sp:subject | 905 | sp:subject |
| 653 | - [ sp:varName "parameterFacility"^^xsd:string | 906 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 654 | ] | 907 | ] |
| 655 | - ]) ; | ||
| 656 | - sp:where ([ sp:object | ||
| 657 | - [ sp:varName "qualifierRef"^^xsd:string | ||
| 658 | - ] ; | ||
| 659 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
| 660 | - sp:subject spin:_this | ||
| 661 | ] [ sp:object | 908 | ] [ sp:object |
| 662 | [ sp:varName "parameterRef"^^xsd:string | 909 | [ sp:varName "parameterRef"^^xsd:string |
| 663 | ] ; | 910 | ] ; |
| 664 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 911 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 665 | sp:subject spin:_this | 912 | sp:subject spin:_this |
| 666 | ] [ sp:object | 913 | ] [ sp:object |
| 667 | - [ sp:varName "parameterRef"^^xsd:string | 914 | + [ sp:varName "dTim"^^xsd:string |
| 668 | ] ; | 915 | ] ; |
| 669 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 916 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; |
| 670 | sp:subject | 917 | sp:subject |
| 671 | - [ sp:varName "parameterFacility"^^xsd:string | 918 | + [ sp:varName "parameterRef"^^xsd:string |
| 672 | - ] | ||
| 673 | - ] [ rdf:type sp:Bind ; | ||
| 674 | - sp:expression | ||
| 675 | - [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
| 676 | - sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | ||
| 677 | - ] | ||
| 678 | - ] ; | ||
| 679 | - sp:variable | ||
| 680 | - [ sp:varName "measuredQualityType"^^xsd:string | ||
| 681 | ] | 919 | ] |
| 920 | + ] [ rdf:type sp:NotExists ; | ||
| 921 | + sp:elements ([ sp:object | ||
| 922 | + [ sp:varName "dTim"^^xsd:string | ||
| 923 | + ] ; | ||
| 924 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 925 | + sp:subject | ||
| 926 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 927 | + ] | ||
| 928 | + ] [ sp:object | ||
| 929 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 930 | + ] ; | ||
| 931 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 932 | + sp:subject | ||
| 933 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 934 | + ] | ||
| 935 | + ]) | ||
| 682 | ]) | 936 | ]) |
| 683 | ] ; | 937 | ] ; |
| 684 | spin:rule | 938 | spin:rule |
| 685 | [ rdf:type sp:Construct ; | 939 | [ rdf:type sp:Construct ; |
| 686 | - rdfs:comment "STEP 80001c Regularise start and end times - end time inherited from temporal part of production facility"^^xsd:string ; | 940 | + rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; |
| 687 | sp:templates ([ sp:object | 941 | sp:templates ([ sp:object |
| 688 | - [ sp:varName "end"^^xsd:string | 942 | + [ sp:varName "parameterRef"^^xsd:string |
| 689 | ] ; | 943 | ] ; |
| 690 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 944 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 691 | sp:subject | 945 | sp:subject |
| 692 | - [ sp:varName "parameterRef"^^xsd:string | 946 | + [ sp:varName "parameterFacility"^^xsd:string |
| 693 | ] | 947 | ] |
| 694 | ]) ; | 948 | ]) ; |
| 695 | sp:where ([ sp:object spin:_this ; | 949 | sp:where ([ sp:object spin:_this ; |
| ... | @@ -698,54 +952,40 @@ | ... | @@ -698,54 +952,40 @@ |
| 698 | [ sp:varName "parameterSetFacility"^^xsd:string | 952 | [ sp:varName "parameterSetFacility"^^xsd:string |
| 699 | ] | 953 | ] |
| 700 | ] [ sp:object | 954 | ] [ sp:object |
| 701 | - [ sp:varName "finishedAt"^^xsd:string | 955 | + [ sp:varName "parameterRef"^^xsd:string |
| 702 | ] ; | 956 | ] ; |
| 703 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 957 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 958 | + sp:subject spin:_this | ||
| 959 | + ] [ sp:object | ||
| 960 | + [ sp:varName "dTim"^^xsd:string | ||
| 961 | + ] ; | ||
| 962 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
| 704 | sp:subject | 963 | sp:subject |
| 705 | - [ sp:varName "parameterSetFacility"^^xsd:string | 964 | + [ sp:varName "parameterRef"^^xsd:string |
| 706 | ] | 965 | ] |
| 707 | ] [ sp:object | 966 | ] [ sp:object |
| 708 | - [ sp:varName "parameterRef"^^xsd:string | 967 | + [ sp:varName "dTim"^^xsd:string |
| 709 | ] ; | 968 | ] ; |
| 710 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 969 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
| 711 | - sp:subject spin:_this | 970 | + sp:subject |
| 712 | - ] [ rdf:type sp:NotExists ; | 971 | + [ sp:varName "parameterFacility"^^xsd:string |
| 713 | - sp:elements ([ rdf:type sp:Union ; | 972 | + ] |
| 714 | - sp:elements (([ sp:object | 973 | + ] [ sp:object |
| 715 | - [ sp:varName "dTimEnd"^^xsd:string | 974 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 716 | - ] ; | ||
| 717 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 718 | - sp:subject | ||
| 719 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 720 | - ] | ||
| 721 | - ]) ([ sp:object | ||
| 722 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 723 | - ] ; | ||
| 724 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 725 | - sp:subject | ||
| 726 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 727 | - ] | ||
| 728 | - ])) | ||
| 729 | - ]) | ||
| 730 | - ] [ rdf:type sp:Bind ; | ||
| 731 | - sp:expression | ||
| 732 | - [ rdf:type smf:cast ; | ||
| 733 | - arg:datatype xsd:string ; | ||
| 734 | - sp:arg1 [ sp:varName "finishedAt"^^xsd:string | ||
| 735 | - ] | ||
| 736 | ] ; | 975 | ] ; |
| 737 | - sp:variable | 976 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 738 | - [ sp:varName "end"^^xsd:string | 977 | + sp:subject |
| 978 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 739 | ] | 979 | ] |
| 740 | ]) | 980 | ]) |
| 741 | ] ; | 981 | ] ; |
| 742 | spin:rule | 982 | spin:rule |
| 743 | [ rdf:type sp:Construct ; | 983 | [ rdf:type sp:Construct ; |
| 744 | - rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; | 984 | + rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; |
| 745 | sp:templates ([ sp:object | 985 | sp:templates ([ sp:object |
| 746 | - [ sp:varName "parameterRef"^^xsd:string | 986 | + [ sp:varName "intervalString"^^xsd:string |
| 747 | ] ; | 987 | ] ; |
| 748 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 988 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
| 749 | sp:subject | 989 | sp:subject |
| 750 | [ sp:varName "parameterSetFacility"^^xsd:string | 990 | [ sp:varName "parameterSetFacility"^^xsd:string |
| 751 | ] | 991 | ] |
| ... | @@ -781,329 +1021,82 @@ | ... | @@ -781,329 +1021,82 @@ |
| 781 | sp:subject | 1021 | sp:subject |
| 782 | [ sp:varName "parameterRef"^^xsd:string | 1022 | [ sp:varName "parameterRef"^^xsd:string |
| 783 | ] | 1023 | ] |
| 784 | - ] [ sp:object | 1024 | + ] [ rdf:type sp:NotExists ; |
| 785 | - [ sp:varName "intervalStart"^^xsd:string | 1025 | + sp:elements ([ sp:object |
| 786 | - ] ; | 1026 | + [ sp:varName "intervalStart"^^xsd:string |
| 787 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1027 | + ] ; |
| 788 | - sp:subject | 1028 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 789 | - [ sp:varName "parameterSetFacility"^^xsd:string | 1029 | + sp:subject |
| 790 | - ] | 1030 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 791 | - ] [ sp:object | 1031 | + ] |
| 792 | - [ sp:varName "intervalEnd"^^xsd:string | 1032 | + ] [ sp:object |
| 793 | - ] ; | 1033 | + [ sp:varName "intervalEnd"^^xsd:string |
| 794 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1034 | + ] ; |
| 795 | - sp:subject | 1035 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 796 | - [ sp:varName "parameterSetFacility"^^xsd:string | 1036 | + sp:subject |
| 797 | - ] | 1037 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 798 | - ]) | 1038 | + ] |
| 799 | - ] ; | 1039 | + ]) |
| 800 | - spin:rule | ||
| 801 | - [ rdf:type sp:Construct ; | ||
| 802 | - rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; | ||
| 803 | - sp:templates ([ sp:object _:b3 ; | ||
| 804 | - sp:predicate | ||
| 805 | - [ sp:varName "propertyType"^^xsd:string | ||
| 806 | - ] ; | ||
| 807 | - sp:subject | ||
| 808 | - [ sp:varName "parameterFacility"^^xsd:string | ||
| 809 | - ] | ||
| 810 | - ] [ sp:object | ||
| 811 | - [ sp:varName "quantityType"^^xsd:string | ||
| 812 | - ] ; | ||
| 813 | - sp:predicate rdf:type ; | ||
| 814 | - sp:subject _:b3 | ||
| 815 | - ] [ sp:object | ||
| 816 | - [ sp:varName "measureValue"^^xsd:string | ||
| 817 | - ] ; | ||
| 818 | - sp:predicate | ||
| 819 | - [ sp:varName "measureScale"^^xsd:string | ||
| 820 | - ] ; | ||
| 821 | - sp:subject _:b3 | ||
| 822 | - ]) ; | ||
| 823 | - sp:where ([ sp:object | ||
| 824 | - [ sp:varName "nameRef"^^xsd:string | ||
| 825 | - ] ; | ||
| 826 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 827 | - sp:subject spin:_this | ||
| 828 | - ] [ sp:object | ||
| 829 | - [ sp:varName "nameRef"^^xsd:string | ||
| 830 | - ] ; | ||
| 831 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#propertyMapsToMPREnumeration> ; | ||
| 832 | - sp:subject | ||
| 833 | - [ sp:varName "propertyType"^^xsd:string | ||
| 834 | - ] | ||
| 835 | - ] [ sp:object | ||
| 836 | - [ sp:varName "nameRef"^^xsd:string | ||
| 837 | - ] ; | ||
| 838 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; | ||
| 839 | - sp:subject | ||
| 840 | - [ sp:varName "quantityType"^^xsd:string | ||
| 841 | - ] | ||
| 842 | - ] [ sp:object | ||
| 843 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 844 | - ] ; | ||
| 845 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 846 | - sp:subject spin:_this | ||
| 847 | - ] [ sp:object | ||
| 848 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 849 | - ] ; | ||
| 850 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 851 | - sp:subject | ||
| 852 | - [ sp:varName "parameterFacility"^^xsd:string | ||
| 853 | - ] | ||
| 854 | - ] [ sp:object | ||
| 855 | - [ sp:varName "measureValueRef"^^xsd:string | ||
| 856 | - ] ; | ||
| 857 | - sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ; | ||
| 858 | - sp:subject | ||
| 859 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 860 | - ] | ||
| 861 | - ] [ sp:object | ||
| 862 | - [ sp:varName "measureValue"^^xsd:string | ||
| 863 | - ] ; | ||
| 864 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 865 | - sp:subject | ||
| 866 | - [ sp:varName "measureValueRef"^^xsd:string | ||
| 867 | - ] | ||
| 868 | - ] [ sp:object | ||
| 869 | - [ sp:varName "measureUomString"^^xsd:string | ||
| 870 | - ] ; | ||
| 871 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ; | ||
| 872 | - sp:subject | ||
| 873 | - [ sp:varName "measureValueRef"^^xsd:string | ||
| 874 | - ] | ||
| 875 | ] [ rdf:type sp:Bind ; | 1040 | ] [ rdf:type sp:Bind ; |
| 876 | sp:expression | 1041 | sp:expression |
| 877 | - [ rdf:type ep-mpr-spin-lib:selectQuantityTypeUomScale ; | 1042 | + [ rdf:type fn:concat ; |
| 878 | - sp:arg1 [ sp:varName "quantityType"^^xsd:string | 1043 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string |
| 879 | ] ; | 1044 | ] ; |
| 880 | - sp:arg2 [ sp:varName "measureUomString"^^xsd:string | 1045 | + sp:arg2 "$" ; |
| 1046 | + sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | ||
| 881 | ] | 1047 | ] |
| 882 | ] ; | 1048 | ] ; |
| 883 | sp:variable | 1049 | sp:variable |
| 884 | - [ sp:varName "measureScale"^^xsd:string | 1050 | + [ sp:varName "intervalString"^^xsd:string |
| 885 | ] | 1051 | ] |
| 886 | ]) | 1052 | ]) |
| 887 | ] ; | 1053 | ] ; |
| 888 | spin:rule | 1054 | spin:rule |
| 889 | [ rdf:type sp:Construct ; | 1055 | [ rdf:type sp:Construct ; |
| 890 | - rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; | 1056 | + rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; |
| 891 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | 1057 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; |
| 892 | sp:predicate rdf:type ; | 1058 | sp:predicate rdf:type ; |
| 893 | sp:subject | 1059 | sp:subject |
| 894 | [ sp:varName "parameterFacility"^^xsd:string | 1060 | [ sp:varName "parameterFacility"^^xsd:string |
| 895 | ] | 1061 | ] |
| 896 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | ||
| 897 | - sp:predicate rdf:type ; | ||
| 898 | - sp:subject | ||
| 899 | - [ sp:varName "parameterFacility"^^xsd:string | ||
| 900 | - ] | ||
| 901 | - ]) ; | ||
| 902 | - sp:where ([ rdf:type sp:NotExists ; | ||
| 903 | - sp:elements ([ sp:object | ||
| 904 | - [ sp:varName "qualifierRef"^^xsd:string | ||
| 905 | - ] ; | ||
| 906 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
| 907 | - sp:subject spin:_this | ||
| 908 | - ]) | ||
| 909 | ] [ sp:object | 1062 | ] [ sp:object |
| 910 | - [ sp:varName "parameterRef"^^xsd:string | 1063 | + [ sp:varName "measuredQualityType"^^xsd:string |
| 911 | - ] ; | ||
| 912 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 913 | - sp:subject spin:_this | ||
| 914 | - ] [ sp:object | ||
| 915 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 916 | ] ; | 1064 | ] ; |
| 917 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1065 | + sp:predicate rdf:type ; |
| 918 | sp:subject | 1066 | sp:subject |
| 919 | [ sp:varName "parameterFacility"^^xsd:string | 1067 | [ sp:varName "parameterFacility"^^xsd:string |
| 920 | ] | 1068 | ] |
| 921 | - ]) | ||
| 922 | - ] ; | ||
| 923 | - spin:rule | ||
| 924 | - [ rdf:type sp:Construct ; | ||
| 925 | - rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; | ||
| 926 | - sp:templates ([ sp:object | ||
| 927 | - [ sp:varName "start"^^xsd:string | ||
| 928 | - ] ; | ||
| 929 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 930 | - sp:subject | ||
| 931 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 932 | - ] | ||
| 933 | ]) ; | 1069 | ]) ; |
| 934 | - sp:where ([ sp:object spin:_this ; | 1070 | + sp:where ([ sp:object |
| 935 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1071 | + [ sp:varName "qualifierRef"^^xsd:string |
| 936 | - sp:subject | ||
| 937 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 938 | - ] | ||
| 939 | - ] [ sp:object | ||
| 940 | - [ sp:varName "startedAt"^^xsd:string | ||
| 941 | ] ; | 1072 | ] ; |
| 942 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1073 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; |
| 943 | - sp:subject | 1074 | + sp:subject spin:_this |
| 944 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 945 | - ] | ||
| 946 | ] [ sp:object | 1075 | ] [ sp:object |
| 947 | [ sp:varName "parameterRef"^^xsd:string | 1076 | [ sp:varName "parameterRef"^^xsd:string |
| 948 | ] ; | 1077 | ] ; |
| 949 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 1078 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 950 | sp:subject spin:_this | 1079 | sp:subject spin:_this |
| 951 | - ] [ rdf:type sp:NotExists ; | ||
| 952 | - sp:elements ([ rdf:type sp:Union ; | ||
| 953 | - sp:elements (([ sp:object | ||
| 954 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 955 | - ] ; | ||
| 956 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 957 | - sp:subject | ||
| 958 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 959 | - ] | ||
| 960 | - ]) ([ sp:object | ||
| 961 | - [ sp:varName "dateStart"^^xsd:string | ||
| 962 | - ] ; | ||
| 963 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 964 | - sp:subject | ||
| 965 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 966 | - ] | ||
| 967 | - ])) | ||
| 968 | - ]) | ||
| 969 | - ] [ rdf:type sp:Bind ; | ||
| 970 | - sp:expression | ||
| 971 | - [ rdf:type smf:cast ; | ||
| 972 | - arg:datatype xsd:string ; | ||
| 973 | - sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
| 974 | - ] | ||
| 975 | - ] ; | ||
| 976 | - sp:variable | ||
| 977 | - [ sp:varName "start"^^xsd:string | ||
| 978 | - ] | ||
| 979 | - ]) | ||
| 980 | - ] ; | ||
| 981 | - spin:rule | ||
| 982 | - [ rdf:type sp:Construct ; | ||
| 983 | - rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; | ||
| 984 | - sp:templates ([ sp:object | ||
| 985 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 986 | - ] ; | ||
| 987 | - sp:predicate rdf:type ; | ||
| 988 | - sp:subject _:b4 | ||
| 989 | - ] [ sp:object | ||
| 990 | - [ sp:varName "intervalStart"^^xsd:string | ||
| 991 | - ] ; | ||
| 992 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 993 | - sp:subject _:b4 | ||
| 994 | ] [ sp:object | 1080 | ] [ sp:object |
| 995 | - [ sp:varName "intervalEnd"^^xsd:string | 1081 | + [ sp:varName "parameterRef"^^xsd:string |
| 996 | - ] ; | ||
| 997 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 998 | - sp:subject _:b4 | ||
| 999 | - ] [ sp:object | ||
| 1000 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 1001 | ] ; | 1082 | ] ; |
| 1002 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 1003 | - sp:subject _:b4 | ||
| 1004 | - ]) ; | ||
| 1005 | - sp:where ([ sp:object spin:_this ; | ||
| 1006 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1083 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 1007 | sp:subject | 1084 | sp:subject |
| 1008 | - [ sp:varName "parameterSetFacility"^^xsd:string | 1085 | + [ sp:varName "parameterFacility"^^xsd:string |
| 1009 | - ] | ||
| 1010 | - ] [ sp:object | ||
| 1011 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 1012 | - ] ; | ||
| 1013 | - sp:predicate rdf:type ; | ||
| 1014 | - sp:subject | ||
| 1015 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 1016 | - ] | ||
| 1017 | - ] [ sp:object | ||
| 1018 | - [ sp:varName "intervalString"^^xsd:string | ||
| 1019 | - ] ; | ||
| 1020 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | ||
| 1021 | - sp:subject | ||
| 1022 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 1023 | ] | 1086 | ] |
| 1024 | ] [ rdf:type sp:Bind ; | 1087 | ] [ rdf:type sp:Bind ; |
| 1025 | sp:expression | 1088 | sp:expression |
| 1026 | - [ rdf:type afn:substr ; | 1089 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; |
| 1027 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | 1090 | + sp:arg1 [ sp:varName "qualifierRef"^^xsd:string |
| 1028 | - ] ; | ||
| 1029 | - sp:arg2 0 ; | ||
| 1030 | - sp:arg3 [ rdf:type smf:indexOf ; | ||
| 1031 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 1032 | - ] ; | ||
| 1033 | - sp:arg2 "$" | ||
| 1034 | ] | 1091 | ] |
| 1035 | ] ; | 1092 | ] ; |
| 1036 | sp:variable | 1093 | sp:variable |
| 1037 | - [ sp:varName "intervalStart"^^xsd:string | 1094 | + [ sp:varName "measuredQualityType"^^xsd:string |
| 1038 | - ] | ||
| 1039 | - ] [ rdf:type sp:Bind ; | ||
| 1040 | - sp:expression | ||
| 1041 | - [ rdf:type afn:substr ; | ||
| 1042 | - sp:arg1 [ rdf:type afn:substr ; | ||
| 1043 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 1044 | - ] ; | ||
| 1045 | - sp:arg2 [ rdf:type smf:indexOf ; | ||
| 1046 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 1047 | - ] ; | ||
| 1048 | - sp:arg2 "$" | ||
| 1049 | - ] | ||
| 1050 | - ] ; | ||
| 1051 | - sp:arg2 1 | ||
| 1052 | - ] ; | ||
| 1053 | - sp:variable | ||
| 1054 | - [ sp:varName "intervalEnd"^^xsd:string | ||
| 1055 | - ] | ||
| 1056 | - ]) | ||
| 1057 | - ] ; | ||
| 1058 | - spin:rule | ||
| 1059 | - [ rdf:type sp:Construct ; | ||
| 1060 | - rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; | ||
| 1061 | - sp:templates ([ sp:object spin:_this ; | ||
| 1062 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1063 | - sp:subject | ||
| 1064 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1065 | - ] | ||
| 1066 | - ]) ; | ||
| 1067 | - sp:where ([ sp:object spin:_this ; | ||
| 1068 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
| 1069 | - sp:subject | ||
| 1070 | - [ sp:varName "facilityRef"^^xsd:string | ||
| 1071 | - ] | ||
| 1072 | - ] [ sp:object | ||
| 1073 | - [ sp:varName "facilityRef"^^xsd:string | ||
| 1074 | - ] ; | ||
| 1075 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1076 | - sp:subject | ||
| 1077 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1078 | - ] | ||
| 1079 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 1080 | - sp:predicate rdf:type ; | ||
| 1081 | - sp:subject | ||
| 1082 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1083 | - ] | ||
| 1084 | - ] [ sp:object | ||
| 1085 | - [ sp:varName "nameRef"^^xsd:string | ||
| 1086 | - ] ; | ||
| 1087 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 1088 | - sp:subject spin:_this | ||
| 1089 | - ] [ sp:object | ||
| 1090 | - [ sp:varName "nameRef"^^xsd:string | ||
| 1091 | - ] ; | ||
| 1092 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | ||
| 1093 | - sp:subject | ||
| 1094 | - [ sp:varName "classOfProductionFacility"^^xsd:string | ||
| 1095 | - ] | ||
| 1096 | - ] [ sp:object | ||
| 1097 | - [ sp:varName "classOfProductionFacility"^^xsd:string | ||
| 1098 | - ] ; | ||
| 1099 | - sp:predicate rdf:type ; | ||
| 1100 | - sp:subject | ||
| 1101 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1102 | ] | 1095 | ] |
| 1103 | ]) | 1096 | ]) |
| 1104 | ] . | 1097 | ] . |
| 1105 | 1098 | ||
| 1106 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1> | 1099 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1> |
| 1107 | rdf:type owl:Ontology ; | 1100 | rdf:type owl:Ontology ; |
| 1108 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/unnamed> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; | 1101 | + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/unnamed> ; |
| 1109 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1102 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment