Module org.apache.jena.querybuilder
Class PrefixHandler
java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.PrefixHandler
The prefix handler for the updatebuilder class
-
Constructor Summary
ConstructorDescriptionConstructor.PrefixHandler
(org.apache.jena.shared.PrefixMapping pMap) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Clear the prefix mapping.Get the expression factory based on the prefix mapping.org.apache.jena.shared.PrefixMapping
Get the prefix mapping
-
Constructor Details
-
PrefixHandler
public PrefixHandler()Constructor. Creates and empty prefix mapping
-
Method Details
-
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 prefixs to URIs.
-
getPrefixes
public org.apache.jena.shared.PrefixMapping getPrefixes()Get the prefix mapping- Returns:
- the prefix mapping object.
-
getExprFactory
Get the expression factory based on the prefix mapping.- Returns:
- an Expression Factory.
-