Class PrefixHandler

java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.PrefixHandler

public class PrefixHandler extends Object
The prefix handler for the updatebuilder class
  • Constructor Details

    • PrefixHandler

      public PrefixHandler(PrefixMapping pMap)
      Constructor. May modify the contents of the provided prefix mapping
      Parameters:
      pMap - The prefix map to handle.
    • PrefixHandler

      public PrefixHandler()
      Constructor. Creates and empty prefix mapping
  • Method Details

    • addPrefix

      public void addPrefix(String pfx, String uri)
      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

      public void addPrefixes(Map<String,String> prefixes)
      Add the map of prefixes to the query prefixes.
      Parameters:
      prefixes - The map of prefixs to URIs.
    • getPrefixes

      public PrefixMapping getPrefixes()
      Get the prefix mapping
      Returns:
      the prefix mapping object.
    • getExprFactory

      public ExprFactory getExprFactory()
      Get the expression factory based on the prefix mapping.
      Returns:
      an Expression Factory.
    • addPrefixes

      public void addPrefixes(PrefixMapping prefixes)
      Add prefixes from a prefix mapping.
      Parameters:
      prefixes - The prefix mapping to add from.