java.lang.Object
org.apache.jena.arq.querybuilder.handlers.DatasetHandler
All Implemented Interfaces:
Handler

public class DatasetHandler extends Object implements Handler
Handler for a dataset.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DatasetHandler(org.apache.jena.query.Query query)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAll(DatasetHandler datasetHandler)
    Add all the dataset information from the handler argument.
    void
    Called by the build process for this handler to perform any adjustments to the query before the build completes.
    void
    from(Object graphName)
    Add one or more graph names to the query.
    void
    fromNamed(Object graphName)
    Add one or more named graphs to the query.
    void
    setVars(Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> values)
    Set the values for variables managed by the handler implementation.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DatasetHandler

      public DatasetHandler(org.apache.jena.query.Query query)
      Constructor.
      Parameters:
      query - The query the handler will manage.
  • Method Details

    • addAll

      public void addAll(DatasetHandler datasetHandler)
      Add all the dataset information from the handler argument.
      Parameters:
      datasetHandler - The handler to copy from.
    • fromNamed

      public void fromNamed(Object graphName)
      Add one or more named graphs to the query. if graphName is a collection or an array each element in the
    • from

      public void from(Object graphName)
      Add one or more graph names to the query. if graphName is a collection or an array each element in the
    • setVars

      public void setVars(Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> values)
      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.
      Specified by:
      setVars in interface Handler
      Parameters:
      values - The map of variable to node value.
    • 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.
      Specified by:
      build in interface Handler