Franz Inc, AllegroGraph

com.franz.agraph.jena
Class AGGraphMaker

java.lang.Object
  extended by com.franz.agraph.jena.AGGraphMaker
All Implemented Interfaces:
Closeable, GraphMaker

public class AGGraphMaker
extends Object
implements GraphMaker, Closeable

Implements the Jena GraphMaker interface for AllegroGraph.


Constructor Summary
AGGraphMaker(AGRepositoryConnection conn)
           
AGGraphMaker(AGRepositoryConnection conn, ReificationStyle style)
           
 
Method Summary
 void close()
          Releases system resources associated with the object.
 AGGraph createGraph()
           
 AGGraph createGraph(String uri)
           
 AGGraph createGraph(String uri, boolean strict)
           
 AGGraphUnion createUnion(AGGraph... graphs)
          Returns a graph that is the union of specified graphs.
 AGGraph getGraph()
           
 ReificationStyle getReificationStyle()
           
 AGRepositoryConnection getRepositoryConnection()
           
 AGGraph getUnionOfAllGraphs()
          Returns the union of all graphs (includes default graph).
 boolean hasGraph(String uri)
           
 com.hp.hpl.jena.util.iterator.ExtendedIterator<String> listGraphs()
           
 AGGraph openGraph()
           
 AGGraph openGraph(String name)
           
 AGGraph openGraph(String uri, boolean strict)
           
 void removeGraph(String uri)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGGraphMaker

public AGGraphMaker(AGRepositoryConnection conn)

AGGraphMaker

public AGGraphMaker(AGRepositoryConnection conn,
                    ReificationStyle style)
Method Detail

getRepositoryConnection

public AGRepositoryConnection getRepositoryConnection()

close

public void close()
Description copied from interface: Closeable
Releases system resources associated with the object.

Specified by:
close in interface Closeable
Specified by:
close in interface GraphMaker
See Also:
Closeable.close()

getGraph

public AGGraph getGraph()
Specified by:
getGraph in interface GraphMaker

createGraph

public AGGraph createGraph()
Specified by:
createGraph in interface GraphMaker

createGraph

public AGGraph createGraph(String uri)
Specified by:
createGraph in interface GraphMaker

createGraph

public AGGraph createGraph(String uri,
                           boolean strict)
Specified by:
createGraph in interface GraphMaker

getReificationStyle

public ReificationStyle getReificationStyle()
Specified by:
getReificationStyle in interface GraphMaker

hasGraph

public boolean hasGraph(String uri)
Specified by:
hasGraph in interface GraphMaker

listGraphs

public com.hp.hpl.jena.util.iterator.ExtendedIterator<String> listGraphs()
Specified by:
listGraphs in interface GraphMaker

openGraph

public AGGraph openGraph()
Specified by:
openGraph in interface GraphMaker

openGraph

public AGGraph openGraph(String name)
Specified by:
openGraph in interface GraphMaker

openGraph

public AGGraph openGraph(String uri,
                         boolean strict)
Specified by:
openGraph in interface GraphMaker

removeGraph

public void removeGraph(String uri)
Specified by:
removeGraph in interface GraphMaker

getUnionOfAllGraphs

public AGGraph getUnionOfAllGraphs()
Returns the union of all graphs (includes default graph). Add operations on this graph are housed in the default graph.

Returns:
the union of all graphs.

createUnion

public AGGraphUnion createUnion(AGGraph... graphs)
Returns a graph that is the union of specified graphs. By convention, the first graph mentioned will be used for add operations on the union. All other operations will apply to all graphs in the union. If no graphs are supplied, the union of all graphs is assumed, and add operations apply to the default graph.

Parameters:
graphs - the graphs in the union
Returns:
the union of the specified graphs

Copyright © 2008-2012 Franz Inc.