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_LIMIT
Fields 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 stringprefix
will 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:
getCapabilities
in interfaceGraph
- Overrides:
getCapabilities
in classGraphBase
-
getPrefixMapping
- Specified by:
getPrefixMapping
in interfaceGraph
- Overrides:
getPrefixMapping
in classGraphBase
-
getTransactionHandler
- Specified by:
getTransactionHandler
in interfaceGraph
- Overrides:
getTransactionHandler
in classGraphBase
-
toString
-
performAdd
- Specified by:
performAdd
in interfaceGraphWithPerform
- Overrides:
performAdd
in classGraphBase
-
performDelete
- Specified by:
performDelete
in interfaceGraphWithPerform
- Overrides:
performDelete
in 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
-