java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.graph.compose.CompositionBase
org.apache.jena.graph.compose.Dyadic
org.apache.jena.graph.compose.Union
- All Implemented Interfaces:
Graph,GraphWithPerform
A class representing the dynamic union of two graphs. Addition only affects the left
operand, deletion affects both.
- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidperformAdd(Triple t) To add a triple to the union, add it to the left operand; this is asymmetric.voidTo remove a triple, remove it from both operands.Methods inherited from class org.apache.jena.graph.compose.Dyadic
close, dependsOn, getL, getR, unionMethods inherited from class org.apache.jena.graph.compose.CompositionBase
butNot, ifIn, ifIn, recording, reject, rejecting, rejectingMethods inherited from class org.apache.jena.graph.impl.GraphBase
add, clear, contains, contains, delete, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.graph.Graph
add, add, clear, close, contains, contains, delete, delete, dependsOn, find, find, find, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, remove, size, sizeLong, stream, stream
-
Constructor Details
-
Union
-
-
Method Details
-
performAdd
To add a triple to the union, add it to the left operand; this is asymmetric.- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
To remove a triple, remove it from both operands.- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-
graphBaseContains
-