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 10:48:02 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David Price
2011-08-15 11:51:38 +0100
Commit
d8974f18d0905253e51062634e01ec0655b808a1
d8974f18
1 parent
a9e1169b
Added rhspin:ddrActivityStartDate
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
71 deletions
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
d8974f1
...
...
@@ -30,6 +30,11 @@
rdfs:
label
"company name"
^^
xsd:
string
;
rdfs:
subPropertyOf
sp:
arg
.
<http://spinrdf.org/arg#ddr>
rdf:
type
rdf:
Property
;
rdfs:
label
"ddr"
^^
xsd:
string
;
rdfs:
subPropertyOf
sp:
arg
.
<http://spinrdf.org/arg#id>
rdf:
type
rdf:
Property
;
rdfs:
label
"id"
^^
xsd:
string
;
...
...
@@ -87,14 +92,14 @@
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The property that must be used in the result resource."
^^
xsd:
string
;
spl:
predicate
<http://topbraid.org/spin/spinmapl#predicate>
;
spl:
valueType
rdf:
Property
rdfs:
comment
"The value to match against."
^^
xsd:
string
;
spl:
predicate
sp:
arg1
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The value to match against."
^^
xsd:
string
;
spl:
predicate
sp:
arg1
rdfs:
comment
"The property that must be used in the result resource."
^^
xsd:
string
;
spl:
predicate
<http://topbraid.org/spin/spinmapl#predicate>
;
spl:
valueType
rdf:
Property
]
;
spin:
returnType
rdfs:
Resource
.
...
...
@@ -349,6 +354,35 @@ rhspin:companyWithName
]
;
spin:
returnType
<http://www.reportinghub.no/ep/schema/organization#Company>
.
rhspin:
ddrActivityStartDate
rdf:
type
spin:
Function
;
rdfs:
comment
"Gets the declared start time of the activity in a DDR, as an xsd:date literal."
^^
xsd:
string
;
rdfs:
label
"DDR activity start date"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
xsd:
date
;
sp:
arg1
_:
b15
])
;
sp:
where
([
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b15
;
sp:
path
[
rdf:
type
sp:
SeqPath
;
sp:
path1
<http://www.reportinghub.no/ep/schema/activity#reportOn>
;
sp:
path2
<http://www.reportinghub.no/ep/schema/activity#startedAt>
]
;
sp:
subject
[
sp:
varName
"ddr"
^^
xsd:
string
]
])
]
;
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:
date
.
rhspin:
discoveryById
rdf:
type
spin:
Function
;
rdfs:
label
"discovery by id"
^^
xsd:
string
;
...
...
@@ -378,26 +412,26 @@ rhspin:dtypeValue
rdfs:
subClassOf
spl:
OntologyFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
where
([
sp:
object
_:
b1
6
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
where
([
sp:
object
_:
b1
7
;
sp:
predicate
spin:
_arg2
;
sp:
subject
spin:
_arg1
]
[
sp:
object
_:
b1
5
;
]
[
sp:
object
_:
b1
6
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b1
6
sp:
subject
_:
b1
7
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The subject of the value."
^^
xsd:
string
;
spl:
predicate
sp:
arg1
;
spl:
valueType
rdfs:
Resource
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The predicate that points to the reified value."
^^
xsd:
string
;
spl:
predicate
sp:
arg2
;
spl:
valueType
rdf:
Property
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The subject of the value."
^^
xsd:
string
;
spl:
predicate
sp:
arg1
;
spl:
valueType
rdfs:
Resource
]
.
rhspin:
facilityById
...
...
@@ -474,9 +508,9 @@ rhspin:licenceForWellBore
rdfs:
subClassOf
spin:
Functions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b1
7
;
sp:
elements
([
sp:
object
_:
b1
8
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
...
...
@@ -500,7 +534,7 @@ rhspin:normalizeString
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
resultVariables
(
_:
b1
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
...
...
@@ -508,67 +542,67 @@ rhspin:normalizeString
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b
19
sp:
variable
_:
b
20
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
trim
;
sp:
arg1
_:
b
19
sp:
arg1
_:
b
20
]
;
sp:
variable
_:
b2
0
sp:
variable
_:
b2
1
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
encodeURL
;
sp:
arg1
_:
b2
0
sp:
arg1
_:
b2
1
]
;
sp:
variable
_:
b2
1
sp:
variable
_:
b2
2
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
1
;
sp:
arg1
_:
b2
2
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
2
sp:
variable
_:
b2
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
2
;
sp:
arg1
_:
b2
3
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b2
3
sp:
variable
_:
b2
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
3
;
sp:
arg1
_:
b2
4
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
4
sp:
variable
_:
b2
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
4
;
sp:
arg1
_:
b2
5
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
5
sp:
variable
_:
b2
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
5
;
sp:
arg1
_:
b2
6
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b2
6
sp:
variable
_:
b2
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
spif:
upperCase
;
sp:
arg1
_:
b2
6
sp:
arg1
_:
b2
7
]
]
;
sp:
variable
_:
b1
8
sp:
variable
_:
b1
9
])
]
;
spin:
constraint
...
...
@@ -585,9 +619,9 @@ rhspin:npdId
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
7
)
;
sp:
resultVariables
(
_:
b2
8
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b2
7
;
sp:
elements
([
sp:
object
_:
b2
8
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"resource"
^^
xsd:
string
...
...
@@ -610,9 +644,9 @@ rhspin:npdName
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
8
)
;
sp:
resultVariables
(
_:
b2
9
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b2
8
;
sp:
elements
([
sp:
object
_:
b2
9
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"resource"
^^
xsd:
string
...
...
@@ -724,27 +758,27 @@ rhspin:wellBoreByName
rdfs:
subClassOf
spl:
URIFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
29
)
;
sp:
resultVariables
(
_:
b
30
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
_:
b3
0
;
sp:
elements
(([
sp:
object
_:
b3
1
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b
29
sp:
subject
_:
b
30
])
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
_:
b3
0
;
sp:
arg1
_:
b3
1
;
sp:
arg2
"/0"
;
sp:
arg3
"/"
]
;
sp:
variable
_:
b3
1
]
[
sp:
object
_:
b3
1
;
sp:
variable
_:
b3
2
]
[
sp:
object
_:
b3
2
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b
29
sp:
subject
_:
b
30
]))
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
29
sp:
subject
_:
b
30
])
;
sp:
graphNameNode
npdata:
npd
])
...
...
@@ -783,63 +817,58 @@ rhspin:wellByName
]
;
spin:
returnType
<http://www.reportinghub.no/ep/schema/well#Well>
.
_:
b5
sp:
varName
"wellName"
^^
xsd:
string
.
_:
b6
sp:
varName
"well"
^^
xsd:
string
.
_:
b8
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b7
sp:
varName
"company"
^^
xsd:
string
.
_:
b15
sp:
varName
"startedAt"
^^
xsd:
string
.
_:
b3
1
_:
b3
2
sp:
varName
"str"
^^
xsd:
string
.
_:
b3
0
_:
b3
1
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b
29
_:
b
30
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b2
8
_:
b2
9
sp:
varName
"name"
^^
xsd:
string
.
_:
b2
7
_:
b2
8
sp:
varName
"id"
^^
xsd:
string
.
_:
b2
6
_:
b2
7
sp:
varName
"t4"
^^
xsd:
string
.
_:
b2
5
_:
b2
6
sp:
varName
"t3"
^^
xsd:
string
.
_:
b2
4
_:
b2
5
sp:
varName
"t2"
^^
xsd:
string
.
_:
b2
3
_:
b2
4
sp:
varName
"t1"
^^
xsd:
string
.
_:
b2
2
_:
b2
3
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b2
1
_:
b2
2
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b2
0
_:
b2
1
sp:
varName
"s2"
^^
xsd:
string
.
_:
b
19
_:
b
20
sp:
varName
"s1"
^^
xsd:
string
.
_:
b1
8
_:
b1
9
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b1
7
_:
b1
8
sp:
varName
"licence"
^^
xsd:
string
.
_:
b1
6
_:
b1
7
sp:
varName
"reif"
^^
xsd:
string
.
_:
b1
5
_:
b1
6
sp:
varName
"value"
^^
xsd:
string
.
_:
b14
...
...
@@ -859,6 +888,14 @@ _:b10
_:
b9
sp:
varName
"licence"
^^
xsd:
string
.
_:
b8
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b7
sp:
varName
"company"
^^
xsd:
string
.
_:
b6
sp:
varName
"well"
^^
xsd:
string
.
_:
b5
sp:
varName
"wellName"
^^
xsd:
string
.
_:
b4
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b3
sp:
varName
"wellBoreId"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment