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-06 02:02:22 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1335e597c617b679493dd375f407d018a64f1597
1335e597
1 parent
dcfd282e
started inventory ownership
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
360 additions
and
2 deletions
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
www.reportinghub.no/swp/MPRG.uispin.html
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
View file @
1335e59
...
...
@@ -19,7 +19,7 @@
<http://www.reportinghub.no/ep/spin/mpr-tables>
rdf:
type
owl:
Ontology
;
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:
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:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
mpr-tables:
Cargo
...
...
@@ -1490,6 +1490,7 @@ mpr-tables:ProductionInventory
[
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
...
...
@@ -1788,10 +1789,364 @@ mpr-tables:ProductionInventory
sp:
subject
[
sp:
varName
"piWhole"
^^
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
(
"Flow Name"
^^
xsd:
string
"Material Type"
^^
xsd:
string
"Type"
^^
xsd:
string
"Mass"
^^
xsd:
string
"Volume"
^^
xsd:
string
"Density"
^^
xsd:
string
)
.
mpr-tables:
ProductionInventoryOwnership
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Production Inventory Ownership"
^^
xsd:
string
;
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:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#partOf>
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductVolumeReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionInventorysInPeriod"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventory>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionInventorysInPeriod"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionInventoryInPeriod"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasSpatialPart>
;
sp:
subject
[
sp:
varName
"productionInventorysInPeriod"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventory>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionInventoryInPeriod"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"component"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/material#hasComponent>
;
sp:
subject
[
sp:
varName
"productionInventoryInPeriod"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"component"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ObjectThatLastsOneMonth>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialInventory"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#materialInInventory>
;
sp:
subject
[
sp:
varName
"monthobject"
^^
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:
predicate
rdfs:
label
;
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
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
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
"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:
subject
[
sp:
varName
"piWhole"
^^
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
(
"
Material"
^^
xsd:
string
"Material
Type"
^^
xsd:
string
"Mass"
^^
xsd:
string
"Volume"
^^
xsd:
string
"Density"
^^
xsd:
string
)
.
rhspin:
tableHeaders
(
"
Flow Name"
^^
xsd:
string
"Material Type"
^^
xsd:
string
"
Type"
^^
xsd:
string
"Mass"
^^
xsd:
string
"Volume"
^^
xsd:
string
"Density"
^^
xsd:
string
)
.
mpr-tables:
WellProductionFlows
rdf:
type
rhspin:
TableTemplate
;
...
...
www.reportinghub.no/swp/MPRG.uispin.html
View file @
1335e59
...
...
@@ -181,6 +181,9 @@ OPTIONAL {
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:ProductionInventory"
/>
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:ProductionInventoryOwnership"
/>
</ui:group>
...
...
Please
register
or
login
to post a comment