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-03 17:24:22 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dcfd282ee19dad0d6ed82a1f9805de0da9b25588
dcfd282e
1 parent
d0cf75ff
cleanup inventory, added volume to inventory report
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
157 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 @
dcfd282
...
...
@@ -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
...
...
@@ -1484,13 +1484,15 @@ mpr-tables:ProductionFlowsAll
mpr-tables:
ProductionInventory
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Production
i
nventory"
^^
xsd:
string
;
rdfs:
label
"Production
I
nventory"
^^
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
"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
;
...
...
@@ -1559,7 +1561,8 @@ mpr-tables:ProductionInventory
sp:
subject
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"materialQuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
...
...
@@ -1620,212 +1623,79 @@ mpr-tables:ProductionInventory
sp:
variable
[
sp:
varName
"massValueString"
^^
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
]
])
])
]
;
rhspin:
tableHeaders
(
"Material"
^^
xsd:
string
"Type"
^^
xsd:
string
"Quantity"
^^
xsd:
string
"Unit"
^^
xsd:
string
"Value"
^^
xsd:
string
)
.
mpr-tables:
ProductionInventoryAll
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Production Inventory"
^^
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
"massValueString"
^^
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:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf
>
;
sp:
subject
[
sp:
varName
"monthobject
"
^^
xsd:
string
[
sp:
varName
"stateOfMaterialInventoryVolume
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"material
QuantityValue"
^^
xsd:
string
[
sp:
varName
"volume
QuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialInventory
"
^^
xsd:
string
[
sp:
varName
"stateOfMaterialInventoryVolume
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Mass
>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Volume
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"material
QuantityValue"
^^
xsd:
string
[
sp:
varName
"volume
QuantityValue"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"material
Value"
^^
xsd:
string
[
sp:
varName
"volume
Value"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"materialProperty
"
^^
xsd:
string
[
sp:
varName
"volumePredicate
"
^^
xsd:
string
]
;
sp:
subject
[
sp:
varName
"material
QuantityValue"
^^
xsd:
string
[
sp:
varName
"volume
QuantityValue"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Scale>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"materialProperty
"
^^
xsd:
string
[
sp:
varName
"volumePredicate
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialPropertyName
"
^^
xsd:
string
[
sp:
varName
"volumeUnit
"
^^
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
[
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
"material
Value"
^^
xsd:
string
[
sp:
varName
"volume
Value"
^^
xsd:
string
]
;
arg:
pattern
"#.##"
]
;
sp:
arg2
" "
;
sp:
arg3
[
sp:
varName
"materialPropertyName
"
^^
xsd:
string
sp:
arg3
[
sp:
varName
"volumeUnit
"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"mass
ValueString"
^^
xsd:
string
[
sp:
varName
"volume
ValueString"
^^
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
"stateOfMaterialInventory"
^^
xsd:
string
[
sp:
varName
"stateOfMaterialInventory
Density
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"densityQuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"stateOfMaterialInventory"
^^
xsd:
string
[
sp:
varName
"stateOfMaterialInventory
Density
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Density>
;
sp:
predicate
rdf:
type
;
...
...
@@ -1921,7 +1791,7 @@ mpr-tables:ProductionInventoryAll
])
])
]
;
rhspin:
tableHeaders
(
"Material"
^^
xsd:
string
"Material Type"
^^
xsd:
string
"Mass"
^^
xsd:
string
"Density"
^^
xsd:
string
)
.
rhspin:
tableHeaders
(
"Material"
^^
xsd:
string
"Material 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 @
dcfd282
...
...
@@ -179,7 +179,7 @@ OPTIONAL {
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:ProductionFlowsAll"
/>
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:ProductionInventory
All
"
/>
<mprgswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:ProductionInventory"
/>
...
...
Please
register
or
login
to post a comment