Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2011-12-28 15:49:06 +1000
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
a717a7a5bdff6c646294a1e96ae9551e934c9dca
a717a7a5
2 parents
001c6bd1
faa64c91
EPIM log search progress
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
46 deletions
appschema.org/app.ui.ttl
appschema.org/app.www/app.css
appschema.org/app.www/app.js
appschema.org/imports/searchResultsGrid.uispin.html
www.reportinghub.no/examples/system/exampleLogEvents.ttl
www.reportinghub.no/system/swp/SWP-logging.ui.ttl
appschema.org/app.ui.ttl
View file @
a717a7a
This diff is collapsed. Click to expand it.
appschema.org/app.www/app.css
View file @
a717a7a
...
...
@@ -148,8 +148,8 @@ a:active.appFormHeaderLink {
background-color
:
darkGray
;
color
:
white
;
padding-left
:
4px
;
padding-top
:
1
px
;
padding-bottom
:
1
px
;
padding-top
:
2
px
;
padding-bottom
:
2
px
;
padding-right
:
4px
;
}
...
...
appschema.org/app.www/app.js
View file @
a717a7a
...
...
@@ -185,17 +185,19 @@ function appLoadEditForm(parentId, resourceType) {
* @param oldElementId the id of the element to replace - this will be the id of the new form.
* @param resultsId the id of the element to display the search results
* @param resourceTypeURI the type of resources to search for
* @param queryGraphURI the query graph URI
* @param queryGraphURI the (instance) query graph URI
* @param schemaGraphURI the URI of the schema graph
* @param noBorder (optional) to suppress the border
*/
function
appLoadSearchForm
(
oldElementId
,
resultsId
,
resourceTypeURI
,
queryGraphURI
,
noBorder
)
{
function
appLoadSearchForm
(
oldElementId
,
resultsId
,
resourceTypeURI
,
queryGraphURI
,
schemaGraphURI
,
noBorder
)
{
var
data
=
{
formId
:
oldElementId
,
resourceType
:
'<'
+
resourceTypeURI
+
'>'
,
resultsId
:
resultsId
,
_base
:
'<'
+
queryGraphURI
+
'>'
,
_viewClass
:
'app:SearchForm'
,
_snippet
:
true
formId
:
oldElementId
,
resourceType
:
'<'
+
resourceTypeURI
+
'>'
,
resultsId
:
resultsId
,
queryGraph
:
'<'
+
queryGraphURI
+
'>'
,
_base
:
'<'
+
schemaGraphURI
+
'>'
,
_viewClass
:
'app:SearchForm'
,
_snippet
:
true
};
if
(
noBorder
)
{
data
.
noBorder
=
true
;
...
...
@@ -211,15 +213,13 @@ function appLoadSearchForm(oldElementId, resultsId, resourceTypeURI, queryGraphU
* a given id. Will replace the content of a given target element.
* @param formId the form id
* @param targetId the target id
* @param queryGraphURI the current query graph
* @returns false
*/
function
appLoadSearchResultsGrid
(
formId
,
targetId
,
queryGraphURI
)
{
function
appLoadSearchResultsGrid
(
formId
,
targetId
)
{
var
params
=
$
(
'#'
+
formId
).
serialize
();
var
escaped
=
'¶ms='
+
escape
(
params
);
$
.
get
(
uispinServlet
+
'?_viewClass=app:SearchResultsGrid&_snippet=true&'
+
'_base='
+
escape
(
'<'
+
queryGraphURI
+
'>'
)
+
'&'
+
params
+
escaped
,
function
(
data
)
{
params
+
escaped
,
function
(
data
)
{
$
(
'#'
+
targetId
).
html
(
data
);
});
return
false
;
...
...
appschema.org/imports/searchResultsGrid.uispin.html
View file @
a717a7a
...
...
@@ -14,7 +14,7 @@
SELECT ?colName
WHERE {
GRAPH ui:graph {
?keyProperties
(rdf:rest*)/rdf:first
?keyProperty .
?keyProperties
list:member
?keyProperty .
BIND (spif:titleCase(ui:label(?keyProperty)) AS ?colName) .
}
}
...
...
@@ -32,7 +32,7 @@
SELECT ?varName
WHERE {
GRAPH ui:graph {
?keyProperties
(rdf:rest*)/rdf:first
?property .
?keyProperties
list:member
?property .
BIND (app:keyPropertyVarName(?property) AS ?varName) .
}
}
...
...
www.reportinghub.no/examples/system/exampleLogEvents.ttl
View file @
a717a7a
# baseURI: http://www.reportinghub.no/
examples/system/exampleLogEvents
# baseURI: http://www.reportinghub.no/
graph/logging
# imports: http://www.reportinghub.no/system/schema/logging
@prefix
:
<http://www.reportinghub.no/
examples/system/exampleLogEvents
#>
.
@prefix
:
<http://www.reportinghub.no/
graph/logging
#>
.
@prefix
dcterms:
<http://purl.org/dc/terms/>
.
@prefix
log:
<http://www.reportinghub.no/system/schema/logging#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
...
...
@@ -11,7 +11,7 @@
@prefix
sioc:
<http://rdfs.org/sioc/ns#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/
examples/system/exampleLogEvents
>
<http://www.reportinghub.no/
graph/logging
>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/system/schema/logging>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
www.reportinghub.no/system/swp/SWP-logging.ui.ttl
View file @
a717a7a
...
...
@@ -22,27 +22,27 @@
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
b
rowser"
^^
xsd:
string
;
rdfs:
label
"Log
B
rowser"
^^
xsd:
string
;
rdfs:
subClassOf
ui:
Element
;
ui:
prototype
[
rdf:
type
html:
Div
;
html:
style
"width:9
5
0px"
^^
xsd:
string
;
html:
style
"width:9
0
0px"
^^
xsd:
string
;
ui:
child
[
rdf:
type
app:
VSplitLayout
;
arg:
height
"500px"
^^
xsd:
string
;
arg:
topHeight
"30%"
^^
xsd:
string
;
ui:
child
[
rdf:
type
app:
HSplitLayout
;
arg:
height
"200px"
^^
xsd:
string
;
[
rdf:
type
ui:
setContext
;
ui:
child
[
rdf:
type
html:
Div
;
[
rdf:
type
app:
HSplitLayout
;
arg:
height
"200px"
^^
xsd:
string
;
ui:
child
[
rdf:
type
app:
Header
;
arg:
label
"Event Type"
^^
xsd:
string
;
ui:
childIndex
0
]
;
ui:
child
[
rdf:
type
ui:
setContext
;
[
rdf:
type
html:
Div
;
ui:
child
[
rdf:
type
app:
Header
;
arg:
label
"Event Type"
^^
xsd:
string
;
ui:
childIndex
0
]
;
ui:
child
[
rdf:
type
app:
Tree
;
arg:
dataProvider
log:
LogEventClassTreeDataProvider
;
...
...
@@ -51,31 +51,33 @@ log:LogBrowser
[
rdf:
type
app:
createLoadSearchFormCall
;
arg:
noBorder
"true"
^^
xsd:
boolean
;
arg:
oldElementId
"searchForm"
;
arg:
queryGraph
<http://www.reportinghub.no/graph/logging>
;
arg:
resourceTypeCode
"resource"
;
arg:
resultsId
"results"
]
;
ui:
childIndex
0
ui:
childIndex
1
]
;
ui:
childIndex
1
;
ui:
queryGraph
<http://www.reportinghub.no/system/schema/logging>
ui:
childIndex
0
]
;
ui:
childIndex
0
]
;
ui:
child
[
rdf:
type
html:
Div
;
html:
id
"formHolder"
^^
xsd:
string
;
ui:
child
[
rdf:
type
app:
SearchForm
;
arg:
formId
"searchForm"
^^
xsd:
string
;
arg:
noBorder
"true"
^^
xsd:
boolean
;
arg:
resourceType
log:
LogEvent
;
arg:
resultsId
"results"
^^
xsd:
string
;
ui:
childIndex
0
[
rdf:
type
html:
Div
;
html:
id
"formHolder"
^^
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
log:
LogEvent
;
arg:
resultsId
"results"
^^
xsd:
string
;
ui:
childIndex
0
]
;
ui:
childIndex
1
]
;
ui:
childIndex
1
ui:
childIndex
0
]
;
ui:
childIndex
0
ui:
childIndex
0
;
ui:
queryGraph
<http://www.reportinghub.no/system/schema/logging>
]
;
ui:
child
[
rdf:
type
html:
Div
;
...
...
Please
register
or
login
to post a comment