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.Difference
- All Implemented Interfaces:
Graph,GraphWithPerform
Class representing the dynamic set difference L - R of two graphs. This is
updatable; the updates are written through to one or other of the base graphs.
-
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
ConstructorsConstructorDescriptionDifference(Graph L, Graph R) Initialise a graph representing the difference L - R. -
Method Summary
Modifier and TypeMethodDescriptionvoidperformAdd(Triple t) Add a triple to the difference: add it to the left operand, and remove it from the right operand.voidRemove a triple from the difference: remove it from the left operand.Methods 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, toString
-
Constructor Details
-
Difference
Initialise a graph representing the difference L - R.
-
-
Method Details
-
performAdd
Add a triple to the difference: add it to the left operand, and remove it from the right operand.- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
Remove a triple from the difference: remove it from the left operand. [It could be added to the right operand instead, but somehow that feels less satisfactory.]- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-
_graphBaseFind
-