Holger Knublauch

Turned log query to AG native

......@@ -23,7 +23,11 @@ loggingspin:Overview
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "created"^^xsd:string
sp:limit "100"^^xsd:long ;
sp:orderBy ([ rdf:type sp:Desc ;
sp:expression
[ sp:varName "created"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "event"^^xsd:string
] [ sp:varName "created"^^xsd:string
......@@ -32,49 +36,43 @@ loggingspin:Overview
] [ sp:varName "onBehalfOf"^^xsd:string
] [ sp:varName "outcome"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "created"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/terms/created> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "initiatedBy"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#initiatedBy> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "onBehalfOf"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#onBehalfOf> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "outcome"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#outcome> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "class"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "class"^^xsd:string
]
] ;
sp:variable
[ sp:varName "type"^^xsd:string
]
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "created"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/terms/created> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "initiatedBy"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#initiatedBy> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "onBehalfOf"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#onBehalfOf> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "outcome"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/logging#outcome> ;
sp:subject
[ sp:varName "event"^^xsd:string
]
] [ sp:object
[ sp:varName "type"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "event"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/graph/logging>
])
] .
......