Showing
1 changed file
with
226 additions
and
226 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,47 +35,40 @@ | ... | @@ -37,47 +35,40 @@ |
| 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 |
| 40 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 42 | ] ; | 41 | ] ; |
| 43 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 42 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 44 | sp:subject | 43 | sp:subject |
| 45 | [ sp:varName "contextRef"^^xsd:string | 44 | [ sp:varName "contextRef"^^xsd:string |
| 46 | ] | 45 | ] |
| 46 | + ]) | ||
| 47 | ] [ rdf:type sp:NotExists ; | 47 | ] [ rdf:type sp:NotExists ; |
| 48 | sp:elements ([ sp:object | 48 | sp:elements ([ sp:object |
| 49 | - [ sp:varName "dateStart"^^xsd:string | 49 | + [ sp:varName "date"^^xsd:string |
| 50 | ] ; | 50 | ] ; |
| 51 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 51 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
| 52 | sp:subject | 52 | sp:subject |
| 53 | [ sp:varName "contextRef"^^xsd:string | 53 | [ sp:varName "contextRef"^^xsd:string |
| 54 | ] | 54 | ] |
| 55 | ]) | 55 | ]) |
| 56 | - ] [ sp:object | 56 | + ] [ rdf:type sp:NotExists ; |
| 57 | - [ sp:varName "dateEnd"^^xsd:string | 57 | + sp:elements ([ sp:object |
| 58 | + [ sp:varName "dateStart"^^xsd:string | ||
| 58 | ] ; | 59 | ] ; |
| 59 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 60 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 60 | sp:subject | 61 | sp:subject |
| 61 | [ sp:varName "contextRef"^^xsd:string | 62 | [ sp:varName "contextRef"^^xsd:string |
| 62 | ] | 63 | ] |
| 63 | - ] [ rdf:type sp:Bind ; | 64 | + ]) |
| 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,49 @@ | ... | @@ -93,48 +84,49 @@ |
| 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 | ||
| 97 | - ] ; | ||
| 98 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 99 | - sp:subject | ||
| 100 | - [ sp:varName "contextRef"^^xsd:string | ||
| 101 | - ] | ||
| 102 | - ] [ sp:object | ||
| 103 | [ sp:varName "dateEnd"^^xsd:string | 87 | [ sp:varName "dateEnd"^^xsd:string |
| 104 | ] ; | 88 | ] ; |
| 105 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 89 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 106 | sp:subject | 90 | sp:subject |
| 107 | [ sp:varName "contextRef"^^xsd:string | 91 | [ sp:varName "contextRef"^^xsd:string |
| 108 | ] | 92 | ] |
| 109 | - ] [ rdf:type sp:Bind ; | 93 | + ] [ rdf:type sp:NotExists ; |
| 110 | - sp:expression | 94 | + sp:elements ([ sp:object |
| 111 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 95 | + [ sp:varName "date"^^xsd:string |
| 112 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 113 | ] ; | 96 | ] ; |
| 114 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 97 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
| 98 | + sp:subject | ||
| 99 | + [ sp:varName "contextRef"^^xsd:string | ||
| 115 | ] | 100 | ] |
| 101 | + ]) | ||
| 102 | + ] [ rdf:type sp:NotExists ; | ||
| 103 | + sp:elements ([ sp:object | ||
| 104 | + [ sp:varName "dateStart"^^xsd:string | ||
| 116 | ] ; | 105 | ] ; |
| 117 | - sp:variable | 106 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 118 | - [ sp:varName "intervalIdentifier"^^xsd:string | 107 | + sp:subject |
| 108 | + [ sp:varName "contextRef"^^xsd:string | ||
| 119 | ] | 109 | ] |
| 120 | ]) | 110 | ]) |
| 111 | + ]) | ||
| 121 | ] ; | 112 | ] ; |
| 122 | spin:rule | 113 | spin:rule |
| 123 | [ rdf:type sp:Construct ; | 114 | [ rdf:type sp:Construct ; |
| 124 | - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | 115 | + rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; |
| 125 | - sp:templates ([ sp:object _:b1 ; | 116 | + sp:templates ([ sp:object |
| 126 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 117 | + [ sp:varName "month"^^xsd:string |
| 118 | + ] ; | ||
| 119 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
| 127 | sp:subject | 120 | sp:subject |
| 128 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 121 | + [ sp:varName "productionReport"^^xsd:string |
| 129 | ] | 122 | ] |
| 130 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 131 | - sp:predicate rdf:type ; | ||
| 132 | - sp:subject _:b1 | ||
| 133 | ] [ sp:object | 123 | ] [ sp:object |
| 134 | - [ sp:varName "operator"^^xsd:string | 124 | + [ sp:varName "title"^^xsd:string |
| 135 | ] ; | 125 | ] ; |
| 136 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 126 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
| 137 | - sp:subject _:b1 | 127 | + sp:subject |
| 128 | + [ sp:varName "productionReport"^^xsd:string | ||
| 129 | + ] | ||
| 138 | ]) ; | 130 | ]) ; |
| 139 | sp:where ([ sp:object | 131 | sp:where ([ sp:object |
| 140 | [ sp:varName "contextRef"^^xsd:string | 132 | [ sp:varName "contextRef"^^xsd:string |
| ... | @@ -146,47 +138,48 @@ | ... | @@ -146,47 +138,48 @@ |
| 146 | sp:subject | 138 | sp:subject |
| 147 | [ sp:varName "contextRef"^^xsd:string | 139 | [ sp:varName "contextRef"^^xsd:string |
| 148 | ] | 140 | ] |
| 149 | - ] [ sp:object | 141 | + ] [ rdf:type sp:Optional ; |
| 150 | - [ sp:varName "operatorRef"^^xsd:string | 142 | + sp:elements ([ sp:object |
| 143 | + [ sp:varName "month"^^xsd:string | ||
| 151 | ] ; | 144 | ] ; |
| 152 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 145 | + sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; |
| 153 | sp:subject | 146 | sp:subject |
| 154 | [ sp:varName "contextRef"^^xsd:string | 147 | [ sp:varName "contextRef"^^xsd:string |
| 155 | ] | 148 | ] |
| 156 | - ] [ sp:object | 149 | + ]) |
| 157 | - [ sp:varName "operatorRef"^^xsd:string | 150 | + ] [ rdf:type sp:Optional ; |
| 151 | + sp:elements ([ sp:object | ||
| 152 | + [ sp:varName "titleRef"^^xsd:string | ||
| 158 | ] ; | 153 | ] ; |
| 159 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 154 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; |
| 160 | - sp:subject | ||
| 161 | - [ sp:varName "operator"^^xsd:string | ||
| 162 | - ] | ||
| 163 | - ] [ sp:object spin:_this ; | ||
| 164 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 165 | sp:subject | 155 | sp:subject |
| 166 | - [ sp:varName "productionReport"^^xsd:string | 156 | + [ sp:varName "contextRef"^^xsd:string |
| 167 | ] | 157 | ] |
| 168 | ] [ sp:object | 158 | ] [ sp:object |
| 169 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 159 | + [ sp:varName "title"^^xsd:string |
| 170 | ] ; | 160 | ] ; |
| 171 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 161 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
| 172 | sp:subject | 162 | sp:subject |
| 173 | - [ sp:varName "productionReport"^^xsd:string | 163 | + [ sp:varName "titleRef"^^xsd:string |
| 174 | ] | 164 | ] |
| 175 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 165 | + ]) |
| 176 | - sp:predicate rdf:type ; | 166 | + ] [ sp:object spin:_this ; |
| 167 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 177 | sp:subject | 168 | sp:subject |
| 178 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 169 | + [ sp:varName "productionReport"^^xsd:string |
| 179 | ] | 170 | ] |
| 180 | ]) | 171 | ]) |
| 181 | ] ; | 172 | ] ; |
| 182 | spin:rule | 173 | spin:rule |
| 183 | [ rdf:type sp:Construct ; | 174 | [ rdf:type sp:Construct ; |
| 184 | - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 175 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; |
| 185 | sp:templates ([ sp:object | 176 | sp:templates ([ sp:object |
| 186 | - [ sp:varName "date"^^xsd:string | 177 | + [ sp:varName "contextFacility"^^xsd:string |
| 187 | ] ; | 178 | ] ; |
| 188 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 179 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
| 189 | - sp:subject spin:_this | 180 | + sp:subject |
| 181 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 182 | + ] | ||
| 190 | ]) ; | 183 | ]) ; |
| 191 | sp:where ([ sp:object | 184 | sp:where ([ sp:object |
| 192 | [ sp:varName "contextRef"^^xsd:string | 185 | [ sp:varName "contextRef"^^xsd:string |
| ... | @@ -199,37 +192,50 @@ | ... | @@ -199,37 +192,50 @@ |
| 199 | [ sp:varName "contextRef"^^xsd:string | 192 | [ sp:varName "contextRef"^^xsd:string |
| 200 | ] | 193 | ] |
| 201 | ] [ sp:object | 194 | ] [ sp:object |
| 202 | - [ sp:varName "date"^^xsd:string | 195 | + [ sp:varName "contectFacilityRef"^^xsd:string |
| 203 | ] ; | 196 | ] ; |
| 204 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 197 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
| 205 | sp:subject | 198 | sp:subject |
| 206 | [ sp:varName "contextRef"^^xsd:string | 199 | [ sp:varName "contextRef"^^xsd:string |
| 207 | ] | 200 | ] |
| 208 | - ] [ rdf:type sp:NotExists ; | 201 | + ] [ sp:object |
| 209 | - sp:elements ([ sp:object | 202 | + [ sp:varName "contextFacilityRef"^^xsd:string |
| 210 | - [ sp:varName "dateStart"^^xsd:string | ||
| 211 | ] ; | 203 | ] ; |
| 212 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 204 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 213 | sp:subject | 205 | sp:subject |
| 214 | - [ sp:varName "contextRef"^^xsd:string | 206 | + [ sp:varName "contextFacility"^^xsd:string |
| 215 | ] | 207 | ] |
| 216 | - ]) | 208 | + ] [ sp:object spin:_this ; |
| 217 | - ] [ rdf:type sp:NotExists ; | 209 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 218 | - sp:elements ([ sp:object | 210 | + sp:subject |
| 219 | - [ sp:varName "dateEnd"^^xsd:string | 211 | + [ sp:varName "productionReport"^^xsd:string |
| 212 | + ] | ||
| 213 | + ] [ sp:object | ||
| 214 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 220 | ] ; | 215 | ] ; |
| 221 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 216 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
| 222 | sp:subject | 217 | sp:subject |
| 223 | - [ sp:varName "contextRef"^^xsd:string | 218 | + [ sp:varName "productionReport"^^xsd:string |
| 219 | + ] | ||
| 220 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 221 | + sp:predicate rdf:type ; | ||
| 222 | + sp:subject | ||
| 223 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 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 | ||
| 224 | ] | 231 | ] |
| 225 | - ]) | ||
| 226 | ]) | 232 | ]) |
| 227 | ] ; | 233 | ] ; |
| 228 | spin:rule | 234 | spin:rule |
| 229 | [ rdf:type sp:Construct ; | 235 | [ rdf:type sp:Construct ; |
| 230 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | 236 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; |
| 231 | sp:templates ([ sp:object | 237 | sp:templates ([ sp:object |
| 232 | - [ sp:varName "dateEnd"^^xsd:string | 238 | + [ sp:varName "intervalIdentifier"^^xsd:string |
| 233 | ] ; | 239 | ] ; |
| 234 | 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> ; |
| 235 | sp:subject spin:_this | 241 | sp:subject spin:_this |
| ... | @@ -245,21 +251,12 @@ | ... | @@ -245,21 +251,12 @@ |
| 245 | [ sp:varName "contextRef"^^xsd:string | 251 | [ sp:varName "contextRef"^^xsd:string |
| 246 | ] | 252 | ] |
| 247 | ] [ sp:object | 253 | ] [ sp:object |
| 248 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 249 | - ] ; | ||
| 250 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 251 | - sp:subject | ||
| 252 | - [ sp:varName "contextRef"^^xsd:string | ||
| 253 | - ] | ||
| 254 | - ] [ rdf:type sp:NotExists ; | ||
| 255 | - sp:elements ([ sp:object | ||
| 256 | [ sp:varName "date"^^xsd:string | 254 | [ sp:varName "date"^^xsd:string |
| 257 | ] ; | 255 | ] ; |
| 258 | sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 256 | sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
| 259 | sp:subject | 257 | sp:subject |
| 260 | [ sp:varName "contextRef"^^xsd:string | 258 | [ sp:varName "contextRef"^^xsd:string |
| 261 | ] | 259 | ] |
| 262 | - ]) | ||
| 263 | ] [ rdf:type sp:NotExists ; | 260 | ] [ rdf:type sp:NotExists ; |
| 264 | sp:elements ([ sp:object | 261 | sp:elements ([ sp:object |
| 265 | [ sp:varName "dateStart"^^xsd:string | 262 | [ sp:varName "dateStart"^^xsd:string |
| ... | @@ -269,70 +266,42 @@ | ... | @@ -269,70 +266,42 @@ |
| 269 | [ sp:varName "contextRef"^^xsd:string | 266 | [ sp:varName "contextRef"^^xsd:string |
| 270 | ] | 267 | ] |
| 271 | ]) | 268 | ]) |
| 272 | - ]) | 269 | + ] [ sp:object |
| 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 | - ] ; | ||
| 284 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
| 285 | - sp:subject spin:_this | ||
| 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 | - ] | ||
| 291 | - ] [ rdf:type sp:NotExists ; | ||
| 292 | - sp:elements ([ sp:object | ||
| 293 | [ sp:varName "dateEnd"^^xsd:string | 270 | [ sp:varName "dateEnd"^^xsd:string |
| 294 | ] ; | 271 | ] ; |
| 295 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 272 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 296 | sp:subject | 273 | sp:subject |
| 297 | [ sp:varName "contextRef"^^xsd:string | 274 | [ sp:varName "contextRef"^^xsd:string |
| 298 | ] | 275 | ] |
| 299 | - ]) | 276 | + ] [ rdf:type sp:Bind ; |
| 300 | - ] [ rdf:type sp:NotExists ; | 277 | + sp:expression |
| 301 | - sp:elements ([ sp:object | 278 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; |
| 302 | - [ sp:varName "date"^^xsd:string | 279 | + sp:arg1 [ sp:varName "date"^^xsd:string |
| 303 | ] ; | 280 | ] ; |
| 304 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 281 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string |
| 305 | - sp:subject | ||
| 306 | - [ sp:varName "contextRef"^^xsd:string | ||
| 307 | ] | 282 | ] |
| 308 | - ]) | ||
| 309 | - ] [ rdf:type sp:NotExists ; | ||
| 310 | - sp:elements ([ sp:object | ||
| 311 | - [ sp:varName "dateStart"^^xsd:string | ||
| 312 | ] ; | 283 | ] ; |
| 313 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 284 | + sp:variable |
| 314 | - sp:subject | 285 | + [ sp:varName "intervalIdentifier"^^xsd:string |
| 315 | - [ sp:varName "contextRef"^^xsd:string | ||
| 316 | ] | 286 | ] |
| 317 | ]) | 287 | ]) |
| 318 | - ]) | ||
| 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 | ] ; | 365 | ] ; |
| 459 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 366 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
| 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 | 367 | sp:subject |
| 466 | - [ sp:varName "productionReport"^^xsd:string | 368 | + [ sp:varName "contextRef"^^xsd:string |
| 467 | ] | 369 | ] |
| 468 | - ] [ sp:object | 370 | + ] [ rdf:type sp:Bind ; |
| 469 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 371 | + sp:expression |
| 372 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
| 373 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 470 | ] ; | 374 | ] ; |
| 471 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 375 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string |
| 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 | ||
| 478 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 479 | ] | 376 | ] |
| 480 | - ] [ sp:object | ||
| 481 | - [ sp:varName "productionFacility"^^xsd:string | ||
| 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