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
2012-07-27 14:59:01 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0f9e241bd4e18dbf457dab5f7ea3bb44dd6ee5a5
0f9e241b
1 parent
86da50d5
Added new function for CK
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
www.reportinghub.no/system/spin/SPIN-reporting.spin.ttl
www.reportinghub.no/system/spin/SPIN-reporting.spin.ttl
View file @
0f9e241
...
...
@@ -424,6 +424,79 @@ reportspin:idOfDDRByDateAndWellBoreId
rdfs:
label
"id of DDR by date and well bore id"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
;
.
reportspin:
idOfDPR2ByDateAndFieldName
rdf:
type
spin:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
limit
"1"
^^
xsd:
long
;
sp:
orderBy
(
[
rdf:
type
sp:
Desc
;
sp:
expression
[
sp:
varName
"created"
^^
xsd:
string
;
]
;
]
)
;
sp:
resultVariables
(
[
sp:
varName
"id"
^^
xsd:
string
;
]
)
;
sp:
where
(
[
sp:
object
[
sp:
varName
"fieldName"
^^
xsd:
string
;
]
;
sp:
predicate
<http://www.reportinghub.no/system/schema/reporting#fieldName>
;
sp:
subject
[
sp:
varName
"report"
^^
xsd:
string
;
]
;
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
;
]
;
sp:
predicate
<http://purl.org/dc/terms/date>
;
sp:
subject
[
sp:
varName
"report"
^^
xsd:
string
;
]
;
]
[
sp:
object
[
sp:
varName
"created"
^^
xsd:
string
;
]
;
sp:
predicate
<http://purl.org/dc/terms/created>
;
sp:
subject
[
sp:
varName
"report"
^^
xsd:
string
;
]
;
]
[
sp:
object
[
sp:
varName
"id"
^^
xsd:
string
;
]
;
sp:
predicate
<http://rdfs.org/sioc/ns#id>
;
sp:
subject
[
sp:
varName
"report"
^^
xsd:
string
;
]
;
]
)
;
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
arg:
date
;
spl:
valueType
xsd:
date
;
rdfs:
comment
"The xsd:date of the DPR2 to get."
^^
xsd:
string
;
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
arg:
fieldName
;
spl:
valueType
xsd:
string
;
rdfs:
comment
"The registered name of the Field."
^^
xsd:
string
;
]
;
spin:
returnType
xsd:
string
;
rdfs:
label
"id of DPR2By date and field name"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
;
.
reportspin:
idOfDPRByDateAndOwner
rdf:
type
spin:
Function
;
spin:
body
[
...
...
Please
register
or
login
to post a comment