Strabon

view endpoint/WebContent/WEB-INF/beans.xml @ 1536:f287cc1b8b99

Added capability to Strabon-Endpoint for the user to supply and store his unique Google Maps API Key.
- The context path of the endpoint is not restricted when a Google Maps API Key is provided
- Users that do not supply a key can still run the application as before
author Theofilos Ioannidis <tioannid@yahoo.com>
date Wed Oct 04 11:55:13 2017 +0300 (2017-10-04)
parents 51f12bbf8cda
children
line source
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
6 xmlns:jaxws="http://cxf.apache.org/jaxws"
7 jaxws:schemaLocation="http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
9 <bean id="serverProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
10 <property name="locations">
11 <list>
12 <value>WEB-INF/connection.properties</value>
13 </list>
14 </property>
15 </bean>
17 <bean id="capsBean" class="eu.earthobservatory.org.StrabonEndpoint.capabilities.CapabilitiesDelegateBean" destroy-method="destroy">
18 <!-- specify which implementation of the Capabilities interface shall be used -->
19 <!-- true : AutoDiscoveryCapabilities -->
20 <!-- false: EndpointCapabilities -->
21 <constructor-arg type="boolean">
22 <value>false</value>
23 </constructor-arg>
24 </bean>
26 <bean
27 id="strabonBean"
28 class="eu.earthobservatory.org.StrabonEndpoint.StrabonBeanWrapper"
29 destroy-method="destroy">
31 <constructor-arg type="java.lang.String" >
32 <!-- Database name -->
33 <value>${dbname}</value>
34 </constructor-arg>
36 <constructor-arg type="java.lang.String" >
37 <!-- Username -->
38 <value>${username}</value>
39 </constructor-arg>
41 <constructor-arg type="java.lang.String" >
42 <!-- Password -->
43 <value>${password}</value>
44 </constructor-arg>
46 <constructor-arg type="int" >
47 <!-- Port -->
48 <value>${port}</value>
49 </constructor-arg>
51 <constructor-arg type="java.lang.String" >
52 <!-- Database server -->
53 <value>${hostname}</value>
54 </constructor-arg>
56 <constructor-arg type="boolean" >
57 <!-- Check for locks and remove them (in case of a crash) -->
58 <value>true</value>
59 </constructor-arg>
61 <constructor-arg type="java.lang.String" >
62 <!-- Database Backend (either "postgis" or "monetdb") -->
63 <value>${dbengine}</value>
64 </constructor-arg>
66 <constructor-arg type="java.lang.String" >
67 <!-- Google Maps Key -->
68 <value>${googlemapskey}</value>
69 </constructor-arg>
71 <constructor-arg type="int" >
72 <!-- Query limit -->
73 <value>0</value>
74 </constructor-arg>
76 <constructor-arg type="boolean" >
77 <!-- Load from File -->
78 <value>true</value>
79 </constructor-arg>
81 <!-- Boolean variable linkURL in stSPARQLResultsHTMLWriter.java (line 115) to change the links between web and describe -->
83 <constructor-arg type="java.lang.String" >
84 <!-- Default prefixes -->
85 <!-- PREFIX gag: <http://teleios.di.uoa.gr/ontologies/gagKallikratis.rdf#> -->
86 <value><![CDATA[PREFIX lgd:<http://linkedgeodata.org/triplify/>
87 PREFIX lgdgeo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
88 PREFIX lgdont:<http://linkedgeodata.org/ontology/>
89 PREFIX geonames:<http://www.geonames.org/ontology#>
90 PREFIX clc: <http://geo.linkedopendata.gr/corine/ontology#>
91 PREFIX gag: <http://geo.linkedopendata.gr/greekadministrativeregion/ontology#>
92 PREFIX geo: <http://www.opengis.net/ont/geosparql#>
93 PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
94 PREFIX geor: <http://www.opengis.net/def/rule/geosparql/>
95 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
96 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
97 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
98 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
99 PREFIX uom: <http://www.opengis.net/def/uom/OGC/1.0/>
100 ]]>
101 </value>
102 </constructor-arg>
104 <constructor-arg>
105 <list>
106 <list>
107 <!-- Single valued elements correspond to headers -->
108 <value>Discovery Queries</value>
109 </list>
110 <list>
111 <!-- Bean -->
112 <value>Query</value>
113 <!-- Format -->
114 <value>HTML</value>
115 <!-- Label -->
116 <value>Find all triples in the dataset.</value>
117 <!-- Statement -->
118 <value><![CDATA[
119 SELECT *
120 WHERE {
121 ?s ?p ?o
122 }
123 ]]></value>
124 <!-- Description -->
125 <value></value>
126 <!-- Hander (plain, download, map or map_local)-->
127 <value>Plain</value>
128 </list>
129 <list>
130 <!-- Bean -->
131 <value>Query</value>
132 <!-- Format -->
133 <value>HTML</value>
134 <!-- Label -->
135 <value>Select all distinct subjects that appear in the dataset.</value>
136 <!-- Statement -->
137 <value><![CDATA[
138 SELECT DISTINCT (?s AS ?subject)
139 WHERE {
140 ?s ?p ?o
141 }
142 ]]></value>
143 <!-- Description -->
144 <value></value>
145 <!-- Hander (plain, download, map or map_local)-->
146 <value>Plain</value>
147 </list>
148 <list>
149 <!-- Bean -->
150 <value>Query</value>
151 <!-- Format -->
152 <value>HTML</value>
153 <!-- Label -->
154 <value>Select all distinct predicates that appear in the dataset.</value>
155 <!-- Statement -->
156 <value><![CDATA[
157 SELECT DISTINCT (?p AS ?predicate)
158 WHERE {
159 ?s ?p ?o
160 }
161 ]]></value>
162 <!-- Description -->
163 <value></value>
164 <!-- Hander (plain, download, map or map_local)-->
165 <value>Plain</value>
166 </list>
168 <list>
169 <!-- Bean -->
170 <value>Query</value>
171 <!-- Format -->
172 <value>HTML</value>
173 <!-- Label -->
174 <value>Select all distinct objets that appear in the dataset.</value>
175 <!-- Statement -->
176 <value><![CDATA[
177 SELECT DISTINCT (?o AS ?object)
178 WHERE {
179 ?s ?p ?o
180 }
181 ]]></value>
182 <!-- Description -->
183 <value></value>
184 <!-- Hander (plain, download, map or map_local)-->
185 <value>Plain</value>
186 </list>
187 <list>
188 <!-- Bean -->
189 <value>Query</value>
190 <!-- Format -->
191 <value>HTML</value>
192 <!-- Label -->
193 <value>Find all distinct classes of the dataset.</value>
194 <!-- Statement -->
195 <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
197 SELECT DISTINCT (?o AS ?class)
198 WHERE {
199 ?s rdf:type ?o
200 }
201 ]]></value>
202 <!-- Description -->
203 <value></value>
204 <!-- Hander (plain, download, map or map_local)-->
205 <value>Plain</value>
206 </list>
208 <list>
209 <!-- Bean -->
210 <value>Query</value>
211 <!-- Format -->
212 <value>HTML</value>
213 <!-- Label -->
214 <value>Find the number of triples that appear in the dataset.</value>
215 <!-- Statement -->
216 <value><![CDATA[SELECT (COUNT(?s) AS ?NumOfTriples)
217 WHERE {
218 ?s ?p ?o
219 }
220 ]]></value>
221 <!-- Description -->
222 <value></value>
223 <!-- Hander (plain, download, map or map_local)-->
224 <value>Plain</value>
225 </list>
226 <list>
227 <!-- Bean -->
228 <value>Query</value>
229 <!-- Format -->
230 <value>HTML</value>
231 <!-- Label -->
232 <value>Present the first ten triples of the dataset.</value>
233 <!-- Statement -->
234 <value><![CDATA[SELECT *
235 WHERE {
236 ?s ?p ?o
237 }
238 LIMIT 10
239 ]]></value>
240 <!-- Description -->
241 <value></value>
242 <!-- Hander (plain, download, map or map_local)-->
243 <value>Plain</value>
244 </list>
246 <list>
247 <!-- Single valued elements correspond to headers -->
248 <value>Explore/Modify operations</value>
249 </list>
250 <list>
251 <!-- Link to bean: two arguemnts -->
252 <value>Store</value>
253 <value>store.jsp</value>
254 </list>
255 <list>
256 <!-- Link to bean: two arguemnts -->
257 <value>Query/Update</value>
258 <value>query.jsp</value>
259 </list>
260 <list>
261 <!-- Link to bean: two arguemnts -->
262 <value>Describe</value>
263 <value>describe.jsp</value>
264 </list>
265 <list>
266 <!-- Link to bean: two arguemnts -->
267 <value>Browse</value>
268 <value>browse.jsp</value>
269 </list>
270 <list>
271 <!-- Link to bean: two arguemnts -->
272 <value>Configuration</value>
273 <value>connection.jsp</value>
274 </list>
275 </list>
276 </constructor-arg>
277 </bean>
278 </beans>