Bob DuCharme

finished first pass at adding weather data to report

...@@ -4364,15 +4364,25 @@ dpr-tables:WeatherInformation ...@@ -4364,15 +4364,25 @@ dpr-tables:WeatherInformation
4364 rdfs:subClassOf rhspin:DPRTableTemplates ; 4364 rdfs:subClassOf rhspin:DPRTableTemplates ;
4365 spin:body 4365 spin:body
4366 [ rdf:type sp:Select ; 4366 [ rdf:type sp:Select ;
4367 - sp:resultVariables ([ sp:varName "facilityName"^^xsd:string 4367 + sp:distinct "true"^^xsd:boolean ;
4368 - ] [ sp:varName "definingType"^^xsd:string 4368 + sp:resultVariables ([ sp:varName "baromPressure"^^xsd:string
4369 - ] [ sp:varName "duration"^^xsd:string 4369 + ] [ sp:varName "windChill"^^xsd:string
4370 + ] [ sp:varName "cloudCeilingHeight"^^xsd:string
4371 + ] [ sp:varName "avgWaveHeight"^^xsd:string
4372 + ] [ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
4373 + ] [ sp:varName "maxWaveHeight"^^xsd:string
4374 + ] [ sp:varName "description"^^xsd:string
4370 ]) ; 4375 ]) ;
4371 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 4376 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
4372 sp:predicate rdf:type ; 4377 sp:predicate rdf:type ;
4373 sp:subject 4378 sp:subject
4374 [ sp:varName "report"^^xsd:string 4379 [ sp:varName "report"^^xsd:string
4375 ] 4380 ]
4381 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
4382 + sp:predicate rdf:type ;
4383 + sp:subject
4384 + [ sp:varName "productionOperationReport"^^xsd:string
4385 + ]
4376 ] [ sp:object 4386 ] [ sp:object
4377 [ sp:varName "productionReport"^^xsd:string 4387 [ sp:varName "productionReport"^^xsd:string
4378 ] ; 4388 ] ;
...@@ -4380,116 +4390,203 @@ dpr-tables:WeatherInformation ...@@ -4380,116 +4390,203 @@ dpr-tables:WeatherInformation
4380 sp:subject 4390 sp:subject
4381 [ sp:varName "productionOperationReport"^^xsd:string 4391 [ sp:varName "productionOperationReport"^^xsd:string
4382 ] 4392 ]
4383 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; 4393 + ] [ sp:object
4394 + [ sp:varName "installationPart"^^xsd:string
4395 + ] ;
4396 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
4397 + sp:subject
4398 + [ sp:varName "prodOpInstallRpt"^^xsd:string
4399 + ]
4400 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
4384 sp:predicate rdf:type ; 4401 sp:predicate rdf:type ;
4385 sp:subject 4402 sp:subject
4386 - [ sp:varName "productionOperationReport"^^xsd:string 4403 + [ sp:varName "prodOpInstallRpt"^^xsd:string
4387 ] 4404 ]
4388 ] [ sp:object 4405 ] [ sp:object
4389 - [ sp:varName "temporalPartOfFacility"^^xsd:string 4406 + [ sp:varName "productionOperationReport"^^xsd:string
4390 ] ; 4407 ] ;
4391 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 4408 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
4392 sp:subject 4409 sp:subject
4393 - [ sp:varName "productionOperationReport"^^xsd:string 4410 + [ sp:varName "prodOpInstallRpt"^^xsd:string
4411 + ]
4412 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingEnvironment> ;
4413 + sp:predicate rdf:type ;
4414 + sp:subject
4415 + [ sp:varName "surroundingEnvironment2"^^xsd:string
4394 ] 4416 ]
4395 ] [ sp:object 4417 ] [ sp:object
4396 - [ sp:varName "productionFacility"^^xsd:string 4418 + [ sp:varName "installationPart"^^xsd:string
4397 ] ; 4419 ] ;
4398 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 4420 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
4399 sp:subject 4421 sp:subject
4400 - [ sp:varName "temporalPartOfFacility"^^xsd:string 4422 + [ sp:varName "surroundingEnvironment2"^^xsd:string
4401 ] 4423 ]
4402 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; 4424 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingEnvironment> ;
4403 sp:predicate rdf:type ; 4425 sp:predicate rdf:type ;
4404 sp:subject 4426 sp:subject
4405 - [ sp:varName "productionFacility"^^xsd:string 4427 + [ sp:varName "surroundingEnvironment1"^^xsd:string
4406 ] 4428 ]
4407 ] [ sp:object 4429 ] [ sp:object
4408 - [ sp:varName "facilityName"^^xsd:string 4430 + [ sp:varName "surroundingEnvironment2"^^xsd:string
4409 ] ; 4431 ] ;
4410 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 4432 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
4411 sp:subject 4433 sp:subject
4412 - [ sp:varName "productionFacility"^^xsd:string 4434 + [ sp:varName "surroundingEnvironment1"^^xsd:string
4413 ] 4435 ]
4414 ] [ sp:object 4436 ] [ sp:object
4415 - [ sp:varName "productionOperationReport"^^xsd:string 4437 + [ sp:varName "description"^^xsd:string
4416 ] ; 4438 ] ;
4417 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 4439 + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
4418 sp:subject 4440 sp:subject
4419 - [ sp:varName "productionOperationInstallationReport"^^xsd:string 4441 + [ sp:varName "surroundingEnvironment1"^^xsd:string
4420 ] 4442 ]
4421 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ; 4443 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ;
4422 sp:predicate rdf:type ; 4444 sp:predicate rdf:type ;
4423 sp:subject 4445 sp:subject
4424 - [ sp:varName "productionOperationInstallationReport"^^xsd:string 4446 + [ sp:varName "surroundingAir"^^xsd:string
4425 ] 4447 ]
4426 ] [ sp:object 4448 ] [ sp:object
4427 - [ sp:varName "installationPart"^^xsd:string 4449 + [ sp:varName "pressure"^^xsd:string
4428 ] ; 4450 ] ;
4429 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 4451 + sp:predicate rdf:type ;
4430 sp:subject 4452 sp:subject
4431 - [ sp:varName "productionOperationInstallationReport"^^xsd:string 4453 + [ sp:varName "surroundingAir"^^xsd:string
4432 ] 4454 ]
4433 ] [ sp:object 4455 ] [ sp:object
4434 - [ sp:varName "installationPart"^^xsd:string 4456 + [ sp:varName "surroundingEnvironment1"^^xsd:string
4435 ] ; 4457 ] ;
4436 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; 4458 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
4437 sp:subject 4459 sp:subject
4438 - [ sp:varName "productionOperation"^^xsd:string 4460 + [ sp:varName "surroundingAir"^^xsd:string
4439 ] 4461 ]
4440 ] [ sp:object 4462 ] [ sp:object
4441 - [ sp:varName "lastPart"^^xsd:string 4463 + [ sp:varName "windChillObject"^^xsd:string
4442 ] ; 4464 ] ;
4443 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ; 4465 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#windChillTemperature> ;
4444 sp:subject 4466 sp:subject
4445 - [ sp:varName "productionOperation"^^xsd:string 4467 + [ sp:varName "surroundingAir"^^xsd:string
4446 ] 4468 ]
4447 ] [ sp:object 4469 ] [ sp:object
4448 - [ sp:varName "lastPartDefiningType"^^xsd:string 4470 + [ sp:varName "windChill"^^xsd:string
4449 ] ; 4471 ] ;
4450 - sp:predicate <http://www.reportinghub.no/ep/schema/core#definingType> ; 4472 + sp:predicate <http://www.reportinghub.no/ep/schema/core#celsius> ;
4451 sp:subject 4473 sp:subject
4452 - [ sp:varName "lastPart"^^xsd:string 4474 + [ sp:varName "windChillObject"^^xsd:string
4475 + ]
4476 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
4477 + sp:predicate rdf:type ;
4478 + sp:subject
4479 + [ sp:varName "pressure"^^xsd:string
4453 ] 4480 ]
4454 ] [ sp:object 4481 ] [ sp:object
4455 - [ sp:varName "definingType"^^xsd:string 4482 + [ sp:varName "baromPressure"^^xsd:string
4456 ] ; 4483 ] ;
4457 - sp:predicate rdfs:label ; 4484 + sp:predicate <http://www.reportinghub.no/ep/schema/core#pascal> ;
4458 sp:subject 4485 sp:subject
4459 - [ sp:varName "lastPartDefiningType"^^xsd:string 4486 + [ sp:varName "pressure"^^xsd:string
4460 ] 4487 ]
4461 - ] [ rdf:type sp:Optional ; 4488 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#CloudCover> ;
4462 - sp:elements ([ sp:object 4489 + sp:predicate rdf:type ;
4463 - [ sp:varName "remainingActivity"^^xsd:string 4490 + sp:subject
4491 + [ sp:varName "cloudCover"^^xsd:string
4492 + ]
4493 + ] [ sp:object
4494 + [ sp:varName "surroundingAir"^^xsd:string
4464 ] ; 4495 ] ;
4465 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ; 4496 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
4466 sp:subject 4497 sp:subject
4467 - [ sp:varName "lastPart"^^xsd:string 4498 + [ sp:varName "cloudCover"^^xsd:string
4468 ] 4499 ]
4469 ] [ sp:object 4500 ] [ sp:object
4470 - [ sp:varName "remainingActivityType"^^xsd:string 4501 + [ sp:varName "cloudCeilingHeightObject"^^xsd:string
4502 + ] ;
4503 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight> ;
4504 + sp:subject
4505 + [ sp:varName "cloudCover"^^xsd:string
4506 + ]
4507 + ] [ sp:object
4508 + [ sp:varName "cloudCeilingHeight"^^xsd:string
4471 ] ; 4509 ] ;
4510 + sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
4511 + sp:subject
4512 + [ sp:varName "cloudCeilingHeightObject"^^xsd:string
4513 + ]
4514 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingWater> ;
4472 sp:predicate rdf:type ; 4515 sp:predicate rdf:type ;
4473 sp:subject 4516 sp:subject
4474 - [ sp:varName "remainingActivity"^^xsd:string 4517 + [ sp:varName "surroundingWater"^^xsd:string
4475 ] 4518 ]
4476 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ; 4519 + ] [ sp:object
4520 + [ sp:varName "surroundingEnvironment1"^^xsd:string
4521 + ] ;
4522 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
4523 + sp:subject
4524 + [ sp:varName "surroundingWater"^^xsd:string
4525 + ]
4526 + ] [ sp:object
4527 + [ sp:varName "surfaceWaves"^^xsd:string
4528 + ] ;
4529 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasFeature> ;
4530 + sp:subject
4531 + [ sp:varName "surroundingWater"^^xsd:string
4532 + ]
4533 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
4477 sp:predicate rdf:type ; 4534 sp:predicate rdf:type ;
4478 sp:subject 4535 sp:subject
4479 - [ sp:varName "remainingActivityType"^^xsd:string 4536 + [ sp:varName "surfaceWaves"^^xsd:string
4480 ] 4537 ]
4481 ] [ sp:object 4538 ] [ sp:object
4482 - [ sp:varName "duration"^^xsd:string 4539 + [ sp:varName "avgWaveHeightObject"^^xsd:string
4483 ] ; 4540 ] ;
4484 - sp:predicate <http://www.reportinghub.no/ep/schema/core#day> ; 4541 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#averageWaveHeight> ;
4485 sp:subject 4542 sp:subject
4486 - [ sp:varName "remainingActivityType"^^xsd:string 4543 + [ sp:varName "surfaceWaves"^^xsd:string
4544 + ]
4545 + ] [ sp:object
4546 + [ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
4547 + ] ;
4548 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#averageHighestThirdWaveHeight> ;
4549 + sp:subject
4550 + [ sp:varName "surfaceWaves"^^xsd:string
4551 + ]
4552 + ] [ sp:object
4553 + [ sp:varName "maxWaveHeightObject"^^xsd:string
4554 + ] ;
4555 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#maximumWaveHeight> ;
4556 + sp:subject
4557 + [ sp:varName "surfaceWaves"^^xsd:string
4558 + ]
4559 + ] [ sp:object
4560 + [ sp:varName "avgWaveHeight"^^xsd:string
4561 + ] ;
4562 + sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
4563 + sp:subject
4564 + [ sp:varName "avgWaveHeightObject"^^xsd:string
4565 + ]
4566 + ] [ sp:object
4567 + [ sp:varName "maxWaveHeight"^^xsd:string
4568 + ] ;
4569 + sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
4570 + sp:subject
4571 + [ sp:varName "maxWaveHeightObject"^^xsd:string
4572 + ]
4573 + ] [ sp:object
4574 + [ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
4575 + ] ;
4576 + sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
4577 + sp:subject
4578 + [ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
4487 ] 4579 ]
4488 - ])
4489 ]) 4580 ])
4490 ] ; 4581 ] ;
4491 - rhspin:tableHeaders ("vv"^^xsd:string "ww"^^xsd:string """xx 4582 + rhspin:tableHeaders ("""Barometric
4492 -yy"""^^xsd:string) . 4583 +Pressure (Pa)"""^^xsd:string """Wind
4584 +Chill (c)"""^^xsd:string """Cloud Ceiling
4585 +Height (m)"""^^xsd:string """Average Wave
4586 +Height (m)"""^^xsd:string """Average Third
4587 +Highest Wave
4588 +Height (m)"""^^xsd:string """Maximum Wave
4589 +Height (m)"""^^xsd:string "Comments"^^xsd:string) .
4493 4590
4494 dpr-tables:WellFluidLevelTest 4591 dpr-tables:WellFluidLevelTest
4495 rdf:type rhspin:TableTemplate ; 4592 rdf:type rhspin:TableTemplate ;
......