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
Implement a Graph as a view of the DatasetGraph.
It maps graph operations to quad operations.
GraphUnionRead provides a union graph that does not assume quads, but loops on graphs.- See Also:
-
Field Summary
Fields inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMITFields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()static GraphViewstatic GraphViewcreateNamedGraph(DatasetGraph dsg, Node graphIRI) static GraphViewReturn theDatasetGraphwe are viewing.Return the graph name for this graph in the dataset it is a view of.voidperformAdd(Triple t) voidvoidvoidsync()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 Details
-
createDefaultGraph
-
createNamedGraph
-
createUnionGraph
-
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
Return theDatasetGraphwe are viewing. -
performAdd
- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-
remove
-
clear
public void clear() -
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
getTransactionHandler
- Specified by:
getTransactionHandlerin interfaceGraph- Overrides:
getTransactionHandlerin classGraphBase
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceGraph- Overrides:
getCapabilitiesin classGraphBase
-