|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.impl.GraphBase
com.hp.hpl.jena.graph.compose.CompositionBase
com.hp.hpl.jena.graph.compose.Polyadic
public abstract class Polyadic
A base class for composition graphs that are composed from zero or more sub-graphs (thus providing a basis for polyadic composition operators). A distinguished graph is the designated graph for additions to the union. By default, this is the first sub-graph of the composition, however any of the graphs in the composition can be nominated to be the distinguished graph.
Field Summary |
---|
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
---|
emptyGraph |
Constructor Summary | |
---|---|
Polyadic()
Construct a composition of exactly no sub graphs. |
|
Polyadic(Graph[] graphs)
Construct a composition of all of the given graphs |
|
Polyadic(java.util.Iterator graphs)
Construct a composition of all of the given graphs. |
Method Summary | |
---|---|
void |
addGraph(Graph graph)
Add the given graph to this composition. |
void |
close()
Close the graph by closing all of the sub-graphs. |
boolean |
dependsOn(Graph graph)
Answer true if this graph contains the given graph as a sub-component. |
Graph |
getBaseGraph()
Answer the distinguished graph for the composition, which will be the graph that receives triple adds and deletes. |
BulkUpdateHandler |
getBulkUpdateHandler()
Answer a BulkUpdateHandler bound to this graph. |
Capabilities |
getCapabilities()
Answer the capabilities of this graph; the default is an AllCapabilities object (the same one each time, not that it matters - Capabilities should be immutable). |
PrefixMapping |
getPrefixMapping()
Answer the PrefixMapping object for this graph, the same one each time. |
Graph |
getRequiredBaseGraph()
Answer the distinguished graph for the composition, which will be the graph that receives triple adds and deletes. |
java.util.List |
getSubGraphs()
Answer a list of the graphs other than the updateable (base) graph |
TransactionHandler |
getTransactionHandler()
Answer a transaction handler bound to this graph. |
void |
removeGraph(Graph graph)
Remove the given graph from this composition. |
void |
setBaseGraph(Graph graph)
Set the designated updateable graph for this composition. |
Methods inherited from class com.hp.hpl.jena.graph.compose.CompositionBase |
---|
butNot, countIterator, graphBaseSize, ifIn, ifIn, recording, reject, rejecting, rejecting |
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
---|
add, contains, contains, delete, find, find, forTestingOnly_graphBaseFind, getEventManager, getReifier, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, size, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Polyadic()
Construct a composition of exactly no sub graphs.
public Polyadic(Graph[] graphs)
Construct a composition of all of the given graphs
graphs
- An array of the sub-graphs of this compositionpublic Polyadic(java.util.Iterator graphs)
Construct a composition of all of the given graphs.
graphs
- An iterator of the sub-graphs of this composition. If graphs is
a closable iterator, it will be automatically closed.Method Detail |
---|
public PrefixMapping getPrefixMapping()
com.hp.hpl.jena.graph.impl.GraphBase
getPrefixMapping
in interface Graph
getPrefixMapping
in class com.hp.hpl.jena.graph.impl.GraphBase
public void close()
Close the graph by closing all of the sub-graphs.
close
in interface Graph
close
in class com.hp.hpl.jena.graph.impl.GraphBase
Graph.close()
public boolean dependsOn(Graph graph)
Answer true if this graph contains the given graph as a sub-component.
dependsOn
in interface Graph
dependsOn
in class com.hp.hpl.jena.graph.impl.GraphBase
graph
- A graph to test
Graph.dependsOn(Graph)
public void addGraph(Graph graph)
Add the given graph to this composition.
graph
- A sub-graph to add to this compositionpublic void removeGraph(Graph graph)
Remove the given graph from this composition. If the removed graph is the designated updateable graph, the updatable graph goes back to the default for this composition.
graph
- A sub-graph to remove from this compositionpublic Graph getBaseGraph()
Answer the distinguished graph for the composition, which will be the graph that receives triple adds and deletes. If no base graph is defined, return null.
public Graph getRequiredBaseGraph()
Answer the distinguished graph for the composition, which will be the graph
that receives triple adds and deletes. If no base graph is defined, throw
a JenaException
.
public void setBaseGraph(Graph graph)
Set the designated updateable graph for this composition.
graph
- One of the graphs currently in this composition to be the
designated graph to receive udpates
java.lang.IllegalArgumentException
- if graph is not one of the members of
the compositionpublic java.util.List getSubGraphs()
Answer a list of the graphs other than the updateable (base) graph
public BulkUpdateHandler getBulkUpdateHandler()
com.hp.hpl.jena.graph.impl.GraphBase
getBulkUpdateHandler
in interface Graph
getBulkUpdateHandler
in class com.hp.hpl.jena.graph.impl.GraphBase
public TransactionHandler getTransactionHandler()
com.hp.hpl.jena.graph.impl.GraphBase
getTransactionHandler
in interface Graph
getTransactionHandler
in class com.hp.hpl.jena.graph.impl.GraphBase
public Capabilities getCapabilities()
com.hp.hpl.jena.graph.impl.GraphBase
getCapabilities
in interface Graph
getCapabilities
in class com.hp.hpl.jena.graph.impl.GraphBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |