|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseGraphMaker
com.franz.agjena.AllegroGraphGraphMaker
public class AllegroGraphGraphMaker
A factory for providing instances of named graphs backed by an AllegroGraph quad store. Names can be "arbitrary" character sequences.
AllegroGraphGraphMaker represents a minimal reification style, since reification doesn't make sense anymore.
In order to benefit from the native capabilities of the AllegroGraph server an application must use the constructors and factory methods in the AllegroGraph classes that correspond to the general constructors and methods in Jena.
Constructor Summary | |
---|---|
AllegroGraphGraphMaker(AllegroGraph agStore)
Constructor |
Method Summary | |
---|---|
void |
close()
Close the factory - no more requests need be honoured, and any clean-up can be done. |
Graph |
createGraph(java.lang.String name,
boolean strict)
Create a new graph associated with the given name. |
Graph |
getDefaultGraph()
Return the default graph for this maker. |
Graph |
getGraph()
Answer the default graph for this maker. |
java.util.List<java.lang.String> |
getGraphURIs()
Retrieve the URIs of all graphs in the store, i.e., of all resources in context position. |
static AllegroGraphGraphMaker |
getInstance()
Return the default maker, already initialized with an AllegroGraph store. |
Node |
getMakerClass()
Answer the Class node for this GraphMaker's description. |
boolean |
hasGraph(java.lang.String name)
return true iff the factory has a graph with the given name |
ExtendedIterator |
listGraphs()
Answer an [extended] iterator where each element is the name of a graph in the maker, and the complete sequence exhausts the set of names. |
Graph |
openGraph()
|
Graph |
openGraph(java.lang.String name,
boolean strict)
Find an existing graph that this factory knows about under the given name. |
void |
removeGraph(java.lang.String name)
Remove the association between the name and the graph. |
void |
setDefaultIsGraphOfAllGraphs(boolean setting)
Sets the default graph to represent either the Graph-of-all-graphs, or just the triples asserted when no graph is specified. |
static void |
setDefaultMaker(AllegroGraph agStore)
Convenience method for testing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AllegroGraphGraphMaker(AllegroGraph agStore)
Method Detail |
---|
public static void setDefaultMaker(AllegroGraph agStore)
public static AllegroGraphGraphMaker getInstance()
public void setDefaultIsGraphOfAllGraphs(boolean setting)
public Graph createGraph(java.lang.String name, boolean strict)
strict
is false, return the associated graph. Otherwise throw an AlreadyExistsException.
name
- the name to give to the new graphstrict
- true to cause existing bindings to throw an exception
AlreadyExistsException
- if that name is already bound.public Graph openGraph(java.lang.String name, boolean strict)
strict
is false, create a new graph, associate it with the name, and return it.
Otherwise throw a DoesNotExistException.
name
- the name of the graph to find and returnstrict
- false to create a new one if one doesn't already exist
DoesNotExistException
- if there's no such named graphpublic void removeGraph(java.lang.String name)
name
- the name to disassociate
DoesNotExistException
- if the name is unboundpublic boolean hasGraph(java.lang.String name)
name
- the name of the graph to look for
public Node getMakerClass()
public void close()
public java.util.List<java.lang.String> getGraphURIs()
public ExtendedIterator listGraphs()
public Graph getGraph()
public Graph openGraph()
public Graph getDefaultGraph()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |