Showing
4 changed files
with
184 additions
and
9 deletions
... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
2 | # imports: http://spinrdf.org/spl | 2 | # imports: http://spinrdf.org/spl |
3 | # imports: http://uispin.org/ui | 3 | # imports: http://uispin.org/ui |
4 | 4 | ||
5 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
5 | @prefix app: <http://appschema.org/> . | 6 | @prefix app: <http://appschema.org/> . |
6 | @prefix arg: <http://spinrdf.org/arg#> . | 7 | @prefix arg: <http://spinrdf.org/arg#> . |
7 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 8 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
... | @@ -248,6 +249,45 @@ app:googleMapsAPIKey | ... | @@ -248,6 +249,45 @@ app:googleMapsAPIKey |
248 | ] ; | 249 | ] ; |
249 | spin:private "true"^^xsd:boolean . | 250 | spin:private "true"^^xsd:boolean . |
250 | 251 | ||
252 | +app:hasPrefix | ||
253 | + rdf:type spin:Function ; | ||
254 | + rdfs:comment "Checks if the current query model defines a prefix for a given URI resource."^^xsd:string ; | ||
255 | + rdfs:label "has prefix"^^xsd:string ; | ||
256 | + rdfs:subClassOf app:Functions ; | ||
257 | + spin:body | ||
258 | + [ rdf:type sp:Ask ; | ||
259 | + sp:where ([ rdf:type sp:Bind ; | ||
260 | + sp:expression | ||
261 | + [ rdf:type afn:namespace ; | ||
262 | + sp:arg1 [ sp:varName "resource"^^xsd:string | ||
263 | + ] | ||
264 | + ] ; | ||
265 | + sp:variable | ||
266 | + [ sp:varName "namespace"^^xsd:string | ||
267 | + ] | ||
268 | + ] [ sp:object | ||
269 | + [ sp:varName "prefix"^^xsd:string | ||
270 | + ] ; | ||
271 | + sp:predicate spif:prefix ; | ||
272 | + sp:subject | ||
273 | + [ sp:varName "namespace"^^xsd:string | ||
274 | + ] | ||
275 | + ] [ rdf:type sp:Filter ; | ||
276 | + sp:expression | ||
277 | + [ rdf:type sp:bound ; | ||
278 | + sp:arg1 [ sp:varName "prefix"^^xsd:string | ||
279 | + ] | ||
280 | + ] | ||
281 | + ]) | ||
282 | + ] ; | ||
283 | + spin:constraint | ||
284 | + [ rdf:type spl:Argument ; | ||
285 | + rdfs:comment "The resource to check for a prefix."^^xsd:string ; | ||
286 | + spl:predicate arg:resource ; | ||
287 | + spl:valueType rdfs:Resource | ||
288 | + ] ; | ||
289 | + spin:returnType xsd:boolean . | ||
290 | + | ||
251 | app:imageURLSuffix | 291 | app:imageURLSuffix |
252 | rdf:type rdf:Property ; | 292 | rdf:type rdf:Property ; |
253 | rdfs:comment "Lists the registered file suffixes that are regarded to be image files."^^xsd:string ; | 293 | rdfs:comment "Lists the registered file suffixes that are regarded to be image files."^^xsd:string ; | ... | ... |
... | @@ -3209,7 +3209,16 @@ app:ObjectViewerRow | ... | @@ -3209,7 +3209,16 @@ app:ObjectViewerRow |
3209 | ] | 3209 | ] |
3210 | ] ; | 3210 | ] ; |
3211 | ui:addNamespace | 3211 | ui:addNamespace |
3212 | - [ sp:varName "predicate"^^xsd:string | 3212 | + [ rdf:type sp:if ; |
3213 | + sp:arg1 [ rdf:type app:hasPrefix ; | ||
3214 | + arg:resource | ||
3215 | + [ sp:varName "predicate"^^xsd:string | ||
3216 | + ] | ||
3217 | + ] ; | ||
3218 | + sp:arg2 [ sp:varName "predicate"^^xsd:string | ||
3219 | + ] ; | ||
3220 | + sp:arg3 [ sp:varName "none"^^xsd:string | ||
3221 | + ] | ||
3213 | ] ; | 3222 | ] ; |
3214 | ui:child | 3223 | ui:child |
3215 | [ rdf:type app:ObjectViewer ; | 3224 | [ rdf:type app:ObjectViewer ; |
... | @@ -4066,11 +4075,17 @@ app:ResourceViewDialog | ... | @@ -4066,11 +4075,17 @@ app:ResourceViewDialog |
4066 | ] | 4075 | ] |
4067 | ] ; | 4076 | ] ; |
4068 | ui:child | 4077 | ui:child |
4069 | - [ rdf:type ui:resourceView ; | 4078 | + [ rdf:type ui:setContext ; |
4079 | + ui:child | ||
4080 | + [ rdf:type ui:resourceView ; | ||
4081 | + ui:childIndex 0 ; | ||
4082 | + ui:resource | ||
4083 | + [ sp:varName "resource"^^xsd:string | ||
4084 | + ] | ||
4085 | + ] ; | ||
4070 | ui:childIndex 0 ; | 4086 | ui:childIndex 0 ; |
4071 | - ui:resource | 4087 | + ui:varName "noLinks"^^xsd:string ; |
4072 | - [ sp:varName "resource"^^xsd:string | 4088 | + ui:varValue "true"^^xsd:boolean |
4073 | - ] | ||
4074 | ] ; | 4089 | ] ; |
4075 | ui:childIndex 0 | 4090 | ui:childIndex 0 |
4076 | ] ; | 4091 | ] ; |
... | @@ -6947,6 +6962,29 @@ app:createLink | ... | @@ -6947,6 +6962,29 @@ app:createLink |
6947 | sp:where ([ rdf:type sp:Bind ; | 6962 | sp:where ([ rdf:type sp:Bind ; |
6948 | sp:expression | 6963 | sp:expression |
6949 | [ rdf:type ui:contextValue ; | 6964 | [ rdf:type ui:contextValue ; |
6965 | + sp:arg1 "noLinks" | ||
6966 | + ] ; | ||
6967 | + sp:variable | ||
6968 | + [ sp:varName "noLinks"^^xsd:string | ||
6969 | + ] | ||
6970 | + ] [ rdf:type sp:Filter ; | ||
6971 | + sp:expression | ||
6972 | + [ rdf:type sp:or ; | ||
6973 | + sp:arg1 [ rdf:type sp:not ; | ||
6974 | + sp:arg1 [ rdf:type sp:bound ; | ||
6975 | + sp:arg1 [ sp:varName "noLinks"^^xsd:string | ||
6976 | + ] | ||
6977 | + ] | ||
6978 | + ] ; | ||
6979 | + sp:arg2 [ rdf:type sp:ne ; | ||
6980 | + sp:arg1 [ sp:varName "noLinks"^^xsd:string | ||
6981 | + ] ; | ||
6982 | + sp:arg2 "true"^^xsd:boolean | ||
6983 | + ] | ||
6984 | + ] | ||
6985 | + ] [ rdf:type sp:Bind ; | ||
6986 | + sp:expression | ||
6987 | + [ rdf:type ui:contextValue ; | ||
6950 | sp:arg1 "createLinkFunction" | 6988 | sp:arg1 "createLinkFunction" |
6951 | ] ; | 6989 | ] ; |
6952 | sp:variable | 6990 | sp:variable | ... | ... |
1 | # baseURI: http://www.reportinghub.no/swp/rh | 1 | # baseURI: http://www.reportinghub.no/swp/rh |
2 | +# imports: http://appschema.org | ||
2 | # imports: http://uispin.org/tui | 3 | # imports: http://uispin.org/tui |
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/core | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/core |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility | 5 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility |
... | @@ -20,6 +21,11 @@ | ... | @@ -20,6 +21,11 @@ |
20 | @prefix ui: <http://uispin.org/ui#> . | 21 | @prefix ui: <http://uispin.org/ui#> . |
21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 22 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
22 | 23 | ||
24 | +<http://spinrdf.org/arg#schemaGraph> | ||
25 | + rdf:type rdf:Property ; | ||
26 | + rdfs:label "schema graph"^^xsd:string ; | ||
27 | + rdfs:subPropertyOf sp:arg . | ||
28 | + | ||
23 | <http://spinrdf.org/arg#value> | 29 | <http://spinrdf.org/arg#value> |
24 | rdf:type rdf:Property ; | 30 | rdf:type rdf:Property ; |
25 | rdfs:label "value"^^xsd:string ; | 31 | rdfs:label "value"^^xsd:string ; |
... | @@ -28,9 +34,92 @@ | ... | @@ -28,9 +34,92 @@ |
28 | <http://www.reportinghub.no/swp/rh> | 34 | <http://www.reportinghub.no/swp/rh> |
29 | rdf:type owl:Ontology ; | 35 | rdf:type owl:Ontology ; |
30 | rdfs:comment "SWP components and definitions for ReportingHub."^^xsd:string ; | 36 | rdfs:comment "SWP components and definitions for ReportingHub."^^xsd:string ; |
31 | - 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> ; | 37 | + 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> ; |
32 | owl:versionInfo "0.1.0"^^xsd:string . | 38 | owl:versionInfo "0.1.0"^^xsd:string . |
33 | 39 | ||
40 | +rhswp:AGResourceViewDialog | ||
41 | + rdf:type ui:NodeClass ; | ||
42 | + rdfs:comment "Overloaded to select a different query graph that caches all relevant triples in memory."^^xsd:string ; | ||
43 | + rdfs:label "AG Resource view dialog"^^xsd:string ; | ||
44 | + rdfs:subClassOf <http://appschema.org/ResourceViewDialog> ; | ||
45 | + spin:constraint | ||
46 | + [ rdf:type spl:Argument ; | ||
47 | + rdfs:comment "The query graph."^^xsd:string ; | ||
48 | + spl:predicate <http://spinrdf.org/arg#queryGraph> ; | ||
49 | + spl:valueType rdfs:Resource | ||
50 | + ] ; | ||
51 | + spin:constraint | ||
52 | + [ rdf:type spl:Argument ; | ||
53 | + rdfs:comment "The schema graph."^^xsd:string ; | ||
54 | + spl:predicate <http://spinrdf.org/arg#schemaGraph> ; | ||
55 | + spl:valueType rdfs:Resource | ||
56 | + ] ; | ||
57 | + ui:prototype | ||
58 | + [ rdf:type ui:loadable ; | ||
59 | + ui:child | ||
60 | + [ rdf:type ui:if ; | ||
61 | + ui:child | ||
62 | + [ rdf:type ui:setContext ; | ||
63 | + ui:child | ||
64 | + [ rdf:type html:Div ; | ||
65 | + html:id [ rdf:type ui:concat ; | ||
66 | + sp:arg1 "div-"^^xsd:string ; | ||
67 | + sp:arg2 [ sp:varName "loadId"^^xsd:string | ||
68 | + ] | ||
69 | + ] ; | ||
70 | + html:title | ||
71 | + [ rdf:type ui:label ; | ||
72 | + sp:arg1 [ sp:varName "resource"^^xsd:string | ||
73 | + ] | ||
74 | + ] ; | ||
75 | + ui:child | ||
76 | + [ rdf:type ui:setContext ; | ||
77 | + ui:child | ||
78 | + [ rdf:type ui:resourceView ; | ||
79 | + ui:childIndex 0 ; | ||
80 | + ui:resource | ||
81 | + [ sp:varName "resource"^^xsd:string | ||
82 | + ] | ||
83 | + ] ; | ||
84 | + ui:childIndex 0 ; | ||
85 | + ui:varName "noLinks"^^xsd:string ; | ||
86 | + ui:varValue "true"^^xsd:boolean | ||
87 | + ] ; | ||
88 | + ui:childIndex 0 | ||
89 | + ] ; | ||
90 | + ui:childIndex 0 ; | ||
91 | + ui:queryGraph | ||
92 | + [ rdf:type ui:concat ; | ||
93 | + sp:arg1 [ sp:varName "queryGraph"^^xsd:string | ||
94 | + ] ; | ||
95 | + sp:arg2 "_inMemory?resource="^^xsd:string ; | ||
96 | + sp:arg3 [ rdf:type ui:encodeURL ; | ||
97 | + sp:arg1 [ rdf:type xsd:string ; | ||
98 | + sp:arg1 [ sp:varName "resource"^^xsd:string | ||
99 | + ] | ||
100 | + ] | ||
101 | + ] ; | ||
102 | + sp:arg4 "&schema="^^xsd:string ; | ||
103 | + sp:arg5 [ rdf:type ui:encodeURL ; | ||
104 | + sp:arg1 [ rdf:type xsd:string ; | ||
105 | + sp:arg1 [ sp:varName "schemaGraph"^^xsd:string | ||
106 | + ] | ||
107 | + ] | ||
108 | + ] | ||
109 | + ] | ||
110 | + ] ; | ||
111 | + ui:childIndex 0 ; | ||
112 | + ui:condition | ||
113 | + [ rdf:type sp:bound ; | ||
114 | + sp:arg1 [ sp:varName "resource"^^xsd:string | ||
115 | + ] | ||
116 | + ] | ||
117 | + ] ; | ||
118 | + ui:loadId | ||
119 | + [ sp:varName "loadId"^^xsd:string | ||
120 | + ] | ||
121 | + ] . | ||
122 | + | ||
34 | rhswp:Elements | 123 | rhswp:Elements |
35 | rdf:type ui:NodeClass ; | 124 | rdf:type ui:NodeClass ; |
36 | rdfs:label "Elements"^^xsd:string ; | 125 | rdfs:label "Elements"^^xsd:string ; | ... | ... |
1 | # baseURI: http://www.reportinghub.no/system/swp/SWP-logging | 1 | # baseURI: http://www.reportinghub.no/system/swp/SWP-logging |
2 | # imports: http://appschema.org | 2 | # imports: http://appschema.org |
3 | +# imports: http://www.reportinghub.no/swp/rh | ||
3 | # imports: http://www.reportinghub.no/system/schema/logging | 4 | # imports: http://www.reportinghub.no/system/schema/logging |
4 | 5 | ||
5 | @prefix : <http://www.reportinghub.no/system/swp/SWP-logging#> . | 6 | @prefix : <http://www.reportinghub.no/system/swp/SWP-logging#> . |
... | @@ -13,6 +14,7 @@ | ... | @@ -13,6 +14,7 @@ |
13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 15 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 16 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
17 | +@prefix rhswp: <http://www.reportinghub.no/swp/rh#> . | ||
16 | @prefix sp: <http://spinrdf.org/sp#> . | 18 | @prefix sp: <http://spinrdf.org/sp#> . |
17 | @prefix spin: <http://spinrdf.org/spin#> . | 19 | @prefix spin: <http://spinrdf.org/spin#> . |
18 | @prefix spl: <http://spinrdf.org/spl#> . | 20 | @prefix spl: <http://spinrdf.org/spl#> . |
... | @@ -404,18 +406,24 @@ log:TableBrowser | ... | @@ -404,18 +406,24 @@ log:TableBrowser |
404 | ui:child | 406 | ui:child |
405 | [ rdf:type ui:setContext ; | 407 | [ rdf:type ui:setContext ; |
406 | ui:child | 408 | ui:child |
407 | - [ rdf:type app:ResourceViewDialog ; | 409 | + [ rdf:type rhswp:AGResourceViewDialog ; |
408 | arg:loadId "viewDialog"^^xsd:string ; | 410 | arg:loadId "viewDialog"^^xsd:string ; |
411 | + arg:queryGraph | ||
412 | + [ sp:varName "queryGraph"^^xsd:string | ||
413 | + ] ; | ||
414 | + arg:schemaGraph | ||
415 | + [ sp:varName "schemaGraph"^^xsd:string | ||
416 | + ] ; | ||
409 | ui:childIndex 0 | 417 | ui:childIndex 0 |
410 | ] ; | 418 | ] ; |
411 | ui:childIndex 3 ; | 419 | ui:childIndex 3 ; |
412 | ui:queryGraph | 420 | ui:queryGraph |
413 | - [ sp:varName "queryGraph"^^xsd:string | 421 | + [ sp:varName "schemaGraph"^^xsd:string |
414 | ] | 422 | ] |
415 | ] | 423 | ] |
416 | ] . | 424 | ] . |
417 | 425 | ||
418 | <http://www.reportinghub.no/system/swp/SWP-logging> | 426 | <http://www.reportinghub.no/system/swp/SWP-logging> |
419 | rdf:type owl:Ontology ; | 427 | rdf:type owl:Ontology ; |
420 | - owl:imports <http://appschema.org> , <http://www.reportinghub.no/system/schema/logging> ; | 428 | + owl:imports <http://appschema.org> , <http://www.reportinghub.no/swp/rh> , <http://www.reportinghub.no/system/schema/logging> ; |
421 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 429 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment