Strabon

changeset 1258:6a9204da715f temporals

fixed KMLWriter bug
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Mon Aug 19 11:00:35 2013 +0300 (2013-08-19)
parents 3638dc912d64
children 982b39330ac0
files resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java
line diff
     1.1 --- a/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Fri Aug 02 15:28:16 2013 +0300
     1.2 +++ b/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Mon Aug 19 11:00:35 2013 +0300
     1.3 @@ -212,7 +212,7 @@
     1.4  				} else if(literal.getDatatype().stringValue().equalsIgnoreCase(TemporalConstants.PERIOD)){
     1.5  					String period = literal.getLabel().replace(")", "]");
     1.6  					String start = period.substring(period.indexOf("[")+1, period.indexOf(","));
     1.7 -					String end = period.substring(period.indexOf(",")+2, period.indexOf("]"));
     1.8 +					String end = period.trim().substring(period.indexOf(",")+1, period.indexOf("]"));
     1.9  					xmlWriter.startTag(TIMESPAN_TAG);
    1.10  					xmlWriter.textElement(BEGIN_TAG, start);
    1.11  					if(!end.contains("UC")){