Strabon

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