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:39:50 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
79e756ea3b87e548106cd84ba609143f22b66a1d
79e756ea
1 parent
00868c2d
Added more URI functions
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
56 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 @
79e756e
# Saved by TopBraid on Wed Oct 12 16:
06:0
8 BST 2011
# Saved by TopBraid on Wed Oct 12 16:
32:1
8 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
...
...
@@ -27,6 +27,31 @@
owl:
imports
<http://www.witsml.org/schemas/131/addendum/combo>
,
<http://www.reportinghub.no/ep/schema/1.0/production-activity>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://www.reportinghub.no/ep/schema/1.0/facility>
,
<http://www.reportinghub.no/ep/schema/1.0/flow>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/geography>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/unnamed>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ep-dpr-spin-lib:
BuildDailyProductionReportURI
rdf:
type
spin:
Function
;
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
rdfs:
comment
"""arg1 is name of the document (this may to change when we sort out the identity lookup)
arg2 is report date"""
^^
xsd:
string
;
sp:
resultVariables
(
_:
b1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/dailyProductionReport/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg1
]
;
sp:
arg2
"$"
;
sp:
arg3
[
sp:
varName
"docDate"
^^
xsd:
string
]
]
]
;
sp:
variable
_:
b1
])
]
.
ep-dpr-spin-lib:
Function
rdf:
type
spin:
Function
;
rdfs:
label
"function"
^^
xsd:
string
;
...
...
@@ -38,7 +63,7 @@ ep-dpr-spin-lib:buildCountryURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
1
)
;
sp:
resultVariables
(
_:
b
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -47,7 +72,7 @@ ep-dpr-spin-lib:buildCountryURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
1
sp:
variable
_:
b
2
])
]
.
...
...
@@ -59,7 +84,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI
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
(
_:
b
2
)
;
sp:
resultVariables
(
_:
b
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -74,7 +99,34 @@ arg3 is end date"""^^xsd:string ;
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b2
sp:
variable
_:
b3
])
]
.
ep-dpr-spin-lib:
buildDailyProductionOperationsActivityURI
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
(
_:
b4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/dailyProductionOperationsActivity/"
;
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
_:
b4
])
]
.
...
...
@@ -84,7 +136,7 @@ ep-dpr-spin-lib:buildProductFlowURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
3
)
;
sp:
resultVariables
(
_:
b
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -95,7 +147,7 @@ ep-dpr-spin-lib:buildProductFlowURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b
3
sp:
variable
_:
b
5
])
]
.
...
...
@@ -105,7 +157,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
4
)
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -114,7 +166,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
4
sp:
variable
_:
b
6
])
]
.
...
...
@@ -124,7 +176,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
5
)
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -133,7 +185,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
5
sp:
variable
_:
b
7
])
]
.
...
...
@@ -143,7 +195,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -156,7 +208,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b
6
sp:
variable
_:
b
8
])
]
.
...
...
@@ -166,7 +218,7 @@ ep-dpr-spin-lib:buildStateURI
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -175,7 +227,7 @@ ep-dpr-spin-lib:buildStateURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b
7
sp:
variable
_:
b
9
])
]
.
...
...
@@ -185,7 +237,7 @@ ep-dpr-spin-lib:selectProductType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
resultVariables
(
_:
b
10
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -392,7 +444,7 @@ ep-dpr-spin-lib:selectProductType
]
]
]
;
sp:
variable
_:
b
8
sp:
variable
_:
b
10
])
]
.
...
...
@@ -402,7 +454,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
resultVariables
(
_:
b
11
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -581,7 +633,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
11
])
]
.
...
...
@@ -591,7 +643,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
0
)
;
sp:
resultVariables
(
_:
b1
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -651,7 +703,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
]
;
sp:
variable
_:
b1
0
sp:
variable
_:
b1
2
])
]
.
...
...
@@ -661,7 +713,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
1
)
;
sp:
resultVariables
(
_:
b1
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -679,7 +731,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:
arg3
<http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
]
;
sp:
variable
_:
b1
1
sp:
variable
_:
b1
3
])
]
.
...
...
@@ -689,7 +741,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
2
)
;
sp:
resultVariables
(
_:
b1
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -707,7 +759,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:
arg3
<http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
]
;
sp:
variable
_:
b1
2
sp:
variable
_:
b1
4
])
]
.
...
...
@@ -717,7 +769,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
3
)
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -868,7 +920,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
]
;
sp:
variable
_:
b1
3
sp:
variable
_:
b1
5
])
]
.
...
...
@@ -878,7 +930,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
4
)
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -952,7 +1004,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
6
])
]
.
...
...
@@ -961,7 +1013,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1105,7 +1157,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
]
;
sp:
variable
_:
b1
5
sp:
variable
_:
b1
7
])
]
.
...
...
@@ -1115,7 +1167,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1189,7 +1241,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
]
]
]
;
sp:
variable
_:
b1
6
sp:
variable
_:
b1
8
])
]
.
...
...
@@ -1198,7 +1250,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
resultVariables
(
_:
b1
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1272,7 +1324,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
]
]
]
;
sp:
variable
_:
b1
7
sp:
variable
_:
b1
9
])
]
.
...
...
@@ -1282,7 +1334,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
18
)
;
sp:
resultVariables
(
_:
b
20
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1307,7 +1359,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
]
;
sp:
variable
_:
b
18
sp:
variable
_:
b
20
])
]
.
...
...
@@ -1317,7 +1369,7 @@ ep-dpr-spin-lib:selectVolumeScale
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
19
)
;
sp:
resultVariables
(
_:
b
21
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1545,45 +1597,53 @@ ep-dpr-spin-lib:selectVolumeScale
]
]
]
;
sp:
variable
_:
b
19
sp:
variable
_:
b
21
])
]
.
_:
b
2
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b19
_:
b4
sp:
varName
"uri"
^^
xsd:
string
.
_:
b21
sp:
varName
"volumeScale"
^^
xsd:
string
.
_:
b
18
_:
b
20
sp:
varName
"volumeAtStdType"
^^
xsd:
string
.
_:
b1
7
_:
b1
9
sp:
varName
"prodActType"
^^
xsd:
string
.
_:
b1
6
_:
b1
8
sp:
varName
"temporalPartOfAFlowDurationType"
^^
xsd:
string
.
_:
b1
5
_:
b1
7
sp:
varName
"safetyActivityType"
^^
xsd:
string
.
_:
b1
4
_:
b1
6
sp:
varName
"relationshipToMeasure"
^^
xsd:
string
.
_:
b1
3
_:
b1
5
sp:
varName
"productionFlowPurposeType"
^^
xsd:
string
.
_:
b1
2
_:
b1
4
sp:
varName
"productionFlowDirectionRelationshipType"
^^
xsd:
string
.
_:
b1
1
_:
b1
3
sp:
varName
"productionFlowDirectionRelationshipType"
^^
xsd:
string
.
_:
b1
0
_:
b1
2
sp:
varName
"productionFlowDefinitionType"
^^
xsd:
string
.
_:
b9
sp:
varName
"productionFacilityType"
^^
xsd:
string
.
_:
b11
sp:
varName
"productionFacilityType"
^^
xsd:
string
.
_:
b10
sp:
varName
"productType"
^^
xsd:
string
.
_:
b9
sp:
varName
"uri"
^^
xsd:
string
.
_:
b8
sp:
varName
"
productType
"
^^
xsd:
string
.
_:
b8
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b7
sp:
varName
"uri"
^^
xsd:
string
.
...
...
@@ -1591,8 +1651,6 @@ _:b6 sp:varName "uri"^^xsd:string .
_:
b5
sp:
varName
"uri"
^^
xsd:
string
.
_:
b4
sp:
varName
"uri"
^^
xsd:
string
.
_:
b3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
2
sp:
varName
"uri"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl.tbc
View file @
79e756e
# Saved by TopBraid on Wed Oct 12 16:
06:0
8 BST 2011
# Saved by TopBraid on Wed Oct 12 16:
32:1
8 BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
Please
register
or
login
to post a comment