David Leal

Merge schemas report and production-report

# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/np/schema/1.0/npd
@prefix ep-prodreport: <http://www.reportinghub.no/ep/schema/production-report#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.0/production-report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-prodreport:DailyProductionReport
rdf:type owl:Class ;
rdfs:label "Daily Production Report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductionReport .
ep-prodreport:DailyReport
rdf:type ep-prodreport:ReportPeriodType , owl:Class ;
rdfs:label "daily report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:FluidSampleReport
rdf:type owl:Class ;
rdfs:label "fluid sample report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:MonthlyProductionReport
rdf:type owl:Class ;
rdfs:label "Monthly Production Report"^^xsd:string ;
rdfs:subClassOf ep-prodreport:ProductionReport .
ep-prodreport:MonthlyReport
rdf:type ep-prodreport:ReportPeriodType , owl:Class ;
rdfs:label "monthly report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductVolumeFlowReport
rdf:type owl:Class ;
rdfs:label "product volume flow report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductVolumeReport
rdf:type owl:Class ;
rdfs:label "product volume report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductionOperationInstallationReport
rdf:type owl:Class ;
rdfs:label "production operation installation report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductionOperationReport
rdf:type owl:Class ;
rdfs:label "production operation report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductionReport
rdf:type owl:Class ;
rdfs:label "Production Report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ProductionReportKind
rdf:type rdfs:Class ;
rdfs:label "production report kind"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodreport:ReportAliasIdentifier
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:isAliasFor
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:aliasOwner
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-prodreport:aliasName
] .
ep-prodreport:ReportForInstant
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "report for instant"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ReportMonthToDate
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "report month to date"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:ReportPeriodType
rdf:type rdfs:Class ;
rdfs:label "report period type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodreport:ReportYearToDate
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "report year to date"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:WeeklyReport
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "weekly report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:WellTestReport
rdf:type owl:Class ;
rdfs:label "well test report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:YearlyReport
rdf:type owl:Class , ep-prodreport:ReportPeriodType ;
rdfs:label "yearly report"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:aliasName
rdf:type owl:DatatypeProperty ;
rdfs:range xsd:string .
ep-prodreport:aliasOwner
rdf:type owl:ObjectProperty ;
rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
ep-prodreport:dateCoveredByReport
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-prodreport:DailyProductionReport ;
rdfs:range xsd:date .
ep-prodreport:descriptionOfSource
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/report#Report> .
ep-prodreport:disclaimer
rdf:type rdf:Property ;
rdfs:domain <http://www.reportinghub.no/ep/schema/report#Report> ;
rdfs:range xsd:string .
ep-prodreport:isAliasFor
rdf:type owl:ObjectProperty ;
rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
ep-prodreport:issuedAt
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/report#Report> ;
rdfs:label "issued at"^^xsd:string .
......@@ -5,7 +5,6 @@
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/schema/1.0/production-well
# imports: http://www.reportinghub.no/np/schema/1.0/npd
......@@ -17,5 +16,5 @@
<http://www.reportinghub.no/ep/schema/1.0/production>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/ep/spin/mpr-tables
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
@prefix mpr-tables: <http://www.reportinghub.no/ep/spin/mpr-tables#> .
......@@ -16,7 +15,7 @@
<http://www.reportinghub.no/ep/spin/mpr-tables>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
mpr-tables:ProductionFlows
......@@ -40,7 +39,7 @@ mpr-tables:ProductionFlows
] [ sp:varName "volumeInMetre3"^^xsd:string
] [ sp:varName "grossCalorificValueInMegaJouleMetre_3"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
......@@ -52,7 +51,7 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
......
This diff could not be displayed because it is too large.
# Saved by TopBraid on Fri Oct 14 12:04:04 BST 2011
# baseURI: http://www.reportinghub.no/np/data/npd-alias-identifiers
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/np/data/npd
@prefix : <http://www.reportinghub.no/np/data/npd-alias-identifiers#> .
@prefix ep-prodreport: <http://www.reportinghub.no/ep/schema/production-report#> .
......@@ -15,13 +13,13 @@
<http://www.reportinghub.no/np/data/npd-alias-identifiers>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/np/data/npd> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/np/data/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
:ReportAliasIdentifier_1
rdf:type ep-prodreport:ReportAliasIdentifier ;
ep-prodreport:aliasName
"Jotun"^^xsd:string , "JOTUN"^^xsd:string ;
"JOTUN"^^xsd:string , "Jotun"^^xsd:string ;
ep-prodreport:aliasOwner
<http://www.reportinghub.no/np/data/npd/BAA-40655> ;
ep-prodreport:isAliasFor
......@@ -57,7 +55,7 @@
:ReportAliasIdentifier_5
rdf:type ep-prodreport:ReportAliasIdentifier ;
ep-prodreport:aliasName
"PL 018"^^xsd:string , "PL018"^^xsd:string ;
"PL018"^^xsd:string , "PL 018"^^xsd:string ;
ep-prodreport:aliasOwner
<http://www.reportinghub.no/np/data/npd/Licence-20900> ;
ep-prodreport:isAliasFor
......
......@@ -5,7 +5,6 @@
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/system/schema/reporting
......@@ -135,15 +134,15 @@ arg:wellName
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The value to match against."^^xsd:string ;
spl:predicate sp:arg1
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The property that must be used in the result resource."^^xsd:string ;
spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ;
spl:valueType rdf:Property
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The value to match against."^^xsd:string ;
spl:predicate sp:arg1
] ;
spin:returnType rdfs:Resource .
npdata:npd
......@@ -153,7 +152,7 @@ npdata:npd
<http://www.reportinghub.no/spin/rh>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> , <http://www.linkedmodel.org/schema/dtype> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/system/schema/reporting> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/system/schema/reporting> , <http://www.linkedmodel.org/schema/dtype> ;
owl:versionInfo "0.1.1"^^xsd:string .
rhspin:DDRTableTemplates
......@@ -665,15 +664,15 @@ rhspin:WDRTableTemplates
spin:abstract "true"^^xsd:boolean ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the reporting week."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The DDR that serves as root of the query."^^xsd:string ;
spl:predicate arg:wellBore ;
spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the reporting week."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] .
rhspin:baaById
......@@ -1405,16 +1404,16 @@ rhspin:ddrOfWeek
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The first day of the week."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The well bore that the DDR must be about."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The first day of the week."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType xsd:date
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> .
rhspin:ddrWellBoreId
......@@ -1511,15 +1510,15 @@ rhspin:dtypeValue
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subject of the value."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType rdf:Property
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subject of the value."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
] .
rhspin:facilityById
......@@ -2409,17 +2408,17 @@ rhspin:npdIndividualById
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The NPD id to match."^^xsd:string ;
spl:predicate arg:id ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The rdf:type that the result must have."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:type ;
spl:valueType rdfs:Class
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The NPD id to match."^^xsd:string ;
spl:predicate arg:id ;
spl:valueType xsd:string
] ;
spin:returnType <http://www.reportinghub.no/np/schema/npd#Individual> .
rhspin:npdIndividualByName
......@@ -2484,17 +2483,17 @@ rhspin:npdIndividualByName
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The NPD name to match."^^xsd:string ;
spl:predicate arg:name ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The rdf:type that the result must have."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:type ;
spl:valueType rdfs:Class
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The NPD name to match."^^xsd:string ;
spl:predicate arg:name ;
spl:valueType xsd:string
] ;
spin:returnType <http://www.reportinghub.no/np/schema/npd#Individual> .
rhspin:npdName
......@@ -2543,9 +2542,8 @@ rhspin:npdTripleExists
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subject to find"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
rdfs:comment "The object to match."^^xsd:string ;
spl:predicate sp:arg3
] ;
spin:constraint
[ rdf:type spl:Argument ;
......@@ -2555,8 +2553,9 @@ rhspin:npdTripleExists
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The object to match."^^xsd:string ;
spl:predicate sp:arg3
rdfs:comment "The subject to find"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
] ;
spin:returnType xsd:boolean .
......
# baseURI: http://www.reportinghub.no/swp/mprg
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/spin/ddr-tables
# imports: http://www.reportinghub.no/ep/spin/mpr-tables
# imports: http://www.reportinghub.no/spin/rh
......@@ -51,7 +50,7 @@ arg:template
<http://www.reportinghub.no/swp/mprg>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/mpr-tables> ;
owl:imports <http://www.reportinghub.no/ep/spin/mpr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://uispin.org/tui> ;
owl:versionInfo "0.1.0"^^xsd:string .
mprgswp:MPRGView
......@@ -65,12 +64,6 @@ mprgswp:MPRGView
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:headIncludes
[ rdf:type html:Title ;
ui:child
[ rdf:type ui:TextNode ;
......@@ -78,6 +71,12 @@ mprgswp:MPRGView
ui:text "Monthly Production Report (government)"^^xsd:string
]
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> .
mprgswp:Table
......@@ -87,15 +86,15 @@ mprgswp: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/production-report#MonthlyProductionReport>
] ;
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/MPRGTable.uispin.html> .
......