Holger Knublauch

Added browser for report metadata

......@@ -23,15 +23,16 @@ sioc:id
report:AbstractDR
rdf:type owl:Class ;
rdfs:comment "Abstract base class for various types of daily reports."^^xsd:string ;
rdfs:label "Daily report"^^xsd:string ;
rdfs:subClassOf foaf:Document ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty sioc:id
owl:onProperty <http://purl.org/dc/terms/created>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom xsd:dateTime ;
owl:onProperty <http://purl.org/dc/terms/created>
] ;
rdfs:subClassOf
......@@ -41,6 +42,16 @@ report:AbstractDR
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:date ;
owl:onProperty <http://purl.org/dc/terms/date>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty sioc:id
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:string ;
owl:onProperty sioc:id
] .
......@@ -58,12 +69,12 @@ report:DDR
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:xml
owl:onProperty report:wellBoreId
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty report:wellBoreId
owl:onProperty report:xml
] .
report:DPR
......
......@@ -19,103 +19,28 @@
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:rootClass
rdf:type rdf:Property ;
rdfs:label "root class"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:schemaGraph
rdf:type rdf:Property ;
rdfs:label "schema graph"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
log:LogBrowser
rdf:type ui:NodeClass ;
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 ;
rdfs:label "Log Browser"^^xsd:string ;
rdfs:subClassOf ui:Element ;
ui:prototype
[ rdf:type html:Div ;
html:id "logBrowserMainPanel"^^xsd:string ;
html:style "width:880px; height: 500px; border-width: 1px; border-style: solid; border-color: black;"^^xsd:string ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-north"^^xsd:string ;
html:id "logBrowserNorthPanel"^^xsd:string ;
html:style "height: 120px"^^xsd:string ;
ui:child
[ rdf:type ui:setContext ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-west"^^xsd:string ;
ui:child
[ rdf:type app:Header ;
arg:label "Event Type"^^xsd:string ;
ui:childIndex 0
] ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-content"^^xsd:string ;
ui:child
[ rdf:type app:Tree ;
arg:dataProvider app:ClassTreeDataProvider ;
arg:id "classTree"^^xsd:string ;
arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ;
arg:root log:LogEvent ;
ui:childIndex 0
] ;
ui:childIndex 1
] ;
ui:childIndex 0
] ;
ui:child
[ rdf:type ui:loadable ;
html:class "ui-layout-center"^^xsd:string ;
ui:child
[ rdf:type app:SearchForm ;
arg:formId "searchForm"^^xsd:string ;
arg:noBorder "true"^^xsd:boolean ;
arg:queryGraph <http://www.reportinghub.no/graph/logging> ;
arg:resourceType
[ rdf:type sp:coalesce ;
sp:arg1 [ sp:varName "resourceType"^^xsd:string
] ;
sp:arg2 log:LogEvent
] ;
arg:resultsId "results"^^xsd:string ;
ui:childIndex 0
] ;
ui:childIndex 1 ;
ui:loadId "form"^^xsd:string
] ;
ui:childIndex 0 ;
ui:queryGraph
[ rdf:type ui:graphWithImports ;
sp:arg1 <http://www.reportinghub.no/system/schema/logging>
]
] ;
ui:childIndex 0
] ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-center"^^xsd:string ;
html:style "height: 300px"^^xsd:string ;
ui:child
[ rdf:type app:Header ;
arg:label "Matching Events"^^xsd:string ;
ui:childIndex 0
] ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-content"^^xsd:string ;
html:id "results"^^xsd:string ;
ui:childIndex 1
] ;
ui:childIndex 1
] ;
ui:child
[ rdf:type html:Script ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text """$('#logBrowserMainPanel').layout({
applyDefaultStyles: true
});
$('#logBrowserNorthPanel').layout({
applyDefaultStyles: true
});"""^^xsd:string
] ;
ui:childIndex 2
[ rdf:type log:TableBrowser ;
arg:queryGraph <http://www.reportinghub.no/graph/logging> ;
arg:rootClass log:LogEvent ;
arg:schemaGraph
[ rdf:type ui:graphWithImports ;
sp:arg1 <http://www.reportinghub.no/system/schema/logging>
]
] .
......@@ -251,7 +176,7 @@ log:LogEventFormBody
ui:child
[ rdf:type app:ColumnLayout ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "500px"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type app:Object ;
arg:label "User"^^xsd:string ;
......@@ -351,6 +276,128 @@ log:ReportUploadEvent
]
] .
log:TableBrowser
rdf:type ui:NodeClass ;
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 ;
rdfs:label "Table Browser"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The graph to query (instances)"^^xsd:string ;
spl:predicate arg:queryGraph ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The root class in the search tree."^^xsd:string ;
spl:predicate arg:rootClass ;
spl:valueType rdfs:Class
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The schema graph containing the class and property definitions."^^xsd:string ;
spl:predicate arg:schemaGraph ;
spl:valueType rdfs:Resource
] ;
ui:prototype
[ rdf:type html:Div ;
html:id "tableBrowserMainPanel"^^xsd:string ;
html:style "width:880px; height: 500px; border-width: 1px; border-style: solid; border-color: black;"^^xsd:string ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-north"^^xsd:string ;
html:id "tableBrowserNorthPanel"^^xsd:string ;
html:style "height: 120px"^^xsd:string ;
ui:child
[ rdf:type ui:setContext ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-west"^^xsd:string ;
ui:child
[ rdf:type app:Header ;
arg:label "Search Type"^^xsd:string ;
ui:childIndex 0
] ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-content"^^xsd:string ;
ui:child
[ rdf:type app:Tree ;
arg:dataProvider app:ClassTreeDataProvider ;
arg:id "classTree"^^xsd:string ;
arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ;
arg:root
[ sp:varName "rootClass"^^xsd:string
] ;
ui:childIndex 0
] ;
ui:childIndex 1
] ;
ui:childIndex 0
] ;
ui:child
[ rdf:type ui:loadable ;
html:class "ui-layout-center"^^xsd:string ;
ui:child
[ rdf:type app:SearchForm ;
arg:formId "searchForm"^^xsd:string ;
arg:noBorder "true"^^xsd:boolean ;
arg:queryGraph
[ sp:varName "queryGraph"^^xsd:string
] ;
arg:resourceType
[ rdf:type sp:coalesce ;
sp:arg1 [ sp:varName "resourceType"^^xsd:string
] ;
sp:arg2 [ sp:varName "rootClass"^^xsd:string
]
] ;
arg:resultsId "results"^^xsd:string ;
ui:childIndex 0
] ;
ui:childIndex 1 ;
ui:loadId "form"^^xsd:string
] ;
ui:childIndex 0 ;
ui:queryGraph
[ sp:varName "schemaGraph"^^xsd:string
]
] ;
ui:childIndex 0
] ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-center"^^xsd:string ;
html:style "height: 300px"^^xsd:string ;
ui:child
[ rdf:type app:Header ;
arg:label "Search Results"^^xsd:string ;
ui:childIndex 0
] ;
ui:child
[ rdf:type html:Div ;
html:class "ui-layout-content"^^xsd:string ;
html:id "results"^^xsd:string ;
ui:childIndex 1
] ;
ui:childIndex 1
] ;
ui:child
[ rdf:type html:Script ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text """$('#tableBrowserMainPanel').layout({
applyDefaultStyles: true
});
$('#tableBrowserNorthPanel').layout({
applyDefaultStyles: true
});"""^^xsd:string
] ;
ui:childIndex 2
]
] .
<http://www.reportinghub.no/system/swp/SWP-logging>
rdf:type owl:Ontology ;
owl:imports <http://appschema.org> , <http://www.reportinghub.no/system/schema/logging> ;
......
# baseURI: http://www.reportinghub.no/system/swp/reporting
# imports: http://www.reportinghub.no/system/schema/reporting
# imports: http://www.reportinghub.no/system/swp/SWP-logging
@prefix app: <http://appschema.org/> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix default: <http://uispin.org/default#> .
@prefix html: <http://uispin.org/html#> .
@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 report: <http://www.reportinghub.no/system/schema/reporting#> .
@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#> .
report:AbstractDR
app:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type report:DRFormBody ;
arg:resource spin:_this
] .
report:DDR
app:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type report:wellBoreId <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type report:DRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:Object ;
arg:label "Well bore id"^^xsd:string ;
arg:predicate report:wellBoreId ;
ui:childIndex 1
]
] .
report:DPR
app:keyProperties (<http://purl.org/dc/terms/created> <http://purl.org/dc/terms/date> rdf:type report:owner <http://rdfs.org/sioc/ns#id>) ;
ui:instanceView
[ rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type report:DRFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
]
] .
report:DRFormBody
rdf:type ui:ResourceViewClass ;
rdfs:label "DRForm body"^^xsd:string ;
rdfs:subClassOf app:FormBody ;
ui:prototype
[ rdf:type html:Div ;
default:subject
[ sp:varName "resource"^^xsd:string
] ;
ui:child
[ rdf:type app:ColumnLayout ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type app:Object ;
arg:label "Created"^^xsd:string ;
arg:predicate <http://purl.org/dc/terms/created> ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:Object ;
arg:label "Date on Report"^^xsd:string ;
arg:predicate <http://purl.org/dc/terms/date> ;
ui:childIndex 1
] ;
ui:childIndex 0
]
] .
<http://www.reportinghub.no/system/swp/reporting>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/system/schema/reporting> , <http://www.reportinghub.no/system/swp/SWP-logging> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .