| Package | Description |
|---|---|
| org.openrdf.model |
RDF model interfaces.
|
| org.openrdf.model.impl |
Default implementations of the RDF model interfaces.
|
| org.openrdf.model.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Model
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractModel
Provides basic operations that are common to all Models.
|
class |
EmptyModel
Blocks access to the statements of the model, allowing only changes to the
model's namespaces.
|
class |
FilteredModel
Applies a basic graph pattern filter to what triples can be see.
|
class |
GraphImpl
Deprecated.
|
class |
LinkedHashModel
Hash table based implementation of the
Model interface. |
class |
TreeModel
A Red-Black tree based
Model implementation. |
| Modifier and Type | Method and Description |
|---|---|
static Iterator<Value> |
GraphUtil.getObjectIterator(Graph graph,
Resource subj,
URI pred,
Resource... contexts)
Gets the objects of the statements with the specified subject, predicate
and (optionally) contexts from the supplied graph.
|
static Set<Value> |
GraphUtil.getObjects(Graph graph,
Resource subj,
URI pred,
Resource... contexts)
Gets the objects of the statements with the specified subject, predicate
and (optionally) contexts from the supplied graph.
|
static Value |
GraphUtil.getOptionalObject(Graph graph,
Resource subj,
URI pred,
Resource... contexts)
Gets the object of the statement(s) with the specified subject and
predicate from the specified contexts in the supplied graph.
|
static Literal |
GraphUtil.getOptionalObjectLiteral(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a Literal,
or throws a GraphUtilException if that value is not a Literal. |
static Resource |
GraphUtil.getOptionalObjectResource(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a
Resource, or throws a GraphUtilException if that value is not a Resource. |
static URI |
GraphUtil.getOptionalObjectURI(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static Resource |
GraphUtil.getOptionalSubject(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Gets the subject of the statement(s) with the specified predicate and
object from the specified contexts in the supplied graph.
|
static URI |
GraphUtil.getOptionalSubjectURI(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Utility method that casts the return value of
GraphUtil.getOptionalSubject(Graph, URI, Value, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static Iterator<Resource> |
GraphUtil.getSubjectIterator(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Gets the subject of the statements with the specified predicate, object
and (optionally) contexts from the supplied graph.
|
static Set<Resource> |
GraphUtil.getSubjects(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Gets the subject of the statements with the specified predicate, object
and (optionally) contexts from the supplied graph.
|
static Value |
GraphUtil.getUniqueObject(Graph graph,
Resource subj,
URI pred,
Resource... contexts)
Gets the object of the statement(s) with the specified subject and
predicate from the specified contexts in the supplied graph.
|
static Literal |
GraphUtil.getUniqueObjectLiteral(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a Literal,
or throws a GraphUtilException if that value is not a Literal. |
static Resource |
GraphUtil.getUniqueObjectResource(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a Resource,
or throws a GraphUtilException if that value is not a Resource. |
static URI |
GraphUtil.getUniqueObjectURI(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static Resource |
GraphUtil.getUniqueSubject(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Gets the subject of the statement(s) with the specified predicate and
object from the specified contexts in the supplied graph.
|
static URI |
GraphUtil.getUniqueSubjectURI(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Utility method that casts the return value of
GraphUtil.getUniqueSubject(Graph, URI, Value, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static void |
GraphUtil.remove(Graph graph,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Utility method that removes all statements matching the specified criteria
from a graph.
|
static void |
GraphUtil.setUniqueObject(Graph graph,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds the specified statement and makes sure that no other statements are
present in the Graph with the same subject and predicate.
|
Copyright © 2001-2014 Aduna. All Rights Reserved.