| 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 |
BNode
A blank node (aka bnode, aka anonymous node).
|
interface |
Literal
An RDF literal consisting of a label (the value) and optionally a language
tag or a datatype (but not both).
|
interface |
Resource
The supertype of all RDF resources (URIs and blank nodes).
|
interface |
URI
A URI.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
Statement.getObject()
Gets the object of this statement.
|
Value |
Model.objectValue()
Gets the object of the statement(s).
|
| Modifier and Type | Method and Description |
|---|---|
Set<Value> |
Model.objects()
Returns a
Set view of the objects 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 |
Graph.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the graph.
|
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.
|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BNodeImpl
An implementation of the
BNode interface. |
class |
BooleanLiteralImpl
An extension of
LiteralImpl that stores a boolean value to avoid
parsing. |
class |
CalendarLiteralImpl
An extension of
LiteralImpl that stores a calendar value to avoid
parsing. |
class |
DecimalLiteralImpl
An extension of
LiteralImpl that stores an integer value using a
BigDecimal object. |
class |
IntegerLiteralImpl
An extension of
LiteralImpl that stores an integer value using a
BigInteger object. |
class |
LiteralImpl
An implementation of the
Literal interface. |
class |
NumericLiteralImpl
An extension of
LiteralImpl that stores a numeric value to avoid
parsing. |
class |
URIImpl
The default implementation of the
URI interface. |
| Modifier and Type | Method and Description |
|---|---|
Value |
StatementImpl.getObject() |
Value |
AbstractModel.objectValue() |
| Modifier and Type | Method and Description |
|---|---|
Set<Value> |
AbstractModel.objects() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TreeModel.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 |
FilteredModel.add(Resource s,
URI p,
Value o,
Resource... c) |
boolean |
EmptyModel.add(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 |
FilteredModel.contains(Resource s,
URI p,
Value o,
Resource... c) |
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 |
LinkedHashModel.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
Model |
FilteredModel.filter(Resource s,
URI p,
Value o,
Resource... c) |
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> |
AbstractModel.match(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
TreeModel.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 |
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.
|
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 |
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.
|
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) |
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 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.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.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
LexicalValueComparator.compare(Value o1,
Value o2) |
static boolean |
Literals.getBooleanValue(Value v,
boolean fallback)
Returns the result of
getBooleanValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static byte |
Literals.getByteValue(Value v,
byte fallback)
Returns the result of
getByteValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static XMLGregorianCalendar |
Literals.getCalendarValue(Value v,
XMLGregorianCalendar fallback)
Returns the result of
getCalendarValue((Literal)value, fallback) in case the supplied value is
a literal, returns the fallback value otherwise. |
static BigDecimal |
Literals.getDecimalValue(Value v,
BigDecimal fallback)
Returns the result of
getDecimalValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static double |
Literals.getDoubleValue(Value v,
double fallback)
Returns the result of
getDoubleValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static float |
Literals.getFloatValue(Value v,
float fallback)
Returns the result of
getFloatValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static BigInteger |
Literals.getIntegerValue(Value v,
BigInteger fallback)
Returns the result of
getIntegerValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static int |
Literals.getIntValue(Value v,
int fallback)
Returns the result of
getIntValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
static String |
Literals.getLabel(Value v,
String fallback)
Returns the result of
getLabel((Literal)v, fallback in case the supplied value is a literal,
returns the fallback value otherwise. |
static long |
Literals.getLongValue(Value v,
long fallback)
Returns the result of
getLongValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
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 short |
Literals.getShortValue(Value v,
short fallback)
Returns the result of
getShortValue((Literal)value, fallback) in case the supplied value is a
literal, returns the fallback value otherwise. |
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 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.
|
| Constructor and Description |
|---|
ModelException(Value value) |
ModelException(Value v1,
Value v2) |
PatternIterator(Iterator<S> iter,
Value subj,
Value pred,
Value obj,
Value... contexts) |
PatternIterator(Iterator<S> iter,
Value subj,
Value pred,
Value obj,
Value... contexts) |
Copyright © 2001-2014 Aduna. All Rights Reserved.