Strabon

view endpoint/WebContent/WEB-INF/beans.xml @ 136:2e6a4b6d6450

Added two output formats: KMZMAP and KMLMAP
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Tue May 08 22:20:44 2012 +0300 (2012-05-08)
parents 6b85aec0ed58
children 17ed5c26cf7a
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" xmlns:jaxws="http://cxf.apache.org/jaxws"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
7 <import resource="classpath:META-INF/cxf/cxf.xml" />
8 <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
9 <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
11 <bean id="strabonBean" class="eu.earthobservatory.org.StrabonEndpoint.StrabonBeanWrapper" destroy-method="destroy">
12 <constructor-arg type="java.lang.String">
13 <!-- Database name -->
14 <value>darmstadt-noa</value>
15 </constructor-arg>
16 <constructor-arg type="java.lang.String">
17 <!-- Username -->
18 <value>kkyzir</value>
19 </constructor-arg>
20 <constructor-arg type="java.lang.String">
21 <!-- Password -->
22 <value>p1r3as</value>
23 </constructor-arg>
24 <constructor-arg type="int">
25 <!-- Port -->
26 <value>5432</value>
27 </constructor-arg>
28 <constructor-arg type="java.lang.String">
29 <!-- Database server -->
30 <value>localhost</value>
31 </constructor-arg>
32 <constructor-arg type="boolean">
33 <!-- Check for locks and remove them (in case of a crash) -->
34 <value>true</value>
35 </constructor-arg>
36 <constructor-arg type="java.lang.String">
37 <!-- Query1 -->
38 <value><![CDATA[select * where {?s ?p ?o} limit 10]]></value>
39 </constructor-arg>
40 <constructor-arg type="java.lang.String">
41 <!-- Query2 -->
42 <value><![CDATA[# Get all hotspots
43 # - in Pelloponesus
44 # - at 2007-08-23
45 # - of firms
47 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
48 PREFIX clc: <http://teleios.di.uoa.gr/ontologies/clcOntology.owl#>
49 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
50 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
51 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
52 PREFIX teleios: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
53 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#>
54 PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
55 PREFIX georss: <http://www.georss.org/georss/>
56 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
57 PREFIX lgdo: <http://linkedgeodata.org/ontology/>
58 PREFIX gn: <http://www.geonames.org/ontology#>
60 SELECT ?h ?hGeo ?hAcqTime ?hConfidence ?hConfirmation ?hProvider ?hSensor ?hSatellite
61 WHERE {
62 ?h a noa:Hotspot ; # all
63 noa:hasGeometry ?hGeo ; # all
64 noa:hasAcquisitionTime ?hAcqTime ; # all
65 FILTER( "2007-08-24T00:00:00"^^xsd:dateTime <= ?hAcqTime && ?hAcqTime <= "2007-09-24T00:00:00"^^xsd:dateTime$
66 }
67 ]]></value>
68 </constructor-arg>
69 <constructor-arg type="java.lang.String">
70 <!-- Query3 -->
71 <value><![CDATA[PREFIX+noa%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+clc%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FclcOntology.owl%23>%0D%0APREFIX+rdf%3A+<http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23>%0D%0APREFIX+rdfs%3A+<http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23>%0D%0APREFIX+strdf%3A+<http%3A%2F%2Fstrdf.di.uoa.gr%2Fontology%23>%0D%0APREFIX+teleios%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+gag%3A+<http%3A%2F%2Fwww.semanticweb.org%2Fontologies%2F2011%2FgagKallikratis.rdf%23>%0D%0APREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0APREFIX+georss%3A+<http%3A%2F%2Fwww.georss.org%2Fgeorss%2F>%0D%0APREFIX+xsd%3A+<http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23>%0D%0APREFIX+lgdo%3A+<http%3A%2F%2Flinkedgeodata.org%2Fontology%2F>%0D%0APREFIX+gn%3A+<http%3A%2F%2Fwww.geonames.org%2Fontology%23>%0D%0A%0D%0ASELECT+%3Fn+%3FnGeo+%3FnType+%3FnLabel%0D%0A{%0D%0A++++%3Fn++a+%3FnType+%3B%0D%0A++++++++geo%3Ageometry+%3FnGeo+%3B%0D%0A++++++++rdfs%3Alabel+%3FnLabel+.%0D%0A++++++++FILTER(+%3FnType+%3D+lgdo%3AHospital+||+%3FnType+%3D+lgdo%3AAerodrome+||+%3FnType+%3D+lgdo%3ARailway+)+.%0D%0A++++++++FILTER(++strdf%3Acontains(%22POLYGON((21.027+38.36%2C+23.77+38.36%2C+23.77+36.05%2C+21.027+36.05%2C+21.027+38.36))%22^^strdf%3AWKT%2C+%3FnGeo)+)+.%0D%0A}&format=KML]]></value>
72 </constructor-arg>
73 <constructor-arg type="java.lang.String">
74 <!-- Query4 -->
75 <value><![CDATA[%23+Get+all+Perfectures%0D%0A%23+-+in+Pelloponesus%0D%0A%0D%0A%23real%090m31.239s%0D%0A%23user%090m8.060s%0D%0A%23sys%090m0.480s%0D%0A%0D%0APREFIX+noa%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+clc%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FclcOntology.owl%23>%0D%0APREFIX+rdf%3A+<http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23>%0D%0APREFIX+rdfs%3A+<http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23>%0D%0APREFIX+strdf%3A+<http%3A%2F%2Fstrdf.di.uoa.gr%2Fontology%23>%0D%0APREFIX+teleios%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+gag%3A+<http%3A%2F%2Fwww.semanticweb.org%2Fontologies%2F2011%2FgagKallikratis.rdf%23>%0D%0APREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0APREFIX+georss%3A+<http%3A%2F%2Fwww.georss.org%2Fgeorss%2F>%0D%0APREFIX+xsd%3A+<http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23>%0D%0APREFIX+lgdo%3A+<http%3A%2F%2Flinkedgeodata.org%2Fontology%2F>%0D%0APREFIX+gn%3A+<http%3A%2F%2Fwww.geonames.org%2Fontology%23>%0D%0A%0D%0ASELECT+%3Fg+%3FgYpesCode+%3FgContainer+%3FgLabel+(+strdf%3Aboundary(%3FgGeog)+as+%3FgBoundary+)%0D%0AWHERE+{%0D%0A++++%3Fg++a+gag%3ADhmos+%3B%0D%0A++++++++noa%3AhasYpesCode+%3FgYpesCode+%3B%0D%0A++++++++gag%3AisPartOf+%3FgContainer+%3B%0D%0A++++++++rdfs%3Alabel+%3FgLabel+%3B%0D%0A++++++++strdf%3AhasGeometry+%3FgGeog+.%0D%0A++++FILTER(++strdf%3Acontains(%22POLYGON((21.027+38.36%2C+23.77+38.36%2C+23.77+36.05%2C+21.027+36.05%2C+21.027+38.36))%22^^strdf%3AWKT%2C+%3FgGeog)+)+.%0D%0A}&format=KML]]></value>
76 </constructor-arg>
77 <constructor-arg type="java.lang.String">
78 <!-- Query5 -->
79 <value><![CDATA[%23+Get+all+Prefectures%0D%0A%23+-+in+Pelloponesus%0D%0A%0D%0A%23real%090m31.239s%0D%0A%23user%090m8.060s%0D%0A%23sys%090m0.480s%0D%0A%0D%0APREFIX+noa%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+clc%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FclcOntology.owl%23>%0D%0APREFIX+rdf%3A+<http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23>%0D%0APREFIX+rdfs%3A+<http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23>%0D%0APREFIX+strdf%3A+<http%3A%2F%2Fstrdf.di.uoa.gr%2Fontology%23>%0D%0APREFIX+teleios%3A+<http%3A%2F%2Fteleios.di.uoa.gr%2Fontologies%2FnoaOntology.owl%23>%0D%0APREFIX+gag%3A+<http%3A%2F%2Fwww.semanticweb.org%2Fontologies%2F2011%2FgagKallikratis.rdf%23>%0D%0APREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0APREFIX+georss%3A+<http%3A%2F%2Fwww.georss.org%2Fgeorss%2F>%0D%0APREFIX+xsd%3A+<http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23>%0D%0APREFIX+lgdo%3A+<http%3A%2F%2Flinkedgeodata.org%2Fontology%2F>%0D%0APREFIX+gn%3A+<http%3A%2F%2Fwww.geonames.org%2Fontology%23>%0D%0A%0D%0ASELECT+%3Fg+%3FgYpesCode+%3FgContainer+%3FgLabel+(+strdf%3Aboundary(%3FgGeog)+as+%3FgBoundary+)%0D%0AWHERE+{%0D%0A++++%3Fg++a+gag%3ADhmos+%3B%0D%0A++++++++noa%3AhasYpesCode+%3FgYpesCode+%3B%0D%0A++++++++gag%3AisPartOf+%3FgContainer+%3B%0D%0A++++++++rdfs%3Alabel+%3FgLabel+%3B%0D%0A++++++++strdf%3AhasGeometry+%3FgGeog+.%0D%0A++++FILTER(++strdf%3Acontains(%22POLYGON((21.027+38.36%2C+23.77+38.36%2C+23.77+36.05%2C+21.027+36.05%2C+21.027+38.36))%22^^strdf%3AWKT%2C+%3FgGeog)+)+.%0D%0A}&format=KML]]></value>
80 </constructor-arg>
81 <constructor-arg type="java.lang.String">
82 <!-- Query6 -->
83 <value><![CDATA[]]></value>
84 </constructor-arg>
85 <constructor-arg type="java.lang.String">
86 <!-- Query7 -->
87 <value><![CDATA[]]></value>
88 </constructor-arg>
89 <constructor-arg type="java.lang.String">
90 <!-- Query8 -->
91 <value><![CDATA[]]></value>
92 </constructor-arg>
93 <constructor-arg type="java.lang.String">
94 <!-- Default format -->
95 <value><![CDATA[format=KMZMAP]]></value>
96 </constructor-arg>
97 </bean>
99 <!-- <bean id="queryBean" class="eu.earthobservatory.org.StrabonEndpoint.QueryBean"> -->
100 <!-- <property name="strabon" ref="strabonBean" /> -->
101 <!-- </bean> -->
103 </beans>