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-12-08 13:49:11 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f9401cb6cdee6afdbd4e52aa234b7a62561db3e
4f9401cb
1 parent
df02cda9
Added DPR overview support
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
12 deletions
www.reportinghub.no/system/spin/SPIN-reporting.spin.ttl
www.reportinghub.no/system/spin/SPIN-reporting.spin.ttl
View file @
4f9401c
...
...
@@ -103,6 +103,61 @@ reportspin:DDRsOverview
])
]
.
reportspin:
DPRsOverview
rdf:
type
spin:
SelectTemplate
;
rdfs:
label
"DPRs overview"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
SelectTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
orderBy
([
sp:
varName
"ownerName"
^^
xsd:
string
]
[
sp:
varName
"date"
^^
xsd:
string
]
[
sp:
varName
"created"
^^
xsd:
string
])
;
sp:
resultVariables
([
sp:
varName
"ownerName"
^^
xsd:
string
]
[
sp:
varName
"date"
^^
xsd:
string
]
[
sp:
varName
"created"
^^
xsd:
string
]
[
sp:
varName
"id"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
[
sp:
varName
"id"
^^
xsd:
string
]
;
sp:
predicate
<http://rdfs.org/sioc/ns#id>
;
sp:
subject
[
sp:
varName
"dpr"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"created"
^^
xsd:
string
]
;
sp:
predicate
<http://purl.org/dc/terms/created>
;
sp:
subject
[
sp:
varName
"dpr"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://purl.org/dc/terms/date>
;
sp:
subject
[
sp:
varName
"dpr"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"owner"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/system/schema/reporting#owner>
;
sp:
subject
[
sp:
varName
"dpr"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
npdName
;
sp:
arg1
[
sp:
varName
"owner"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"ownerName"
^^
xsd:
string
]
])
]
.
reportspin:
graphByDDRId
rdf:
type
spin:
Function
;
rdfs:
comment
"Gets the URI of the named graph containing the triples submitted by a report:DDR (metadata) with a given id."
^^
xsd:
string
;
...
...
@@ -211,16 +266,16 @@ reportspin:idOfDDRByDateAndWellBoreId
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The date of the DDR (not the submission date, but the start date of the report)."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#date>
;
spl:
valueType
xsd:
date
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The id of the well bore."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#wellBoreId>
;
spl:
valueType
xsd:
string
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The date of the DDR (not the submission date, but the start date of the report)."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#date>
;
spl:
valueType
xsd:
date
]
;
spin:
returnType
xsd:
string
.
reportspin:
idOfDPRByDateAndOwner
...
...
@@ -269,14 +324,14 @@ reportspin:idOfDPRByDateAndOwner
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The Licence or BAA."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#owner>
;
spl:
valueType
<http://www.reportinghub.no/np/schema/npd#Owner>
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The date of the DDR (not the submission date, but the start date of the report)."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#date>
;
spl:
valueType
xsd:
date
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The Licence or BAA."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#owner>
;
spl:
valueType
<http://www.reportinghub.no/np/schema/npd#Owner>
]
;
spin:
returnType
xsd:
string
.
...
...
Please
register
or
login
to post a comment