Strabon

changeset 1302:b3766e94a88d temporals

fixed bug that occured in update statements when a temporal constant was the forth element of the update part of a statement (not a temporal variable) and this element was a time instant (not a period)
author constant <Konstantina.Bereta@di.uoa.gr>
date Tue Dec 03 14:49:20 2013 +0200 (2013-12-03)
parents 86466b691f5a
children 96d5038efff4
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java	Tue Dec 03 14:41:34 2013 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java	Tue Dec 03 14:49:20 2013 +0200
     1.3 @@ -268,6 +268,14 @@
     1.4          String uri = strdf+"/"+ startDate+"_"+ endDate+ "_" +format.getTimeZone().getID(); 
     1.5          Resource cont = createURI(uri);
     1.6          return cont;
     1.7 +    }else if(sb.contains("^^<"+TemporalConstants.INSTANT))
     1.8 +    {
     1.9 +    	String instant = sb.replace("^^<"+TemporalConstants.INSTANT+">", "").replace("\"","");
    1.10 +    	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    1.11 +     	Date point = format.parse(instant);
    1.12 +        String uri = strdf+"/"+ instant; 
    1.13 +        Resource cont = createURI(uri);
    1.14 +        return cont;
    1.15      }
    1.16      	return null;
    1.17      }