| Package | Description |
|---|---|
| org.openrdf | |
| org.openrdf.model |
RDF model interfaces.
|
| org.openrdf.model.impl |
Default implementations of the RDF model interfaces.
|
| org.openrdf.model.util |
| Modifier and Type | Method and Description |
|---|---|
static void |
OpenRDFUtil.verifyContextNotNull(Resource... contexts)
Verifies that the supplied contexts parameter is not null,
throwing an
IllegalArgumentException if it is. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BNode
A blank node (aka bnode, aka anonymous node).
|
interface |
URI
A URI.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
Statement.getContext()
Gets the context of this statement.
|
Resource |
Statement.getSubject()
Gets the subject of this statement.
|
Resource |
Model.objectResource()
Utility method that casts the return value of
Model.objectValue() to a
Resource, or throws a ModelUtilException if that value is not a Resource. |
| Modifier and Type | Method and Description |
|---|---|
Set<Resource> |
Model.contexts()
Returns a
Set view of the contexts contained in this model. |
Set<Resource> |
Model.subjects()
Returns a
Set view of the subjects contained in this model. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Model.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the model.
|
boolean |
Model.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the model.
|
boolean |
Graph.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the graph.
|
boolean |
Graph.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the graph.
|
boolean |
Model.clear(Resource... context)
Removes statements with the specified context exist in this model.
|
boolean |
Model.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Determines if statements with the specified subject, predicate, object and
(optionally) context exist in this model.
|
boolean |
Model.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Determines if statements with the specified subject, predicate, object and
(optionally) context exist in this model.
|
Statement |
ValueFactory.createStatement(Resource subject,
URI predicate,
Value object)
Creates a new statement with the supplied subject, predicate and object.
|
Statement |
ValueFactory.createStatement(Resource subject,
URI predicate,
Value object,
Resource context)
Creates a new statement with the supplied subject, predicate and object
and associated context.
|
Model |
Model.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Returns a view of the statements with the specified subject, predicate,
object and (optionally) context.
|
Model |
Model.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Returns a view of the statements with the specified subject, predicate,
object and (optionally) context.
|
Iterator<Statement> |
Graph.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Iterator<Statement> |
Graph.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
Model.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Removes statements with the specified subject, predicate, object and
(optionally) context exist in this model.
|
boolean |
Model.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Removes statements with the specified subject, predicate, object and
(optionally) context exist in this model.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BNodeImpl
An implementation of the
BNode interface. |
class |
URIImpl
The default implementation of the
URI interface. |
| Modifier and Type | Method and Description |
|---|---|
Resource |
StatementImpl.getContext() |
Resource |
ContextStatementImpl.getContext() |
Resource |
StatementImpl.getSubject() |
Resource |
AbstractModel.objectResource() |
| Modifier and Type | Method and Description |
|---|---|
Set<Resource> |
AbstractModel.contexts() |
Set<Resource> |
AbstractModel.subjects() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TreeModel.add(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
TreeModel.add(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.add(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.add(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
GraphImpl.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
GraphImpl.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
FilteredModel.add(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
FilteredModel.add(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
EmptyModel.add(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
EmptyModel.add(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
AbstractModel.clear(Resource... contexts) |
boolean |
TreeModel.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
TreeModel.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
FilteredModel.contains(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
FilteredModel.contains(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
EmptyModel.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
EmptyModel.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Statement |
ValueFactoryImpl.createStatement(Resource subject,
URI predicate,
Value object) |
Statement |
ValueFactoryImpl.createStatement(Resource subject,
URI predicate,
Value object,
Resource context) |
Model |
TreeModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Model |
TreeModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Model |
LinkedHashModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Model |
LinkedHashModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Model |
FilteredModel.filter(Resource s,
URI p,
Value o,
Resource... c) |
Model |
FilteredModel.filter(Resource s,
URI p,
Value o,
Resource... c) |
Model |
EmptyModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Model |
EmptyModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Iterator<Statement> |
GraphImpl.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Iterator<Statement> |
GraphImpl.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Iterator<Statement> |
AbstractModel.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Iterator<Statement> |
AbstractModel.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
TreeModel.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
TreeModel.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
FilteredModel.remove(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
FilteredModel.remove(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
EmptyModel.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
boolean |
EmptyModel.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
protected abstract void |
FilteredModel.removeFilteredTermIteration(Iterator<Statement> iter,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Called by aggregate sets when a term has been removed from a term
iterator.
|
protected abstract void |
FilteredModel.removeFilteredTermIteration(Iterator<Statement> iter,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Called by aggregate sets when a term has been removed from a term
iterator.
|
void |
TreeModel.removeTermIteration(Iterator<Statement> iterator,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
TreeModel.removeTermIteration(Iterator<Statement> iterator,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
FilteredModel.removeTermIteration(Iterator<Statement> iter,
Resource s,
URI p,
Value o,
Resource... c) |
void |
FilteredModel.removeTermIteration(Iterator<Statement> iter,
Resource s,
URI p,
Value o,
Resource... c) |
void |
EmptyModel.removeTermIteration(Iterator<Statement> iter,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
EmptyModel.removeTermIteration(Iterator<Statement> iter,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
abstract void |
AbstractModel.removeTermIteration(Iterator<Statement> iter,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Called by aggregate sets when a term has been removed from a term
iterator.
|
abstract void |
AbstractModel.removeTermIteration(Iterator<Statement> iter,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Called by aggregate sets when a term has been removed from a term
iterator.
|
void |
LinkedHashModel.removeTermIteration(Iterator iterator,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
LinkedHashModel.removeTermIteration(Iterator iterator,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
| Constructor and Description |
|---|
ContextStatementImpl(Resource subject,
URI predicate,
Value object,
Resource context)
Creates a new Statement with the supplied subject, predicate and object
for the specified associated context.
|
FilteredModel(AbstractModel model,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
FilteredModel(AbstractModel model,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
StatementImpl(Resource subject,
URI predicate,
Value object)
Creates a new Statement with the supplied subject, predicate and object.
|
| Modifier and Type | Method and Description |
|---|---|
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 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 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 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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| 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 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 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 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 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.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.
|
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.