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
Holger Knublauch
2011-08-14 12:50:44 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David Price
2011-08-15 11:51:38 +0100
Commit
e02c45b3e028639abc380876c58e8213c67deac9
e02c45b3
1 parent
d8974f18
Additional helper function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
53 deletions
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
e02c45b
...
...
@@ -383,6 +383,43 @@ rhspin:ddrActivityStartDate
]
;
spin:
returnType
xsd:
date
.
rhspin:
ddrWellBoreId
rdf:
type
spin:
Function
;
rdfs:
comment
"Gets the id of the well bore covered by a given DDR."
^^
xsd:
string
;
rdfs:
label
"DDR well bore id"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b16
)
;
sp:
where
([
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b17
;
sp:
path
[
rdf:
type
sp:
SeqPath
;
sp:
path1
[
rdf:
type
sp:
SeqPath
;
sp:
path1
<http://www.reportinghub.no/ep/schema/activity#reportOn>
;
sp:
path2
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
]
;
sp:
path2
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
]
;
sp:
subject
[
sp:
varName
"ddr"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b16
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
_:
b17
])
;
sp:
graphNameNode
npdata:
npd
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The DailyDrillingReport to get the start date of."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#ddr>
;
spl:
valueType
<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
]
;
spin:
returnType
xsd:
string
.
rhspin:
discoveryById
rdf:
type
spin:
Function
;
rdfs:
label
"discovery by id"
^^
xsd:
string
;
...
...
@@ -412,13 +449,13 @@ rhspin:dtypeValue
rdfs:
subClassOf
spl:
OntologyFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
where
([
sp:
object
_:
b1
7
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
sp:
object
_:
b1
9
;
sp:
predicate
spin:
_arg2
;
sp:
subject
spin:
_arg1
]
[
sp:
object
_:
b1
6
;
]
[
sp:
object
_:
b1
8
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b1
7
sp:
subject
_:
b1
9
])
]
;
spin:
constraint
...
...
@@ -508,9 +545,9 @@ rhspin:licenceForWellBore
rdfs:
subClassOf
spin:
Functions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
18
)
;
sp:
resultVariables
(
_:
b
20
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b
18
;
sp:
elements
([
sp:
object
_:
b
20
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
...
...
@@ -534,7 +571,7 @@ rhspin:normalizeString
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
19
)
;
sp:
resultVariables
(
_:
b
21
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
...
...
@@ -542,67 +579,67 @@ rhspin:normalizeString
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b2
0
sp:
variable
_:
b2
2
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
trim
;
sp:
arg1
_:
b2
0
sp:
arg1
_:
b2
2
]
;
sp:
variable
_:
b2
1
sp:
variable
_:
b2
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
encodeURL
;
sp:
arg1
_:
b2
1
sp:
arg1
_:
b2
3
]
;
sp:
variable
_:
b2
2
sp:
variable
_:
b2
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
2
;
sp:
arg1
_:
b2
4
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
3
sp:
variable
_:
b2
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
3
;
sp:
arg1
_:
b2
5
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b2
4
sp:
variable
_:
b2
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
4
;
sp:
arg1
_:
b2
6
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
5
sp:
variable
_:
b2
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
5
;
sp:
arg1
_:
b2
7
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
6
sp:
variable
_:
b2
8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
6
;
sp:
arg1
_:
b2
8
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b2
7
sp:
variable
_:
b2
9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
spif:
upperCase
;
sp:
arg1
_:
b2
7
sp:
arg1
_:
b2
9
]
]
;
sp:
variable
_:
b
19
sp:
variable
_:
b
21
])
]
;
spin:
constraint
...
...
@@ -619,9 +656,9 @@ rhspin:npdId
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
28
)
;
sp:
resultVariables
(
_:
b
30
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b
28
;
sp:
elements
([
sp:
object
_:
b
30
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"resource"
^^
xsd:
string
...
...
@@ -644,9 +681,9 @@ rhspin:npdName
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
29
)
;
sp:
resultVariables
(
_:
b
31
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b
29
;
sp:
elements
([
sp:
object
_:
b
31
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"resource"
^^
xsd:
string
...
...
@@ -758,27 +795,27 @@ rhspin:wellBoreByName
rdfs:
subClassOf
spl:
URIFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
0
)
;
sp:
resultVariables
(
_:
b3
2
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
_:
b3
1
;
sp:
elements
(([
sp:
object
_:
b3
3
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b3
0
sp:
subject
_:
b3
2
])
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
_:
b3
1
;
sp:
arg1
_:
b3
3
;
sp:
arg2
"/0"
;
sp:
arg3
"/"
]
;
sp:
variable
_:
b3
2
]
[
sp:
object
_:
b3
2
;
sp:
variable
_:
b3
4
]
[
sp:
object
_:
b3
4
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b3
0
sp:
subject
_:
b3
2
]))
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
0
sp:
subject
_:
b3
2
])
;
sp:
graphNameNode
npdata:
npd
])
...
...
@@ -817,58 +854,64 @@ rhspin:wellByName
]
;
spin:
returnType
<http://www.reportinghub.no/ep/schema/well#Well>
.
_:
b16
sp:
varName
"id"
^^
xsd:
string
.
_:
b17
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b15
sp:
varName
"startedAt"
^^
xsd:
string
.
_:
b3
2
_:
b3
4
sp:
varName
"str"
^^
xsd:
string
.
_:
b3
1
_:
b3
3
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b3
0
_:
b3
2
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b
29
_:
b
31
sp:
varName
"name"
^^
xsd:
string
.
_:
b
28
_:
b
30
sp:
varName
"id"
^^
xsd:
string
.
_:
b2
7
_:
b2
9
sp:
varName
"t4"
^^
xsd:
string
.
_:
b2
6
_:
b2
8
sp:
varName
"t3"
^^
xsd:
string
.
_:
b2
5
_:
b2
7
sp:
varName
"t2"
^^
xsd:
string
.
_:
b2
4
_:
b2
6
sp:
varName
"t1"
^^
xsd:
string
.
_:
b2
3
_:
b2
5
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b2
2
_:
b2
4
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b2
1
_:
b2
3
sp:
varName
"s2"
^^
xsd:
string
.
_:
b2
0
_:
b2
2
sp:
varName
"s1"
^^
xsd:
string
.
_:
b
19
_:
b
21
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b
18
_:
b
20
sp:
varName
"licence"
^^
xsd:
string
.
_:
b1
7
_:
b1
9
sp:
varName
"reif"
^^
xsd:
string
.
_:
b1
6
_:
b1
8
sp:
varName
"value"
^^
xsd:
string
.
_:
b14
...
...
Please
register
or
login
to post a comment