Strabon

changeset 430:fce6c0ba06cb

Fixed minor issue at similarFunc(). Not declared as a spatial function currently
author Manos Karpathiotakis <mk@di.uoa.gr>
date Mon Jul 16 12:03:00 2012 +0300 (2012-07-16)
parents ea79024a3e30
children 6072ae2f1b6b
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/SimilarTermFunc.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/SimilarTermFunc.java	Thu Jul 12 15:53:34 2012 +0300
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/SimilarTermFunc.java	Mon Jul 16 12:03:00 2012 +0300
     1.3 @@ -8,6 +8,7 @@
     1.4  import org.openrdf.model.Value;
     1.5  import org.openrdf.model.ValueFactory;
     1.6  import org.openrdf.query.algebra.evaluation.ValueExprEvaluationException;
     1.7 +import org.openrdf.query.algebra.evaluation.function.Function;
     1.8  import org.openrdf.query.algebra.evaluation.function.spatial.GeoConstants;
     1.9  import org.openrdf.query.algebra.evaluation.function.spatial.geosparql.GeoSparqlRelation;
    1.10  
    1.11 @@ -15,7 +16,7 @@
    1.12   * 
    1.13   * @author Manos Karpathiotakis <mk@di.uoa.gr>
    1.14   */
    1.15 -public class SimilarTermFunc extends GeoSparqlRelation {
    1.16 +public class SimilarTermFunc implements Function {
    1.17  	
    1.18  	protected static String name = "similarTerm";
    1.19  	
    1.20 @@ -31,7 +32,7 @@
    1.21                      + " requires exactly 2 arguments, got " + args.length);
    1.22          }
    1.23  
    1.24 -        return null;
    1.25 +        return valueFactory.createLiteral(true);
    1.26      }
    1.27  
    1.28  }