Class PrefixHandler
java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.PrefixHandler
The prefix handler for the updatebuilder class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd 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.voidClear the prefix mapping.Get the expression factory based on the prefix mapping.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
Get the prefix mapping- Returns:
- the prefix mapping object.
-
getExprFactory
Get the expression factory based on the prefix mapping.- Returns:
- an Expression Factory.
-