com.hp.hpl.jena.sparql.graph
Class GraphMemSimple2
java.lang.Object
com.hp.hpl.jena.sparql.graph.GraphBase2
com.hp.hpl.jena.sparql.graph.GraphMemSimple2
- All Implemented Interfaces:
- com.hp.hpl.jena.graph.Graph, com.hp.hpl.jena.graph.GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform
public class GraphMemSimple2
- extends GraphBase2
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
emptyGraph |
Method Summary |
boolean |
graphBaseContains(com.hp.hpl.jena.graph.Triple t)
Answer true if the graph contains any triple matching t . |
void |
performAdd(com.hp.hpl.jena.graph.Triple t)
Add a triple to the triple store. |
void |
performDelete(com.hp.hpl.jena.graph.Triple t)
Remove a triple from the triple store. |
com.hp.hpl.jena.graph.query.QueryHandler |
queryHandler()
Answer a QueryHandler bound to this graph. |
Methods inherited from class com.hp.hpl.jena.sparql.graph.GraphBase2 |
add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, size, toString |
GraphMemSimple2
public GraphMemSimple2()
performAdd
public void performAdd(com.hp.hpl.jena.graph.Triple t)
- Description copied from class:
GraphBase2
- Add a triple to the triple store. The default implementation throws an
AddDeniedException; subclasses must override if they want to be able to
add triples.
- Specified by:
performAdd
in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
- Overrides:
performAdd
in class GraphBase2
performDelete
public void performDelete(com.hp.hpl.jena.graph.Triple t)
- Description copied from class:
GraphBase2
- Remove a triple from the triple store. The default implementation throws
a DeleteDeniedException; subclasses must override if they want to be able
to remove triples.
- Specified by:
performDelete
in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
- Overrides:
performDelete
in class GraphBase2
queryHandler
public com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
- Description copied from class:
GraphBase2
- Answer a QueryHandler bound to this graph. The default implementation
returns the same SimpleQueryHandler each time it is called; sub-classes
may override if they need specialised query handlers.
- Specified by:
queryHandler
in interface com.hp.hpl.jena.graph.Graph
- Specified by:
queryHandler
in class GraphBase2
graphBaseContains
public boolean graphBaseContains(com.hp.hpl.jena.graph.Triple t)
- Description copied from class:
GraphBase2
- Answer true if the graph contains any triple matching
t
.
The default implementation uses find
and checks to see
if the iterator is non-empty.
Licenced under the Apache License, Version 2.0