Class FUN_XPath
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
URI
The SPARQL function URI.- See Also:
- Constant Field Values
-
-
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 classorg.apache.jena.sparql.function.FunctionBase2
-
nodeForNode
- Throws:
TransformerException
-