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 TypeMethodDescriptionvoidadd(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.booleanisEmpty()Answerstrueiff this container is empty.org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Graph>Lists all sub-graphs.voidremove(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:
ExtendedIteratorof sub-graphs
-
graphs
Lists all sub-graphs.- Returns:
Streamof sub-graphs
-
isEmpty
public boolean isEmpty()Answerstrueiff 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
-