org.topbraid.sparql.functions
Class ConstructName
java.lang.Object
com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
org.topbraid.sparql.functions.ConstructName
- All Implemented Interfaces:
- com.hp.hpl.jena.sparql.pfunction.PropertyFunction
public class ConstructName
- extends com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
Constructs a URI or qname from a string pattern.
Example:
SELECT ?subject ?name
WHERE { ?subject rdfs:label ?label .
?name spam:constructName ("http://aldi/{0}" ?label)}
- Author:
- Holger Knublauch
|
Method Summary |
void |
build(com.hp.hpl.jena.sparql.pfunction.PropFuncArg argSubject,
com.hp.hpl.jena.graph.Node predicate,
com.hp.hpl.jena.sparql.pfunction.PropFuncArg argObject,
com.hp.hpl.jena.sparql.engine.ExecutionContext execCxt)
|
com.hp.hpl.jena.sparql.engine.QueryIterator |
exec(com.hp.hpl.jena.sparql.engine.binding.Binding binding,
com.hp.hpl.jena.sparql.pfunction.PropFuncArg argSubject,
com.hp.hpl.jena.graph.Node predicate,
com.hp.hpl.jena.sparql.pfunction.PropFuncArg argObject,
com.hp.hpl.jena.sparql.engine.ExecutionContext execCxt)
|
| Methods inherited from class com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase |
exec |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructName
public ConstructName()
build
public void build(com.hp.hpl.jena.sparql.pfunction.PropFuncArg argSubject,
com.hp.hpl.jena.graph.Node predicate,
com.hp.hpl.jena.sparql.pfunction.PropFuncArg argObject,
com.hp.hpl.jena.sparql.engine.ExecutionContext execCxt)
- Specified by:
build in interface com.hp.hpl.jena.sparql.pfunction.PropertyFunction- Overrides:
build in class com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
exec
public com.hp.hpl.jena.sparql.engine.QueryIterator exec(com.hp.hpl.jena.sparql.engine.binding.Binding binding,
com.hp.hpl.jena.sparql.pfunction.PropFuncArg argSubject,
com.hp.hpl.jena.graph.Node predicate,
com.hp.hpl.jena.sparql.pfunction.PropFuncArg argObject,
com.hp.hpl.jena.sparql.engine.ExecutionContext execCxt)
- Specified by:
exec in class com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase