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
MonkeyChap
2011-10-12 16:08:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc993dc8c61061591cdb3aeb8371116b15fcf576
fc993dc8
1 parent
0730b7fc
Added function ep-dpr-spin-lib:buildDailyProductionActivityURI
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
51 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl.tbc
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
View file @
fc993dc
# Saved by TopBraid on Wed Oct 12 1
4:16:37
BST 2011
# Saved by TopBraid on Wed Oct 12 1
6:06:08
BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
...
...
@@ -51,13 +51,40 @@ ep-dpr-spin-lib:buildCountryURI
])
]
.
ep-dpr-spin-lib:
buildDailyProductionActivityURI
rdf:
type
spin:
Function
;
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
rdfs:
comment
"""arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""
^^
xsd:
string
;
sp:
resultVariables
(
_:
b2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/dailyProductionActivity/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg1
]
;
sp:
arg2
"$"
;
sp:
arg3
spin:
_arg2
;
sp:
arg4
"$"
;
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b2
])
]
.
ep-dpr-spin-lib:
buildProductFlowURI
rdf:
type
spin:
Function
;
rdfs:
label
"build ProductFlow URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
2
)
;
sp:
resultVariables
(
_:
b
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -68,7 +95,7 @@ ep-dpr-spin-lib:buildProductFlowURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b
2
sp:
variable
_:
b
3
])
]
.
...
...
@@ -78,7 +105,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
3
)
;
sp:
resultVariables
(
_:
b
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -87,7 +114,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
3
sp:
variable
_:
b
4
])
]
.
...
...
@@ -97,7 +124,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
4
)
;
sp:
resultVariables
(
_:
b
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -106,7 +133,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
4
sp:
variable
_:
b
5
])
]
.
...
...
@@ -116,7 +143,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
5
)
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -129,7 +156,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b
5
sp:
variable
_:
b
6
])
]
.
...
...
@@ -139,7 +166,7 @@ ep-dpr-spin-lib:buildStateURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -148,7 +175,7 @@ ep-dpr-spin-lib:buildStateURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
6
sp:
variable
_:
b
7
])
]
.
...
...
@@ -158,7 +185,7 @@ ep-dpr-spin-lib:selectProductType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -365,7 +392,7 @@ ep-dpr-spin-lib:selectProductType
]
]
]
;
sp:
variable
_:
b
7
sp:
variable
_:
b
8
])
]
.
...
...
@@ -375,7 +402,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -554,7 +581,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
]
;
sp:
variable
_:
b
8
sp:
variable
_:
b
9
])
]
.
...
...
@@ -564,7 +591,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
resultVariables
(
_:
b
10
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -624,7 +651,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
10
])
]
.
...
...
@@ -634,7 +661,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
0
)
;
sp:
resultVariables
(
_:
b1
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -652,7 +679,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:
arg3
<http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
]
;
sp:
variable
_:
b1
0
sp:
variable
_:
b1
1
])
]
.
...
...
@@ -662,7 +689,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
1
)
;
sp:
resultVariables
(
_:
b1
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -680,7 +707,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:
arg3
<http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
]
;
sp:
variable
_:
b1
1
sp:
variable
_:
b1
2
])
]
.
...
...
@@ -690,7 +717,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
2
)
;
sp:
resultVariables
(
_:
b1
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -841,7 +868,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
]
;
sp:
variable
_:
b1
2
sp:
variable
_:
b1
3
])
]
.
...
...
@@ -851,7 +878,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
3
)
;
sp:
resultVariables
(
_:
b1
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -925,7 +952,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
]
;
sp:
variable
_:
b1
3
sp:
variable
_:
b1
4
])
]
.
...
...
@@ -934,7 +961,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
4
)
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1078,7 +1105,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
5
])
]
.
...
...
@@ -1088,7 +1115,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1162,7 +1189,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
]
]
]
;
sp:
variable
_:
b1
5
sp:
variable
_:
b1
6
])
]
.
...
...
@@ -1171,7 +1198,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1245,7 +1272,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
]
]
]
;
sp:
variable
_:
b1
6
sp:
variable
_:
b1
7
])
]
.
...
...
@@ -1255,7 +1282,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1280,7 +1307,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
]
;
sp:
variable
_:
b1
7
sp:
variable
_:
b1
8
])
]
.
...
...
@@ -1290,7 +1317,7 @@ ep-dpr-spin-lib:selectVolumeScale
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
resultVariables
(
_:
b1
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1518,39 +1545,47 @@ ep-dpr-spin-lib:selectVolumeScale
]
]
]
;
sp:
variable
_:
b1
8
sp:
variable
_:
b1
9
])
]
.
_:
b18
_:
b2
sp:
varName
"uri"
^^
xsd:
string
.
_:
b19
sp:
varName
"volumeScale"
^^
xsd:
string
.
_:
b1
7
_:
b1
8
sp:
varName
"volumeAtStdType"
^^
xsd:
string
.
_:
b15
_:
b17
sp:
varName
"prodActType"
^^
xsd:
string
.
_:
b16
sp:
varName
"temporalPartOfAFlowDurationType"
^^
xsd:
string
.
_:
b1
4
_:
b1
5
sp:
varName
"safetyActivityType"
^^
xsd:
string
.
_:
b1
3
_:
b1
4
sp:
varName
"relationshipToMeasure"
^^
xsd:
string
.
_:
b1
2
_:
b1
3
sp:
varName
"productionFlowPurposeType"
^^
xsd:
string
.
_:
b12
sp:
varName
"productionFlowDirectionRelationshipType"
^^
xsd:
string
.
_:
b11
sp:
varName
"productionFlowDirectionRelationshipType"
^^
xsd:
string
.
_:
b10
sp:
varName
"productionFlowD
irectionRelationship
Type"
^^
xsd:
string
.
sp:
varName
"productionFlowD
efinition
Type"
^^
xsd:
string
.
_:
b9
sp:
varName
"productionF
lowDefinition
Type"
^^
xsd:
string
.
_:
b9
sp:
varName
"productionF
acility
Type"
^^
xsd:
string
.
_:
b8
sp:
varName
"product
ionFacility
Type"
^^
xsd:
string
.
_:
b8
sp:
varName
"productType"
^^
xsd:
string
.
_:
b7
sp:
varName
"
productType
"
^^
xsd:
string
.
_:
b7
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b6
sp:
varName
"uri"
^^
xsd:
string
.
...
...
@@ -1560,9 +1595,4 @@ _:b4 sp:varName "uri"^^xsd:string .
_:
b3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b2
sp:
varName
"uri"
^^
xsd:
string
.
_:
b1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b16
sp:
varName
"prodActType"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl.tbc
View file @
fc993dc
# Saved by TopBraid on Wed Oct 12 1
4:16:3
8 BST 2011
# Saved by TopBraid on Wed Oct 12 1
6:06:0
8 BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
Please
register
or
login
to post a comment