@Deprecated public class GraphImpl extends AbstractCollection<Statement> implements Graph
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<Statement> |
statements
Deprecated.
|
protected ValueFactory |
valueFactory
Deprecated.
|
| Constructor and Description |
|---|
GraphImpl()
Deprecated.
|
GraphImpl(Collection<? extends Statement> statements)
Deprecated.
|
GraphImpl(ValueFactory valueFactory)
Deprecated.
|
GraphImpl(ValueFactory valueFactory,
Collection<? extends Statement> statements)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
Adds one or more statements to the graph.
|
boolean |
add(Statement st)
Deprecated.
|
ValueFactory |
getValueFactory()
Deprecated.
Gets the value factory for this graph.
|
Iterator<Statement> |
iterator()
Deprecated.
|
Iterator<Statement> |
match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
Gets the statements with the specified subject, predicate, object and
(optionally) context.
|
void |
setValueFactory(ValueFactory valueFactory)
Deprecated.
|
int |
size()
Deprecated.
|
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringprotected LinkedList<Statement> statements
protected transient ValueFactory valueFactory
public GraphImpl(ValueFactory valueFactory)
public GraphImpl()
public GraphImpl(ValueFactory valueFactory, Collection<? extends Statement> statements)
public GraphImpl(Collection<? extends Statement> statements)
public ValueFactory getValueFactory()
GraphgetValueFactory in interface Graphpublic void setValueFactory(ValueFactory valueFactory)
public Iterator<Statement> iterator()
iterator in interface Iterable<Statement>iterator in interface Collection<Statement>iterator in class AbstractCollection<Statement>public int size()
size in interface Collection<Statement>size in class AbstractCollection<Statement>public boolean add(Statement st)
add in interface Collection<Statement>add in class AbstractCollection<Statement>public boolean add(Resource subj, URI pred, Value obj, Resource... contexts)
Graphpublic Iterator<Statement> match(Resource subj, URI pred, Value obj, Resource... contexts)
Graph
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.
match in interface Graphsubj - 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.Copyright © 2001-2014 Aduna. All Rights Reserved.