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-05-31 13:36:11 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c8fa00ff3437ad0e25d01faa747865bcfdc49a80
c8fa00ff
1 parent
66fca68b
Improved Flow Densith
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
23 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 @
c8fa00f
...
...
@@ -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:
ProductionFlows
...
...
@@ -730,7 +730,7 @@ mpr-tables:ProductionFlowsAll
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlow
MixedPart
"
^^
xsd:
string
[
sp:
varName
"productionFlow
Whole
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionType>
;
sp:
predicate
rdf:
type
;
...
...
@@ -778,9 +778,7 @@ mpr-tables:ProductionInventory
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"wholeName"
^^
xsd:
string
]
[
sp:
varName
"wholeTypeName"
^^
xsd:
string
]
[
sp:
varName
"materialQuantityName"
^^
xsd:
string
]
[
sp:
varName
"materialPropertyName"
^^
xsd:
string
]
[
sp:
varName
"materialValue"
^^
xsd:
string
]
[
sp:
varName
"massValueString"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
...
...
@@ -818,6 +816,11 @@ mpr-tables:ProductionInventory
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
]
;
...
...
@@ -838,7 +841,7 @@ mpr-tables:ProductionInventory
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"m
q
"
^^
xsd:
string
[
sp:
varName
"m
aterialInventory
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#materialInInventory>
;
sp:
subject
...
...
@@ -849,7 +852,12 @@ mpr-tables:ProductionInventory
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"mq"
^^
xsd:
string
[
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
...
...
@@ -884,12 +892,21 @@ mpr-tables:ProductionInventory
sp:
subject
[
sp:
varName
"materialQuantity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialQuantityName"
^^
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:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"materialQuantity"
^^
xsd:
string
sp:
variable
[
sp:
varName
"massValueString"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
...
...
@@ -952,9 +969,8 @@ mpr-tables:ProductionInventoryAll
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"wholeName"
^^
xsd:
string
]
[
sp:
varName
"wholeTypeName"
^^
xsd:
string
]
[
sp:
varName
"materialQuantityName"
^^
xsd:
string
]
[
sp:
varName
"materialPropertyName"
^^
xsd:
string
]
[
sp:
varName
"materialValue"
^^
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
;
...
...
@@ -1017,7 +1033,7 @@ mpr-tables:ProductionInventoryAll
[
sp:
varName
"monthobject"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"m
q
"
^^
xsd:
string
[
sp:
varName
"m
aterialInventory
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#materialInInventory>
;
sp:
subject
...
...
@@ -1028,7 +1044,12 @@ mpr-tables:ProductionInventoryAll
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"mq"
^^
xsd:
string
[
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
...
...
@@ -1063,15 +1084,82 @@ mpr-tables:ProductionInventoryAll
sp:
subject
[
sp:
varName
"materialQuantity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"materialQuantityName"
^^
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:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"materialQuantity"
^^
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
"stateOfMaterialInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"densityQuantityValue"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"stateOfMaterialInventory"
^^
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>
;
...
...
@@ -1121,4 +1209,4 @@ mpr-tables:ProductionInventoryAll
])
])
]
;
rhspin:
tableHeaders
(
"Material"
^^
xsd:
string
"Material Type"
^^
xsd:
string
"
Quantity"
^^
xsd:
string
"Unit"
^^
xsd:
string
"Value
"
^^
xsd:
string
)
.
rhspin:
tableHeaders
(
"Material"
^^
xsd:
string
"Material Type"
^^
xsd:
string
"
Mass"
^^
xsd:
string
"Density
"
^^
xsd:
string
)
.
...
...
Please
register
or
login
to post a comment