java.lang.Object
org.apache.jena.ontapi.impl.UnionGraphImpl.SubGraphs
- Enclosing class:
- UnionGraphImpl
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 TypeMethodDescriptionvoid
add
(org.apache.jena.graph.Graph graph) Adds the given graph into the underlying collection.Stream<org.apache.jena.graph.Graph>
graphs()
Lists all sub-graphs.boolean
isEmpty()
Answerstrue
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.
-
Method Details
-
listGraphs
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Graph> listGraphs()Lists all sub-graphs.- Returns:
ExtendedIterator
of sub-graph
s
-
graphs
Lists all sub-graphs.- Returns:
Stream
of sub-graph
s
-
isEmpty
public boolean isEmpty()Answerstrue
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
-