Franz Inc, AllegroGraph

com.franz.agraph.jena
Class AGGraphMaker

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

public class AGGraphMaker
extends Object
implements com.hp.hpl.jena.graph.GraphMaker, Closeable

Implements the Jena GraphMaker interface for AllegroGraph.


Constructor Summary
AGGraphMaker(AGRepositoryConnection conn)
           
AGGraphMaker(AGRepositoryConnection conn, com.hp.hpl.jena.shared.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()
           
 com.hp.hpl.jena.shared.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,
                    com.hp.hpl.jena.shared.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 com.hp.hpl.jena.graph.GraphMaker
See Also:
Closeable.close()

getGraph

public AGGraph getGraph()
Specified by:
getGraph in interface com.hp.hpl.jena.graph.GraphMaker

createGraph

public AGGraph createGraph()
Specified by:
createGraph in interface com.hp.hpl.jena.graph.GraphMaker

createGraph

public AGGraph createGraph(String uri)
Specified by:
createGraph in interface com.hp.hpl.jena.graph.GraphMaker

createGraph

public AGGraph createGraph(String uri,
                           boolean strict)
Specified by:
createGraph in interface com.hp.hpl.jena.graph.GraphMaker

getReificationStyle

public com.hp.hpl.jena.shared.ReificationStyle getReificationStyle()
Specified by:
getReificationStyle in interface com.hp.hpl.jena.graph.GraphMaker

hasGraph

public boolean hasGraph(String uri)
Specified by:
hasGraph in interface com.hp.hpl.jena.graph.GraphMaker

listGraphs

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

openGraph

public AGGraph openGraph()
Specified by:
openGraph in interface com.hp.hpl.jena.graph.GraphMaker

openGraph

public AGGraph openGraph(String name)
Specified by:
openGraph in interface com.hp.hpl.jena.graph.GraphMaker

openGraph

public AGGraph openGraph(String uri,
                         boolean strict)
Specified by:
openGraph in interface com.hp.hpl.jena.graph.GraphMaker

removeGraph

public void removeGraph(String uri)
Specified by:
removeGraph in interface com.hp.hpl.jena.graph.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.