Strabon

changeset 769:b2aae972c2dd temporals

did the same for the storeURL case
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Thu Dec 06 20:39:51 2012 +0200 (2012-12-06)
parents cdfdf384451a
children 069e5acada90
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Thu Dec 06 20:35:27 2012 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Thu Dec 06 20:39:51 2012 +0200
     1.3 @@ -497,9 +497,10 @@
     1.4  					 String validPeriod= cont;
     1.5  					 if(!cont.contains(","))
     1.6  					 {
     1.7 -						 int i = cont.indexOf('[')+1;
     1.8 -						 int j = cont.indexOf(']');
     1.9 -						 validPeriod = cont.replace("]",","+cont.substring(i, j)+"]");
    1.10 +						 int i = cont.indexOf('"')+1;
    1.11 +						 int j = cont.lastIndexOf('"');
    1.12 +						 validPeriod = "\"[" + cont.substring(i,j) + "," + cont.substring(i,j) + "]\"^^<http://strdf.di.uoa.gr/ontology#validTime>"; 
    1.13 +						 //validPeriod = cont.replace("]",","+cont.substring(i, j)+"]");
    1.14  						 
    1.15  					 }
    1.16  					Resource newContext = new NQuadsParser().createValidTimeURI(validPeriod);