Holger Knublauch

Logging UI progress

# baseURI: http://www.reportinghub.no/system/spin/logging
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/system/schema/logging
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix loggingspin: <http://www.reportinghub.no/system/spin/logging#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/system/spin/logging>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/system/schema/logging> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
loggingspin:Overview
rdf:type spin:SelectTemplate ;
rdfs:label "Overview"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "created"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "event"^^xsd:string
] [ sp:varName "created"^^xsd:string
] [ sp:varName "type"^^xsd:string
] [ sp:varName "initiatedBy"^^xsd:string
] [ sp:varName "onBehalfOf"^^xsd:string
] [ sp:varName "outcome"^^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 "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:graphNameNode <http://www.reportinghub.no/graph/logging>
])
] .
# baseURI: http://www.reportinghub.no/system/swp/SWP-logging
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/system/schema/logging
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/system/schema/logging#ReportDownloadEvent>
ui:instanceView
[ rdf:type ui:group ;
let:dateFrom
[ rdf:type spl:object ;
sp:arg1 spin:_this ;
sp:arg2 <http://www.reportinghub.no/system/schema/logging#dateFrom>
] ;
let:dateTo
[ rdf:type spl:object ;
sp:arg1 spin:_this ;
sp:arg2 <http://www.reportinghub.no/system/schema/logging#dateTo>
] ;
let:ownerId
[ rdf:type spl:object ;
sp:arg1 spin:_this ;
sp:arg2 <http://www.reportinghub.no/system/schema/logging#ownerId>
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "Report type "^^xsd:string
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 1 ;
ui:text [ rdf:type spl:object ;
sp:arg1 spin:_this ;
sp:arg2 <http://www.reportinghub.no/system/schema/logging#reportType>
]
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 2 ;
ui:text " from "^^xsd:string
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 3 ;
ui:text [ rdf:type ui:label ;
sp:arg1 [ sp:varName "dateFrom"^^xsd:string
]
]
] ;
ui:child
[ rdf:type ui:if ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "to "^^xsd:string
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 1 ;
ui:text [ rdf:type ui:label ;
sp:arg1 [ sp:varName "dateTo"^^xsd:string
]
]
] ;
ui:childIndex 4 ;
ui:condition
[ rdf:type sp:bound ;
sp:arg1 [ sp:varName "dateTo"^^xsd:string
]
]
] ;
ui:child
[ rdf:type ui:if ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "with owner id "^^xsd:string
] ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 1 ;
ui:text [ sp:varName "ownerId"^^xsd:string
]
] ;
ui:childIndex 5 ;
ui:condition
[ rdf:type sp:bound ;
sp:arg1 [ sp:varName "ownerId"^^xsd:string
]
]
] ;
ui:id "comments"^^xsd:string
] .
<http://www.reportinghub.no/system/swp/SWP-logging>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/system/schema/logging> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .