Holger Knublauch

Added browser for report metadata

...@@ -23,15 +23,16 @@ sioc:id ...@@ -23,15 +23,16 @@ sioc:id
23 report:AbstractDR 23 report:AbstractDR
24 rdf:type owl:Class ; 24 rdf:type owl:Class ;
25 rdfs:comment "Abstract base class for various types of daily reports."^^xsd:string ; 25 rdfs:comment "Abstract base class for various types of daily reports."^^xsd:string ;
26 + rdfs:label "Daily report"^^xsd:string ;
26 rdfs:subClassOf foaf:Document ; 27 rdfs:subClassOf foaf:Document ;
27 rdfs:subClassOf 28 rdfs:subClassOf
28 [ rdf:type owl:Restriction ; 29 [ rdf:type owl:Restriction ;
29 owl:cardinality "1"^^xsd:nonNegativeInteger ; 30 owl:cardinality "1"^^xsd:nonNegativeInteger ;
30 - owl:onProperty sioc:id 31 + owl:onProperty <http://purl.org/dc/terms/created>
31 ] ; 32 ] ;
32 rdfs:subClassOf 33 rdfs:subClassOf
33 [ rdf:type owl:Restriction ; 34 [ rdf:type owl:Restriction ;
34 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 35 + owl:allValuesFrom xsd:dateTime ;
35 owl:onProperty <http://purl.org/dc/terms/created> 36 owl:onProperty <http://purl.org/dc/terms/created>
36 ] ; 37 ] ;
37 rdfs:subClassOf 38 rdfs:subClassOf
...@@ -41,6 +42,16 @@ report:AbstractDR ...@@ -41,6 +42,16 @@ report:AbstractDR
41 ] ; 42 ] ;
42 rdfs:subClassOf 43 rdfs:subClassOf
43 [ rdf:type owl:Restriction ; 44 [ rdf:type owl:Restriction ;
45 + owl:allValuesFrom xsd:date ;
46 + owl:onProperty <http://purl.org/dc/terms/date>
47 + ] ;
48 + rdfs:subClassOf
49 + [ rdf:type owl:Restriction ;
50 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
51 + owl:onProperty sioc:id
52 + ] ;
53 + rdfs:subClassOf
54 + [ rdf:type owl:Restriction ;
44 owl:allValuesFrom xsd:string ; 55 owl:allValuesFrom xsd:string ;
45 owl:onProperty sioc:id 56 owl:onProperty sioc:id
46 ] . 57 ] .
...@@ -58,12 +69,12 @@ report:DDR ...@@ -58,12 +69,12 @@ report:DDR
58 rdfs:subClassOf 69 rdfs:subClassOf
59 [ rdf:type owl:Restriction ; 70 [ rdf:type owl:Restriction ;
60 owl:cardinality "1"^^xsd:nonNegativeInteger ; 71 owl:cardinality "1"^^xsd:nonNegativeInteger ;
61 - owl:onProperty report:xml 72 + owl:onProperty report:wellBoreId
62 ] ; 73 ] ;
63 rdfs:subClassOf 74 rdfs:subClassOf
64 [ rdf:type owl:Restriction ; 75 [ rdf:type owl:Restriction ;
65 owl:cardinality "1"^^xsd:nonNegativeInteger ; 76 owl:cardinality "1"^^xsd:nonNegativeInteger ;
66 - owl:onProperty report:wellBoreId 77 + owl:onProperty report:xml
67 ] . 78 ] .
68 79
69 report:DPR 80 report:DPR
......
...@@ -19,103 +19,28 @@ ...@@ -19,103 +19,28 @@
19 @prefix ui: <http://uispin.org/ui#> . 19 @prefix ui: <http://uispin.org/ui#> .
20 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 20 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
21 21
22 +arg:rootClass
23 + rdf:type rdf:Property ;
24 + rdfs:label "root class"^^xsd:string ;
25 + rdfs:subPropertyOf sp:arg .
26 +
27 +arg:schemaGraph
28 + rdf:type rdf:Property ;
29 + rdfs:label "schema graph"^^xsd:string ;
30 + rdfs:subPropertyOf sp:arg .
31 +
22 log:LogBrowser 32 log:LogBrowser
23 rdf:type ui:NodeClass ; 33 rdf:type ui:NodeClass ;
24 rdfs:comment "A complex element with a Tree of log event classes in the upper left corner, a search form in the upper center area, and a grid of results in the main center area."^^xsd:string ; 34 rdfs:comment "A complex element with a Tree of log event classes in the upper left corner, a search form in the upper center area, and a grid of results in the main center area."^^xsd:string ;
25 rdfs:label "Log Browser"^^xsd:string ; 35 rdfs:label "Log Browser"^^xsd:string ;
26 rdfs:subClassOf ui:Element ; 36 rdfs:subClassOf ui:Element ;
27 ui:prototype 37 ui:prototype
28 - [ rdf:type html:Div ; 38 + [ rdf:type log:TableBrowser ;
29 - html:id "logBrowserMainPanel"^^xsd:string ; 39 + arg:queryGraph <http://www.reportinghub.no/graph/logging> ;
30 - html:style "width:880px; height: 500px; border-width: 1px; border-style: solid; border-color: black;"^^xsd:string ; 40 + arg:rootClass log:LogEvent ;
31 - ui:child 41 + arg:schemaGraph
32 - [ rdf:type html:Div ; 42 + [ rdf:type ui:graphWithImports ;
33 - html:class "ui-layout-north"^^xsd:string ; 43 + sp:arg1 <http://www.reportinghub.no/system/schema/logging>
34 - html:id "logBrowserNorthPanel"^^xsd:string ;
35 - html:style "height: 120px"^^xsd:string ;
36 - ui:child
37 - [ rdf:type ui:setContext ;
38 - ui:child
39 - [ rdf:type html:Div ;
40 - html:class "ui-layout-west"^^xsd:string ;
41 - ui:child
42 - [ rdf:type app:Header ;
43 - arg:label "Event Type"^^xsd:string ;
44 - ui:childIndex 0
45 - ] ;
46 - ui:child
47 - [ rdf:type html:Div ;
48 - html:class "ui-layout-content"^^xsd:string ;
49 - ui:child
50 - [ rdf:type app:Tree ;
51 - arg:dataProvider app:ClassTreeDataProvider ;
52 - arg:id "classTree"^^xsd:string ;
53 - arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ;
54 - arg:root log:LogEvent ;
55 - ui:childIndex 0
56 - ] ;
57 - ui:childIndex 1
58 - ] ;
59 - ui:childIndex 0
60 - ] ;
61 - ui:child
62 - [ rdf:type ui:loadable ;
63 - html:class "ui-layout-center"^^xsd:string ;
64 - ui:child
65 - [ rdf:type app:SearchForm ;
66 - arg:formId "searchForm"^^xsd:string ;
67 - arg:noBorder "true"^^xsd:boolean ;
68 - arg:queryGraph <http://www.reportinghub.no/graph/logging> ;
69 - arg:resourceType
70 - [ rdf:type sp:coalesce ;
71 - sp:arg1 [ sp:varName "resourceType"^^xsd:string
72 - ] ;
73 - sp:arg2 log:LogEvent
74 - ] ;
75 - arg:resultsId "results"^^xsd:string ;
76 - ui:childIndex 0
77 - ] ;
78 - ui:childIndex 1 ;
79 - ui:loadId "form"^^xsd:string
80 - ] ;
81 - ui:childIndex 0 ;
82 - ui:queryGraph
83 - [ rdf:type ui:graphWithImports ;
84 - sp:arg1 <http://www.reportinghub.no/system/schema/logging>
85 - ]
86 - ] ;
87 - ui:childIndex 0
88 - ] ;
89 - ui:child
90 - [ rdf:type html:Div ;
91 - html:class "ui-layout-center"^^xsd:string ;
92 - html:style "height: 300px"^^xsd:string ;
93 - ui:child
94 - [ rdf:type app:Header ;
95 - arg:label "Matching Events"^^xsd:string ;
96 - ui:childIndex 0
97 - ] ;
98 - ui:child
99 - [ rdf:type html:Div ;
100 - html:class "ui-layout-content"^^xsd:string ;
101 - html:id "results"^^xsd:string ;
102 - ui:childIndex 1
103 - ] ;
104 - ui:childIndex 1
105 - ] ;
106 - ui:child
107 - [ rdf:type html:Script ;
108 - ui:child
109 - [ rdf:type ui:TextNode ;
110 - ui:childIndex 0 ;
111 - ui:text """$('#logBrowserMainPanel').layout({
112 - applyDefaultStyles: true
113 - });
114 - $('#logBrowserNorthPanel').layout({
115 - applyDefaultStyles: true
116 - });"""^^xsd:string
117 - ] ;
118 - ui:childIndex 2
119 ] 44 ]
120 ] . 45 ] .
121 46
...@@ -251,7 +176,7 @@ log:LogEventFormBody ...@@ -251,7 +176,7 @@ log:LogEventFormBody
251 ui:child 176 ui:child
252 [ rdf:type app:ColumnLayout ; 177 [ rdf:type app:ColumnLayout ;
253 arg:colWidths "50%,50%"^^xsd:string ; 178 arg:colWidths "50%,50%"^^xsd:string ;
254 - arg:width "500px"^^xsd:string ; 179 + arg:width "600px"^^xsd:string ;
255 ui:child 180 ui:child
256 [ rdf:type app:Object ; 181 [ rdf:type app:Object ;
257 arg:label "User"^^xsd:string ; 182 arg:label "User"^^xsd:string ;
...@@ -351,6 +276,128 @@ log:ReportUploadEvent ...@@ -351,6 +276,128 @@ log:ReportUploadEvent
351 ] 276 ]
352 ] . 277 ] .
353 278
279 +log:TableBrowser
280 + rdf:type ui:NodeClass ;
281 + rdfs:comment "A complex element with a Tree of log event classes in the upper left corner, a search form in the upper center area, and a grid of results in the main center area. The browser can be configured by query graph and the root of the query class tree."^^xsd:string ;
282 + rdfs:label "Table Browser"^^xsd:string ;
283 + rdfs:subClassOf ui:Element ;
284 + spin:constraint
285 + [ rdf:type spl:Argument ;
286 + rdfs:comment "The graph to query (instances)"^^xsd:string ;
287 + spl:predicate arg:queryGraph ;
288 + spl:valueType rdfs:Resource
289 + ] ;
290 + spin:constraint
291 + [ rdf:type spl:Argument ;
292 + rdfs:comment "The root class in the search tree."^^xsd:string ;
293 + spl:predicate arg:rootClass ;
294 + spl:valueType rdfs:Class
295 + ] ;
296 + spin:constraint
297 + [ rdf:type spl:Argument ;
298 + rdfs:comment "The schema graph containing the class and property definitions."^^xsd:string ;
299 + spl:predicate arg:schemaGraph ;
300 + spl:valueType rdfs:Resource
301 + ] ;
302 + ui:prototype
303 + [ rdf:type html:Div ;
304 + html:id "tableBrowserMainPanel"^^xsd:string ;
305 + html:style "width:880px; height: 500px; border-width: 1px; border-style: solid; border-color: black;"^^xsd:string ;
306 + ui:child
307 + [ rdf:type html:Div ;
308 + html:class "ui-layout-north"^^xsd:string ;
309 + html:id "tableBrowserNorthPanel"^^xsd:string ;
310 + html:style "height: 120px"^^xsd:string ;
311 + ui:child
312 + [ rdf:type ui:setContext ;
313 + ui:child
314 + [ rdf:type html:Div ;
315 + html:class "ui-layout-west"^^xsd:string ;
316 + ui:child
317 + [ rdf:type app:Header ;
318 + arg:label "Search Type"^^xsd:string ;
319 + ui:childIndex 0
320 + ] ;
321 + ui:child
322 + [ rdf:type html:Div ;
323 + html:class "ui-layout-content"^^xsd:string ;
324 + ui:child
325 + [ rdf:type app:Tree ;
326 + arg:dataProvider app:ClassTreeDataProvider ;
327 + arg:id "classTree"^^xsd:string ;
328 + arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ;
329 + arg:root
330 + [ sp:varName "rootClass"^^xsd:string
331 + ] ;
332 + ui:childIndex 0
333 + ] ;
334 + ui:childIndex 1
335 + ] ;
336 + ui:childIndex 0
337 + ] ;
338 + ui:child
339 + [ rdf:type ui:loadable ;
340 + html:class "ui-layout-center"^^xsd:string ;
341 + ui:child
342 + [ rdf:type app:SearchForm ;
343 + arg:formId "searchForm"^^xsd:string ;
344 + arg:noBorder "true"^^xsd:boolean ;
345 + arg:queryGraph
346 + [ sp:varName "queryGraph"^^xsd:string
347 + ] ;
348 + arg:resourceType
349 + [ rdf:type sp:coalesce ;
350 + sp:arg1 [ sp:varName "resourceType"^^xsd:string
351 + ] ;
352 + sp:arg2 [ sp:varName "rootClass"^^xsd:string
353 + ]
354 + ] ;
355 + arg:resultsId "results"^^xsd:string ;
356 + ui:childIndex 0
357 + ] ;
358 + ui:childIndex 1 ;
359 + ui:loadId "form"^^xsd:string
360 + ] ;
361 + ui:childIndex 0 ;
362 + ui:queryGraph
363 + [ sp:varName "schemaGraph"^^xsd:string
364 + ]
365 + ] ;
366 + ui:childIndex 0
367 + ] ;
368 + ui:child
369 + [ rdf:type html:Div ;
370 + html:class "ui-layout-center"^^xsd:string ;
371 + html:style "height: 300px"^^xsd:string ;
372 + ui:child
373 + [ rdf:type app:Header ;
374 + arg:label "Search Results"^^xsd:string ;
375 + ui:childIndex 0
376 + ] ;
377 + ui:child
378 + [ rdf:type html:Div ;
379 + html:class "ui-layout-content"^^xsd:string ;
380 + html:id "results"^^xsd:string ;
381 + ui:childIndex 1
382 + ] ;
383 + ui:childIndex 1
384 + ] ;
385 + ui:child
386 + [ rdf:type html:Script ;
387 + ui:child
388 + [ rdf:type ui:TextNode ;
389 + ui:childIndex 0 ;
390 + ui:text """$('#tableBrowserMainPanel').layout({
391 + applyDefaultStyles: true
392 + });
393 + $('#tableBrowserNorthPanel').layout({
394 + applyDefaultStyles: true
395 + });"""^^xsd:string
396 + ] ;
397 + ui:childIndex 2
398 + ]
399 + ] .
400 +
354 <http://www.reportinghub.no/system/swp/SWP-logging> 401 <http://www.reportinghub.no/system/swp/SWP-logging>
355 rdf:type owl:Ontology ; 402 rdf:type owl:Ontology ;
356 owl:imports <http://appschema.org> , <http://www.reportinghub.no/system/schema/logging> ; 403 owl:imports <http://appschema.org> , <http://www.reportinghub.no/system/schema/logging> ;
......
1 +# baseURI: http://www.reportinghub.no/system/swp/reporting
2 +# imports: http://www.reportinghub.no/system/schema/reporting
3 +# imports: http://www.reportinghub.no/system/swp/SWP-logging
4 +
5 +@prefix app: <http://appschema.org/> .
6 +@prefix arg: <http://spinrdf.org/arg#> .
7 +@prefix default: <http://uispin.org/default#> .
8 +@prefix html: <http://uispin.org/html#> .
9 +@prefix let: <http://uispin.org/let#> .
10 +@prefix letrs: <http://uispin.org/letrs#> .
11 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
12 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
13 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14 +@prefix report: <http://www.reportinghub.no/system/schema/reporting#> .
15 +@prefix sp: <http://spinrdf.org/sp#> .
16 +@prefix spin: <http://spinrdf.org/spin#> .
17 +@prefix spl: <http://spinrdf.org/spl#> .
18 +@prefix ui: <http://uispin.org/ui#> .
19 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
20 +
21 +report:AbstractDR
22 + app:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type <http://rdfs.org/sioc/ns#id>) ;
23 + ui:instanceView
24 + [ rdf:type report:DRFormBody ;
25 + arg:resource spin:_this
26 + ] .
27 +
28 +report:DDR
29 + app:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type report:wellBoreId <http://rdfs.org/sioc/ns#id>) ;
30 + ui:instanceView
31 + [ rdf:type ui:group ;
32 + default:subject spin:_this ;
33 + ui:child
34 + [ rdf:type report:DRFormBody ;
35 + arg:resource spin:_this ;
36 + ui:childIndex 0
37 + ] ;
38 + ui:child
39 + [ rdf:type app:Object ;
40 + arg:label "Well bore id"^^xsd:string ;
41 + arg:predicate report:wellBoreId ;
42 + ui:childIndex 1
43 + ]
44 + ] .
45 +
46 +report:DPR
47 + app:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type report:owner <http://rdfs.org/sioc/ns#id>) ;
48 + ui:instanceView
49 + [ rdf:type ui:group ;
50 + default:subject spin:_this ;
51 + ui:child
52 + [ rdf:type report:DRFormBody ;
53 + arg:resource spin:_this ;
54 + ui:childIndex 0
55 + ]
56 + ] .
57 +
58 +report:DRFormBody
59 + rdf:type ui:ResourceViewClass ;
60 + rdfs:label "DRForm body"^^xsd:string ;
61 + rdfs:subClassOf app:FormBody ;
62 + ui:prototype
63 + [ rdf:type html:Div ;
64 + default:subject
65 + [ sp:varName "resource"^^xsd:string
66 + ] ;
67 + ui:child
68 + [ rdf:type app:ColumnLayout ;
69 + arg:colWidths "50%,50%"^^xsd:string ;
70 + arg:width "600px"^^xsd:string ;
71 + ui:child
72 + [ rdf:type app:Object ;
73 + arg:label "Created"^^xsd:string ;
74 + arg:predicate <http://purl.org/dc/terms/created> ;
75 + ui:childIndex 0
76 + ] ;
77 + ui:child
78 + [ rdf:type app:Object ;
79 + arg:label "Date on Report"^^xsd:string ;
80 + arg:predicate <http://purl.org/dc/terms/date> ;
81 + ui:childIndex 1
82 + ] ;
83 + ui:childIndex 0
84 + ]
85 + ] .
86 +
87 +<http://www.reportinghub.no/system/swp/reporting>
88 + rdf:type owl:Ontology ;
89 + owl:imports <http://www.reportinghub.no/system/schema/reporting> , <http://www.reportinghub.no/system/swp/SWP-logging> ;
90 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .