Franz Inc, AllegroGraph

com.franz.agraph.jena
Class AGGraph

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by com.franz.agraph.jena.AGGraph
All Implemented Interfaces:
Closeable, Graph, GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform
Direct Known Subclasses:
AGGraphUnion, AGInfGraph

public class AGGraph
extends com.hp.hpl.jena.graph.impl.GraphBase
implements Graph, Closeable

Implements the Jena Graph interface for AllegroGraph.


Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Method Summary
 BulkUpdateHandler getBulkUpdateHandler()
           
 Capabilities getCapabilities()
           
 String getName()
           
 PrefixMapping getPrefixMapping()
           
 TransactionHandler getTransactionHandler()
           
 boolean isEmpty()
          Answer true iff this graph contains no triples.
 void performAdd(Triple t)
           
 void performDelete(Triple t)
           
 String toString()
           
static String toString(String prefix, Graph that)
          Answer a human-consumable representation of that.
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getReifier, getStatisticsHandler, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, queryHandler, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.Graph
close, contains, contains, delete, dependsOn, find, find, getEventManager, getReifier, getStatisticsHandler, isClosed, isIsomorphicWith, queryHandler, size
 
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd
add
 
Methods inherited from interface com.franz.util.Closeable
close
 

Method Detail

getName

public String getName()

getBulkUpdateHandler

public BulkUpdateHandler getBulkUpdateHandler()
Specified by:
getBulkUpdateHandler in interface Graph
Overrides:
getBulkUpdateHandler in class com.hp.hpl.jena.graph.impl.GraphBase

getCapabilities

public Capabilities getCapabilities()
Specified by:
getCapabilities in interface Graph
Overrides:
getCapabilities in class com.hp.hpl.jena.graph.impl.GraphBase

getPrefixMapping

public PrefixMapping getPrefixMapping()
Specified by:
getPrefixMapping in interface Graph
Overrides:
getPrefixMapping in class com.hp.hpl.jena.graph.impl.GraphBase

getTransactionHandler

public TransactionHandler getTransactionHandler()
Specified by:
getTransactionHandler in interface Graph
Overrides:
getTransactionHandler in class com.hp.hpl.jena.graph.impl.GraphBase

toString

public String toString()
Overrides:
toString in class com.hp.hpl.jena.graph.impl.GraphBase

toString

public static String toString(String prefix,
                              Graph that)
Answer a human-consumable representation of that. The string prefix will appear near the beginning of the string. Nodes may be prefix-compressed using that's prefix-mapping. This default implementation will display all the triples exposed by the graph (ie including reification triples if it is Standard).


performAdd

public void performAdd(Triple t)
Specified by:
performAdd in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
Overrides:
performAdd in class com.hp.hpl.jena.graph.impl.GraphBase

performDelete

public void performDelete(Triple t)
Specified by:
performDelete in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
Overrides:
performDelete in class com.hp.hpl.jena.graph.impl.GraphBase

isEmpty

public boolean isEmpty()
Answer true iff this graph contains no triples. Implemented using a SPARQL ASK for any triple in the graph's dataset; on large databases this is faster than determining whether the graph's size is zero.

Specified by:
isEmpty in interface Graph
Overrides:
isEmpty in class com.hp.hpl.jena.graph.impl.GraphBase

Copyright © 2008-2012 Franz Inc.