Strabon

diff 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 diff
     1.1 --- a/endpoint/WebContent/WEB-INF/beans.xml	Thu Dec 04 13:22:59 2014 +0200
     1.2 +++ b/endpoint/WebContent/WEB-INF/beans.xml	Wed Oct 04 11:55:13 2017 +0300
     1.3 @@ -1,27 +1,27 @@
     1.4  <?xml version="1.0" encoding="UTF-8"?>
     1.5  <beans  xmlns="http://www.springframework.org/schema/beans"
     1.6 -		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     1.7 -    	xsi:schemaLocation="http://www.springframework.org/schema/beans 
     1.8 +        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     1.9 +        xsi:schemaLocation="http://www.springframework.org/schema/beans 
    1.10      						http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
    1.11 -		xmlns:jaxws="http://cxf.apache.org/jaxws"
    1.12 -		jaxws:schemaLocation="http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    1.13 +        xmlns:jaxws="http://cxf.apache.org/jaxws"
    1.14 +        jaxws:schemaLocation="http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    1.15  
    1.16 -	<bean id="serverProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    1.17 -		<property name="locations">
    1.18 -			<list>
    1.19 -				<value>WEB-INF/connection.properties</value>
    1.20 -			</list>
    1.21 -		</property>
    1.22 -	</bean>
    1.23 +    <bean id="serverProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    1.24 +        <property name="locations">
    1.25 +            <list>
    1.26 +                <value>WEB-INF/connection.properties</value>
    1.27 +            </list>
    1.28 +        </property>
    1.29 +    </bean>
    1.30    
    1.31 -	<bean id="capsBean" class="eu.earthobservatory.org.StrabonEndpoint.capabilities.CapabilitiesDelegateBean" destroy-method="destroy">
    1.32 -		<!-- specify which implementation of the Capabilities interface shall be used -->
    1.33 -		<!-- true : AutoDiscoveryCapabilities -->
    1.34 -		<!-- false: EndpointCapabilities -->
    1.35 -		<constructor-arg type="boolean">
    1.36 +    <bean id="capsBean" class="eu.earthobservatory.org.StrabonEndpoint.capabilities.CapabilitiesDelegateBean" destroy-method="destroy">
    1.37 +        <!-- specify which implementation of the Capabilities interface shall be used -->
    1.38 +        <!-- true : AutoDiscoveryCapabilities -->
    1.39 +        <!-- false: EndpointCapabilities -->
    1.40 +        <constructor-arg type="boolean">
    1.41              <value>false</value>
    1.42          </constructor-arg>
    1.43 -	</bean>
    1.44 +    </bean>
    1.45  	
    1.46      <bean
    1.47          id="strabonBean"
    1.48 @@ -40,7 +40,7 @@
    1.49  
    1.50          <constructor-arg type="java.lang.String" >
    1.51              <!-- Password -->
    1.52 -	    <value>${password}</value>
    1.53 +            <value>${password}</value>
    1.54          </constructor-arg>
    1.55  
    1.56          <constructor-arg type="int" >
    1.57 @@ -63,6 +63,11 @@
    1.58              <value>${dbengine}</value>
    1.59          </constructor-arg>
    1.60          
    1.61 +        <constructor-arg type="java.lang.String" >
    1.62 +            <!-- Google Maps Key -->
    1.63 +            <value>${googlemapskey}</value>
    1.64 +        </constructor-arg>
    1.65 +                
    1.66          <constructor-arg type="int" >
    1.67              <!-- Query limit -->
    1.68              <value>0</value>
    1.69 @@ -72,8 +77,8 @@
    1.70              <!-- Load from File -->
    1.71              <value>true</value>
    1.72          </constructor-arg>
    1.73 -     
    1.74 -     	<!-- Boolean variable linkURL in stSPARQLResultsHTMLWriter.java (line 115) to change the links between web and describe -->
    1.75 +        
    1.76 +        <!-- Boolean variable linkURL in stSPARQLResultsHTMLWriter.java (line 115) to change the links between web and describe -->
    1.77          
    1.78          <constructor-arg type="java.lang.String" >
    1.79              <!-- Default prefixes -->
    1.80 @@ -93,181 +98,181 @@
    1.81  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
    1.82  PREFIX uom: <http://www.opengis.net/def/uom/OGC/1.0/>
    1.83  ]]>
    1.84 -</value>
    1.85 +            </value>
    1.86          </constructor-arg>
    1.87          
    1.88          <constructor-arg>
    1.89 -             <list>
    1.90 -             	<list>
    1.91 -             		<!-- Single valued elements correspond to headers -->
    1.92 -					<value>Discovery Queries</value>
    1.93 -	            </list>
    1.94 -				<list>
    1.95 -	                 <!-- Bean -->
    1.96 -	                <value>Query</value> 
    1.97 -	                <!-- Format -->
    1.98 -	                <value>HTML</value>   
    1.99 -	                <!-- Label -->
   1.100 -	                <value>Find all triples in the dataset.</value> 
   1.101 -	                <!-- Statement -->
   1.102 -	                <value><![CDATA[
   1.103 +            <list>
   1.104 +                <list>
   1.105 +                    <!-- Single valued elements correspond to headers -->
   1.106 +                    <value>Discovery Queries</value>
   1.107 +                </list>
   1.108 +                <list>
   1.109 +                    <!-- Bean -->
   1.110 +                    <value>Query</value> 
   1.111 +                    <!-- Format -->
   1.112 +                    <value>HTML</value>   
   1.113 +                    <!-- Label -->
   1.114 +                    <value>Find all triples in the dataset.</value> 
   1.115 +                    <!-- Statement -->
   1.116 +                    <value><![CDATA[
   1.117  SELECT *
   1.118  WHERE { 
   1.119  	?s ?p ?o	
   1.120  }
   1.121  ]]></value>
   1.122 -	                <!-- Description -->
   1.123 -					<value></value>
   1.124 -					<!-- Hander (plain, download, map or map_local)-->
   1.125 -					<value>Plain</value>
   1.126 -	            </list>
   1.127 -	            <list>
   1.128 -	                 <!-- Bean -->
   1.129 -	                <value>Query</value> 
   1.130 -	                <!-- Format -->
   1.131 -	                <value>HTML</value>   
   1.132 -	                <!-- Label -->
   1.133 -	                <value>Select all distinct subjects that appear in the dataset.</value> 
   1.134 -	                <!-- Statement -->
   1.135 -	                <value><![CDATA[
   1.136 +                    <!-- Description -->
   1.137 +                    <value></value>
   1.138 +                    <!-- Hander (plain, download, map or map_local)-->
   1.139 +                    <value>Plain</value>
   1.140 +                </list>
   1.141 +                <list>
   1.142 +                    <!-- Bean -->
   1.143 +                    <value>Query</value> 
   1.144 +                    <!-- Format -->
   1.145 +                    <value>HTML</value>   
   1.146 +                    <!-- Label -->
   1.147 +                    <value>Select all distinct subjects that appear in the dataset.</value> 
   1.148 +                    <!-- Statement -->
   1.149 +                    <value><![CDATA[
   1.150  SELECT DISTINCT (?s AS ?subject)
   1.151  WHERE { 
   1.152  	?s ?p ?o
   1.153  }
   1.154  ]]></value>
   1.155 -	                <!-- Description -->
   1.156 -					<value></value>
   1.157 -					<!-- Hander (plain, download, map or map_local)-->
   1.158 -					<value>Plain</value>
   1.159 -	            </list>
   1.160 -	            <list>
   1.161 -	                 <!-- Bean -->
   1.162 -	                <value>Query</value> 
   1.163 -	                <!-- Format -->
   1.164 -	                <value>HTML</value>   
   1.165 -	                <!-- Label -->
   1.166 -	                <value>Select all distinct predicates that appear in the dataset.</value> 
   1.167 -	                <!-- Statement -->
   1.168 -	                <value><![CDATA[
   1.169 +                    <!-- Description -->
   1.170 +                    <value></value>
   1.171 +                    <!-- Hander (plain, download, map or map_local)-->
   1.172 +                    <value>Plain</value>
   1.173 +                </list>
   1.174 +                <list>
   1.175 +                    <!-- Bean -->
   1.176 +                    <value>Query</value> 
   1.177 +                    <!-- Format -->
   1.178 +                    <value>HTML</value>   
   1.179 +                    <!-- Label -->
   1.180 +                    <value>Select all distinct predicates that appear in the dataset.</value> 
   1.181 +                    <!-- Statement -->
   1.182 +                    <value><![CDATA[
   1.183  SELECT DISTINCT (?p AS ?predicate)
   1.184  WHERE { 
   1.185  	?s ?p ?o
   1.186  }
   1.187  ]]></value>
   1.188 -	                <!-- Description -->
   1.189 -					<value></value>
   1.190 -					<!-- Hander (plain, download, map or map_local)-->
   1.191 -					<value>Plain</value>
   1.192 -	            </list>
   1.193 +                    <!-- Description -->
   1.194 +                    <value></value>
   1.195 +                    <!-- Hander (plain, download, map or map_local)-->
   1.196 +                    <value>Plain</value>
   1.197 +                </list>
   1.198  	            
   1.199 -	            <list>
   1.200 -	                 <!-- Bean -->
   1.201 -	                <value>Query</value> 
   1.202 -	                <!-- Format -->
   1.203 -	                <value>HTML</value>   
   1.204 -	                <!-- Label -->
   1.205 -	                <value>Select all distinct objets that appear in the dataset.</value> 
   1.206 -	                <!-- Statement -->
   1.207 -	                <value><![CDATA[
   1.208 +                <list>
   1.209 +                    <!-- Bean -->
   1.210 +                    <value>Query</value> 
   1.211 +                    <!-- Format -->
   1.212 +                    <value>HTML</value>   
   1.213 +                    <!-- Label -->
   1.214 +                    <value>Select all distinct objets that appear in the dataset.</value> 
   1.215 +                    <!-- Statement -->
   1.216 +                    <value><![CDATA[
   1.217  SELECT DISTINCT (?o AS ?object)
   1.218  WHERE { 
   1.219  	?s ?p ?o	
   1.220  }
   1.221  ]]></value>
   1.222 -	                <!-- Description -->
   1.223 -					<value></value>
   1.224 -					<!-- Hander (plain, download, map or map_local)-->
   1.225 -					<value>Plain</value>
   1.226 -	            </list>
   1.227 -	            <list>
   1.228 -	                 <!-- Bean -->
   1.229 -	                <value>Query</value> 
   1.230 -	                <!-- Format -->
   1.231 -	                <value>HTML</value>   
   1.232 -	                <!-- Label -->
   1.233 -	                <value>Find all distinct classes of the dataset.</value> 
   1.234 -	                <!-- Statement -->
   1.235 -	                <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>	                
   1.236 +                    <!-- Description -->
   1.237 +                    <value></value>
   1.238 +                    <!-- Hander (plain, download, map or map_local)-->
   1.239 +                    <value>Plain</value>
   1.240 +                </list>
   1.241 +                <list>
   1.242 +                    <!-- Bean -->
   1.243 +                    <value>Query</value> 
   1.244 +                    <!-- Format -->
   1.245 +                    <value>HTML</value>   
   1.246 +                    <!-- Label -->
   1.247 +                    <value>Find all distinct classes of the dataset.</value> 
   1.248 +                    <!-- Statement -->
   1.249 +                    <value><![CDATA[PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>	                
   1.250  
   1.251  SELECT DISTINCT (?o AS ?class)
   1.252  WHERE { 
   1.253  	?s rdf:type ?o
   1.254  }
   1.255  ]]></value>
   1.256 -	                <!-- Description -->
   1.257 -					<value></value>
   1.258 -					<!-- Hander (plain, download, map or map_local)-->
   1.259 -					<value>Plain</value>
   1.260 -	            </list>
   1.261 +                    <!-- Description -->
   1.262 +                    <value></value>
   1.263 +                    <!-- Hander (plain, download, map or map_local)-->
   1.264 +                    <value>Plain</value>
   1.265 +                </list>
   1.266  	            
   1.267 -	        	<list>
   1.268 -	                 <!-- Bean -->
   1.269 -	                <value>Query</value> 
   1.270 -	                <!-- Format -->
   1.271 -	                <value>HTML</value>   
   1.272 -	                <!-- Label -->
   1.273 -	                <value>Find the number of triples that appear in the dataset.</value> 
   1.274 -	                <!-- Statement -->
   1.275 -	                <value><![CDATA[SELECT (COUNT(?s) AS ?NumOfTriples)
   1.276 +                <list>
   1.277 +                    <!-- Bean -->
   1.278 +                    <value>Query</value> 
   1.279 +                    <!-- Format -->
   1.280 +                    <value>HTML</value>   
   1.281 +                    <!-- Label -->
   1.282 +                    <value>Find the number of triples that appear in the dataset.</value> 
   1.283 +                    <!-- Statement -->
   1.284 +                    <value><![CDATA[SELECT (COUNT(?s) AS ?NumOfTriples)
   1.285  WHERE { 
   1.286  	?s ?p ?o
   1.287  }
   1.288  ]]></value>
   1.289 -	                <!-- Description -->
   1.290 -					<value></value>
   1.291 -					<!-- Hander (plain, download, map or map_local)-->
   1.292 -					<value>Plain</value>
   1.293 -	            </list>
   1.294 -	            <list>
   1.295 -	                 <!-- Bean -->
   1.296 -	                <value>Query</value> 
   1.297 -	                <!-- Format -->
   1.298 -	                <value>HTML</value>   
   1.299 -	                <!-- Label -->
   1.300 -	                <value>Present the first ten triples of the dataset.</value> 
   1.301 -	                <!-- Statement -->
   1.302 -	                <value><![CDATA[SELECT *
   1.303 +                    <!-- Description -->
   1.304 +                    <value></value>
   1.305 +                    <!-- Hander (plain, download, map or map_local)-->
   1.306 +                    <value>Plain</value>
   1.307 +                </list>
   1.308 +                <list>
   1.309 +                    <!-- Bean -->
   1.310 +                    <value>Query</value> 
   1.311 +                    <!-- Format -->
   1.312 +                    <value>HTML</value>   
   1.313 +                    <!-- Label -->
   1.314 +                    <value>Present the first ten triples of the dataset.</value> 
   1.315 +                    <!-- Statement -->
   1.316 +                    <value><![CDATA[SELECT *
   1.317  WHERE { 
   1.318  	?s ?p ?o
   1.319  }
   1.320  LIMIT 10
   1.321  ]]></value>
   1.322 -	                <!-- Description -->
   1.323 -					<value></value>
   1.324 -					<!-- Hander (plain, download, map or map_local)-->
   1.325 -					<value>Plain</value>
   1.326 -	            </list>      
   1.327 +                    <!-- Description -->
   1.328 +                    <value></value>
   1.329 +                    <!-- Hander (plain, download, map or map_local)-->
   1.330 +                    <value>Plain</value>
   1.331 +                </list>      
   1.332  
   1.333 -				<list>
   1.334 -             		<!-- Single valued elements correspond to headers -->
   1.335 -					<value>Explore/Modify operations</value>
   1.336 -	            </list>
   1.337 -	            <list>
   1.338 -             		<!-- Link to bean: two arguemnts -->
   1.339 -					<value>Store</value>
   1.340 -					<value>store.jsp</value>
   1.341 -	            </list>
   1.342 -	            <list>
   1.343 -             		<!-- Link to bean: two arguemnts -->
   1.344 -					<value>Query/Update</value>
   1.345 -					<value>query.jsp</value>
   1.346 -	            </list>
   1.347 -	            <list>
   1.348 -             		<!-- Link to bean: two arguemnts -->
   1.349 -					<value>Describe</value>
   1.350 -					<value>describe.jsp</value>
   1.351 -	            </list>
   1.352 -	            <list>
   1.353 -             		<!-- Link to bean: two arguemnts -->
   1.354 -					<value>Browse</value>
   1.355 -					<value>browse.jsp</value>
   1.356 -	            </list>
   1.357 -				<list>
   1.358 -					<!-- Link to bean: two arguemnts -->
   1.359 -					<value>Configuration</value>
   1.360 -					<value>connection.jsp</value>
   1.361 -				</list>
   1.362 +                <list>
   1.363 +                    <!-- Single valued elements correspond to headers -->
   1.364 +                    <value>Explore/Modify operations</value>
   1.365 +                </list>
   1.366 +                <list>
   1.367 +                    <!-- Link to bean: two arguemnts -->
   1.368 +                    <value>Store</value>
   1.369 +                    <value>store.jsp</value>
   1.370 +                </list>
   1.371 +                <list>
   1.372 +                    <!-- Link to bean: two arguemnts -->
   1.373 +                    <value>Query/Update</value>
   1.374 +                    <value>query.jsp</value>
   1.375 +                </list>
   1.376 +                <list>
   1.377 +                    <!-- Link to bean: two arguemnts -->
   1.378 +                    <value>Describe</value>
   1.379 +                    <value>describe.jsp</value>
   1.380 +                </list>
   1.381 +                <list>
   1.382 +                    <!-- Link to bean: two arguemnts -->
   1.383 +                    <value>Browse</value>
   1.384 +                    <value>browse.jsp</value>
   1.385 +                </list>
   1.386 +                <list>
   1.387 +                    <!-- Link to bean: two arguemnts -->
   1.388 +                    <value>Configuration</value>
   1.389 +                    <value>connection.jsp</value>
   1.390 +                </list>
   1.391              </list>
   1.392 -         </constructor-arg>
   1.393 +        </constructor-arg>          
   1.394      </bean>
   1.395  </beans>