Package org.apache.jena.sparql.core
Class GraphView
- java.lang.Object
-
- org.apache.jena.graph.impl.GraphBase
-
- org.apache.jena.sparql.core.GraphView
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Sync,Graph,GraphWithPerform,NamedGraph
- Direct Known Subclasses:
GraphInMemory
public class GraphView extends GraphBase implements NamedGraph, org.apache.jena.atlas.lib.Sync
Implement a Graph as a view of the DatasetGraph. It maps graph operations to quad operations.GraphUnionReadprovides a union graph that does not assume quads, but loops on graphs.- See Also:
GraphUnionRead
-
-
Field Summary
-
Fields inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
-
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()static GraphViewcreateDefaultGraph(DatasetGraph dsg)static GraphViewcreateNamedGraph(DatasetGraph dsg, Node graphIRI)static GraphViewcreateUnionGraph(DatasetGraph dsg)CapabilitiesgetCapabilities()DatasetGraphgetDataset()Return theDatasetGraphwe are viewing.NodegetGraphName()Return the graph name for this graph in the dataset it is a view of.TransactionHandlergetTransactionHandler()voidperformAdd(Triple t)voidperformDelete(Triple t)voidremove(Node s, Node p, Node o)voidsync()-
Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, size, toString, toString
-
-
-
-
Method Detail
-
createDefaultGraph
public static GraphView createDefaultGraph(DatasetGraph dsg)
-
createNamedGraph
public static GraphView createNamedGraph(DatasetGraph dsg, Node graphIRI)
-
createUnionGraph
public static GraphView createUnionGraph(DatasetGraph dsg)
-
getGraphName
public Node getGraphName()
Return the graph name for this graph in the dataset it is a view of. Returnsnullfor the default graph.- Specified by:
getGraphNamein interfaceNamedGraph
-
getDataset
public DatasetGraph getDataset()
Return theDatasetGraphwe are viewing.
-
performAdd
public void performAdd(Triple t)
- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
public void performDelete(Triple t)
- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-
clear
public void clear()
-
sync
public void sync()
- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
getTransactionHandler
public TransactionHandler getTransactionHandler()
- Specified by:
getTransactionHandlerin interfaceGraph- Overrides:
getTransactionHandlerin classGraphBase
-
getCapabilities
public Capabilities getCapabilities()
- Specified by:
getCapabilitiesin interfaceGraph- Overrides:
getCapabilitiesin classGraphBase
-
-