|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.core.DatasetGraphBase
com.hp.hpl.jena.sparql.core.DatasetGraphBaseFind
com.hp.hpl.jena.sparql.core.DatasetGraphTriplesQuads
com.hp.hpl.jena.sparql.core.DatasetGraphCaching
public abstract class DatasetGraphCaching
DatasetGraph that caches calls to make graph implementations.
Useful for storage layers that use triples+quads storage and the
graphs are wrappers to the actual storage layer.
The cache is finite and graphs will be dropped as needed.
DatasetGraphMap provides an implementation which is an extensable collection of graphs.
| Method Summary | |
|---|---|
void |
addGraph(com.hp.hpl.jena.graph.Node graphName,
com.hp.hpl.jena.graph.Graph graph)
Add the given graph to the dataset. |
void |
close()
Close the dataset |
boolean |
containsGraph(com.hp.hpl.jena.graph.Node graphNode)
|
com.hp.hpl.jena.graph.Graph |
getDefaultGraph()
Get the default graph as a Jena Graph |
com.hp.hpl.jena.graph.Graph |
getGraph(com.hp.hpl.jena.graph.Node graphNode)
Get the graph named by graphNode : returns null on no graph NB Whether a dataset contains a graph if there are no triples is not defined - see the specifc implementation. |
void |
removeGraph(com.hp.hpl.jena.graph.Node graphName)
Remove all data associated with the named graph |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphTriplesQuads |
|---|
add, add, delete, delete |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphBaseFind |
|---|
find, findNG |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphBase |
|---|
contains, contains, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.sparql.core.DatasetGraph |
|---|
listGraphNodes |
| Method Detail |
|---|
public boolean containsGraph(com.hp.hpl.jena.graph.Node graphNode)
containsGraph in interface DatasetGraphcontainsGraph in class DatasetGraphBasepublic final com.hp.hpl.jena.graph.Graph getDefaultGraph()
DatasetGraph
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic final com.hp.hpl.jena.graph.Graph getGraph(com.hp.hpl.jena.graph.Node graphNode)
DatasetGraph
getGraph in interface DatasetGraphgetGraph in class DatasetGraphBase
public void addGraph(com.hp.hpl.jena.graph.Node graphName,
com.hp.hpl.jena.graph.Graph graph)
DatasetGraphDatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)
addGraph in interface DatasetGraphaddGraph in class DatasetGraphBasepublic final void removeGraph(com.hp.hpl.jena.graph.Node graphName)
DatasetGraph
removeGraph in interface DatasetGraphremoveGraph in class DatasetGraphBasepublic void close()
DatasetGraph
close in interface DatasetGraphclose in interface Closeableclose in class DatasetGraphBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||