Strabon
changeset 425:56533b5328bb
Removed unneeded printout.
Altered query by Babis concerning municipalities in order to take into account a single timestamp each time
Altered query by Babis concerning municipalities in order to take into account a single timestamp each time
author | Manos Karpathiotakis <mk@di.uoa.gr> |
---|---|
date | Wed Jul 11 18:01:12 2012 +0300 (2012-07-11) |
parents | 0cec2e2b3fd2 |
children | 4ca5f6401205 |
files | generaldb/src/main/java/org/openrdf/sail/generaldb/managers/LiteralManager.java scripts/v2.2/InsertMunicipalities.sparql |
line diff
1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/managers/LiteralManager.java Wed Jul 11 16:39:51 2012 +0300 1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/managers/LiteralManager.java Wed Jul 11 18:01:12 2012 +0300 1.3 @@ -100,9 +100,9 @@ 1.4 /**********************************************/ 1.5 try { 1.6 if (XMLGSDatatypeUtil.isNumericDatatype(datatype)) { 1.7 - if (logger.isDebugEnabled()) { 1.8 - logger.debug("about to insert double value: {}", literal.doubleValue()); 1.9 - } 1.10 +// if (logger.isDebugEnabled()) { 1.11 +// logger.debug("about to insert double value: {}", literal.doubleValue()); 1.12 +// } 1.13 table.insertNumeric(id, label, dt, literal.doubleValue()); 1.14 } 1.15 else if (XMLGSDatatypeUtil.isCalendarDatatype(datatype)) {
2.1 --- a/scripts/v2.2/InsertMunicipalities.sparql Wed Jul 11 16:39:51 2012 +0300 2.2 +++ b/scripts/v2.2/InsertMunicipalities.sparql Wed Jul 11 18:01:12 2012 +0300 2.3 @@ -3,17 +3,19 @@ 2.4 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 2.5 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#> 2.6 PREFIX gag: <http://www.semanticweb.org/ontologies/2011/gagKallikratis.rdf#> 2.7 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 2.8 2.9 INSERT { ?h gag:hasMunicipality ?muni } 2.10 WHERE { 2.11 - SELECT ?h (SAMPLE(?mLabel) AS ?muni) 2.12 +SELECT ?h (SAMPLE(?mLabel) AS ?muni) 2.13 WHERE { 2.14 ?h rdf:type noa:Hotspot ; 2.15 - noa:hasGeometry ?hGeo . 2.16 + noa:hasGeometry ?hGeo ; 2.17 + noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime. 2.18 ?m rdf:type gag:Dhmos ; 2.19 rdfs:label ?mLabel ; 2.20 strdf:hasGeometry ?mGeo . 2.21 FILTER(strdf:anyInteract(?hGeo, ?mGeo)) . 2.22 - } 2.23 + } 2.24 GROUP BY ?h 2.25 }