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
chinmaytq
2013-05-08 16:26:46 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e7f47183a8a595a071bb8fd4e2688fa9fd7d1fb
1e7f4718
1 parent
52c7cb92
added a sping select template to retrieve processing time for report events.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
0 deletions
www.reportinghub.no/system/spin/SPIN-logging.spin.ttl
www.reportinghub.no/system/spin/SPIN-logging.spin.ttl
View file @
1e7f471
...
...
@@ -12,6 +12,18 @@
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://spinrdf.org/arg#endDateTime>
rdf:
type
rdf:
Property
;
rdfs:
subPropertyOf
sp:
arg
.
<http://spinrdf.org/arg#reportEventType>
rdf:
type
rdf:
Property
;
rdfs:
subPropertyOf
sp:
arg
.
<http://spinrdf.org/arg#startDateTime>
rdf:
type
rdf:
Property
;
rdfs:
subPropertyOf
sp:
arg
.
<http://www.reportinghub.no/system/spin/logging>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/system/schema/logging>
;
...
...
@@ -86,3 +98,70 @@ loggingspin:Overview
sp:
graphNameNode
<http://www.reportinghub.no/graph/logging>
])
]
.
loggingspin:
processingTimeByDateEventType
rdf:
type
spin:
SelectTemplate
;
rdfs:
subClassOf
spin:
SelectTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"time"
^^
xsd:
string
]
[
sp:
varName
"createTime"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
[
sp:
varName
"reportEventType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"reportEvent"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"time"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/system/schema/logging#processingTime>
;
sp:
subject
[
sp:
varName
"reportEvent"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"createTime"
^^
xsd:
string
]
;
sp:
predicate
<http://purl.org/dc/terms/created>
;
sp:
subject
[
sp:
varName
"reportEvent"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
and
;
sp:
arg1
[
rdf:
type
sp:
ge
;
sp:
arg1
[
sp:
varName
"createTime"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"startDateTime"
^^
xsd:
string
]
]
;
sp:
arg2
[
rdf:
type
sp:
le
;
sp:
arg1
[
sp:
varName
"createTime"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"endDateTime"
^^
xsd:
string
]
]
]
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The endDateTime for which the processing time is to be extracted."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#endDateTime>
;
spl:
valueType
xsd:
dateTime
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The start dateTime for the which the processing time is to be extracted."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#startDateTime>
;
spl:
valueType
xsd:
dateTime
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The reportEventType for which the processingTime is to be extracted."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#reportEventType>
;
spl:
valueType
rdfs:
Resource
]
;
spin:
returnType
xsd:
integer
.
...
...
Please
register
or
login
to post a comment