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.
- Author:
- Maxime Lefrançois
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.expr.NodeValueexec(org.apache.jena.sparql.expr.NodeValue xml, org.apache.jena.sparql.expr.NodeValue xpath) org.apache.jena.sparql.expr.NodeValuenodeForNode(Node xmlNode) Methods inherited from class org.apache.jena.sparql.function.FunctionBase2
checkBuild, execMethods inherited from class org.apache.jena.sparql.function.FunctionBase
build, exec, exec
-
Field Details
-
URI
The SPARQL function URI.- See Also:
-
-
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:
execin classorg.apache.jena.sparql.function.FunctionBase2
-
nodeForNode
- Throws:
TransformerException
-