Strabon

changeset 1306:404eacc0f0be temporals

Add hyphen (-) to URI recognition regex
author George Garbis <ggarbis@di.uoa.gr>
date Sun Dec 15 15:45:55 2013 +0200 (2013-12-15)
parents edc19e1061da
children 4dff2f1163d8
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/utils.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/utils.java	Wed Dec 11 17:19:09 2013 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/utils.java	Sun Dec 15 15:45:55 2013 +0200
     1.3 @@ -58,8 +58,8 @@
     1.4  			String updateREGEX= "((where([\\s])*\\{(.)*\\})|(WHERE([\\s])*\\{(.)*\\}))";
     1.5  	
     1.6  			//check whether the query contains quadruples	
     1.7 -			String Word="((\\w)|(\\p{InGreek}))+";
     1.8 -			String URI="(<([\\S])*>)|("+Word+":"+Word+")";
     1.9 +			String Word="((\\w)|(\\p{InGreek})|-)+";
    1.10 +			String URI="(<([\\S-])*>)|("+Word+":"+Word+")";
    1.11  			String Literal="\".*\"(\\^\\^"+URI+")?";
    1.12  			String Variable="\\?"+Word;
    1.13