Holger Knublauch

Added resource view dialogs

......@@ -2,6 +2,7 @@
# imports: http://spinrdf.org/spl
# imports: http://uispin.org/ui
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix app: <http://appschema.org/> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
......@@ -248,6 +249,45 @@ app:googleMapsAPIKey
] ;
spin:private "true"^^xsd:boolean .
app:hasPrefix
rdf:type spin:Function ;
rdfs:comment "Checks if the current query model defines a prefix for a given URI resource."^^xsd:string ;
rdfs:label "has prefix"^^xsd:string ;
rdfs:subClassOf app:Functions ;
spin:body
[ rdf:type sp:Ask ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:namespace ;
sp:arg1 [ sp:varName "resource"^^xsd:string
]
] ;
sp:variable
[ sp:varName "namespace"^^xsd:string
]
] [ sp:object
[ sp:varName "prefix"^^xsd:string
] ;
sp:predicate spif:prefix ;
sp:subject
[ sp:varName "namespace"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:bound ;
sp:arg1 [ sp:varName "prefix"^^xsd:string
]
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The resource to check for a prefix."^^xsd:string ;
spl:predicate arg:resource ;
spl:valueType rdfs:Resource
] ;
spin:returnType xsd:boolean .
app:imageURLSuffix
rdf:type rdf:Property ;
rdfs:comment "Lists the registered file suffixes that are regarded to be image files."^^xsd:string ;
......
......@@ -3209,7 +3209,16 @@ app:ObjectViewerRow
]
] ;
ui:addNamespace
[ rdf:type sp:if ;
sp:arg1 [ rdf:type app:hasPrefix ;
arg:resource
[ sp:varName "predicate"^^xsd:string
]
] ;
sp:arg2 [ sp:varName "predicate"^^xsd:string
] ;
sp:arg3 [ sp:varName "none"^^xsd:string
]
] ;
ui:child
[ rdf:type app:ObjectViewer ;
......@@ -4066,12 +4075,18 @@ app:ResourceViewDialog
]
] ;
ui:child
[ rdf:type ui:setContext ;
ui:child
[ rdf:type ui:resourceView ;
ui:childIndex 0 ;
ui:resource
[ sp:varName "resource"^^xsd:string
]
] ;
ui:childIndex 0 ;
ui:varName "noLinks"^^xsd:string ;
ui:varValue "true"^^xsd:boolean
] ;
ui:childIndex 0
] ;
ui:childIndex 0 ;
......@@ -6947,6 +6962,29 @@ app:createLink
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ui:contextValue ;
sp:arg1 "noLinks"
] ;
sp:variable
[ sp:varName "noLinks"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:or ;
sp:arg1 [ rdf:type sp:not ;
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "noLinks"^^xsd:string
]
]
] ;
sp:arg2 [ rdf:type sp:ne ;
sp:arg1 [ sp:varName "noLinks"^^xsd:string
] ;
sp:arg2 "true"^^xsd:boolean
]
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ui:contextValue ;
sp:arg1 "createLinkFunction"
] ;
sp:variable
......
# baseURI: http://www.reportinghub.no/swp/rh
# imports: http://appschema.org
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
......@@ -20,6 +21,11 @@
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://spinrdf.org/arg#schemaGraph>
rdf:type rdf:Property ;
rdfs:label "schema graph"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://spinrdf.org/arg#value>
rdf:type rdf:Property ;
rdfs:label "value"^^xsd:string ;
......@@ -28,9 +34,92 @@
<http://www.reportinghub.no/swp/rh>
rdf:type owl:Ontology ;
rdfs:comment "SWP components and definitions for ReportingHub."^^xsd:string ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:imports <http://appschema.org> , <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "0.1.0"^^xsd:string .
rhswp:AGResourceViewDialog
rdf:type ui:NodeClass ;
rdfs:comment "Overloaded to select a different query graph that caches all relevant triples in memory."^^xsd:string ;
rdfs:label "AG Resource view dialog"^^xsd:string ;
rdfs:subClassOf <http://appschema.org/ResourceViewDialog> ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The query graph."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#queryGraph> ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The schema graph."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#schemaGraph> ;
spl:valueType rdfs:Resource
] ;
ui:prototype
[ rdf:type ui:loadable ;
ui:child
[ rdf:type ui:if ;
ui:child
[ rdf:type ui:setContext ;
ui:child
[ rdf:type html:Div ;
html:id [ rdf:type ui:concat ;
sp:arg1 "div-"^^xsd:string ;
sp:arg2 [ sp:varName "loadId"^^xsd:string
]
] ;
html:title
[ rdf:type ui:label ;
sp:arg1 [ sp:varName "resource"^^xsd:string
]
] ;
ui:child
[ rdf:type ui:setContext ;
ui:child
[ rdf:type ui:resourceView ;
ui:childIndex 0 ;
ui:resource
[ sp:varName "resource"^^xsd:string
]
] ;
ui:childIndex 0 ;
ui:varName "noLinks"^^xsd:string ;
ui:varValue "true"^^xsd:boolean
] ;
ui:childIndex 0
] ;
ui:childIndex 0 ;
ui:queryGraph
[ rdf:type ui:concat ;
sp:arg1 [ sp:varName "queryGraph"^^xsd:string
] ;
sp:arg2 "_inMemory?resource="^^xsd:string ;
sp:arg3 [ rdf:type ui:encodeURL ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 [ sp:varName "resource"^^xsd:string
]
]
] ;
sp:arg4 "&schema="^^xsd:string ;
sp:arg5 [ rdf:type ui:encodeURL ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 [ sp:varName "schemaGraph"^^xsd:string
]
]
]
]
] ;
ui:childIndex 0 ;
ui:condition
[ rdf:type sp:bound ;
sp:arg1 [ sp:varName "resource"^^xsd:string
]
]
] ;
ui:loadId
[ sp:varName "loadId"^^xsd:string
]
] .
rhswp:Elements
rdf:type ui:NodeClass ;
rdfs:label "Elements"^^xsd:string ;
......
# baseURI: http://www.reportinghub.no/system/swp/SWP-logging
# imports: http://appschema.org
# imports: http://www.reportinghub.no/swp/rh
# imports: http://www.reportinghub.no/system/schema/logging
@prefix : <http://www.reportinghub.no/system/swp/SWP-logging#> .
......@@ -13,6 +14,7 @@
@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 rhswp: <http://www.reportinghub.no/swp/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
......@@ -404,18 +406,24 @@ log:TableBrowser
ui:child
[ rdf:type ui:setContext ;
ui:child
[ rdf:type app:ResourceViewDialog ;
[ rdf:type rhswp:AGResourceViewDialog ;
arg:loadId "viewDialog"^^xsd:string ;
arg:queryGraph
[ sp:varName "queryGraph"^^xsd:string
] ;
arg:schemaGraph
[ sp:varName "schemaGraph"^^xsd:string
] ;
ui:childIndex 0
] ;
ui:childIndex 3 ;
ui:queryGraph
[ sp:varName "queryGraph"^^xsd:string
[ sp:varName "schemaGraph"^^xsd:string
]
]
] .
<http://www.reportinghub.no/system/swp/SWP-logging>
rdf:type owl:Ontology ;
owl:imports <http://appschema.org> , <http://www.reportinghub.no/system/schema/logging> ;
owl:imports <http://appschema.org> , <http://www.reportinghub.no/swp/rh> , <http://www.reportinghub.no/system/schema/logging> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......