Bob DuCharme

finished first pass at adding weather data to report

......@@ -4364,15 +4364,25 @@ dpr-tables:WeatherInformation
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "definingType"^^xsd:string
] [ sp:varName "duration"^^xsd:string
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "baromPressure"^^xsd:string
] [ sp:varName "windChill"^^xsd:string
] [ sp:varName "cloudCeilingHeight"^^xsd:string
] [ sp:varName "avgWaveHeight"^^xsd:string
] [ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
] [ sp:varName "maxWaveHeight"^^xsd:string
] [ sp:varName "description"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
......@@ -4380,116 +4390,203 @@ dpr-tables:WeatherInformation
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
] [ sp:object
[ sp:varName "installationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "prodOpInstallRpt"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "prodOpInstallRpt"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "prodOpInstallRpt"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingEnvironment> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "surroundingEnvironment2"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfFacility"^^xsd:string
[ sp:varName "installationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "surroundingEnvironment2"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingEnvironment> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "surroundingEnvironment1"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "surroundingEnvironment2"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfFacility"^^xsd:string
[ sp:varName "surroundingEnvironment1"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
] [ sp:object
[ sp:varName "description"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject
[ sp:varName "surroundingEnvironment1"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
[ sp:varName "pressure"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "surroundingEnvironment1"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "productionOperationInstallationReport"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
] [ sp:object
[ sp:varName "windChillObject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#windChillTemperature> ;
sp:subject
[ sp:varName "surroundingAir"^^xsd:string
]
] [ sp:object
[ sp:varName "windChill"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#celsius> ;
sp:subject
[ sp:varName "windChillObject"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationInstallationReport"^^xsd:string
[ sp:varName "pressure"^^xsd:string
]
] [ sp:object
[ sp:varName "installationPart"^^xsd:string
[ sp:varName "baromPressure"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#pascal> ;
sp:subject
[ sp:varName "productionOperationInstallationReport"^^xsd:string
[ sp:varName "pressure"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#CloudCover> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "cloudCover"^^xsd:string
]
] [ sp:object
[ sp:varName "installationPart"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
[ sp:varName "cloudCover"^^xsd:string
]
] [ sp:object
[ sp:varName "lastPart"^^xsd:string
[ sp:varName "cloudCeilingHeightObject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
[ sp:varName "cloudCover"^^xsd:string
]
] [ sp:object
[ sp:varName "lastPartDefiningType"^^xsd:string
[ sp:varName "cloudCeilingHeight"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#definingType> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:subject
[ sp:varName "lastPart"^^xsd:string
[ sp:varName "cloudCeilingHeightObject"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingWater> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "surroundingWater"^^xsd:string
]
] [ sp:object
[ sp:varName "definingType"^^xsd:string
[ sp:varName "surroundingEnvironment1"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "lastPartDefiningType"^^xsd:string
[ sp:varName "surroundingWater"^^xsd:string
]
] [ sp:object
[ sp:varName "surfaceWaves"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasFeature> ;
sp:subject
[ sp:varName "surroundingWater"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
]
] [ sp:object
[ sp:varName "avgWaveHeightObject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#averageWaveHeight> ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
]
] [ sp:object
[ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#averageHighestThirdWaveHeight> ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
]
] [ sp:object
[ sp:varName "maxWaveHeightObject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#maximumWaveHeight> ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
]
] [ sp:object
[ sp:varName "avgWaveHeight"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:subject
[ sp:varName "avgWaveHeightObject"^^xsd:string
]
] [ sp:object
[ sp:varName "maxWaveHeight"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:subject
[ sp:varName "maxWaveHeightObject"^^xsd:string
]
] [ sp:object
[ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:subject
[ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "remainingActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject
[ sp:varName "lastPart"^^xsd:string
]
] [ sp:object
[ sp:varName "remainingActivityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "remainingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "remainingActivityType"^^xsd:string
]
] [ sp:object
[ sp:varName "duration"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#day> ;
sp:subject
[ sp:varName "remainingActivityType"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("vv"^^xsd:string "ww"^^xsd:string """xx
yy"""^^xsd:string) .
rhspin:tableHeaders ("""Barometric
Pressure (Pa)"""^^xsd:string """Wind
Chill (c)"""^^xsd:string """Cloud Ceiling
Height (m)"""^^xsd:string """Average Wave
Height (m)"""^^xsd:string """Average Third
Highest Wave
Height (m)"""^^xsd:string """Maximum Wave
Height (m)"""^^xsd:string "Comments"^^xsd:string) .
dpr-tables:WellFluidLevelTest
rdf:type rhspin:TableTemplate ;
......