Bob DuCharme

Split weather section of DPR2 rpt into Atmosphere and Sea weather, finished Atmosphere one

......@@ -19,7 +19,7 @@
<http://www.reportinghub.no/ep/spin/dpr-tables>
rdf:type owl:Ontology ;
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> ;
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://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
dpr-tables:ExportVolumes
......@@ -4434,9 +4434,167 @@ dpr-tables:SafetyInformation
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Incident Type"^^xsd:string "Duration"^^xsd:string) .
dpr-tables:SeaWeatherInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "Sea Weather Information"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "avgWaveHeight"^^xsd:string
] [ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
] [ sp:varName "maxWaveHeight"^^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
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ 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 "installationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ 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 "surroundingEnvironment2"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "surroundingEnvironment1"^^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 "surroundingEnvironment1"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ 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
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "maxWaveHeightObject"^^xsd:string
]
] ;
sp:variable
[ sp:varName "maxWaveHeight"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
]
] ;
sp:variable
[ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "avgWaveHeightObject"^^xsd:string
]
] ;
sp:variable
[ sp:varName "averageWaveHeight"^^xsd:string
]
])
] ;
rhspin:tableHeaders ("""Average
Wave Height"""^^xsd:string """Average Third
Highest Wave
Height"""^^xsd:string """Maximum Wave
Height"""^^xsd:string) .
dpr-tables:WeatherInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "Weather Information"^^xsd:string ;
rdfs:label "Atmosphere Weather Information"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
......@@ -4444,9 +4602,12 @@ dpr-tables:WeatherInformation
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 "coverCloud"^^xsd:string
] [ sp:varName "beaufortNumber"^^xsd:string
] [ sp:varName "windSpeed"^^xsd:string
] [ sp:varName "aziWind"^^xsd:string
] [ sp:varName "precipitationName"^^xsd:string
] [ sp:varName "precipitationAmount"^^xsd:string
] [ sp:varName "description"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
......@@ -4542,117 +4703,156 @@ dpr-tables:WeatherInformation
sp:subject
[ sp:varName "surroundingAir"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
] [ sp:object
[ sp:varName "wind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasFlow> ;
sp:subject
[ sp:varName "pressure"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#CloudCover> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Wind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "cloudCover"^^xsd:string
[ sp:varName "wind"^^xsd:string
]
] [ sp:object
[ sp:varName "surroundingAir"^^xsd:string
[ sp:varName "velocity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "cloudCover"^^xsd:string
[ sp:varName "wind"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Velocity> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "velocity"^^xsd:string
]
] [ sp:object
[ sp:varName "cloudCeilingHeightObject"^^xsd:string
[ sp:varName "beaufortNumber"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#beaufortScaleNumber> ;
sp:subject
[ sp:varName "cloudCover"^^xsd:string
[ sp:varName "velocity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingWater> ;
sp:predicate rdf:type ;
] [ sp:object
[ sp:varName "windSpeed"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#m_s-1> ;
sp:subject
[ sp:varName "surroundingWater"^^xsd:string
[ sp:varName "velocity"^^xsd:string
]
] [ sp:object
[ sp:varName "surroundingEnvironment1"^^xsd:string
[ sp:varName "planeAngle"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#horizontalDirectionAzimuth> ;
sp:subject
[ sp:varName "surroundingWater"^^xsd:string
[ sp:varName "wind"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PlaneAngle> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "planeAngle"^^xsd:string
]
] [ sp:object
[ sp:varName "surfaceWaves"^^xsd:string
[ sp:varName "aziWind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasFeature> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#radian> ;
sp:subject
[ sp:varName "surroundingWater"^^xsd:string
[ sp:varName "planeAngle"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "surfaceWaves"^^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 "avgWaveHeightObject"^^xsd:string
[ sp:varName "coverCloud"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#averageWaveHeight> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
[ sp:varName "cloudCover"^^xsd:string
]
] [ sp:object
[ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#averageHighestThirdWaveHeight> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
[ sp:varName "cloudCover"^^xsd:string
]
] [ sp:object
[ sp:varName "maxWaveHeightObject"^^xsd:string
[ sp:varName "cloudCeilingHeightObject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#maximumWaveHeight> ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight> ;
sp:subject
[ sp:varName "surfaceWaves"^^xsd:string
[ sp:varName "cloudCover"^^xsd:string
]
] [ sp:object
[ sp:varName "avgWaveHeight"^^xsd:string
[ sp:varName "surroundingAir2"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "avgWaveHeightObject"^^xsd:string
[ sp:varName "surroundingAir"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "windChillObject"^^xsd:string
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "surroundingAir2"^^xsd:string
]
] [ sp:object
[ sp:varName "flow"^^xsd:string
] ;
sp:variable
[ sp:varName "windChill"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasFlow> ;
sp:subject
[ sp:varName "surroundingAir2"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "maxWaveHeightObject"^^xsd:string
] [ sp:object
[ sp:varName "precipitationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#PrecipitationType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "precipitationType"^^xsd:string
]
] [ sp:object
[ sp:varName "precipitationName"^^xsd:string
] ;
sp:variable
[ sp:varName "maxWaveHeight"^^xsd:string
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "precipitationType"^^xsd:string
]
] [ sp:object
[ sp:varName "precipitationAmountObj"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#amountOfPrecipitation> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "avgHighest3rdWaveHeightObject"^^xsd:string
sp:arg1 [ sp:varName "precipitationAmountObj"^^xsd:string
]
] ;
sp:variable
[ sp:varName "avgHighest3rdWaveHeight"^^xsd:string
[ sp:varName "precipitationAmount"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "avgWaveHeightObject"^^xsd:string
sp:arg1 [ sp:varName "windChillObject"^^xsd:string
]
] ;
sp:variable
[ sp:varName "averageWaveHeight"^^xsd:string
[ sp:varName "windChill"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
......@@ -4675,13 +4875,11 @@ dpr-tables:WeatherInformation
])
] ;
rhspin:tableHeaders ("""Barometric
Pressure"""^^xsd:string """Wind
Chill"""^^xsd:string """Cloud Ceiling
Height"""^^xsd:string """Average
Wave Height"""^^xsd:string """Average Third
Highest Wave
Height"""^^xsd:string """Maximum Wave
Height"""^^xsd:string "Comments"^^xsd:string) .
Pressure"""^^xsd:string """Wind Chill
Factor"""^^xsd:string "Cloud Ceiling"^^xsd:string "Cloud Description"^^xsd:string """Beaufort
Wind Scale"""^^xsd:string "Wind Speed"^^xsd:string "Azimuth Wind"^^xsd:string """Precipitation
Type"""^^xsd:string """Amount
Precipitation"""^^xsd:string "Comments"^^xsd:string) .
dpr-tables:WellFluidLevelTest
rdf:type rhspin:TableTemplate ;
......
......@@ -67,6 +67,7 @@ WHERE {
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:HSEInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SafetyInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WeatherInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SeaWeatherInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OperationInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
......
......@@ -6,12 +6,14 @@
@prefix arg: <http://spinrdf.org/arg#> .
@prefix dprswp: <http://www.reportinghub.no/swp/dpr#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
......@@ -34,9 +36,12 @@ arg:template
arg:report spin:_this
] .
<http://www.reportinghub.no/ep/spin/dpr-tables#WeatherInformation>
rdfs:comment "rhspin:tableHeaders values come from http://massivemonster.org/prodmltutorial/movingon/operational/weather"^^xsd:string .
<http://www.reportinghub.no/swp/dpr>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/dpr-tables> , <http://www.reportinghub.no/spin/rh> ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/dpr-tables> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://uispin.org/tui> ;
owl:versionInfo "0.1.0"^^xsd:string .
dprswp:DailyProductionReportView
......@@ -64,15 +69,15 @@ dprswp:Table
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report that serves as root of the template."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyProductionReport>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
ui:prototype <http://www.reportinghub.no/swp/DPRTable.uispin.html> .
......