public interface Graph extends Collection<Statement>, Serializable
Statement
s.GraphUtil
Modifier and Type | Method and Description |
---|---|
boolean |
add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the graph.
|
ValueFactory |
getValueFactory()
Deprecated.
|
Iterator<Statement> |
match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
@Deprecated ValueFactory getValueFactory()
boolean add(Resource subj, URI pred, Value obj, Resource... contexts)
subj
- The statement's subject, must not be null.pred
- The statement's predicate, must not be null.obj
- The statement's object, must not be null.contexts
- The contexts to add statements to.@Deprecated Iterator<Statement> match(Resource subj, URI pred, Value obj, Resource... contexts)
Examples: graph.match(s1, null, null) matches all statements
that have subject s1,
graph.match(null, null, null, c1) matches all statements that
have context c1,
graph.match(null, null, null, (Resource)null) matches all
statements that have no associated context,
graph.match(null, null, null, c1, c2, c3) matches all
statements that have context c1, c2 or c3.
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.IllegalArgumentException
- If a null-array is specified as the value for
contexts. See
OpenRDFUtil.verifyContextNotNull(Resource[])
for more
info.Copyright © 2001-2016 Aduna. All Rights Reserved.