org.eaglei.repository.util
Class UpperCaseStr
java.lang.Object
org.eaglei.repository.util.UpperCaseStr
- All Implemented Interfaces:
- org.openrdf.query.algebra.evaluation.function.Function
public class UpperCaseStr
- extends java.lang.Object
- implements org.openrdf.query.algebra.evaluation.function.Function
Custom SPARQL query function, repo:upperCaseStr. It returns the
toUpperCase() version of of hte string value of an RDF value. Use it
to sort values IGNORING whether (a) the case of characters differs,
(b) they are datatyped-literals or untyped literals (or other terms).
This implementation may be specifc to Sesame 2.3, it depends on
loosely-documented interfaces.
To invoke it you must have the repository's URI namespace defined as a
prefix, e.g.
PREFIX repo:
....
ORDER BY repo:upperCaseStr(?label)
NOTE that this Function implementation is connected to the query
evaluator passively, by listing its class in the resource file:
META-INF/services/org.openrdf.query.algebra.evaluation.function.Function
Larry Stone - August 2010
|
Method Summary |
org.openrdf.model.Value |
evaluate(org.openrdf.model.ValueFactory vf,
org.openrdf.model.Value... args)
|
java.lang.String |
getURI()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpperCaseStr
public UpperCaseStr()
getURI
public java.lang.String getURI()
- Specified by:
getURI in interface org.openrdf.query.algebra.evaluation.function.Function
evaluate
public org.openrdf.model.Value evaluate(org.openrdf.model.ValueFactory vf,
org.openrdf.model.Value... args)
throws org.openrdf.query.algebra.evaluation.ValueExprEvaluationException
- Specified by:
evaluate in interface org.openrdf.query.algebra.evaluation.function.Function
- Throws:
org.openrdf.query.algebra.evaluation.ValueExprEvaluationException
Copyright © 2009-2011 Eagle-I. All Rights Reserved.