Module org.apache.jena.querybuilder
Class PrologHandler
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.PrologHandler
- All Implemented Interfaces:
Handler
The prolog handler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(PrologHandler pfxHandler) Add the settings from the prolog handler argument.void
Add a prefix to the prefix mapping.void
addPrefixes
(Map<String, String> prefixes) Add the map of prefixes to the query prefixes.void
addPrefixes
(org.apache.jena.shared.PrefixMapping prefixes) Add prefixes from a prefix mapping.void
build()
Called by the build process for this handler to perform any adjustments to the query before the build completes.void
Clear the prefix mapping.org.apache.jena.shared.PrefixMapping
void
Set the base for the query.void
setBase
(org.apache.jena.irix.IRIx base) Set the base for the query.void
Set the values for variables managed by the handler implementation.
-
Constructor Details
-
PrologHandler
public PrologHandler(org.apache.jena.query.Query query) Constructor.- Parameters:
query
- The query to handle.
-
-
Method Details
-
setBase
public void setBase(org.apache.jena.irix.IRIx base) Set the base for the query. This is the IRI against which relative names will be resolved.- Parameters:
base
- The base URI.
-
setBase
Set the base for the query. This is the IRI against which relative names will be resolved.- Parameters:
base
- The string to set the base from.
-
addPrefix
Add a prefix to the prefix mapping.- Parameters:
pfx
- The prefix to add.uri
- The uri to resolve the prefix to.
-
clearPrefixes
public void clearPrefixes()Clear the prefix mapping. -
addPrefixes
Add the map of prefixes to the query prefixes.- Parameters:
prefixes
- The map of prefixes to URIs.
-
getPrefixes
public org.apache.jena.shared.PrefixMapping getPrefixes() -
getExprFactory
-
addAll
Add the settings from the prolog handler argument.- Parameters:
pfxHandler
- The PrologHandler to read from
-
setVars
Description copied from interface:Handler
Set the values for variables managed by the handler implementation. This method is called by the builder to set values handled by this Handler implementation. -
build
public void build()Description copied from interface:Handler
Called by the build process for this handler to perform any adjustments to the query before the build completes. The adjustments are made after setVars() has been called.
-