|
9 | 9 | @prefix sioc: <http://rdfs.org/sioc/ns#> . |
10 | 10 | @prefix foaf: <http://xmlns.com/foaf/0.1/> . |
11 | 11 | @prefix dct: <http://purl.org/dc/terms/> . |
12 | | -@prefix spin: <http://spinrdf.org/spin#> . |
13 | 12 |
|
14 | 13 | <> |
15 | 14 | { |
|
58 | 57 |
|
59 | 58 | } |
60 | 59 |
|
61 | | -# CONTAINERS |
62 | | - |
63 | | -<queries/> |
64 | | -{ |
65 | | - |
66 | | - <queries/> a dh:Container ; |
67 | | - dct:title "Queries" ; |
68 | | - dct:description "SPARQL queries" ; |
69 | | - rdf:_1 <queries/#select-queries> . |
70 | | - |
71 | | - <queries/#select-queries> a ldh:Object ; |
72 | | - rdf:value <queries/#select-queries-view> . |
73 | | - |
74 | | - <queries/#select-queries-view> a ldh:View ; |
75 | | - dct:title "Queries" ; |
76 | | - spin:query <queries/#select-queries-query> . |
77 | | - |
78 | | - <queries/#select-queries-query> a sp:Select ; |
79 | | - dct:title "Select query resources" ; |
80 | | - sp:text """PREFIX sp: <http://spinrdf.org/sp#> |
81 | | - |
82 | | -SELECT DISTINCT ?s |
83 | | -WHERE |
84 | | - { GRAPH ?g |
85 | | - { { ?s a sp:Select } |
86 | | - UNION |
87 | | - { ?s a sp:Construct } |
88 | | - UNION |
89 | | - { ?s a sp:Describe } |
90 | | - UNION |
91 | | - { ?s a sp:Ask } |
92 | | - } |
93 | | - }""" . |
94 | | - |
95 | | -} |
96 | | - |
97 | | -<files/> |
98 | | -{ |
99 | | - |
100 | | - <files/> a dh:Container ; |
101 | | - dct:title "Files" ; |
102 | | - dct:description "Uploaded files" ; |
103 | | - rdf:_1 <files/#select-files> . |
104 | | - |
105 | | - <files/#select-files> a ldh:Object ; |
106 | | - rdf:value <files/#select-files-view> . |
107 | | - |
108 | | - <files/#select-files-view> a ldh:View ; |
109 | | - dct:title "Files" ; |
110 | | - spin:query <files/#select-files-query> . |
111 | | - |
112 | | - <files/#select-files-query> a sp:Select ; |
113 | | - dct:title "Select file resources" ; |
114 | | - sp:text """PREFIX nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> |
115 | | - |
116 | | -SELECT DISTINCT ?s |
117 | | -WHERE |
118 | | - { GRAPH ?g |
119 | | - { ?s a nfo:FileDataObject } |
120 | | - }""" . |
121 | | - |
122 | | -} |
123 | | - |
124 | | -<imports/> |
125 | | -{ |
126 | | - |
127 | | - <imports/> a dh:Container ; |
128 | | - dct:title "Imports" ; |
129 | | - dct:description "Data imports" ; |
130 | | - rdf:_1 <imports/#select-imports> . |
131 | | - |
132 | | - <imports/#select-imports> a ldh:Object ; |
133 | | - rdf:value <imports/#select-imports-view> . |
134 | | - |
135 | | - <imports/#select-imports-view> a ldh:View ; |
136 | | - dct:title "Imports" ; |
137 | | - spin:query <imports/#select-imports-query> . |
138 | | - |
139 | | - <imports/#select-imports-query> a sp:Select ; |
140 | | - dct:title "Select import resources" ; |
141 | | - sp:text """PREFIX ldh: <https://w3id.org/atomgraph/linkeddatahub#> |
142 | | - |
143 | | -SELECT DISTINCT ?s |
144 | | -WHERE |
145 | | - { GRAPH ?g |
146 | | - { { ?s a ldh:CSVImport } |
147 | | - UNION |
148 | | - { ?s a ldh:RDFImport } |
149 | | - } |
150 | | - }""" . |
151 | | - |
152 | | -} |
153 | | - |
154 | | -<geo/> |
155 | | -{ |
156 | | - |
157 | | - <geo/> a dh:Item ; |
158 | | - dct:title "Geo" ; |
159 | | - dct:description "Geolocated resources" ; |
160 | | - rdf:_1 <geo/#select-geo> . |
161 | | - |
162 | | - <geo/#select-geo> a ldh:Object ; |
163 | | - rdf:value <geo/#select-geo-view> . |
164 | | - |
165 | | - <geo/#select-geo-view> a ldh:View ; |
166 | | - dct:title "Geo resources" ; |
167 | | - spin:query <geo/#select-geo-query> ; |
168 | | - ac:mode ac:MapMode . |
169 | | - |
170 | | - <geo/#select-geo-query> a sp:Select ; |
171 | | - dct:title "Select geo resources" ; |
172 | | - sp:text """PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> |
173 | | -PREFIX dct: <http://purl.org/dc/terms/> |
174 | | - |
175 | | -SELECT DISTINCT ?resource |
176 | | -WHERE |
177 | | -{ GRAPH ?graph |
178 | | - { ?resource geo:lat ?lat ; |
179 | | - geo:long ?long |
180 | | - OPTIONAL |
181 | | - { ?resource a ?type } |
182 | | - OPTIONAL |
183 | | - { ?resource dct:title ?title } |
184 | | - } |
185 | | -} |
186 | | -ORDER BY ?title""" . |
187 | | - |
188 | | -} |
189 | | - |
190 | | -<latest/> |
191 | | -{ |
192 | | - |
193 | | - <latest/> a dh:Item ; |
194 | | - dct:title "Latest" ; |
195 | | - dct:description "Latest resources" ; |
196 | | - rdf:_1 <latest/#select-latest> . |
197 | | - |
198 | | - <latest/#select-latest> a ldh:Object ; |
199 | | - rdf:value <latest/#select-latest-view> . |
200 | | - |
201 | | - <latest/#select-latest-view> a ldh:View ; |
202 | | - dct:title "Latest resources" ; |
203 | | - spin:query <latest/#select-latest-query> . |
204 | | - |
205 | | - <latest/#select-latest-query> a sp:Select ; |
206 | | - dct:title "Select latest" ; |
207 | | - sp:text """PREFIX dct: <http://purl.org/dc/terms/> |
208 | | - |
209 | | -SELECT DISTINCT ?dated |
210 | | -WHERE |
211 | | -{ GRAPH ?graph |
212 | | - { ?dated dct:created ?created } |
213 | | -} |
214 | | -ORDER BY DESC(?created)""" . |
215 | | - |
216 | | -} |
217 | | - |
218 | | -<charts/> |
219 | | -{ |
220 | | - |
221 | | - <charts/> a dh:Container ; |
222 | | - dct:title "Charts" ; |
223 | | - dct:description "Saved charts" ; |
224 | | - rdf:_1 <charts/#select-charts> . |
225 | | - |
226 | | - <charts/#select-charts> a ldh:Object ; |
227 | | - rdf:value <charts/#select-charts-view> . |
228 | | - |
229 | | - <charts/#select-charts-view> a ldh:View ; |
230 | | - dct:title "Charts" ; |
231 | | - spin:query <charts/#select-charts-query> . |
232 | | - |
233 | | - <charts/#select-charts-query> a sp:Select ; |
234 | | - dct:title "Select chart resources" ; |
235 | | - sp:text """PREFIX ldh: <https://w3id.org/atomgraph/linkeddatahub#> |
236 | | - |
237 | | -SELECT DISTINCT ?s |
238 | | -WHERE |
239 | | - { GRAPH ?g |
240 | | - { { ?s a ldh:GraphChart } |
241 | | - UNION |
242 | | - { ?s a ldh:ResultSetChart } |
243 | | - } |
244 | | - }""" . |
245 | | - |
246 | | -} |
247 | | - |
248 | | -<apps/> |
249 | | -{ |
250 | | - |
251 | | - <apps/> a dh:Container ; |
252 | | - dct:title "Apps" ; |
253 | | - dct:description "Linked Data applications" ; |
254 | | - rdf:_1 <apps/#select-apps> . |
255 | | - |
256 | | - <apps/#select-apps> a ldh:Object ; |
257 | | - rdf:value <apps/#select-apps-view> . |
258 | | - |
259 | | - <apps/#select-apps-view> a ldh:View ; |
260 | | - dct:title "Applications" ; |
261 | | - spin:query <apps/#select-apps-query> . |
262 | | - |
263 | | - <apps/#select-apps-query> a sp:Select ; |
264 | | - dct:title "Select application resources" ; |
265 | | - sp:text """PREFIX lapp: <https://w3id.org/atomgraph/linkeddatahub/apps#> |
266 | | - |
267 | | -SELECT DISTINCT ?s |
268 | | -WHERE |
269 | | - { GRAPH ?g |
270 | | - { ?s a lapp:Application } |
271 | | - }""" . |
272 | | - |
273 | | -} |
274 | | - |
275 | | -<services/> |
276 | | -{ |
277 | | - |
278 | | - <services/> a dh:Container ; |
279 | | - dct:title "Services" ; |
280 | | - dct:description "SPARQL services" ; |
281 | | - rdf:_1 <services/#select-services> . |
282 | | - |
283 | | - <services/#select-services> a ldh:Object ; |
284 | | - rdf:value <services/#select-services-view> . |
285 | | - |
286 | | - <services/#select-services-view> a ldh:View ; |
287 | | - dct:title "Services" ; |
288 | | - spin:query <services/#select-services-query> . |
289 | | - |
290 | | - <services/#select-services-query> a sp:Select ; |
291 | | - dct:title "Select service resources" ; |
292 | | - sp:text """PREFIX sd: <http://www.w3.org/ns/sparql-service-description#> |
293 | | - |
294 | | -SELECT DISTINCT ?s |
295 | | -WHERE |
296 | | - { GRAPH ?g |
297 | | - { ?s a sd:Service } |
298 | | - }""" . |
299 | | - |
300 | | -} |
301 | | - |
302 | 60 | ### ADMIN-SPECIFIC |
303 | 61 |
|
304 | 62 | @prefix lacl: <https://w3id.org/atomgraph/linkeddatahub/admin/acl#> . |
|
0 commit comments