diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7225ebb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: java +deploy: + provider: releases + api_key: + secure: WZKOSo3Zb3LO2R6gddhKL4YUFzKYSNv64OePXVBEkVU4b8Tic19gi0gcOCzUo0EORw9BVNzY69TkQKg4jSQJjEZ4AplrSJnzlwJ0LZwEjXKwJdkacbac7TRTIHNSLA+gqC86NhB5NJzWlEHEplYH8iB+QXoTLLpi8sqRY5JnGOo= + file: target/p3-spatialsearch-demo-$TRAVIS_TAG + on: + repo: fusepoolP3/p3-spatialsearch-demo + tags: true + all_branches: true diff --git a/pom.xml b/pom.xml index ccc13a8..264ae44 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,7 @@ + ${finalName} org.apache.maven.plugins diff --git a/src/main/java/eu/fusepool/p3/spatial/demo/SpatialDataEnhancer.java b/src/main/java/eu/fusepool/p3/spatial/demo/SpatialDataEnhancer.java index 2fbbf09..75fab9c 100644 --- a/src/main/java/eu/fusepool/p3/spatial/demo/SpatialDataEnhancer.java +++ b/src/main/java/eu/fusepool/p3/spatial/demo/SpatialDataEnhancer.java @@ -303,7 +303,7 @@ public JSONObject queryNearbyJson(WGS84Point point, String graphName, double rad "PREFIX rdfs: "); String qs = StrUtils.strjoinNL("SELECT * ", - "FROM NAMED <" + graphName + ">", + // "FROM NAMED <" + graphName + ">", "WHERE { ", "GRAPH <" + graphName + "> ", " { ?s spatial:nearby (" + point.getLat() + " " + point.getLong() + " " + radius + " 'm') ;", @@ -426,6 +426,7 @@ public JSONObject queryEventsNearbyJson(WGS84Point point, String graphName, doub pointObject.put("coordinates", coord); JSONObject properties = new JSONObject(); properties.put("name", eventLabel); + properties.put("start", startDate); JSONObject feature = new JSONObject(); feature.put("type", "Feature"); feature.put("geometry", pointObject);