Constructor Detail

AbstractModel

Method Detail

unmodifiable

Returns an unmodifiable view of this model. This method provides "read-only" access to this model.
Query operations on the returned model "read through" to this model, and attempts to modify the
returned model, whether direct or via its iterator, result in an UnsupportedOperationException.

subjects

Returns a Set view of the subjects contained in this model. The set is backed by the model, so
changes to the model are reflected in the set, and vice-versa. If the model is modified while an
iteration over the set is in progress (except through the iterator's own remove operation), the
results of the iteration are undefined. The set supports element removal, which removes all statements
from the model for which that element is a subject value, via the Iterator.remove,
Set.remove, removeAll, retainAll, and clear operations. It does not
support the add or addAll operations if the parameters pred or obj are
null.

predicates

Returns a Set view of the predicates contained in this model. The set is backed by the model,
so changes to the model are reflected in the set, and vice-versa. If the model is modified while an
iteration over the set is in progress (except through the iterator's own remove operation), the
results of the iteration are undefined. The set supports element removal, which removes all statements
from the model for which that element is a predicate value, via the Iterator.remove,
Set.remove, removeAll, retainAll, and clear operations. It does not
support the add or addAll operations if the parameters subj or obj are
null.

objects

Returns a Set view of the objects contained in this model. The set is backed by the model, so
changes to the model are reflected in the set, and vice-versa. If the model is modified while an
iteration over the set is in progress (except through the iterator's own remove operation), the
results of the iteration are undefined. The set supports element removal, which removes all statements
from the model for which that element is an object value, via the Iterator.remove,
Set.remove, removeAll, retainAll, and clear operations. It does not
support the add or addAll operations if the parameters subj or pred are
null.

contexts

Returns a Set view of the contexts contained in this model. The set is backed by the model, so
changes to the model are reflected in the set, and vice-versa. If the model is modified while an
iteration over the set is in progress (except through the iterator's own remove operation), the
results of the iteration are undefined. The set supports element removal, which removes all statements
from the model for which that element is a context value, via the Iterator.remove,
Set.remove, removeAll, retainAll, and clear operations. It does not
support the add or addAll operations if the parameters subj , pred or
obj are null.

match

Gets the statements with the specified subject, predicate, object and (optionally) context. The
subject, predicate and object parameters can be null to indicate
wildcards. The contexts parameter is a wildcard and accepts zero or more values. If no
contexts are specified, statements will match disregarding their context. If one or more contexts are
specified, statements with a context matching one of these will match. Note: to match statements
without an associated context, specify the value null and explicitly cast it to type
Resource.

subj - The subject of the statements to match, null to match statements with any subject.

pred - The predicate of the statements to match, null to match statements with any predicate.

obj - The object of the statements to match, null to match statements with any object.

contexts - The contexts of the statements to match. If no contexts are specified, statements will match
disregarding their context. If one or more contexts are specified, statements with a context
matching one of these will match.