Strabon

changeset 693:5850eff37208 temporals

Added some comments.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Wed Nov 07 18:57:19 2012 +0200 (2012-11-07)
parents fe57e7c318ca
children db4d98ff0273
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	Wed Nov 07 18:48:22 2012 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Wed Nov 07 18:57:19 2012 +0200
     1.3 @@ -298,16 +298,17 @@
     1.4  		
     1.5  		while(matcher.find())		
     1.6  		{
     1.7 +			String quadruple=oldQueryString.substring(matcher.start(), matcher.end());
     1.8  			numOfQuadruples++;
     1.9 +			
    1.10  			newQueryString+=oldQueryString.substring(startIndex, matcher.start());
    1.11  			startIndex=matcher.end();
    1.12 -			
    1.13 -			String quadruple=oldQueryString.substring(matcher.start(), matcher.end());
    1.14  
    1.15 -
    1.16 +			//tokenize quadruples and convert them to triples:
    1.17 +			//s p o c  --becomes--> GRAPH ?g(numOfQuadruples) {s p o}
    1.18 +			//                      ?g(numOfQuadruples) strdf:hasValidTime c
    1.19  			String[] token = quadruple.split("(\\s)+");
    1.20 -			
    1.21 -			newQueryString+="\n GRAPH ?g"+numOfQuadruples+" {" +token[0]+" "+token[1]+" "+token[2]+" .}\n";
    1.22 +			newQueryString+="\n GRAPH ?g"+numOfQuadruples+" { " +token[0]+" "+token[1]+" "+token[2]+" .}\n";
    1.23  			newQueryString+="?g"+numOfQuadruples+" strdf:hasValidTime "+ token[3];
    1.24  			
    1.25