Strabon

changeset 1251:f592e2d83bd8 temporals

if period ends with "UC", the respective KML timespan will not have an end tag
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Fri Aug 02 15:19:18 2013 +0300 (2013-08-02)
parents d98fe31ee81b
children 3638dc912d64
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:17:43 2013 +0300
     1.2 +++ b/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Fri Aug 02 15:19:18 2013 +0300
     1.3 @@ -215,7 +215,9 @@
     1.4  					String end = period.substring(period.indexOf(",")+2, period.indexOf("]"));
     1.5  					xmlWriter.startTag(TIMESPAN_TAG);
     1.6  					xmlWriter.textElement(BEGIN_TAG, start);
     1.7 -					xmlWriter.textElement(END_TAG, end);
     1.8 +					if(!end.contains("UC")){
     1.9 +						xmlWriter.textElement(END_TAG, end);	
    1.10 +					}
    1.11  					xmlWriter.endTag(TIMESPAN_TAG);
    1.12  
    1.13  				}