Showing
1 changed file
with
252 additions
and
252 deletions
| ... | @@ -20,10 +20,8 @@ | ... | @@ -20,10 +20,8 @@ |
| 20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
| 21 | spin:rule | 21 | spin:rule |
| 22 | [ rdf:type sp:Construct ; | 22 | [ rdf:type sp:Construct ; |
| 23 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | 23 | + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; |
| 24 | - sp:templates ([ sp:object | 24 | + sp:templates ([ sp:object "noDate" ; |
| 25 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 26 | - ] ; | ||
| 27 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 25 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
| 28 | sp:subject spin:_this | 26 | sp:subject spin:_this |
| 29 | ]) ; | 27 | ]) ; |
| ... | @@ -37,13 +35,24 @@ | ... | @@ -37,13 +35,24 @@ |
| 37 | sp:subject | 35 | sp:subject |
| 38 | [ sp:varName "contextRef"^^xsd:string | 36 | [ sp:varName "contextRef"^^xsd:string |
| 39 | ] | 37 | ] |
| 40 | - ] [ sp:object | 38 | + ] [ rdf:type sp:NotExists ; |
| 41 | - [ sp:varName "date"^^xsd:string | 39 | + sp:elements ([ sp:object |
| 42 | - ] ; | 40 | + [ sp:varName "dateEnd"^^xsd:string |
| 43 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 41 | + ] ; |
| 44 | - sp:subject | 42 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 45 | - [ sp:varName "contextRef"^^xsd:string | 43 | + sp:subject |
| 46 | - ] | 44 | + [ sp:varName "contextRef"^^xsd:string |
| 45 | + ] | ||
| 46 | + ]) | ||
| 47 | + ] [ rdf:type sp:NotExists ; | ||
| 48 | + sp:elements ([ sp:object | ||
| 49 | + [ sp:varName "date"^^xsd:string | ||
| 50 | + ] ; | ||
| 51 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 52 | + sp:subject | ||
| 53 | + [ sp:varName "contextRef"^^xsd:string | ||
| 54 | + ] | ||
| 55 | + ]) | ||
| 47 | ] [ rdf:type sp:NotExists ; | 56 | ] [ rdf:type sp:NotExists ; |
| 48 | sp:elements ([ sp:object | 57 | sp:elements ([ sp:object |
| 49 | [ sp:varName "dateStart"^^xsd:string | 58 | [ sp:varName "dateStart"^^xsd:string |
| ... | @@ -53,31 +62,13 @@ | ... | @@ -53,31 +62,13 @@ |
| 53 | [ sp:varName "contextRef"^^xsd:string | 62 | [ sp:varName "contextRef"^^xsd:string |
| 54 | ] | 63 | ] |
| 55 | ]) | 64 | ]) |
| 56 | - ] [ sp:object | ||
| 57 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 58 | - ] ; | ||
| 59 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 60 | - sp:subject | ||
| 61 | - [ sp:varName "contextRef"^^xsd:string | ||
| 62 | - ] | ||
| 63 | - ] [ rdf:type sp:Bind ; | ||
| 64 | - sp:expression | ||
| 65 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
| 66 | - sp:arg1 [ sp:varName "date"^^xsd:string | ||
| 67 | - ] ; | ||
| 68 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
| 69 | - ] | ||
| 70 | - ] ; | ||
| 71 | - sp:variable | ||
| 72 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
| 73 | - ] | ||
| 74 | ]) | 65 | ]) |
| 75 | ] ; | 66 | ] ; |
| 76 | spin:rule | 67 | spin:rule |
| 77 | [ rdf:type sp:Construct ; | 68 | [ rdf:type sp:Construct ; |
| 78 | - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | 69 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; |
| 79 | sp:templates ([ sp:object | 70 | sp:templates ([ sp:object |
| 80 | - [ sp:varName "intervalIdentifier"^^xsd:string | 71 | + [ sp:varName "dateEnd"^^xsd:string |
| 81 | ] ; | 72 | ] ; |
| 82 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 73 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
| 83 | sp:subject spin:_this | 74 | sp:subject spin:_this |
| ... | @@ -93,48 +84,102 @@ | ... | @@ -93,48 +84,102 @@ |
| 93 | [ sp:varName "contextRef"^^xsd:string | 84 | [ sp:varName "contextRef"^^xsd:string |
| 94 | ] | 85 | ] |
| 95 | ] [ sp:object | 86 | ] [ sp:object |
| 96 | - [ sp:varName "dateStart"^^xsd:string | 87 | + [ sp:varName "dateEnd"^^xsd:string |
| 97 | ] ; | 88 | ] ; |
| 98 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 89 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 99 | sp:subject | 90 | sp:subject |
| 100 | [ sp:varName "contextRef"^^xsd:string | 91 | [ sp:varName "contextRef"^^xsd:string |
| 101 | ] | 92 | ] |
| 93 | + ] [ rdf:type sp:NotExists ; | ||
| 94 | + sp:elements ([ sp:object | ||
| 95 | + [ sp:varName "date"^^xsd:string | ||
| 96 | + ] ; | ||
| 97 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 98 | + sp:subject | ||
| 99 | + [ sp:varName "contextRef"^^xsd:string | ||
| 100 | + ] | ||
| 101 | + ]) | ||
| 102 | + ] [ rdf:type sp:NotExists ; | ||
| 103 | + sp:elements ([ sp:object | ||
| 104 | + [ sp:varName "dateStart"^^xsd:string | ||
| 105 | + ] ; | ||
| 106 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 107 | + sp:subject | ||
| 108 | + [ sp:varName "contextRef"^^xsd:string | ||
| 109 | + ] | ||
| 110 | + ]) | ||
| 111 | + ]) | ||
| 112 | + ] ; | ||
| 113 | + spin:rule | ||
| 114 | + [ rdf:type sp:Construct ; | ||
| 115 | + rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; | ||
| 116 | + sp:templates ([ sp:object | ||
| 117 | + [ sp:varName "month"^^xsd:string | ||
| 118 | + ] ; | ||
| 119 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
| 120 | + sp:subject | ||
| 121 | + [ sp:varName "productionReport"^^xsd:string | ||
| 122 | + ] | ||
| 102 | ] [ sp:object | 123 | ] [ sp:object |
| 103 | - [ sp:varName "dateEnd"^^xsd:string | 124 | + [ sp:varName "title"^^xsd:string |
| 104 | ] ; | 125 | ] ; |
| 105 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 126 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 106 | sp:subject | 127 | sp:subject |
| 107 | - [ sp:varName "contextRef"^^xsd:string | 128 | + [ sp:varName "productionReport"^^xsd:string |
| 108 | ] | 129 | ] |
| 109 | - ] [ rdf:type sp:Bind ; | 130 | + ]) ; |
| 110 | - sp:expression | 131 | + sp:where ([ sp:object |
| 111 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 132 | + [ sp:varName "contextRef"^^xsd:string |
| 112 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 113 | - ] ; | ||
| 114 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
| 115 | - ] | ||
| 116 | ] ; | 133 | ] ; |
| 117 | - sp:variable | 134 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
| 118 | - [ sp:varName "intervalIdentifier"^^xsd:string | 135 | + sp:subject spin:_this |
| 136 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 137 | + sp:predicate rdf:type ; | ||
| 138 | + sp:subject | ||
| 139 | + [ sp:varName "contextRef"^^xsd:string | ||
| 140 | + ] | ||
| 141 | + ] [ rdf:type sp:Optional ; | ||
| 142 | + sp:elements ([ sp:object | ||
| 143 | + [ sp:varName "month"^^xsd:string | ||
| 144 | + ] ; | ||
| 145 | + sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; | ||
| 146 | + sp:subject | ||
| 147 | + [ sp:varName "contextRef"^^xsd:string | ||
| 148 | + ] | ||
| 149 | + ]) | ||
| 150 | + ] [ rdf:type sp:Optional ; | ||
| 151 | + sp:elements ([ sp:object | ||
| 152 | + [ sp:varName "titleRef"^^xsd:string | ||
| 153 | + ] ; | ||
| 154 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 155 | + sp:subject | ||
| 156 | + [ sp:varName "contextRef"^^xsd:string | ||
| 157 | + ] | ||
| 158 | + ] [ sp:object | ||
| 159 | + [ sp:varName "title"^^xsd:string | ||
| 160 | + ] ; | ||
| 161 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 162 | + sp:subject | ||
| 163 | + [ sp:varName "titleRef"^^xsd:string | ||
| 164 | + ] | ||
| 165 | + ]) | ||
| 166 | + ] [ sp:object spin:_this ; | ||
| 167 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 168 | + sp:subject | ||
| 169 | + [ sp:varName "productionReport"^^xsd:string | ||
| 119 | ] | 170 | ] |
| 120 | ]) | 171 | ]) |
| 121 | ] ; | 172 | ] ; |
| 122 | spin:rule | 173 | spin:rule |
| 123 | [ rdf:type sp:Construct ; | 174 | [ rdf:type sp:Construct ; |
| 124 | - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | 175 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; |
| 125 | - sp:templates ([ sp:object _:b1 ; | 176 | + sp:templates ([ sp:object |
| 126 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 177 | + [ sp:varName "contextFacility"^^xsd:string |
| 178 | + ] ; | ||
| 179 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 127 | sp:subject | 180 | sp:subject |
| 128 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 181 | + [ sp:varName "productionFacility"^^xsd:string |
| 129 | ] | 182 | ] |
| 130 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 131 | - sp:predicate rdf:type ; | ||
| 132 | - sp:subject _:b1 | ||
| 133 | - ] [ sp:object | ||
| 134 | - [ sp:varName "operator"^^xsd:string | ||
| 135 | - ] ; | ||
| 136 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 137 | - sp:subject _:b1 | ||
| 138 | ]) ; | 183 | ]) ; |
| 139 | sp:where ([ sp:object | 184 | sp:where ([ sp:object |
| 140 | [ sp:varName "contextRef"^^xsd:string | 185 | [ sp:varName "contextRef"^^xsd:string |
| ... | @@ -147,18 +192,18 @@ | ... | @@ -147,18 +192,18 @@ |
| 147 | [ sp:varName "contextRef"^^xsd:string | 192 | [ sp:varName "contextRef"^^xsd:string |
| 148 | ] | 193 | ] |
| 149 | ] [ sp:object | 194 | ] [ sp:object |
| 150 | - [ sp:varName "operatorRef"^^xsd:string | 195 | + [ sp:varName "contectFacilityRef"^^xsd:string |
| 151 | ] ; | 196 | ] ; |
| 152 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 197 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
| 153 | sp:subject | 198 | sp:subject |
| 154 | [ sp:varName "contextRef"^^xsd:string | 199 | [ sp:varName "contextRef"^^xsd:string |
| 155 | ] | 200 | ] |
| 156 | ] [ sp:object | 201 | ] [ sp:object |
| 157 | - [ sp:varName "operatorRef"^^xsd:string | 202 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 158 | ] ; | 203 | ] ; |
| 159 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 204 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 160 | sp:subject | 205 | sp:subject |
| 161 | - [ sp:varName "operator"^^xsd:string | 206 | + [ sp:varName "contextFacility"^^xsd:string |
| 162 | ] | 207 | ] |
| 163 | ] [ sp:object spin:_this ; | 208 | ] [ sp:object spin:_this ; |
| 164 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 209 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| ... | @@ -168,7 +213,7 @@ | ... | @@ -168,7 +213,7 @@ |
| 168 | ] [ sp:object | 213 | ] [ sp:object |
| 169 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 214 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 170 | ] ; | 215 | ] ; |
| 171 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 216 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
| 172 | sp:subject | 217 | sp:subject |
| 173 | [ sp:varName "productionReport"^^xsd:string | 218 | [ sp:varName "productionReport"^^xsd:string |
| 174 | ] | 219 | ] |
| ... | @@ -177,13 +222,20 @@ | ... | @@ -177,13 +222,20 @@ |
| 177 | sp:subject | 222 | sp:subject |
| 178 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 223 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 179 | ] | 224 | ] |
| 225 | + ] [ sp:object | ||
| 226 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 227 | + ] ; | ||
| 228 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 229 | + sp:subject | ||
| 230 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 231 | + ] | ||
| 180 | ]) | 232 | ]) |
| 181 | ] ; | 233 | ] ; |
| 182 | spin:rule | 234 | spin:rule |
| 183 | [ rdf:type sp:Construct ; | 235 | [ rdf:type sp:Construct ; |
| 184 | - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 236 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; |
| 185 | sp:templates ([ sp:object | 237 | sp:templates ([ sp:object |
| 186 | - [ sp:varName "date"^^xsd:string | 238 | + [ sp:varName "intervalIdentifier"^^xsd:string |
| 187 | ] ; | 239 | ] ; |
| 188 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 240 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
| 189 | sp:subject spin:_this | 241 | sp:subject spin:_this |
| ... | @@ -214,36 +266,6 @@ | ... | @@ -214,36 +266,6 @@ |
| 214 | [ sp:varName "contextRef"^^xsd:string | 266 | [ sp:varName "contextRef"^^xsd:string |
| 215 | ] | 267 | ] |
| 216 | ]) | 268 | ]) |
| 217 | - ] [ rdf:type sp:NotExists ; | ||
| 218 | - sp:elements ([ sp:object | ||
| 219 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 220 | - ] ; | ||
| 221 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 222 | - sp:subject | ||
| 223 | - [ sp:varName "contextRef"^^xsd:string | ||
| 224 | - ] | ||
| 225 | - ]) | ||
| 226 | - ]) | ||
| 227 | - ] ; | ||
| 228 | - spin:rule | ||
| 229 | - [ rdf:type sp:Construct ; | ||
| 230 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | ||
| 231 | - sp:templates ([ sp:object | ||
| 232 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 233 | - ] ; | ||
| 234 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 235 | - sp:subject spin:_this | ||
| 236 | - ]) ; | ||
| 237 | - sp:where ([ sp:object | ||
| 238 | - [ sp:varName "contextRef"^^xsd:string | ||
| 239 | - ] ; | ||
| 240 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 241 | - sp:subject spin:_this | ||
| 242 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 243 | - sp:predicate rdf:type ; | ||
| 244 | - sp:subject | ||
| 245 | - [ sp:varName "contextRef"^^xsd:string | ||
| 246 | - ] | ||
| 247 | ] [ sp:object | 269 | ] [ sp:object |
| 248 | [ sp:varName "dateEnd"^^xsd:string | 270 | [ sp:varName "dateEnd"^^xsd:string |
| 249 | ] ; | 271 | ] ; |
| ... | @@ -251,88 +273,35 @@ | ... | @@ -251,88 +273,35 @@ |
| 251 | sp:subject | 273 | sp:subject |
| 252 | [ sp:varName "contextRef"^^xsd:string | 274 | [ sp:varName "contextRef"^^xsd:string |
| 253 | ] | 275 | ] |
| 254 | - ] [ rdf:type sp:NotExists ; | 276 | + ] [ rdf:type sp:Bind ; |
| 255 | - sp:elements ([ sp:object | 277 | + sp:expression |
| 256 | - [ sp:varName "date"^^xsd:string | 278 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; |
| 257 | - ] ; | 279 | + sp:arg1 [ sp:varName "date"^^xsd:string |
| 258 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 280 | + ] ; |
| 259 | - sp:subject | 281 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string |
| 260 | - [ sp:varName "contextRef"^^xsd:string | 282 | + ] |
| 261 | - ] | ||
| 262 | - ]) | ||
| 263 | - ] [ rdf:type sp:NotExists ; | ||
| 264 | - sp:elements ([ sp:object | ||
| 265 | - [ sp:varName "dateStart"^^xsd:string | ||
| 266 | - ] ; | ||
| 267 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 268 | - sp:subject | ||
| 269 | - [ sp:varName "contextRef"^^xsd:string | ||
| 270 | - ] | ||
| 271 | - ]) | ||
| 272 | - ]) | ||
| 273 | - ] ; | ||
| 274 | - spin:rule | ||
| 275 | - [ rdf:type sp:Construct ; | ||
| 276 | - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | ||
| 277 | - sp:templates ([ sp:object "noDate" ; | ||
| 278 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 279 | - sp:subject spin:_this | ||
| 280 | - ]) ; | ||
| 281 | - sp:where ([ sp:object | ||
| 282 | - [ sp:varName "contextRef"^^xsd:string | ||
| 283 | ] ; | 283 | ] ; |
| 284 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 284 | + sp:variable |
| 285 | - sp:subject spin:_this | 285 | + [ sp:varName "intervalIdentifier"^^xsd:string |
| 286 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 287 | - sp:predicate rdf:type ; | ||
| 288 | - sp:subject | ||
| 289 | - [ sp:varName "contextRef"^^xsd:string | ||
| 290 | ] | 286 | ] |
| 291 | - ] [ rdf:type sp:NotExists ; | ||
| 292 | - sp:elements ([ sp:object | ||
| 293 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 294 | - ] ; | ||
| 295 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 296 | - sp:subject | ||
| 297 | - [ sp:varName "contextRef"^^xsd:string | ||
| 298 | - ] | ||
| 299 | - ]) | ||
| 300 | - ] [ rdf:type sp:NotExists ; | ||
| 301 | - sp:elements ([ sp:object | ||
| 302 | - [ sp:varName "date"^^xsd:string | ||
| 303 | - ] ; | ||
| 304 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 305 | - sp:subject | ||
| 306 | - [ sp:varName "contextRef"^^xsd:string | ||
| 307 | - ] | ||
| 308 | - ]) | ||
| 309 | - ] [ rdf:type sp:NotExists ; | ||
| 310 | - sp:elements ([ sp:object | ||
| 311 | - [ sp:varName "dateStart"^^xsd:string | ||
| 312 | - ] ; | ||
| 313 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 314 | - sp:subject | ||
| 315 | - [ sp:varName "contextRef"^^xsd:string | ||
| 316 | - ] | ||
| 317 | - ]) | ||
| 318 | ]) | 287 | ]) |
| 319 | ] ; | 288 | ] ; |
| 320 | spin:rule | 289 | spin:rule |
| 321 | [ rdf:type sp:Construct ; | 290 | [ rdf:type sp:Construct ; |
| 322 | rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ; | 291 | rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ; |
| 323 | - sp:templates ([ sp:object _:b2 ; | 292 | + sp:templates ([ sp:object _:b1 ; |
| 324 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | 293 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
| 325 | sp:subject | 294 | sp:subject |
| 326 | [ sp:varName "productionReport"^^xsd:string | 295 | [ sp:varName "productionReport"^^xsd:string |
| 327 | ] | 296 | ] |
| 328 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 297 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
| 329 | sp:predicate rdf:type ; | 298 | sp:predicate rdf:type ; |
| 330 | - sp:subject _:b2 | 299 | + sp:subject _:b1 |
| 331 | ] [ sp:object | 300 | ] [ sp:object |
| 332 | [ sp:varName "installation"^^xsd:string | 301 | [ sp:varName "installation"^^xsd:string |
| 333 | ] ; | 302 | ] ; |
| 334 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 303 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 335 | - sp:subject _:b2 | 304 | + sp:subject _:b1 |
| 336 | ]) ; | 305 | ]) ; |
| 337 | sp:where ([ sp:object | 306 | sp:where ([ sp:object |
| 338 | [ sp:varName "contextRef"^^xsd:string | 307 | [ sp:varName "contextRef"^^xsd:string |
| ... | @@ -367,74 +336,12 @@ | ... | @@ -367,74 +336,12 @@ |
| 367 | ] ; | 336 | ] ; |
| 368 | spin:rule | 337 | spin:rule |
| 369 | [ rdf:type sp:Construct ; | 338 | [ rdf:type sp:Construct ; |
| 370 | - rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; | 339 | + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; |
| 371 | sp:templates ([ sp:object | 340 | sp:templates ([ sp:object |
| 372 | - [ sp:varName "month"^^xsd:string | 341 | + [ sp:varName "intervalIdentifier"^^xsd:string |
| 373 | - ] ; | ||
| 374 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
| 375 | - sp:subject | ||
| 376 | - [ sp:varName "productionReport"^^xsd:string | ||
| 377 | - ] | ||
| 378 | - ] [ sp:object | ||
| 379 | - [ sp:varName "title"^^xsd:string | ||
| 380 | - ] ; | ||
| 381 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 382 | - sp:subject | ||
| 383 | - [ sp:varName "productionReport"^^xsd:string | ||
| 384 | - ] | ||
| 385 | - ]) ; | ||
| 386 | - sp:where ([ sp:object | ||
| 387 | - [ sp:varName "contextRef"^^xsd:string | ||
| 388 | ] ; | 342 | ] ; |
| 389 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 343 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
| 390 | sp:subject spin:_this | 344 | sp:subject spin:_this |
| 391 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 392 | - sp:predicate rdf:type ; | ||
| 393 | - sp:subject | ||
| 394 | - [ sp:varName "contextRef"^^xsd:string | ||
| 395 | - ] | ||
| 396 | - ] [ rdf:type sp:Optional ; | ||
| 397 | - sp:elements ([ sp:object | ||
| 398 | - [ sp:varName "month"^^xsd:string | ||
| 399 | - ] ; | ||
| 400 | - sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; | ||
| 401 | - sp:subject | ||
| 402 | - [ sp:varName "contextRef"^^xsd:string | ||
| 403 | - ] | ||
| 404 | - ]) | ||
| 405 | - ] [ rdf:type sp:Optional ; | ||
| 406 | - sp:elements ([ sp:object | ||
| 407 | - [ sp:varName "titleRef"^^xsd:string | ||
| 408 | - ] ; | ||
| 409 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
| 410 | - sp:subject | ||
| 411 | - [ sp:varName "contextRef"^^xsd:string | ||
| 412 | - ] | ||
| 413 | - ] [ sp:object | ||
| 414 | - [ sp:varName "title"^^xsd:string | ||
| 415 | - ] ; | ||
| 416 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
| 417 | - sp:subject | ||
| 418 | - [ sp:varName "titleRef"^^xsd:string | ||
| 419 | - ] | ||
| 420 | - ]) | ||
| 421 | - ] [ sp:object spin:_this ; | ||
| 422 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 423 | - sp:subject | ||
| 424 | - [ sp:varName "productionReport"^^xsd:string | ||
| 425 | - ] | ||
| 426 | - ]) | ||
| 427 | - ] ; | ||
| 428 | - spin:rule | ||
| 429 | - [ rdf:type sp:Construct ; | ||
| 430 | - rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; | ||
| 431 | - sp:templates ([ sp:object | ||
| 432 | - [ sp:varName "contextFacility"^^xsd:string | ||
| 433 | - ] ; | ||
| 434 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
| 435 | - sp:subject | ||
| 436 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 437 | - ] | ||
| 438 | ]) ; | 345 | ]) ; |
| 439 | sp:where ([ sp:object | 346 | sp:where ([ sp:object |
| 440 | [ sp:varName "contextRef"^^xsd:string | 347 | [ sp:varName "contextRef"^^xsd:string |
| ... | @@ -447,42 +354,29 @@ | ... | @@ -447,42 +354,29 @@ |
| 447 | [ sp:varName "contextRef"^^xsd:string | 354 | [ sp:varName "contextRef"^^xsd:string |
| 448 | ] | 355 | ] |
| 449 | ] [ sp:object | 356 | ] [ sp:object |
| 450 | - [ sp:varName "contectFacilityRef"^^xsd:string | 357 | + [ sp:varName "dateStart"^^xsd:string |
| 451 | ] ; | 358 | ] ; |
| 452 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 359 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 453 | sp:subject | 360 | sp:subject |
| 454 | [ sp:varName "contextRef"^^xsd:string | 361 | [ sp:varName "contextRef"^^xsd:string |
| 455 | ] | 362 | ] |
| 456 | ] [ sp:object | 363 | ] [ sp:object |
| 457 | - [ sp:varName "contextFacilityRef"^^xsd:string | 364 | + [ sp:varName "dateEnd"^^xsd:string |
| 458 | - ] ; | ||
| 459 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 460 | - sp:subject | ||
| 461 | - [ sp:varName "contextFacility"^^xsd:string | ||
| 462 | - ] | ||
| 463 | - ] [ sp:object spin:_this ; | ||
| 464 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 465 | - sp:subject | ||
| 466 | - [ sp:varName "productionReport"^^xsd:string | ||
| 467 | - ] | ||
| 468 | - ] [ sp:object | ||
| 469 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 470 | ] ; | 365 | ] ; |
| 471 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 366 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 472 | - sp:subject | ||
| 473 | - [ sp:varName "productionReport"^^xsd:string | ||
| 474 | - ] | ||
| 475 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 476 | - sp:predicate rdf:type ; | ||
| 477 | sp:subject | 367 | sp:subject |
| 478 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 368 | + [ sp:varName "contextRef"^^xsd:string |
| 479 | ] | 369 | ] |
| 480 | - ] [ sp:object | 370 | + ] [ rdf:type sp:Bind ; |
| 481 | - [ sp:varName "productionFacility"^^xsd:string | 371 | + sp:expression |
| 372 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
| 373 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 374 | + ] ; | ||
| 375 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
| 376 | + ] | ||
| 482 | ] ; | 377 | ] ; |
| 483 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 378 | + sp:variable |
| 484 | - sp:subject | 379 | + [ sp:varName "intervalIdentifier"^^xsd:string |
| 485 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 486 | ] | 380 | ] |
| 487 | ]) | 381 | ]) |
| 488 | ] ; | 382 | ] ; |
| ... | @@ -556,9 +450,115 @@ | ... | @@ -556,9 +450,115 @@ |
| 556 | [ sp:varName "productionReport"^^xsd:string | 450 | [ sp:varName "productionReport"^^xsd:string |
| 557 | ] | 451 | ] |
| 558 | ]) | 452 | ]) |
| 453 | + ] ; | ||
| 454 | + spin:rule | ||
| 455 | + [ rdf:type sp:Construct ; | ||
| 456 | + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | ||
| 457 | + sp:templates ([ sp:object _:b2 ; | ||
| 458 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
| 459 | + sp:subject | ||
| 460 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 461 | + ] | ||
| 462 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 463 | + sp:predicate rdf:type ; | ||
| 464 | + sp:subject _:b2 | ||
| 465 | + ] [ sp:object | ||
| 466 | + [ sp:varName "operator"^^xsd:string | ||
| 467 | + ] ; | ||
| 468 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 469 | + sp:subject _:b2 | ||
| 470 | + ]) ; | ||
| 471 | + sp:where ([ sp:object | ||
| 472 | + [ sp:varName "contextRef"^^xsd:string | ||
| 473 | + ] ; | ||
| 474 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 475 | + sp:subject spin:_this | ||
| 476 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 477 | + sp:predicate rdf:type ; | ||
| 478 | + sp:subject | ||
| 479 | + [ sp:varName "contextRef"^^xsd:string | ||
| 480 | + ] | ||
| 481 | + ] [ sp:object | ||
| 482 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 483 | + ] ; | ||
| 484 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
| 485 | + sp:subject | ||
| 486 | + [ sp:varName "contextRef"^^xsd:string | ||
| 487 | + ] | ||
| 488 | + ] [ sp:object | ||
| 489 | + [ sp:varName "operatorRef"^^xsd:string | ||
| 490 | + ] ; | ||
| 491 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 492 | + sp:subject | ||
| 493 | + [ sp:varName "operator"^^xsd:string | ||
| 494 | + ] | ||
| 495 | + ] [ sp:object spin:_this ; | ||
| 496 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 497 | + sp:subject | ||
| 498 | + [ sp:varName "productionReport"^^xsd:string | ||
| 499 | + ] | ||
| 500 | + ] [ sp:object | ||
| 501 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 502 | + ] ; | ||
| 503 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | ||
| 504 | + sp:subject | ||
| 505 | + [ sp:varName "productionReport"^^xsd:string | ||
| 506 | + ] | ||
| 507 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 508 | + sp:predicate rdf:type ; | ||
| 509 | + sp:subject | ||
| 510 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 511 | + ] | ||
| 512 | + ]) | ||
| 513 | + ] ; | ||
| 514 | + spin:rule | ||
| 515 | + [ rdf:type sp:Construct ; | ||
| 516 | + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | ||
| 517 | + sp:templates ([ sp:object | ||
| 518 | + [ sp:varName "date"^^xsd:string | ||
| 519 | + ] ; | ||
| 520 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
| 521 | + sp:subject spin:_this | ||
| 522 | + ]) ; | ||
| 523 | + sp:where ([ sp:object | ||
| 524 | + [ sp:varName "contextRef"^^xsd:string | ||
| 525 | + ] ; | ||
| 526 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 527 | + sp:subject spin:_this | ||
| 528 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
| 529 | + sp:predicate rdf:type ; | ||
| 530 | + sp:subject | ||
| 531 | + [ sp:varName "contextRef"^^xsd:string | ||
| 532 | + ] | ||
| 533 | + ] [ sp:object | ||
| 534 | + [ sp:varName "date"^^xsd:string | ||
| 535 | + ] ; | ||
| 536 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
| 537 | + sp:subject | ||
| 538 | + [ sp:varName "contextRef"^^xsd:string | ||
| 539 | + ] | ||
| 540 | + ] [ rdf:type sp:NotExists ; | ||
| 541 | + sp:elements ([ sp:object | ||
| 542 | + [ sp:varName "dateStart"^^xsd:string | ||
| 543 | + ] ; | ||
| 544 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 545 | + sp:subject | ||
| 546 | + [ sp:varName "contextRef"^^xsd:string | ||
| 547 | + ] | ||
| 548 | + ]) | ||
| 549 | + ] [ rdf:type sp:NotExists ; | ||
| 550 | + sp:elements ([ sp:object | ||
| 551 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 552 | + ] ; | ||
| 553 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 554 | + sp:subject | ||
| 555 | + [ sp:varName "contextRef"^^xsd:string | ||
| 556 | + ] | ||
| 557 | + ]) | ||
| 558 | + ]) | ||
| 559 | ] . | 559 | ] . |
| 560 | 560 | ||
| 561 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | 561 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> |
| 562 | rdf:type owl:Ontology ; | 562 | rdf:type owl:Ontology ; |
| 563 | - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; | 563 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; |
| 564 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 564 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment