Package org.eclipse.rdf4j.sail.shacl.ast
Class XmlDatatypeUtilFunction
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.XmlDatatypeUtilFunction
-
- All Implemented Interfaces:
org.eclipse.rdf4j.query.algebra.evaluation.function.Function
public class XmlDatatypeUtilFunction extends Object implements org.eclipse.rdf4j.query.algebra.evaluation.function.Function
A custom SPARQL function that checks that a literal conforms to a given datatype by checking the datatype of the literal and also checking if the literal is ill-typed if the datatype is a supported XSD datatype.
-
-
Constructor Summary
Constructors Constructor Description XmlDatatypeUtilFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.rdf4j.model.Valueevaluate(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value... args)org.eclipse.rdf4j.model.Valueevaluate(org.eclipse.rdf4j.query.algebra.evaluation.TripleSource tripleSource, org.eclipse.rdf4j.model.Value... args)StringgetURI()
-
-
-
Method Detail
-
getURI
public String getURI()
- Specified by:
getURIin interfaceorg.eclipse.rdf4j.query.algebra.evaluation.function.Function
-
evaluate
public org.eclipse.rdf4j.model.Value evaluate(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value... args) throws org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException- Specified by:
evaluatein interfaceorg.eclipse.rdf4j.query.algebra.evaluation.function.Function- Throws:
org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException
-
evaluate
public org.eclipse.rdf4j.model.Value evaluate(org.eclipse.rdf4j.query.algebra.evaluation.TripleSource tripleSource, org.eclipse.rdf4j.model.Value... args)- Specified by:
evaluatein interfaceorg.eclipse.rdf4j.query.algebra.evaluation.function.Function
-
-