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, com.hp.hpl.jena.graph.Graph, com.hp.hpl.jena.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 com.hp.hpl.jena.graph.Graph, Closeable

Implements the Jena Graph interface for AllegroGraph.


Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Method Summary
 com.hp.hpl.jena.graph.BulkUpdateHandler getBulkUpdateHandler()
           
 com.hp.hpl.jena.graph.Capabilities getCapabilities()
           
 String getName()
           
 com.hp.hpl.jena.shared.PrefixMapping getPrefixMapping()
           
 com.hp.hpl.jena.graph.TransactionHandler getTransactionHandler()
           
 boolean isEmpty()
          Answer true iff this graph contains no triples.
 void performAdd(com.hp.hpl.jena.graph.Triple t)
           
 void performDelete(com.hp.hpl.jena.graph.Triple t)
           
 String toString()
           
static String toString(String prefix, com.hp.hpl.jena.graph.Graph that)
          Answer a human-consumable representation of that.
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, clear, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getStatisticsHandler, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, remove, 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
add, clear, close, contains, contains, delete, dependsOn, find, find, getEventManager, getStatisticsHandler, isClosed, isIsomorphicWith, remove, size
 
Methods inherited from interface com.franz.util.Closeable
close
 

Method Detail

getName

public String getName()

getBulkUpdateHandler

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

getCapabilities

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

getPrefixMapping

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

getTransactionHandler

public com.hp.hpl.jena.graph.TransactionHandler getTransactionHandler()
Specified by:
getTransactionHandler in interface com.hp.hpl.jena.graph.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,
                              com.hp.hpl.jena.graph.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(com.hp.hpl.jena.graph.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(com.hp.hpl.jena.graph.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 com.hp.hpl.jena.graph.Graph
Overrides:
isEmpty in class com.hp.hpl.jena.graph.impl.GraphBase

Copyright © 2008-2012 Franz Inc.