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_LIMIT
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
static GraphView
static GraphView
createNamedGraph
(DatasetGraph dsg, Node graphIRI) static GraphView
Return theDatasetGraph
we are viewing.Return the graph name for this graph in the dataset it is a view of.void
performAdd
(Triple t) void
void
void
sync()
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. Returnsnull
for the default graph.- Specified by:
getGraphName
in interfaceNamedGraph
-
getDataset
Return theDatasetGraph
we are viewing. -
performAdd
- Specified by:
performAdd
in interfaceGraphWithPerform
- Overrides:
performAdd
in classGraphBase
-
performDelete
- Specified by:
performDelete
in interfaceGraphWithPerform
- Overrides:
performDelete
in classGraphBase
-
remove
-
clear
public void clear() -
sync
public void sync()- Specified by:
sync
in interfaceorg.apache.jena.atlas.lib.Sync
-
getTransactionHandler
- Specified by:
getTransactionHandler
in interfaceGraph
- Overrides:
getTransactionHandler
in classGraphBase
-
getCapabilities
- Specified by:
getCapabilities
in interfaceGraph
- Overrides:
getCapabilities
in classGraphBase
-