public abstract class DatasetGraphCaching extends DatasetGraphTriplesQuads
DatasetGraphMap provides an implementation which is an extensable collection of graphs.| Modifier and Type | Method and Description |
|---|---|
void |
addGraph(Node graphName,
Graph graph)
Add the given graph to the dataset.
|
void |
clear()
Remove everything - remove all named graphs, clear the default graph
|
void |
close()
Close the dataset
|
boolean |
containsGraph(Node graphNode) |
Graph |
getDefaultGraph()
Get the default graph as a Jena Graph
|
Graph |
getGraph(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(Node graphName)
Remove all data associated with the named graph
|
add, add, delete, deletefind, findNGcontains, contains, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitlistGraphNodespublic boolean containsGraph(Node graphNode)
containsGraph in interface DatasetGraphcontainsGraph in class DatasetGraphBasepublic final Graph getDefaultGraph()
DatasetGraphgetDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic final Graph getGraph(Node graphNode)
DatasetGraphgetGraph in interface DatasetGraphgetGraph in class DatasetGraphBasepublic void addGraph(Node graphName, Graph graph)
DatasetGraphDatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)addGraph in interface DatasetGraphaddGraph in class DatasetGraphBasepublic final void removeGraph(Node graphName)
DatasetGraphremoveGraph in interface DatasetGraphremoveGraph in class DatasetGraphBasepublic void clear()
DatasetGraphclear in interface DatasetGraphclear in class DatasetGraphBasepublic void close()
DatasetGraphclose in interface DatasetGraphclose in interface Closeableclose in class DatasetGraphBaseLicenced under the Apache License, Version 2.0