Added Marine Operations and Marine Ship Operations section and normalizeDatedComment function
Showing
3 changed files
with
664 additions
and
1 deletions
| 1 | # baseURI: http://www.reportinghub.no/ep/spin/dpr-tables | 1 | # baseURI: http://www.reportinghub.no/ep/spin/dpr-tables |
| 2 | # imports: http://spinrdf.org/spin | 2 | # imports: http://spinrdf.org/spin |
| 3 | +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib | ||
| 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/production | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production |
| 4 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib | 5 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib |
| 5 | # imports: http://www.reportinghub.no/spin/rh | 6 | # imports: http://www.reportinghub.no/spin/rh |
| 6 | 7 | ||
| 7 | @prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> . | 8 | @prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> . |
| 9 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | ||
| 8 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 10 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
| 9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 10 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 12 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| ... | @@ -17,7 +19,7 @@ | ... | @@ -17,7 +19,7 @@ |
| 17 | 19 | ||
| 18 | <http://www.reportinghub.no/ep/spin/dpr-tables> | 20 | <http://www.reportinghub.no/ep/spin/dpr-tables> |
| 19 | rdf:type owl:Ontology ; | 21 | rdf:type owl:Ontology ; |
| 20 | - owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; | 22 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/spin/rh> ; |
| 21 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 22 | 24 | ||
| 23 | dpr-tables:ExportVolumes | 25 | dpr-tables:ExportVolumes |
| ... | @@ -3146,6 +3148,580 @@ dpr-tables:ProductionOperationActivity | ... | @@ -3146,6 +3148,580 @@ dpr-tables:ProductionOperationActivity |
| 3146 | ] ; | 3148 | ] ; |
| 3147 | rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string) . | 3149 | rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string) . |
| 3148 | 3150 | ||
| 3151 | +dpr-tables:ProductionOperationCargoShip | ||
| 3152 | + rdf:type rhspin:TableTemplate ; | ||
| 3153 | + rdfs:label "Cargo Ship Operation Activities"^^xsd:string ; | ||
| 3154 | + rdfs:subClassOf rhspin:DPRTableTemplates ; | ||
| 3155 | + spin:body | ||
| 3156 | + [ rdf:type sp:Select ; | ||
| 3157 | + sp:orderBy ([ sp:varName "facilityName"^^xsd:string | ||
| 3158 | + ] [ sp:varName "activityStart"^^xsd:string | ||
| 3159 | + ]) ; | ||
| 3160 | + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string | ||
| 3161 | + ] [ sp:varName "activityType"^^xsd:string | ||
| 3162 | + ] [ sp:varName "activityStart"^^xsd:string | ||
| 3163 | + ] [ sp:varName "activityFinish"^^xsd:string | ||
| 3164 | + ] [ sp:varName "activityDescription"^^xsd:string | ||
| 3165 | + ] [ sp:varName "shipName"^^xsd:string | ||
| 3166 | + ] [ sp:varName "captainName"^^xsd:string | ||
| 3167 | + ] [ sp:varName "cargoDescription"^^xsd:string | ||
| 3168 | + ]) ; | ||
| 3169 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 3170 | + sp:predicate rdf:type ; | ||
| 3171 | + sp:subject | ||
| 3172 | + [ sp:varName "report"^^xsd:string | ||
| 3173 | + ] | ||
| 3174 | + ] [ sp:object | ||
| 3175 | + [ sp:varName "report"^^xsd:string | ||
| 3176 | + ] ; | ||
| 3177 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3178 | + sp:subject | ||
| 3179 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3180 | + ] | ||
| 3181 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
| 3182 | + sp:predicate rdf:type ; | ||
| 3183 | + sp:subject | ||
| 3184 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3185 | + ] | ||
| 3186 | + ] [ sp:object | ||
| 3187 | + [ sp:varName "temporalPartOfFacility"^^xsd:string | ||
| 3188 | + ] ; | ||
| 3189 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 3190 | + sp:subject | ||
| 3191 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3192 | + ] | ||
| 3193 | + ] [ sp:object | ||
| 3194 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3195 | + ] ; | ||
| 3196 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 3197 | + sp:subject | ||
| 3198 | + [ sp:varName "temporalPartOfFacility"^^xsd:string | ||
| 3199 | + ] | ||
| 3200 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
| 3201 | + sp:predicate rdf:type ; | ||
| 3202 | + sp:subject | ||
| 3203 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3204 | + ] | ||
| 3205 | + ] [ sp:object | ||
| 3206 | + [ sp:varName "facilityName"^^xsd:string | ||
| 3207 | + ] ; | ||
| 3208 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 3209 | + sp:subject | ||
| 3210 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3211 | + ] | ||
| 3212 | + ] [ sp:object | ||
| 3213 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3214 | + ] ; | ||
| 3215 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3216 | + sp:subject | ||
| 3217 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3218 | + ] | ||
| 3219 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ; | ||
| 3220 | + sp:predicate rdf:type ; | ||
| 3221 | + sp:subject | ||
| 3222 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3223 | + ] | ||
| 3224 | + ] [ sp:object | ||
| 3225 | + [ sp:varName "installationPart"^^xsd:string | ||
| 3226 | + ] ; | ||
| 3227 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 3228 | + sp:subject | ||
| 3229 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3230 | + ] | ||
| 3231 | + ] [ sp:object | ||
| 3232 | + [ sp:varName "installationPart"^^xsd:string | ||
| 3233 | + ] ; | ||
| 3234 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; | ||
| 3235 | + sp:subject | ||
| 3236 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3237 | + ] | ||
| 3238 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ; | ||
| 3239 | + sp:predicate rdf:type ; | ||
| 3240 | + sp:subject | ||
| 3241 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3242 | + ] | ||
| 3243 | + ] [ sp:object | ||
| 3244 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3245 | + ] ; | ||
| 3246 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3247 | + sp:subject | ||
| 3248 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3249 | + ] | ||
| 3250 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#CargoShipOperation> ; | ||
| 3251 | + sp:predicate rdf:type ; | ||
| 3252 | + sp:subject | ||
| 3253 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3254 | + ] | ||
| 3255 | + ] [ rdf:type sp:Optional ; | ||
| 3256 | + sp:elements ([ sp:object | ||
| 3257 | + [ sp:varName "activityType"^^xsd:string | ||
| 3258 | + ] ; | ||
| 3259 | + sp:predicate rdfs:label ; | ||
| 3260 | + sp:subject <http://www.reportinghub.no/ep/schema/production-activity#CargoShipOperation> | ||
| 3261 | + ]) | ||
| 3262 | + ] [ rdf:type sp:Optional ; | ||
| 3263 | + sp:elements ([ sp:object | ||
| 3264 | + [ sp:varName "activityStart"^^xsd:string | ||
| 3265 | + ] ; | ||
| 3266 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 3267 | + sp:subject | ||
| 3268 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3269 | + ] | ||
| 3270 | + ]) | ||
| 3271 | + ] [ rdf:type sp:Optional ; | ||
| 3272 | + sp:elements ([ sp:object | ||
| 3273 | + [ sp:varName "activityStart"^^xsd:string | ||
| 3274 | + ] ; | ||
| 3275 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 3276 | + sp:subject | ||
| 3277 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3278 | + ] | ||
| 3279 | + ]) | ||
| 3280 | + ] [ rdf:type sp:Optional ; | ||
| 3281 | + sp:elements ([ sp:object | ||
| 3282 | + [ sp:varName "activityFinish"^^xsd:string | ||
| 3283 | + ] ; | ||
| 3284 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 3285 | + sp:subject | ||
| 3286 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3287 | + ] | ||
| 3288 | + ]) | ||
| 3289 | + ] [ rdf:type sp:Optional ; | ||
| 3290 | + sp:elements ([ sp:object | ||
| 3291 | + [ sp:varName "activityDescription"^^xsd:string | ||
| 3292 | + ] ; | ||
| 3293 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ; | ||
| 3294 | + sp:subject | ||
| 3295 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3296 | + ] | ||
| 3297 | + ]) | ||
| 3298 | + ] [ rdf:type sp:Optional ; | ||
| 3299 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ; | ||
| 3300 | + sp:predicate rdf:type ; | ||
| 3301 | + sp:subject | ||
| 3302 | + [ sp:varName "productionoperation"^^xsd:string | ||
| 3303 | + ] | ||
| 3304 | + ] [ sp:object | ||
| 3305 | + [ sp:varName "productionoperation"^^xsd:string | ||
| 3306 | + ] ; | ||
| 3307 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3308 | + sp:subject | ||
| 3309 | + [ sp:varName "cargoshipoperation"^^xsd:string | ||
| 3310 | + ] | ||
| 3311 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#CargoShipOperation> ; | ||
| 3312 | + sp:predicate rdf:type ; | ||
| 3313 | + sp:subject | ||
| 3314 | + [ sp:varName "cargoshipoperation"^^xsd:string | ||
| 3315 | + ] | ||
| 3316 | + ] [ sp:object | ||
| 3317 | + [ sp:varName "temporalpartofashiporboat"^^xsd:string | ||
| 3318 | + ] ; | ||
| 3319 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByShip> ; | ||
| 3320 | + sp:subject | ||
| 3321 | + [ sp:varName "cargoshipoperation"^^xsd:string | ||
| 3322 | + ] | ||
| 3323 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#TemporalPartOfAShipOrBoat> ; | ||
| 3324 | + sp:predicate rdf:type ; | ||
| 3325 | + sp:subject | ||
| 3326 | + [ sp:varName "temporalpartofashiporboat"^^xsd:string | ||
| 3327 | + ] | ||
| 3328 | + ] [ sp:object | ||
| 3329 | + [ sp:varName "ship"^^xsd:string | ||
| 3330 | + ] ; | ||
| 3331 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 3332 | + sp:subject | ||
| 3333 | + [ sp:varName "temporalpartofashiporboat"^^xsd:string | ||
| 3334 | + ] | ||
| 3335 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#Ship> ; | ||
| 3336 | + sp:predicate rdf:type ; | ||
| 3337 | + sp:subject | ||
| 3338 | + [ sp:varName "ship"^^xsd:string | ||
| 3339 | + ] | ||
| 3340 | + ] [ sp:object | ||
| 3341 | + [ sp:varName "shipName"^^xsd:string | ||
| 3342 | + ] ; | ||
| 3343 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 3344 | + sp:subject | ||
| 3345 | + [ sp:varName "ship"^^xsd:string | ||
| 3346 | + ] | ||
| 3347 | + ] [ sp:object | ||
| 3348 | + [ sp:varName "person"^^xsd:string | ||
| 3349 | + ] ; | ||
| 3350 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-equipment#hasCaptain> ; | ||
| 3351 | + sp:subject | ||
| 3352 | + [ sp:varName "temporalpartofashiporboat"^^xsd:string | ||
| 3353 | + ] | ||
| 3354 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | ||
| 3355 | + sp:predicate rdf:type ; | ||
| 3356 | + sp:subject | ||
| 3357 | + [ sp:varName "person"^^xsd:string | ||
| 3358 | + ] | ||
| 3359 | + ] [ sp:object | ||
| 3360 | + [ sp:varName "wholelifeperson"^^xsd:string | ||
| 3361 | + ] ; | ||
| 3362 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 3363 | + sp:subject | ||
| 3364 | + [ sp:varName "person"^^xsd:string | ||
| 3365 | + ] | ||
| 3366 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#WholeLifePerson> ; | ||
| 3367 | + sp:predicate rdf:type ; | ||
| 3368 | + sp:subject | ||
| 3369 | + [ sp:varName "wholelifeperson"^^xsd:string | ||
| 3370 | + ] | ||
| 3371 | + ] [ sp:object | ||
| 3372 | + [ sp:varName "captainName"^^xsd:string | ||
| 3373 | + ] ; | ||
| 3374 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 3375 | + sp:subject | ||
| 3376 | + [ sp:varName "wholelifeperson"^^xsd:string | ||
| 3377 | + ] | ||
| 3378 | + ] [ sp:object | ||
| 3379 | + [ sp:varName "quantityofmaterial"^^xsd:string | ||
| 3380 | + ] ; | ||
| 3381 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#cargoLoaded> ; | ||
| 3382 | + sp:subject | ||
| 3383 | + [ sp:varName "cargoshipoperation"^^xsd:string | ||
| 3384 | + ] | ||
| 3385 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
| 3386 | + sp:predicate rdf:type ; | ||
| 3387 | + sp:subject | ||
| 3388 | + [ sp:varName "quantityofmaterial"^^xsd:string | ||
| 3389 | + ] | ||
| 3390 | + ] [ sp:object | ||
| 3391 | + [ sp:varName "cargoDescription"^^xsd:string | ||
| 3392 | + ] ; | ||
| 3393 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ; | ||
| 3394 | + sp:subject | ||
| 3395 | + [ sp:varName "quantityofmaterial"^^xsd:string | ||
| 3396 | + ] | ||
| 3397 | + ]) | ||
| 3398 | + ]) | ||
| 3399 | + ] ; | ||
| 3400 | + rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string "Ship"^^xsd:string "Captain"^^xsd:string "Cargo Description"^^xsd:string) . | ||
| 3401 | + | ||
| 3402 | +dpr-tables:ProductionOperationMarine | ||
| 3403 | + rdf:type rhspin:TableTemplate ; | ||
| 3404 | + rdfs:label "Marine Operation Activities"^^xsd:string ; | ||
| 3405 | + rdfs:subClassOf rhspin:DPRTableTemplates ; | ||
| 3406 | + spin:body | ||
| 3407 | + [ rdf:type sp:Select ; | ||
| 3408 | + sp:orderBy ([ sp:varName "facilityName"^^xsd:string | ||
| 3409 | + ] [ sp:varName "activityStart"^^xsd:string | ||
| 3410 | + ]) ; | ||
| 3411 | + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string | ||
| 3412 | + ] [ sp:varName "marineoperationPartTypeName"^^xsd:string | ||
| 3413 | + ] [ sp:varName "commentText"^^xsd:string | ||
| 3414 | + ]) ; | ||
| 3415 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 3416 | + sp:predicate rdf:type ; | ||
| 3417 | + sp:subject | ||
| 3418 | + [ sp:varName "report"^^xsd:string | ||
| 3419 | + ] | ||
| 3420 | + ] [ sp:object | ||
| 3421 | + [ sp:varName "report"^^xsd:string | ||
| 3422 | + ] ; | ||
| 3423 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3424 | + sp:subject | ||
| 3425 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3426 | + ] | ||
| 3427 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
| 3428 | + sp:predicate rdf:type ; | ||
| 3429 | + sp:subject | ||
| 3430 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3431 | + ] | ||
| 3432 | + ] [ sp:object | ||
| 3433 | + [ sp:varName "temporalPartOfFacility"^^xsd:string | ||
| 3434 | + ] ; | ||
| 3435 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 3436 | + sp:subject | ||
| 3437 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3438 | + ] | ||
| 3439 | + ] [ sp:object | ||
| 3440 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3441 | + ] ; | ||
| 3442 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 3443 | + sp:subject | ||
| 3444 | + [ sp:varName "temporalPartOfFacility"^^xsd:string | ||
| 3445 | + ] | ||
| 3446 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
| 3447 | + sp:predicate rdf:type ; | ||
| 3448 | + sp:subject | ||
| 3449 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3450 | + ] | ||
| 3451 | + ] [ sp:object | ||
| 3452 | + [ sp:varName "facilityName"^^xsd:string | ||
| 3453 | + ] ; | ||
| 3454 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 3455 | + sp:subject | ||
| 3456 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3457 | + ] | ||
| 3458 | + ] [ sp:object | ||
| 3459 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3460 | + ] ; | ||
| 3461 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3462 | + sp:subject | ||
| 3463 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3464 | + ] | ||
| 3465 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ; | ||
| 3466 | + sp:predicate rdf:type ; | ||
| 3467 | + sp:subject | ||
| 3468 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3469 | + ] | ||
| 3470 | + ] [ sp:object | ||
| 3471 | + [ sp:varName "installationPart"^^xsd:string | ||
| 3472 | + ] ; | ||
| 3473 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 3474 | + sp:subject | ||
| 3475 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3476 | + ] | ||
| 3477 | + ] [ sp:object | ||
| 3478 | + [ sp:varName "installationPart"^^xsd:string | ||
| 3479 | + ] ; | ||
| 3480 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; | ||
| 3481 | + sp:subject | ||
| 3482 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3483 | + ] | ||
| 3484 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ; | ||
| 3485 | + sp:predicate rdf:type ; | ||
| 3486 | + sp:subject | ||
| 3487 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3488 | + ] | ||
| 3489 | + ] [ sp:object | ||
| 3490 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3491 | + ] ; | ||
| 3492 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3493 | + sp:subject | ||
| 3494 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3495 | + ] | ||
| 3496 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> ; | ||
| 3497 | + sp:predicate rdf:type ; | ||
| 3498 | + sp:subject | ||
| 3499 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3500 | + ] | ||
| 3501 | + ] [ rdf:type sp:Optional ; | ||
| 3502 | + sp:elements ([ sp:object | ||
| 3503 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3504 | + ] ; | ||
| 3505 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 3506 | + sp:subject | ||
| 3507 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3508 | + ] | ||
| 3509 | + ] [ rdf:type sp:Optional ; | ||
| 3510 | + sp:elements ([ sp:object | ||
| 3511 | + [ sp:varName "marineoperationPartType"^^xsd:string | ||
| 3512 | + ] ; | ||
| 3513 | + sp:predicate rdf:type ; | ||
| 3514 | + sp:subject | ||
| 3515 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3516 | + ] | ||
| 3517 | + ] [ sp:object | ||
| 3518 | + [ sp:varName "marineoperationPartTypeName"^^xsd:string | ||
| 3519 | + ] ; | ||
| 3520 | + sp:predicate rdfs:label ; | ||
| 3521 | + sp:subject | ||
| 3522 | + [ sp:varName "marineoperationPartType"^^xsd:string | ||
| 3523 | + ] | ||
| 3524 | + ]) | ||
| 3525 | + ] [ rdf:type sp:Optional ; | ||
| 3526 | + sp:elements ([ sp:object | ||
| 3527 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3528 | + ] ; | ||
| 3529 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ; | ||
| 3530 | + sp:subject | ||
| 3531 | + [ sp:varName "commentExists"^^xsd:string | ||
| 3532 | + ] | ||
| 3533 | + ] [ rdf:type sp:Bind ; | ||
| 3534 | + sp:expression | ||
| 3535 | + [ rdf:type ep-mpr-spin-lib:normalizeDatedComment ; | ||
| 3536 | + sp:arg1 [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3537 | + ] | ||
| 3538 | + ] ; | ||
| 3539 | + sp:variable | ||
| 3540 | + [ sp:varName "commentText"^^xsd:string | ||
| 3541 | + ] | ||
| 3542 | + ]) | ||
| 3543 | + ]) | ||
| 3544 | + ]) | ||
| 3545 | + ] ; | ||
| 3546 | + rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Dated Comment"^^xsd:string) . | ||
| 3547 | + | ||
| 3548 | +dpr-tables:ProductionOperationMarineShip | ||
| 3549 | + rdf:type rhspin:TableTemplate ; | ||
| 3550 | + rdfs:label "Marine Ship Operation Activities"^^xsd:string ; | ||
| 3551 | + rdfs:subClassOf rhspin:DPRTableTemplates ; | ||
| 3552 | + spin:body | ||
| 3553 | + [ rdf:type sp:Select ; | ||
| 3554 | + sp:orderBy ([ sp:varName "facilityName"^^xsd:string | ||
| 3555 | + ] [ sp:varName "activityStart"^^xsd:string | ||
| 3556 | + ]) ; | ||
| 3557 | + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string | ||
| 3558 | + ] [ sp:varName "marineoperationPartTypeName"^^xsd:string | ||
| 3559 | + ] [ sp:varName "shipName"^^xsd:string | ||
| 3560 | + ] [ sp:varName "commentText"^^xsd:string | ||
| 3561 | + ]) ; | ||
| 3562 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
| 3563 | + sp:predicate rdf:type ; | ||
| 3564 | + sp:subject | ||
| 3565 | + [ sp:varName "report"^^xsd:string | ||
| 3566 | + ] | ||
| 3567 | + ] [ sp:object | ||
| 3568 | + [ sp:varName "report"^^xsd:string | ||
| 3569 | + ] ; | ||
| 3570 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3571 | + sp:subject | ||
| 3572 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3573 | + ] | ||
| 3574 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
| 3575 | + sp:predicate rdf:type ; | ||
| 3576 | + sp:subject | ||
| 3577 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3578 | + ] | ||
| 3579 | + ] [ sp:object | ||
| 3580 | + [ sp:varName "temporalPartOfFacility"^^xsd:string | ||
| 3581 | + ] ; | ||
| 3582 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 3583 | + sp:subject | ||
| 3584 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3585 | + ] | ||
| 3586 | + ] [ sp:object | ||
| 3587 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3588 | + ] ; | ||
| 3589 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 3590 | + sp:subject | ||
| 3591 | + [ sp:varName "temporalPartOfFacility"^^xsd:string | ||
| 3592 | + ] | ||
| 3593 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
| 3594 | + sp:predicate rdf:type ; | ||
| 3595 | + sp:subject | ||
| 3596 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3597 | + ] | ||
| 3598 | + ] [ sp:object | ||
| 3599 | + [ sp:varName "facilityName"^^xsd:string | ||
| 3600 | + ] ; | ||
| 3601 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 3602 | + sp:subject | ||
| 3603 | + [ sp:varName "productionFacility"^^xsd:string | ||
| 3604 | + ] | ||
| 3605 | + ] [ sp:object | ||
| 3606 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
| 3607 | + ] ; | ||
| 3608 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3609 | + sp:subject | ||
| 3610 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3611 | + ] | ||
| 3612 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ; | ||
| 3613 | + sp:predicate rdf:type ; | ||
| 3614 | + sp:subject | ||
| 3615 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3616 | + ] | ||
| 3617 | + ] [ sp:object | ||
| 3618 | + [ sp:varName "installationPart"^^xsd:string | ||
| 3619 | + ] ; | ||
| 3620 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 3621 | + sp:subject | ||
| 3622 | + [ sp:varName "productionOperationInstallationReport"^^xsd:string | ||
| 3623 | + ] | ||
| 3624 | + ] [ sp:object | ||
| 3625 | + [ sp:varName "installationPart"^^xsd:string | ||
| 3626 | + ] ; | ||
| 3627 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; | ||
| 3628 | + sp:subject | ||
| 3629 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3630 | + ] | ||
| 3631 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ; | ||
| 3632 | + sp:predicate rdf:type ; | ||
| 3633 | + sp:subject | ||
| 3634 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3635 | + ] | ||
| 3636 | + ] [ sp:object | ||
| 3637 | + [ sp:varName "productionOperation"^^xsd:string | ||
| 3638 | + ] ; | ||
| 3639 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3640 | + sp:subject | ||
| 3641 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3642 | + ] | ||
| 3643 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> ; | ||
| 3644 | + sp:predicate rdf:type ; | ||
| 3645 | + sp:subject | ||
| 3646 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3647 | + ] | ||
| 3648 | + ] [ rdf:type sp:Optional ; | ||
| 3649 | + sp:elements ([ sp:object | ||
| 3650 | + [ sp:varName "operationPart"^^xsd:string | ||
| 3651 | + ] ; | ||
| 3652 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 3653 | + sp:subject | ||
| 3654 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3655 | + ] | ||
| 3656 | + ] [ sp:object | ||
| 3657 | + [ sp:varName "marineoperationPartType"^^xsd:string | ||
| 3658 | + ] ; | ||
| 3659 | + sp:predicate rdf:type ; | ||
| 3660 | + sp:subject | ||
| 3661 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3662 | + ] | ||
| 3663 | + ] [ sp:object | ||
| 3664 | + [ sp:varName "marineoperationPartTypeName"^^xsd:string | ||
| 3665 | + ] ; | ||
| 3666 | + sp:predicate rdfs:label ; | ||
| 3667 | + sp:subject | ||
| 3668 | + [ sp:varName "marineoperationPartType"^^xsd:string | ||
| 3669 | + ] | ||
| 3670 | + ] [ rdf:type sp:Optional ; | ||
| 3671 | + sp:elements ([ sp:object | ||
| 3672 | + [ sp:varName "temporalpartofashiporboat"^^xsd:string | ||
| 3673 | + ] ; | ||
| 3674 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByShip> ; | ||
| 3675 | + sp:subject | ||
| 3676 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3677 | + ] | ||
| 3678 | + ] [ sp:object | ||
| 3679 | + [ sp:varName "ship"^^xsd:string | ||
| 3680 | + ] ; | ||
| 3681 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 3682 | + sp:subject | ||
| 3683 | + [ sp:varName "temporalpartofashiporboat"^^xsd:string | ||
| 3684 | + ] | ||
| 3685 | + ] [ sp:object | ||
| 3686 | + [ sp:varName "shipName"^^xsd:string | ||
| 3687 | + ] ; | ||
| 3688 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
| 3689 | + sp:subject | ||
| 3690 | + [ sp:varName "ship"^^xsd:string | ||
| 3691 | + ] | ||
| 3692 | + ]) | ||
| 3693 | + ] [ rdf:type sp:Optional ; | ||
| 3694 | + sp:elements ([ sp:object | ||
| 3695 | + [ sp:varName "shipOperationPart"^^xsd:string | ||
| 3696 | + ] ; | ||
| 3697 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 3698 | + sp:subject | ||
| 3699 | + [ sp:varName "marineoperationPart"^^xsd:string | ||
| 3700 | + ] | ||
| 3701 | + ]) | ||
| 3702 | + ] [ rdf:type sp:Optional ; | ||
| 3703 | + sp:elements ([ sp:object | ||
| 3704 | + [ sp:varName "shipOperationPart"^^xsd:string | ||
| 3705 | + ] ; | ||
| 3706 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ; | ||
| 3707 | + sp:subject | ||
| 3708 | + [ sp:varName "commentExists"^^xsd:string | ||
| 3709 | + ] | ||
| 3710 | + ] [ rdf:type sp:Bind ; | ||
| 3711 | + sp:expression | ||
| 3712 | + [ rdf:type ep-mpr-spin-lib:normalizeDatedComment ; | ||
| 3713 | + sp:arg1 [ sp:varName "shipOperationPart"^^xsd:string | ||
| 3714 | + ] | ||
| 3715 | + ] ; | ||
| 3716 | + sp:variable | ||
| 3717 | + [ sp:varName "commentText"^^xsd:string | ||
| 3718 | + ] | ||
| 3719 | + ]) | ||
| 3720 | + ]) | ||
| 3721 | + ]) | ||
| 3722 | + ] ; | ||
| 3723 | + rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Ship"^^xsd:string "Dated Comment"^^xsd:string) . | ||
| 3724 | + | ||
| 3149 | dpr-tables:ProductionVolumes | 3725 | dpr-tables:ProductionVolumes |
| 3150 | rdf:type rhspin:TableTemplate ; | 3726 | rdf:type rhspin:TableTemplate ; |
| 3151 | rdfs:label "Production Volume List"^^xsd:string ; | 3727 | rdfs:label "Production Volume List"^^xsd:string ; | ... | ... |
| ... | @@ -205,6 +205,86 @@ ep-mpr-spin-lib:buildWellTestTypeURI | ... | @@ -205,6 +205,86 @@ ep-mpr-spin-lib:buildWellTestTypeURI |
| 205 | ]) | 205 | ]) |
| 206 | ] . | 206 | ] . |
| 207 | 207 | ||
| 208 | +ep-mpr-spin-lib:normalizeDatedComment | ||
| 209 | + rdf:type spin:Function ; | ||
| 210 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
| 211 | + spin:body | ||
| 212 | + [ rdf:type sp:Select ; | ||
| 213 | + sp:resultVariables ([ sp:varName "normalizedDatedComment"^^xsd:string | ||
| 214 | + ]) ; | ||
| 215 | + sp:where ([ sp:object spin:_arg1 ; | ||
| 216 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ; | ||
| 217 | + sp:subject | ||
| 218 | + [ sp:varName "comment"^^xsd:string | ||
| 219 | + ] | ||
| 220 | + ] [ sp:object | ||
| 221 | + [ sp:varName "commentText"^^xsd:string | ||
| 222 | + ] ; | ||
| 223 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ; | ||
| 224 | + sp:subject | ||
| 225 | + [ sp:varName "comment"^^xsd:string | ||
| 226 | + ] | ||
| 227 | + ] [ rdf:type sp:Optional ; | ||
| 228 | + sp:elements ([ sp:object | ||
| 229 | + [ sp:varName "startedAt"^^xsd:string | ||
| 230 | + ] ; | ||
| 231 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 232 | + sp:subject spin:_arg1 | ||
| 233 | + ]) | ||
| 234 | + ] [ rdf:type sp:Optional ; | ||
| 235 | + sp:elements ([ sp:object | ||
| 236 | + [ sp:varName "finishedAt"^^xsd:string | ||
| 237 | + ] ; | ||
| 238 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 239 | + sp:subject spin:_arg1 | ||
| 240 | + ]) | ||
| 241 | + ] [ rdf:type sp:Bind ; | ||
| 242 | + sp:expression | ||
| 243 | + [ rdf:type sp:if ; | ||
| 244 | + sp:arg1 [ rdf:type sp:bound ; | ||
| 245 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
| 246 | + ] | ||
| 247 | + ] ; | ||
| 248 | + sp:arg2 [ sp:varName "startedAt"^^xsd:string | ||
| 249 | + ] ; | ||
| 250 | + sp:arg3 "No Start" | ||
| 251 | + ] ; | ||
| 252 | + sp:variable | ||
| 253 | + [ sp:varName "started"^^xsd:string | ||
| 254 | + ] | ||
| 255 | + ] [ rdf:type sp:Bind ; | ||
| 256 | + sp:expression | ||
| 257 | + [ rdf:type sp:if ; | ||
| 258 | + sp:arg1 [ rdf:type sp:bound ; | ||
| 259 | + sp:arg1 [ sp:varName "finishedAt"^^xsd:string | ||
| 260 | + ] | ||
| 261 | + ] ; | ||
| 262 | + sp:arg2 [ sp:varName "finishedAt"^^xsd:string | ||
| 263 | + ] ; | ||
| 264 | + sp:arg3 "No Finish" | ||
| 265 | + ] ; | ||
| 266 | + sp:variable | ||
| 267 | + [ sp:varName "finished"^^xsd:string | ||
| 268 | + ] | ||
| 269 | + ] [ rdf:type sp:Bind ; | ||
| 270 | + sp:expression | ||
| 271 | + [ rdf:type fn:concat ; | ||
| 272 | + sp:arg1 [ sp:varName "commentText"^^xsd:string | ||
| 273 | + ] ; | ||
| 274 | + sp:arg2 " (" ; | ||
| 275 | + sp:arg3 [ sp:varName "started"^^xsd:string | ||
| 276 | + ] ; | ||
| 277 | + sp:arg4 " TO " ; | ||
| 278 | + sp:arg5 [ sp:varName "finished"^^xsd:string | ||
| 279 | + ] ; | ||
| 280 | + sp:arg6 " )" | ||
| 281 | + ] ; | ||
| 282 | + sp:variable | ||
| 283 | + [ sp:varName "normalizedDatedComment"^^xsd:string | ||
| 284 | + ] | ||
| 285 | + ]) | ||
| 286 | + ] . | ||
| 287 | + | ||
| 208 | ep-mpr-spin-lib:selectAverageAmountOfMaterialFlag | 288 | ep-mpr-spin-lib:selectAverageAmountOfMaterialFlag |
| 209 | rdf:type spin:Function ; | 289 | rdf:type spin:Function ; |
| 210 | rdfs:label "select AverageAmountOfMaterialFlag"^^xsd:string ; | 290 | rdfs:label "select AverageAmountOfMaterialFlag"^^xsd:string ; | ... | ... |
| ... | @@ -61,6 +61,13 @@ WHERE { | ... | @@ -61,6 +61,13 @@ WHERE { |
| 61 | 61 | ||
| 62 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" /> | 62 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" /> |
| 63 | 63 | ||
| 64 | + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationCargoShip" /> | ||
| 65 | + | ||
| 66 | + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarine" /> | ||
| 67 | + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarineShip" /> | ||
| 68 | + | ||
| 69 | + | ||
| 70 | + | ||
| 64 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionVolumes" /> | 71 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionVolumes" /> |
| 65 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" /> | 72 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" /> |
| 66 | 73 | ... | ... |
-
Please register or login to post a comment