public interface Graph extends Collection<Triple>
Set
as it doesn't inherit its
specification for hashCode()
and equals
.
It is possible to add GraphListener
to listen for modifications
in the triples.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Returns true if
other describes the same graph and will
always describe the same graph as this instance, false otherwise. |
Iterator<Triple> |
filter(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Filters triples given a pattern.
|
ImmutableGraph |
getImmutableGraph()
Returns an ImutableGraph describing the graph at the current point in
time.
|
ReadWriteLock |
getLock()
The lock provided by this methods allows to create read- and write-locks
that span multiple method calls.
|
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
Iterator<Triple> filter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
subject
- predicate
- object
- Iterator
boolean equals(Object other)
other
describes the same graph and will
always describe the same graph as this instance, false otherwise.
It returns true if this == other or if it
is otherwise guaranteed that changes to one of the instances are
immediately reflected in the other or if both graphs are immutable.equals
in interface Collection<Triple>
equals
in class Object
other
- ImmutableGraph getImmutableGraph()
this
is an instance of ImmutableGraph this can
safely return this
.ReadWriteLock getLock()
java.util.concurrent.locks.ReentrantReadWriteLock
.
Immutable instances (such as instances of ImmutableGraph
)
or instances used in transaction where concurrent acces of the same
instance is not an issue may return a no-op ReadWriteLock (i.e. one
which returned ReadLock and WriteLock instances of which the methods do
not do anything)Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.