Class UnionGraphImpl.SubGraphs

java.lang.Object
org.apache.jena.ontapi.impl.UnionGraphImpl.SubGraphs
Enclosing class:
UnionGraphImpl

public static class UnionGraphImpl.SubGraphs extends Object
A container to hold all sub-graphs, that make up the hierarchy. Such a representation of sub-graphs collection in the form of separate class allows sharing its instance among different UnionGraph instances to impart whole hierarchy structure when it is needed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.apache.jena.graph.Graph graph)
    Adds the given graph into the underlying collection.
    Stream<org.apache.jena.graph.Graph>
    Lists all sub-graphs.
    boolean
    Answers true iff this container is empty.
    org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Graph>
    Lists all sub-graphs.
    void
    remove(org.apache.jena.graph.Graph graph)
    Removes the given graph from the underlying collection.

    Methods inherited from class java.lang.Object

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

    • listGraphs

      public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Graph> listGraphs()
      Lists all sub-graphs.
      Returns:
      ExtendedIterator of sub-graphs
    • graphs

      public Stream<org.apache.jena.graph.Graph> graphs()
      Lists all sub-graphs.
      Returns:
      Stream of sub-graphs
    • isEmpty

      public boolean isEmpty()
      Answers true iff this container is empty.
      Returns:
      boolean
    • remove

      public void remove(org.apache.jena.graph.Graph graph)
      Removes the given graph from the underlying collection. Maybe overridden to produce corresponding event.
      Parameters:
      graph - Graph
    • add

      public void add(org.apache.jena.graph.Graph graph)
      Adds the given graph into the underlying collection. Maybe overridden to produce corresponding event.
      Parameters:
      graph - Graph