Strabon

changeset 271:fe2694dc1bf3

Added hook for undergraduate students to add their extension
author Manos Karpathiotakis <mk@di.uoa.gr>
date Wed Jun 13 01:24:53 2012 +0300 (2012-06-13)
parents 5510e5cd9aac
children 8b75a4e15e4b
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/SimilarTermFunc.java evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java evaluation/src/main/resources/META-INF/services/org.openrdf.query.algebra.evaluation.function.Function
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/SimilarTermFunc.java	Wed Jun 13 01:24:53 2012 +0300
     1.3 @@ -0,0 +1,34 @@
     1.4 +/*
     1.5 + * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
     1.6 + *
     1.7 + * Licensed under the Aduna BSD-style license.
     1.8 + */
     1.9 +package org.openrdf.query.algebra.evaluation.function.link;
    1.10 +
    1.11 +import org.openrdf.model.Value;
    1.12 +import org.openrdf.model.ValueFactory;
    1.13 +import org.openrdf.query.algebra.evaluation.ValueExprEvaluationException;
    1.14 +import org.openrdf.query.algebra.evaluation.function.spatial.StrabonPolyhedron;
    1.15 +import org.openrdf.query.algebra.evaluation.function.spatial.geosparql.GeoSparqlRelation;
    1.16 +
    1.17 +
    1.18 +public class SimilarTermFunc extends GeoSparqlRelation {
    1.19 +	
    1.20 +	protected static String name = "similarTerm";
    1.21 +	
    1.22 +	@Override
    1.23 +	public String getURI() {
    1.24 +		return StrabonPolyhedron.stRDF+name;
    1.25 +		}
    1.26 +
    1.27 +    public Value evaluate(ValueFactory valueFactory, Value... args)
    1.28 +            throws ValueExprEvaluationException {
    1.29 +        if (args.length != 2) {
    1.30 +            throw new ValueExprEvaluationException("strdf:" + name
    1.31 +                    + " requires exactly 2 arguments, got " + args.length);
    1.32 +        }
    1.33 +
    1.34 +        return null;
    1.35 +    }
    1.36 +
    1.37 +}
     2.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java	Tue Jun 12 11:53:22 2012 +0300
     2.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java	Wed Jun 13 01:24:53 2012 +0300
     2.3 @@ -63,6 +63,7 @@
     2.4  
     2.5  	public static final boolean EnableConstraintRepresentation = false;
     2.6  
     2.7 +	public static final String stRDF="http://strdf.di.uoa.gr/ontology#";
     2.8  	public static final String stRDFSemiLinearPointset="http://strdf.di.uoa.gr/ontology#SemiLinearPointSet";
     2.9  	public static final String ogcGeometry="http://strdf.di.uoa.gr/ontology#WKT";
    2.10  	public static final String geof="http://www.opengis.net/def/queryLanguage/OGC-GeoSPARQL/1.0/function/";
     3.1 --- a/evaluation/src/main/resources/META-INF/services/org.openrdf.query.algebra.evaluation.function.Function	Tue Jun 12 11:53:22 2012 +0300
     3.2 +++ b/evaluation/src/main/resources/META-INF/services/org.openrdf.query.algebra.evaluation.function.Function	Wed Jun 13 01:24:53 2012 +0300
     3.3 @@ -5,6 +5,7 @@
     3.4  org.openrdf.query.algebra.evaluation.function.IntegerCast
     3.5  org.openrdf.query.algebra.evaluation.function.BooleanCast
     3.6  org.openrdf.query.algebra.evaluation.function.DateTimeCast
     3.7 +org.openrdf.query.algebra.evaluation.link.SimilarTermFunc
     3.8  org.openrdf.query.algebra.evaluation.function.spatial.stsparql.relation.AnyInteractFunc
     3.9  org.openrdf.query.algebra.evaluation.function.spatial.stsparql.relation.ContainsFunc
    3.10  org.openrdf.query.algebra.evaluation.function.spatial.stsparql.relation.CoveredByFunc