Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Price
2012-06-12 23:36:52 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f74308e7cc857d2489eca79e302104752e4c4f1e
f74308e7
1 parent
d7d5995b
Production Inventory Ownership working in report now.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
117 additions
and
245 deletions
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
View file @
f74308e
...
...
@@ -19,7 +19,7 @@
<http://www.reportinghub.no/ep/spin/mpr-tables>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/ep/transform/transform-helper-schema>
,
<http://www.reportinghub.no/ep/schema/1.0/production>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://spinrdf.org/spin
>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/production>
,
<http://www.reportinghub.no/ep/transform/transform-helper-schema
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
mpr-tables:
Cargo
...
...
@@ -1821,12 +1821,9 @@ mpr-tables:ProductionInventoryOwnership
rdfs:
subClassOf
rhspin:
MPRGTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"wholeName"
^^
xsd:
string
]
[
sp:
varName
"wholeTypeName"
^^
xsd:
string
]
[
sp:
varName
"piTypeName"
^^
xsd:
string
]
[
sp:
varName
"massValueString"
^^
xsd:
string
]
[
sp:
varName
"volumeValueString"
^^
xsd:
string
]
[
sp:
varName
"densityValueString"
^^
xsd:
string
sp:
resultVariables
([
sp:
varName
"facilityName"
^^
xsd:
string
]
[
sp:
varName
"ownedVolumeValue"
^^
xsd:
string
]
[
sp:
varName
"owningOrgName"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
...
...
@@ -1870,6 +1867,13 @@ mpr-tables:ProductionInventoryOwnership
[
sp:
varName
"productionInventoryInPeriod"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionInventoryWhole"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"productionInventoryInPeriod"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"component"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/material#hasComponent>
;
...
...
@@ -1895,258 +1899,126 @@ mpr-tables:ProductionInventoryOwnership
sp:
subject
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"piPart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"piWholeMaterial"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"piPart"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"piWholeMaterial"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/material#hasComponent>
;
sp:
subject
[
sp:
varName
"piWhole"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"piWhole"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"monthobject"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#partOf>
;
sp:
subject
[
sp:
varName
"ownedPartOfMonthObject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"ownedMaterialInventory"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#materialInInventory>
;
sp:
subject
[
sp:
varName
"ownedPartOfMonthObject"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductInventoryClosingBalance>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"ownedPartOfMonthObject"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"ownedMaterialInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"ownedMaterialInventory"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#spatialPartOf>
;
sp:
subject
[
sp:
varName
"spatialPartOfMaterialInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"spatialPartOfMaterialInventory"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"ownedQuantity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"ownedQuantityType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"ownedQuantity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Volume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"ownedQuantityType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"ownedVolumeValue"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#metre3>
;
sp:
subject
[
sp:
varName
"ownedQuantityType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"partOfOrg"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/organization#owner>
;
sp:
subject
[
sp:
varName
"spatialPartOfMaterialInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"owningOrg"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"partOfOrg"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"materialQuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialInventory"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Mass>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialValue"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"materialProperty"
^^
xsd:
string
]
;
sp:
subject
[
sp:
varName
"materialQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Scale>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialProperty"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialPropertyName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"materialProperty"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialQuantity"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#PropertySpace>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialQuantity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
[
rdf:
type
spif:
decimalFormat
;
arg:
number
[
sp:
varName
"materialValue"
^^
xsd:
string
]
;
arg:
pattern
"#.##"
]
;
sp:
arg2
" "
;
sp:
arg3
[
sp:
varName
"materialPropertyName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"massValueString"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"materialInventory"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"stateOfMaterialInventoryVolume"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"volumeQuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"stateOfMaterialInventoryVolume"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Volume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"volumeQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"volumeValue"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"volumePredicate"
^^
xsd:
string
]
;
sp:
subject
[
sp:
varName
"volumeQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Scale>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"volumePredicate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"volumeUnit"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"volumePredicate"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
[
rdf:
type
spif:
decimalFormat
;
arg:
number
[
sp:
varName
"volumeValue"
^^
xsd:
string
]
;
arg:
pattern
"#.##"
]
;
sp:
arg2
" "
;
sp:
arg3
[
sp:
varName
"volumeUnit"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"volumeValueString"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"materialInventory"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"stateOfMaterialInventoryDensity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"densityQuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"stateOfMaterialInventoryDensity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Density>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"densityQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"densityValue"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"densityPredicate"
^^
xsd:
string
]
;
sp:
subject
[
sp:
varName
"densityQuantityValue"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Scale>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"densityPredicate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"densityUnit"
^^
xsd:
string
[
sp:
varName
"owningOrgName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"densityPredicate"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
[
rdf:
type
spif:
decimalFormat
;
arg:
number
[
sp:
varName
"densityValue"
^^
xsd:
string
]
;
arg:
pattern
"#.##"
]
;
sp:
arg2
" "
;
sp:
arg3
[
sp:
varName
"densityUnit"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"densityValueString"
^^
xsd:
string
[
sp:
varName
"owningOrg"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"
piPart
"
^^
xsd:
string
[
sp:
varName
"
owningOrgName
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"piWholeMaterial"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"piPart"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wholeType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"piWholeMaterial"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductMaterialType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wholeType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wholeTypeName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"wholeType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"piWholeMaterial"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/material#hasComponent>
;
sp:
subject
[
sp:
varName
"piWhole"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wholeName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
piWhole
"
^^
xsd:
string
[
sp:
varName
"
owningOrg
"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"piType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"piWhole"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryMaterialType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"piType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"piTypeName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"piType"
^^
xsd:
string
]
])
])
])
]
;
rhspin:
tableHeaders
(
"F
low Name"
^^
xsd:
string
"Material Type"
^^
xsd:
string
"Type"
^^
xsd:
string
"Mass"
^^
xsd:
string
"Volume"
^^
xsd:
string
"Density
"
^^
xsd:
string
)
.
rhspin:
tableHeaders
(
"F
acility"
^^
xsd:
string
"Volume"
^^
xsd:
string
"Owner
"
^^
xsd:
string
)
.
mpr-tables:
WellProductionFlows
rdf:
type
rhspin:
TableTemplate
;
...
...
Please
register
or
login
to post a comment