Class NamedGraphWrapper

java.lang.Object
org.apache.jena.sparql.graph.GraphWrapper
org.apache.jena.sparql.core.NamedGraphWrapper
All Implemented Interfaces:
Graph, NamedGraph

public class NamedGraphWrapper extends GraphWrapper implements NamedGraph
Add a name to a graph.
See Also:
  • Constructor Details

    • NamedGraphWrapper

      public NamedGraphWrapper(Node graphName, Graph graph)
  • Method Details

    • getGraphName

      public Node getGraphName()
      Description copied from interface: NamedGraph
      Return the graph name for this graph. Blank nodes can be used.

      A named graph of "null" is discouraged - use Quad.defaultGraphIRI for a default graph in the context of use.

      Specified by:
      getGraphName in interface NamedGraph
    • toString

      public String toString()
      Overrides:
      toString in class Object