Model
instead.@Deprecated public interface Graph extends Collection<Statement>, Serializable
Statement
s.GraphUtil
Modifier and Type | Method and Description |
---|---|
boolean |
add(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
Adds one or more statements to the graph.
|
ValueFactory |
getValueFactory()
Deprecated.
SimpleValueFactory.getInstance()
will obtain a default value factory implementation. If you are
working with the Repository API, then Repository
instances also supply a getValueFactory() method. |
Iterator<Statement> |
match(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
The preferred alternative is
Model.filter(org.openrdf.model.Resource, org.openrdf.model.IRI, org.openrdf.model.Value, org.openrdf.model.Resource...) .iterator(). |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
@Deprecated ValueFactory getValueFactory()
SimpleValueFactory.getInstance()
will obtain a default value factory implementation. If you are
working with the Repository API, then Repository
instances also supply a getValueFactory() method.boolean add(Resource subj, IRI 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, IRI pred, Value obj, Resource... contexts)
Model.filter(org.openrdf.model.Resource, org.openrdf.model.IRI, org.openrdf.model.Value, org.openrdf.model.Resource...)
.iterator().
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.