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-10-15 11:45:42 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e90d39ca6f0cfea2a7131e69ac20372ee7c459d4
e90d39ca
1 parent
d6e3a54b
Added rhspin:npdIndividualByName
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
51 deletions
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
e90d39c
...
...
@@ -69,6 +69,11 @@ arg:startDate
rdfs:
label
"start date"
^^
xsd:
string
;
rdfs:
subPropertyOf
sp:
arg
.
arg:
type
rdf:
type
rdf:
Property
;
rdfs:
label
"type"
^^
xsd:
string
;
rdfs:
subPropertyOf
sp:
arg
.
arg:
well
rdf:
type
rdf:
Property
;
rdfs:
label
"well"
^^
xsd:
string
;
...
...
@@ -1468,6 +1473,61 @@ rhspin:npdId
spl:
valueType
<http://www.reportinghub.no/np/schema/npd#NPDIndividual>
]
.
rhspin:
npdIndividualByName
rdf:
type
spin:
Function
;
rdfs:
comment
"Finds an NPD individual by its npd:name (?name). The individual also has to have the given class (?type) as a direct or indirect rdf:type."
^^
xsd:
string
;
rdfs:
label
"NPD individual by name"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"individual"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"individual"
^^
xsd:
string
]
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
[
sp:
varName
"type"
^^
xsd:
string
]
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
[
sp:
varName
"a"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"a"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"individual"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The NPD name to match."
^^
xsd:
string
;
spl:
predicate
arg:
name
;
spl:
valueType
xsd:
string
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The rdf:type that the result must have."
^^
xsd:
string
;
spl:
optional
"true"
^^
xsd:
boolean
;
spl:
predicate
arg:
type
;
spl:
valueType
rdfs:
Class
]
;
spin:
returnType
<http://www.reportinghub.no/np/schema/npd#Individual>
.
rhspin:
npdName
rdf:
type
spin:
Function
;
rdfs:
comment
"Gets the npd:name of a given resource in the NPD named graph."
^^
xsd:
string
;
...
...
@@ -1692,86 +1752,86 @@ rhspin:wellByName
]
;
spin:
returnType
<http://www.reportinghub.no/ep/schema/well#Well>
.
_:
b31
sp:
varName
"name"
^^
xsd:
string
.
_:
b30
sp:
varName
"id"
^^
xsd:
string
.
_:
b29
sp:
varName
"t4"
^^
xsd:
string
.
_:
b1
sp:
varName
"subject"
^^
xsd:
string
.
_:
b28
sp:
varName
"t3"
^^
xsd:
string
.
_:
b2
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b27
sp:
varName
"t2"
^^
xsd:
string
.
_:
b3
sp:
varName
"wellBoreId"
^^
xsd:
string
.
_:
b26
sp:
varName
"t1"
^^
xsd:
string
.
_:
b4
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b25
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b5
sp:
varName
"wellName"
^^
xsd:
string
.
_:
b24
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b6
sp:
varName
"well"
^^
xsd:
string
.
_:
b23
sp:
varName
"s2"
^^
xsd:
string
.
_:
b7
sp:
varName
"company"
^^
xsd:
string
.
_:
b22
sp:
varName
"s1"
^^
xsd:
string
.
_:
b8
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b21
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b9
sp:
varName
"licence"
^^
xsd:
string
.
_:
b
2
0
sp:
varName
"
licenc
e"
^^
xsd:
string
.
_:
b
1
0
sp:
varName
"
shar
e"
^^
xsd:
string
.
_:
b1
9
sp:
varName
"
reif
"
^^
xsd:
string
.
_:
b1
1
sp:
varName
"
wellBore
"
^^
xsd:
string
.
_:
b1
8
sp:
varName
"
valu
e"
^^
xsd:
string
.
_:
b1
2
sp:
varName
"
shar
e"
^^
xsd:
string
.
_:
b1
7
sp:
varName
"
wellBor
e"
^^
xsd:
string
.
_:
b1
3
sp:
varName
"
licenc
e"
^^
xsd:
string
.
_:
b1
6
_:
b1
4
sp:
varName
"company"
^^
xsd:
string
.
_:
b15
sp:
varName
"companyName"
^^
xsd:
string
.
_:
b1
4
_:
b1
6
sp:
varName
"company"
^^
xsd:
string
.
_:
b1
3
sp:
varName
"
licenc
e"
^^
xsd:
string
.
_:
b1
7
sp:
varName
"
wellBor
e"
^^
xsd:
string
.
_:
b1
2
sp:
varName
"
shar
e"
^^
xsd:
string
.
_:
b1
8
sp:
varName
"
valu
e"
^^
xsd:
string
.
_:
b1
1
sp:
varName
"
wellBore
"
^^
xsd:
string
.
_:
b1
9
sp:
varName
"
reif
"
^^
xsd:
string
.
_:
b
1
0
sp:
varName
"
shar
e"
^^
xsd:
string
.
_:
b
2
0
sp:
varName
"
licenc
e"
^^
xsd:
string
.
_:
b9
sp:
varName
"licence"
^^
xsd:
string
.
_:
b21
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b8
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b22
sp:
varName
"s1"
^^
xsd:
string
.
_:
b7
sp:
varName
"company"
^^
xsd:
string
.
_:
b23
sp:
varName
"s2"
^^
xsd:
string
.
_:
b6
sp:
varName
"well"
^^
xsd:
string
.
_:
b24
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b5
sp:
varName
"wellName"
^^
xsd:
string
.
_:
b25
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b4
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b26
sp:
varName
"t1"
^^
xsd:
string
.
_:
b3
sp:
varName
"wellBoreId"
^^
xsd:
string
.
_:
b27
sp:
varName
"t2"
^^
xsd:
string
.
_:
b2
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b28
sp:
varName
"t3"
^^
xsd:
string
.
_:
b1
sp:
varName
"subject"
^^
xsd:
string
.
_:
b29
sp:
varName
"t4"
^^
xsd:
string
.
_:
b30
sp:
varName
"id"
^^
xsd:
string
.
_:
b31
sp:
varName
"name"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment