Holger Knublauch

Logging UI progress

1 +# baseURI: http://www.reportinghub.no/system/spin/logging
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/system/schema/logging
4 +
5 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
6 +@prefix loggingspin: <http://www.reportinghub.no/system/spin/logging#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 +@prefix sp: <http://spinrdf.org/sp#> .
11 +@prefix spin: <http://spinrdf.org/spin#> .
12 +@prefix spl: <http://spinrdf.org/spl#> .
13 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
14 +
15 +<http://www.reportinghub.no/system/spin/logging>
16 + rdf:type owl:Ontology ;
17 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/system/schema/logging> ;
18 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
19 +
20 +loggingspin:Overview
21 + rdf:type spin:SelectTemplate ;
22 + rdfs:label "Overview"^^xsd:string ;
23 + rdfs:subClassOf spin:SelectTemplates ;
24 + spin:body
25 + [ rdf:type sp:Select ;
26 + sp:orderBy ([ sp:varName "created"^^xsd:string
27 + ]) ;
28 + sp:resultVariables ([ sp:varName "event"^^xsd:string
29 + ] [ sp:varName "created"^^xsd:string
30 + ] [ sp:varName "type"^^xsd:string
31 + ] [ sp:varName "initiatedBy"^^xsd:string
32 + ] [ sp:varName "onBehalfOf"^^xsd:string
33 + ] [ sp:varName "outcome"^^xsd:string
34 + ]) ;
35 + sp:where ([ rdf:type sp:NamedGraph ;
36 + sp:elements ([ sp:object
37 + [ sp:varName "created"^^xsd:string
38 + ] ;
39 + sp:predicate <http://purl.org/dc/terms/created> ;
40 + sp:subject
41 + [ sp:varName "event"^^xsd:string
42 + ]
43 + ] [ sp:object
44 + [ sp:varName "initiatedBy"^^xsd:string
45 + ] ;
46 + sp:predicate <http://www.reportinghub.no/system/schema/logging#initiatedBy> ;
47 + sp:subject
48 + [ sp:varName "event"^^xsd:string
49 + ]
50 + ] [ sp:object
51 + [ sp:varName "onBehalfOf"^^xsd:string
52 + ] ;
53 + sp:predicate <http://www.reportinghub.no/system/schema/logging#onBehalfOf> ;
54 + sp:subject
55 + [ sp:varName "event"^^xsd:string
56 + ]
57 + ] [ sp:object
58 + [ sp:varName "outcome"^^xsd:string
59 + ] ;
60 + sp:predicate <http://www.reportinghub.no/system/schema/logging#outcome> ;
61 + sp:subject
62 + [ sp:varName "event"^^xsd:string
63 + ]
64 + ] [ sp:object
65 + [ sp:varName "class"^^xsd:string
66 + ] ;
67 + sp:predicate rdf:type ;
68 + sp:subject
69 + [ sp:varName "event"^^xsd:string
70 + ]
71 + ] [ rdf:type sp:Bind ;
72 + sp:expression
73 + [ rdf:type afn:localname ;
74 + sp:arg1 [ sp:varName "class"^^xsd:string
75 + ]
76 + ] ;
77 + sp:variable
78 + [ sp:varName "type"^^xsd:string
79 + ]
80 + ]) ;
81 + sp:graphNameNode <http://www.reportinghub.no/graph/logging>
82 + ])
83 + ] .
1 +# baseURI: http://www.reportinghub.no/system/swp/SWP-logging
2 +# imports: http://uispin.org/tui
3 +# imports: http://www.reportinghub.no/system/schema/logging
4 +
5 +@prefix let: <http://uispin.org/let#> .
6 +@prefix letrs: <http://uispin.org/letrs#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 +@prefix sp: <http://spinrdf.org/sp#> .
11 +@prefix spin: <http://spinrdf.org/spin#> .
12 +@prefix spl: <http://spinrdf.org/spl#> .
13 +@prefix ui: <http://uispin.org/ui#> .
14 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 +
16 +<http://www.reportinghub.no/system/schema/logging#ReportDownloadEvent>
17 + ui:instanceView
18 + [ rdf:type ui:group ;
19 + let:dateFrom
20 + [ rdf:type spl:object ;
21 + sp:arg1 spin:_this ;
22 + sp:arg2 <http://www.reportinghub.no/system/schema/logging#dateFrom>
23 + ] ;
24 + let:dateTo
25 + [ rdf:type spl:object ;
26 + sp:arg1 spin:_this ;
27 + sp:arg2 <http://www.reportinghub.no/system/schema/logging#dateTo>
28 + ] ;
29 + let:ownerId
30 + [ rdf:type spl:object ;
31 + sp:arg1 spin:_this ;
32 + sp:arg2 <http://www.reportinghub.no/system/schema/logging#ownerId>
33 + ] ;
34 + ui:child
35 + [ rdf:type ui:TextNode ;
36 + ui:childIndex 0 ;
37 + ui:text "Report type "^^xsd:string
38 + ] ;
39 + ui:child
40 + [ rdf:type ui:TextNode ;
41 + ui:childIndex 1 ;
42 + ui:text [ rdf:type spl:object ;
43 + sp:arg1 spin:_this ;
44 + sp:arg2 <http://www.reportinghub.no/system/schema/logging#reportType>
45 + ]
46 + ] ;
47 + ui:child
48 + [ rdf:type ui:TextNode ;
49 + ui:childIndex 2 ;
50 + ui:text " from "^^xsd:string
51 + ] ;
52 + ui:child
53 + [ rdf:type ui:TextNode ;
54 + ui:childIndex 3 ;
55 + ui:text [ rdf:type ui:label ;
56 + sp:arg1 [ sp:varName "dateFrom"^^xsd:string
57 + ]
58 + ]
59 + ] ;
60 + ui:child
61 + [ rdf:type ui:if ;
62 + ui:child
63 + [ rdf:type ui:TextNode ;
64 + ui:childIndex 0 ;
65 + ui:text "to "^^xsd:string
66 + ] ;
67 + ui:child
68 + [ rdf:type ui:TextNode ;
69 + ui:childIndex 1 ;
70 + ui:text [ rdf:type ui:label ;
71 + sp:arg1 [ sp:varName "dateTo"^^xsd:string
72 + ]
73 + ]
74 + ] ;
75 + ui:childIndex 4 ;
76 + ui:condition
77 + [ rdf:type sp:bound ;
78 + sp:arg1 [ sp:varName "dateTo"^^xsd:string
79 + ]
80 + ]
81 + ] ;
82 + ui:child
83 + [ rdf:type ui:if ;
84 + ui:child
85 + [ rdf:type ui:TextNode ;
86 + ui:childIndex 0 ;
87 + ui:text "with owner id "^^xsd:string
88 + ] ;
89 + ui:child
90 + [ rdf:type ui:TextNode ;
91 + ui:childIndex 1 ;
92 + ui:text [ sp:varName "ownerId"^^xsd:string
93 + ]
94 + ] ;
95 + ui:childIndex 5 ;
96 + ui:condition
97 + [ rdf:type sp:bound ;
98 + sp:arg1 [ sp:varName "ownerId"^^xsd:string
99 + ]
100 + ]
101 + ] ;
102 + ui:id "comments"^^xsd:string
103 + ] .
104 +
105 +<http://www.reportinghub.no/system/swp/SWP-logging>
106 + rdf:type owl:Ontology ;
107 + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/system/schema/logging> ;
108 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .