Package com.franz.agraph.jena
Class AGGraph
java.lang.Object
org.apache.jena.graph.impl.GraphBase
com.franz.agraph.jena.AGGraph
- All Implemented Interfaces:
Closeable,AutoCloseable,Graph,GraphWithPerform
- Direct Known Subclasses:
AGGraphUnion,AGInfGraph
Implements the Jena Graph interface for AllegroGraph.
-
Field Summary
Fields inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMITFields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Method Summary
Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, size
-
Method Details
-
toString
Returns a human-consumable representation ofgraph. The stringprefixwill appear at the beginning of the string. Nodes may be prefix-compressed usinggraph's prefix-mapping. This default implementation will display all the triples exposed by the graph, including reification triples.- Parameters:
prefix- the prefix of the string returnedgraph- the Graph to render into a string- Returns:
- String a human-consumable representation of the argument Graph
-
getName
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceGraph- Overrides:
getCapabilitiesin classGraphBase
-
getPrefixMapping
- Specified by:
getPrefixMappingin interfaceGraph- Overrides:
getPrefixMappingin classGraphBase
-
getTransactionHandler
- Specified by:
getTransactionHandlerin interfaceGraph- Overrides:
getTransactionHandlerin classGraphBase
-
toString
-
performAdd
- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-
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.
-
clear
public void clear() -
remove
-