public interface Graph extends Collection<Triple>
Setas it doesn't inherit its specification for
equals. It is possible to add
GraphListenerto listen for modifications in the triples.
|Modifier and Type||Method and Description|
Returns true if
Filters triples given a pattern.
Returns an ImutableGraph describing the graph at the current point in time.
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)
boolean equals(Object other)
otherdescribes 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.
thisis an instance of ImmutableGraph this can safely return
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.