com.hp.hpl.jena.graph.compose .CompositionBase com.hp.hpl.jena.graph.compose .Polyadic com.hp.hpl.jena.graph.compose .MultiUnion MultiUnion public class MultiUnion extends Polyadic (Code)
A graph implementation that presents the union of zero or more subgraphs,
one of which is distinguished as the updateable graph.
author: Ian Dickinson, HP Labsauthor: (email )version: CVS $Id: MultiUnion.java,v 1.28 2008/01/02 12:10:20 andy_seaborne Exp $
Constructor Summary public MultiUnion ()
Construct a union of exactly no sub graphs.
public MultiUnion (Graph [] graphs) public MultiUnion (Iterator graphs)
Construct a union of all of the given graphs.
Parameters: graphs - An iterator of the sub-graphs of this union.
MultiUnion public MultiUnion()(Code)
Construct a union of exactly no sub graphs.
MultiUnion public MultiUnion(Graph [] graphs)(Code)
Construct a union of all of the given graphs
Parameters: graphs - An array of the sub-graphs of this union
MultiUnion public MultiUnion(Iterator graphs)(Code)
Construct a union of all of the given graphs.
Parameters: graphs - An iterator of the sub-graphs of this union. If graphs isa closable iterator, it will be automatically closed.
addGraph public void addGraph(Graph graph)(Code)
Add the given graph to this union. If it is already a member of the union, don't
add it a second time.
Parameters: graph - A sub-graph to add to this union
getReifier public Reifier getReifier()(Code) Unions share the reifiers of their base graphs. THIS WILL CHANGE.
graphBaseContains public boolean graphBaseContains(Triple t)(Code)
Answer true if at least one of the graphs in this union contain the given triple.
Parameters: t - A triple True if any of the graphs in the union contain t
graphBaseFind public ExtendedIterator graphBaseFind(TripleMatch t)(Code)
Answer an iterator over the triples in the union of the graphs in this composition. Note
that the requirement to remove duplicates from the union means that this will be an
expensive operation for large (and especially for persistent) graphs.
Parameters: t - The matcher to match against An iterator of all triples matching t in the union of the graphs.
performAdd public void performAdd(Triple t)(Code)
Add the given triple to the union model; the actual component model to
be updated will be the designated (or default)
graph.
Parameters: t - A triple to add to the union graphexception: JenaException - if the union does not contain any sub-graphs yet
performDelete public void performDelete(Triple t)(Code)
Delete the given triple from the union model; the actual component model to
be updated will be the designated (or default)
graph.
Parameters: t - A triple to from the union graphexception: JenaException - if the union does not contain any sub-graphs yet