Class PrologHandler
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.PrologHandler
- All Implemented Interfaces:
Handler
The prolog handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(PrologHandler pfxHandler) Add the settings from the prolog handler argument.voidAdd a prefix to the prefix mapping.voidaddPrefixes(Map<String, String> prefixes) Add the map of prefixes to the query prefixes.voidaddPrefixes(PrefixMapping prefixes) Add prefixes from a prefix mapping.voidbuild()Called by the build process for this handler to perform any adjustments to the query before the build completes.voidClear the prefix mapping.voidSet the base for the query.voidSet the base for the query.voidSet the values for variables managed by the handler implementation.
-
Constructor Details
-
PrologHandler
Constructor.- Parameters:
query- The query to handle.
-
-
Method Details
-
setBase
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
-
getExprFactory
-
addAll
Add the settings from the prolog handler argument.- Parameters:
pfxHandler- The PrologHandler to read from
-
setVars
Description copied from interface:HandlerSet 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:HandlerCalled 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.
-