public class AGGraph extends GraphBase implements Graph, Closeable
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
emptyGraph
Modifier and Type | Method and Description |
---|---|
void |
clear() |
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) |
void |
remove(Node s,
Node p,
Node o) |
String |
toString() |
static String |
toString(String prefix,
Graph graph)
Returns a human-consumable representation of
graph . |
add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getStatisticsHandler, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, size
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, close, contains, contains, delete, dependsOn, find, find, getEventManager, getStatisticsHandler, isClosed, isIsomorphicWith, size
public static String toString(String prefix, Graph graph)
graph
. The string
prefix
will appear at the beginning of the string. Nodes
may be prefix-compressed using graph
's prefix-mapping. This
default implementation will display all the triples exposed by the graph,
including reification triples.prefix
- the prefix of the string returnedgraph
- the Graph to render into a stringpublic String getName()
public Capabilities getCapabilities()
getCapabilities
in interface Graph
getCapabilities
in class GraphBase
public PrefixMapping getPrefixMapping()
getPrefixMapping
in interface Graph
getPrefixMapping
in class GraphBase
public TransactionHandler getTransactionHandler()
getTransactionHandler
in interface Graph
getTransactionHandler
in class GraphBase
public void performAdd(Triple t)
performAdd
in interface GraphWithPerform
performAdd
in class GraphBase
public void performDelete(Triple t)
performDelete
in interface GraphWithPerform
performDelete
in class GraphBase
public boolean isEmpty()
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.
public void clear()
Copyright © 2024 Franz Inc.. All rights reserved.