David Price

Merge branch 'master' into npd5

......@@ -202,6 +202,11 @@ ep-prodact:InitialWellTest
rdfs:label "initial"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:InjectionWellTest
rdf:type owl:Class ;
rdfs:label "injection well test"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> .
ep-prodact:Injury
rdf:type ep-prodact:SafetyActivityType , owl:Class ;
rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
......@@ -549,6 +554,12 @@ ep-prodact:standbyVessel
rdfs:range <http://www.reportinghub.no/ep/schema/production-facility#ShipOrBoat> ;
rdfs:subPropertyOf ep-prodact:involvedVessel .
ep-prodact:testedWellBoreInterval
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
rdfs:label "tested wellbore interval"^^xsd:string ;
rdfs:range ep-core:PhysicalObject .
ep-prodact:totalNoOfPermitsIssued
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......@@ -564,6 +575,12 @@ ep-prodact:waterSampleTaken
rdfs:domain ep-prodact:WaterCleaningOperation ;
rdfs:range ep-prodact:WaterSample .
ep-prodact:wellTestInjectedFluid
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-prodact:InjectionWellTest ;
rdfs:label "well test injected fluid"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/well#Fluid> .
ep-prodact:yearlyActivityToDate
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:ProductionActivityLastingLessThanAYear ;
......
......@@ -14,46 +14,123 @@
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-prodwell:Air
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "air"^^xsd:string ;
rdfs:subClassOf ep-prodwell:NonHcGas .
ep-prodwell:Brine
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "brine"^^xsd:string ;
rdfs:subClassOf ep-well:Water .
ep-prodwell:Co2
rdf:type owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "CO2"^^xsd:string ;
rdfs:subClassOf ep-prodwell:NonHcGas .
ep-prodwell:DryFluid
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "dry fluid"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:FreshWater
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "fresh water"^^xsd:string ;
rdfs:subClassOf ep-well:Water .
ep-prodwell:GasAndWater
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "gas and water"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:InjectionFluidType
rdf:type rdfs:Class ;
rdfs:label "injection fluid type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodwell:NaturalGasClass
rdf:type rdfs:Class ;
rdfs:label "natural gas class"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodwell:NonHcGas
rdf:type ep-prodwell:InjectionFluidType , owl:Class ;
rdfs:label "non-HC gas"^^xsd:string ;
rdfs:subClassOf ep-well:Gas .
ep-prodwell:OilAndGas
rdf:type ep-prodwell:InjectionFluidType , owl:Class , ep-well:FluidComponentType ;
rdfs:label "oil and gas"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:OilAndWater
rdf:type ep-prodwell:InjectionFluidType , ep-well:FluidComponentType , owl:Class ;
rdfs:label "oil and water"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:OtherInjectionFluid
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "other injection fluid"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:Sand
rdf:type ep-well:FluidComponentType , owl:Class ;
rdf:type owl:Class , ep-well:FluidComponentType ;
rdfs:label "sand"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:Steam
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "steam"^^xsd:string ;
rdfs:subClassOf ep-prodwell:NonHcGas .
ep-prodwell:UnknownFluid
rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ;
rdfs:label "unknown fluid"^^xsd:string ;
rdfs:subClassOf ep-well:Fluid .
ep-prodwell:basicSedimentAndWater
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "basic sediment and water"^^xsd:string ;
rdfs:range ep-core:SpecificVolume .
ep-prodwell:condensateYield
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty , ep-core:Class_of_indirect_property ;
rdfs:label "condensate yield"^^xsd:string ;
rdfs:range ep-core:SpecificVolume .
ep-prodwell:depthOfBaseUsableWaterFromSurface
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-well:Fluid ;
rdfs:label "depth of base of usable water from surface"^^xsd:string ;
rdfs:range ep-core:Length .
ep-prodwell:depthOfFluidSurfaceFromTopOfWell
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-well:Fluid ;
rdfs:label "depth of fluid surface from top of well"^^xsd:string ;
rdfs:range ep-core:Length .
ep-prodwell:potentialGasProduction
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-well:WellBore ;
rdfs:label "potential gas production"^^xsd:string ;
rdfs:range ep-core:VolumetricFlowRate .
ep-prodwell:potentialOilProduction
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-well:WellBore ;
rdfs:label "potential oil production"^^xsd:string ;
rdfs:range ep-core:VolumetricFlowRate .
ep-well:Condensate
rdf:type ep-prodwell:InjectionFluidType .
ep-well:Gas
rdf:type ep-prodwell:InjectionFluidType .
ep-well:Oil
rdf:type ep-prodwell:InjectionFluidType .
ep-well:Water
rdf:type ep-prodwell:InjectionFluidType .
......
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@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 visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
owl:ObjectProperty
forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/ep/schema/core#hasPart>) .
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -144,6 +144,13 @@ log:url
rdfs:label "url"^^xsd:string ;
rdfs:range xsd:string .
log:wellBoreName
rdf:type owl:DatatypeProperty ;
rdfs:comment "Points to one or more well bore names that had reports uploaded."^^xsd:string ;
rdfs:domain log:ReportUploadEvent ;
rdfs:label "well bore name"^^xsd:string ;
rdfs:range xsd:string .
log:xml
rdf:type owl:DatatypeProperty ;
rdfs:comment "The complete source of the submitted XML document."^^xsd:string ;
......
......@@ -21,32 +21,32 @@ sioc:id
owl:versionInfo "0.2.0"^^xsd:string .
report:AbstractDR
rdf:type rdfs:Class ;
rdf:type owl:Class ;
rdfs:comment "Abstract base class for various types of daily reports."^^xsd:string ;
rdfs:subClassOf foaf:Document ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom xsd:string ;
owl:onProperty sioc:id
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://purl.org/dc/terms/created>
owl:onProperty <http://purl.org/dc/terms/date>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://purl.org/dc/terms/date>
owl:onProperty <http://purl.org/dc/terms/created>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:string ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty sioc:id
] .
report:DDR
rdf:type rdfs:Class ;
rdf:type owl:Class ;
rdfs:comment "The metadata about a Daily Drilling Report."^^xsd:string ;
rdfs:label "DDR"^^xsd:string ;
rdfs:subClassOf report:AbstractDR ;
......@@ -54,10 +54,15 @@ report:DDR
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:wellBoreId
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:xml
] .
report:DPR
rdf:type rdfs:Class ;
rdf:type owl:Class ;
rdfs:comment "The metadata about a Daily Production Report."^^xsd:string ;
rdfs:label "DPR"^^xsd:string ;
rdfs:subClassOf report:AbstractDR ;
......@@ -76,12 +81,18 @@ report:HTMLFormat
rdf:type report:Format ;
rdfs:label "HTMLFormat"^^xsd:string .
report:NPTR
rdf:type owl:Class ;
rdfs:comment "Metadata about a Non-Productive Time Report."^^xsd:string ;
rdfs:label "NPTR"^^xsd:string ;
rdfs:subClassOf foaf:Document .
report:PDFFormat
rdf:type report:Format ;
rdfs:label "PDFFormat"^^xsd:string .
report:WDR
rdf:type rdfs:Class ;
rdf:type owl:Class ;
rdfs:comment "Metadata about a Weekly Drilling Report"^^xsd:string ;
rdfs:label "WDR"^^xsd:string ;
rdfs:subClassOf foaf:Document .
......@@ -107,6 +118,12 @@ report:wellBoreId
rdf:type owl:DatatypeProperty ;
rdfs:label "well bore id"^^xsd:string .
report:xml
rdf:type owl:DatatypeProperty ;
rdfs:comment "The XML code of a report."^^xsd:string ;
rdfs:label "xml"^^xsd:string ;
rdfs:range xsd:string .
foaf:Document
rdf:type rdfs:Class ;
rdfs:label "Document"^^xsd:string .
......
......@@ -7,6 +7,7 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix reportspin: <http://www.reportinghub.no/system/spin/reporting#> .
@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#> .
......@@ -38,6 +39,70 @@
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/system/schema/reporting> ;
owl:versionInfo "0.1.0"^^xsd:string .
reportspin:DDRsOverview
rdf:type spin:SelectTemplate ;
rdfs:label "DDRs overview"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "wellBoreName"^^xsd:string
] [ sp:varName "date"^^xsd:string
] [ sp:varName "created"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "wellBoreName"^^xsd:string
] [ sp:varName "date"^^xsd:string
] [ sp:varName "created"^^xsd:string
] [ sp:varName "id"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "wellBoreId"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/reporting#wellBoreId> ;
sp:subject
[ sp:varName "ddr"^^xsd:string
]
] [ sp:object
[ sp:varName "created"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/terms/created> ;
sp:subject
[ sp:varName "ddr"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/terms/date> ;
sp:subject
[ sp:varName "ddr"^^xsd:string
]
] [ sp:object
[ sp:varName "id"^^xsd:string
] ;
sp:predicate <http://rdfs.org/sioc/ns#id> ;
sp:subject
[ sp:varName "ddr"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreById ;
sp:arg1 [ sp:varName "wellBoreId"^^xsd:string
]
] ;
sp:variable
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:npdName ;
sp:arg1 [ sp:varName "wellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "wellBoreName"^^xsd:string
]
])
] .
reportspin:graphByDDRId
rdf:type spin:Function ;
rdfs:comment "Gets the URI of the named graph containing the triples submitted by a report:DDR (metadata) with a given id."^^xsd:string ;
......@@ -146,16 +211,16 @@ reportspin:idOfDDRByDateAndWellBoreId
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The id of the well bore."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#wellBoreId> ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#date> ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The id of the well bore."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#wellBoreId> ;
spl:valueType xsd:string
] ;
spin:returnType xsd:string .
reportspin:idOfDPRByDateAndOwner
......@@ -204,14 +269,14 @@ reportspin:idOfDPRByDateAndOwner
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#date> ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The Licence or BAA."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#owner> ;
spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#date> ;
spl:valueType xsd:date
] ;
spin:returnType xsd:string .
......
......@@ -11,6 +11,7 @@
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix tui: <http://uispin.org/tui#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
......@@ -109,6 +110,28 @@
]
]
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 1 ;
ui:text " "^^xsd:string
] ;
ui:child
[ rdf:type tui:LabelList ;
ui:childIndex 2 ;
ui:resultSet
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "wellBoreName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "wellBoreName"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "wellBoreName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#wellBoreName> ;
sp:subject spin:_this
])
]
] ;
ui:id "comments"^^xsd:string
] .
......