java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.apache.jena.sparql.function.FunctionBase2
fr.mines_stetienne.ci.sparql_generate.xml.FUN_XPath
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public class FUN_XPath extends org.apache.jena.sparql.function.FunctionBase2
Binding function fun:XPath extracts a string from a XML document, according to a XPath expression.
  • Param 1 is the input string;
  • Param 2 is a XPath expression;
  • Result is a boolean, float, double, integer, string, as it best fits.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
    The SPARQL function URI.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.expr.NodeValue
    exec​(org.apache.jena.sparql.expr.NodeValue xml, org.apache.jena.sparql.expr.NodeValue xpath)
     
    org.apache.jena.sparql.expr.NodeValue
    nodeForNode​(Node xmlNode)
     

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase2

    checkBuild, exec

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase

    build, evalArgs, exec

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.sparql.function.Function

    build
  • Field Details

  • Constructor Details

    • FUN_XPath

      public FUN_XPath()
  • Method Details

    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue xml, org.apache.jena.sparql.expr.NodeValue xpath)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase2
    • nodeForNode

      public org.apache.jena.sparql.expr.NodeValue nodeForNode(Node xmlNode) throws TransformerException
      Throws:
      TransformerException