|
||||||||||
| 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.DatasetGraphAltDefaultGraph
public class DatasetGraphAltDefaultGraph
DatasetGraph that switch teh default graph to another graph. This different graph can be one of the underlying dataset or a completely unconnected graph.
| Constructor Summary | |
|---|---|
DatasetGraphAltDefaultGraph(DatasetGraph dsg,
Graph defaultGraph)
|
|
| Method Summary | |
|---|---|
void |
addGraph(Node graphName,
Graph graph)
Add the given graph to the dataset. |
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. |
Iterator<Node> |
listGraphNodes()
Iterate over all names of named graphs |
void |
removeGraph(Node graphName)
Remove all data associated with the named graph |
| 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, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatasetGraphAltDefaultGraph(DatasetGraph dsg,
Graph defaultGraph)
| Method Detail |
|---|
public Iterator<Node> listGraphNodes()
DatasetGraph
listGraphNodes in interface DatasetGraphlistGraphNodes in class DatasetGraphCollectionpublic Graph getDefaultGraph()
DatasetGraph
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic Graph getGraph(Node graphNode)
DatasetGraph
getGraph in interface DatasetGraphgetGraph in class DatasetGraphBase
public void addGraph(Node graphName,
Graph graph)
DatasetGraphDatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)
addGraph in interface DatasetGraphaddGraph in class DatasetGraphBasepublic void removeGraph(Node graphName)
DatasetGraph
removeGraph in interface DatasetGraphremoveGraph in class DatasetGraphBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||