Class 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 Detail

      • XmlDatatypeUtilFunction

        public XmlDatatypeUtilFunction()
    • Method Detail

      • getURI

        public String getURI()
        Specified by:
        getURI in interface org.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:
        evaluate in interface org.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:
        evaluate in interface org.eclipse.rdf4j.query.algebra.evaluation.function.Function