|
||||||||||
| 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.DatasetGraphCollection
com.hp.hpl.jena.sparql.core.DatasetGraphMap
public class DatasetGraphMap
Implementation of a DatasetGraph as an extensible set of graphs. Subclasses need to manage any implicit graph creation.
| Constructor Summary | |
|---|---|
DatasetGraphMap(DatasetGraph dsg)
Create a new DatasetGraph that initially shares the graphs of the givem DatasetGraph. |
|
DatasetGraphMap(com.hp.hpl.jena.graph.Graph defaultGraph)
|
|
| 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. |
Iterator<com.hp.hpl.jena.graph.Node> |
listGraphNodes()
Iterate over all names of named graphs |
void |
removeGraph(com.hp.hpl.jena.graph.Node graphName)
Remove all data associated with the named graph |
void |
setDefaultGraph(com.hp.hpl.jena.graph.Graph g)
Set the default graph. |
long |
size()
Get the size (number of named graphs) - may be -1 for unknown |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphCollection |
|---|
add, 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 |
|---|
add, contains, contains, delete, deleteAny, find, find, getContext, getLock, isEmpty, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatasetGraphMap(com.hp.hpl.jena.graph.Graph defaultGraph)
public DatasetGraphMap(DatasetGraph dsg)
| Method Detail |
|---|
public boolean containsGraph(com.hp.hpl.jena.graph.Node graphNode)
containsGraph in interface DatasetGraphcontainsGraph in class DatasetGraphBasepublic com.hp.hpl.jena.graph.Graph getDefaultGraph()
DatasetGraph
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic 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 void removeGraph(com.hp.hpl.jena.graph.Node graphName)
DatasetGraph
removeGraph in interface DatasetGraphremoveGraph in class DatasetGraphBasepublic void setDefaultGraph(com.hp.hpl.jena.graph.Graph g)
DatasetGraphDatasetGraph.getDefaultGraph()
setDefaultGraph in interface DatasetGraphsetDefaultGraph in class DatasetGraphBasepublic Iterator<com.hp.hpl.jena.graph.Node> listGraphNodes()
DatasetGraph
listGraphNodes in interface DatasetGraphlistGraphNodes in class DatasetGraphCollectionpublic long size()
DatasetGraph
size in interface DatasetGraphsize 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 | |||||||||