| Package | Description |
|---|---|
| org.eclipse.rdf4j.model |
RDF Model API
|
| org.eclipse.rdf4j.model.impl |
Default implementations of the RDF model interfaces.
|
| org.eclipse.rdf4j.model.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BNode
An RDF-1.1 blank node (aka bnode, aka anonymous node).
|
interface |
IRI
An Internationalized Resource Identifier (IRI).
|
interface |
Literal
An RDF-1.1 literal consisting of a label (the lexical value), a datatype, and optionally a language tag.
|
interface |
Resource
The supertype of all RDF resources (IRIs and blank nodes).
|
interface |
URI
Deprecated.
Since 4.0. Use
IRI instead. |
| Modifier and Type | Method and Description |
|---|---|
Value |
Statement.getObject()
Gets the object of this statement.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Value> |
Model.objects()
Returns a
Set view of the objects contained in this model. |
default Optional<Value> |
Model.objectValue()
Deprecated.
since 4.0. Instead, use
Models.object(Model) to retrieve an object value, and/or
use the size of the set returned by Model.objects() to verify if the object is unique. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Graph.add(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
Adds one or more statements to the graph.
|
boolean |
Model.add(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Adds one or more statements to the model.
|
default boolean |
Model.add(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. Use
Model.add(Resource, IRI, Value, Resource...) instead. |
boolean |
Model.contains(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Determines if statements with the specified subject, predicate, object and (optionally) context exist
in this model.
|
default boolean |
Model.contains(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. Use
Model.contains(Resource, IRI, Value, Resource...) instead. |
Statement |
ValueFactory.createStatement(Resource subject,
IRI predicate,
Value object)
Creates a new statement with the supplied subject, predicate and object.
|
Statement |
ValueFactory.createStatement(Resource subject,
IRI predicate,
Value object,
Resource context)
Creates a new statement with the supplied subject, predicate and object and associated context.
|
default Statement |
ValueFactory.createStatement(Resource subject,
URI predicate,
Value object)
Deprecated.
Use
ValueFactory.createStatement(Resource, IRI, Value) instead. |
default Statement |
ValueFactory.createStatement(Resource subject,
URI predicate,
Value object,
Resource context)
Deprecated.
|
Model |
Model.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Returns a view of the statements with the specified subject, predicate, object and (optionally)
context.
|
default Model |
Model.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Iterator<Statement> |
Graph.match(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
The preferred alternative is
Model.filter(org.eclipse.rdf4j.model.Resource, org.eclipse.rdf4j.model.IRI, org.eclipse.rdf4j.model.Value, org.eclipse.rdf4j.model.Resource...).iterator(). |
boolean |
Model.remove(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Removes statements with the specified subject, predicate, object and (optionally) context exist in this
model.
|
default boolean |
Model.remove(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. Use
Model.remove(Resource, IRI, Value, Resource...) instead. |
| Modifier and Type | Class and Description |
|---|---|
class |
BNodeImpl
Deprecated.
since 4.0. Use
SimpleBNode instead for extending, and ValueFactory for
instantiation. |
class |
BooleanLiteral
An extension of
SimpleLiteral that stores a boolean value to avoid parsing. |
class |
BooleanLiteralImpl
Deprecated.
since 4.0. Use
BooleanLiteral instead. |
class |
CalendarLiteral
An extension of
SimpleLiteral that stores a calendar value to avoid parsing. |
class |
DecimalLiteral
An extension of
SimpleLiteral that stores an integer value using a BigDecimal object. |
class |
IntegerLiteral
An extension of
SimpleLiteral that stores an integer value using a BigInteger object. |
class |
LiteralImpl
Deprecated.
since 4.0. Use
SimpleLiteral for extending, and instantiate using a
ValueFactory. |
class |
NumericLiteral
An extension of
SimpleLiteral that stores a numeric value to avoid parsing. |
class |
SimpleBNode
An simple default implementation of the
BNode interface. |
class |
SimpleIRI
The default implementation of the
IRI interface. |
class |
SimpleLiteral
A simple default implementation of the
Literal interface. |
class |
URIImpl
Deprecated.
since 4.0. Use
SimpleIRI instead for extending, and ValueFactory for
instantiation. |
| Modifier and Type | Field and Description |
|---|---|
protected Value |
FilteredModel.obj |
| Modifier and Type | Method and Description |
|---|---|
Value |
SimpleStatement.getObject() |
| Modifier and Type | Method and Description |
|---|---|
Set<Value> |
AbstractModel.objects() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FilteredModel.add(Resource s,
IRI p,
Value o,
Resource... c) |
boolean |
GraphImpl.add(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
EmptyModel.add(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.add(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
TreeModel.add(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
FilteredModel.contains(Resource s,
IRI p,
Value o,
Resource... c) |
boolean |
EmptyModel.contains(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.contains(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
TreeModel.contains(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Statement |
ValidatingValueFactory.createStatement(Resource subject,
IRI predicate,
Value object) |
Statement |
AbstractValueFactory.createStatement(Resource subject,
IRI predicate,
Value object) |
Statement |
ValidatingValueFactory.createStatement(Resource subject,
IRI predicate,
Value object,
Resource context) |
Statement |
AbstractValueFactory.createStatement(Resource subject,
IRI predicate,
Value object,
Resource context) |
Statement |
ValidatingValueFactory.createStatement(Resource subject,
URI predicate,
Value object) |
Statement |
ValidatingValueFactory.createStatement(Resource subject,
URI predicate,
Value object,
Resource context) |
Model |
FilteredModel.filter(Resource s,
IRI p,
Value o,
Resource... c) |
Model |
EmptyModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Model |
LinkedHashModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Model |
TreeModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Iterator<Statement> |
GraphImpl.match(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Iterator<Statement> |
AbstractModel.match(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
|
boolean |
FilteredModel.remove(Resource s,
IRI p,
Value o,
Resource... c) |
boolean |
EmptyModel.remove(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
LinkedHashModel.remove(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
boolean |
TreeModel.remove(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
protected abstract void |
FilteredModel.removeFilteredTermIteration(Iterator<Statement> iter,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Called by aggregate sets when a term has been removed from a term iterator.
|
void |
FilteredModel.removeTermIteration(Iterator<Statement> iter,
Resource s,
IRI p,
Value o,
Resource... c) |
void |
EmptyModel.removeTermIteration(Iterator<Statement> iter,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
abstract void |
AbstractModel.removeTermIteration(Iterator<Statement> iter,
Resource subj,
IRI 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,
IRI pred,
Value obj,
Resource... contexts) |
void |
LinkedHashModel.removeTermIteration(Iterator iterator,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
| Constructor and Description |
|---|
ContextStatement(Resource subject,
IRI predicate,
Value object,
Resource context)
Creates a new Statement with the supplied subject, predicate and object for the specified associated
context.
|
ContextStatementImpl(Resource subject,
URI predicate,
Value object,
Resource context)
Deprecated.
since 4.0. Use
ValueFactory.createStatement(Resource, IRI, Value, Resource)
instead. |
FilteredModel(AbstractModel model,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
SimpleStatement(Resource subject,
IRI predicate,
Value object)
Creates a new Statement with the supplied subject, predicate and object.
|
StatementImpl(Resource subject,
URI predicate,
Value object)
Deprecated.
since 4.0. Use
ValueFactory.createStatement(Resource, IRI, Value) instead. |
| Modifier and Type | Method and Description |
|---|---|
static <C extends Collection<Value>> |
RDFCollections.asValues(Model m,
Resource head,
C collection,
Resource... contexts)
Converts an RDF Collection to a Java
Collection of Value objects. |
| Modifier and Type | Method and Description |
|---|---|
static Value |
Models.anyObject(Model m)
Deprecated.
since 4.0. Use
Models.object(Model) instead. |
static Value |
GraphUtil.getOptionalObject(Graph graph,
Resource subj,
IRI pred,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.objectValue() instead. |
static Value |
GraphUtil.getUniqueObject(Graph graph,
Resource subj,
IRI pred,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.objectValue() instead. |
| Modifier and Type | Method and Description |
|---|---|
static Iterator<Value> |
GraphUtil.getObjectIterator(Graph graph,
Resource subj,
IRI pred,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.objects() instead. |
static Set<Value> |
GraphUtil.getObjects(Graph graph,
Resource subj,
IRI pred,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.objects() instead. |
static Set<Value> |
Models.getProperties(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property values for the supplied subject and property from the given model.
|
static Optional<Value> |
Models.getProperty(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value for the supplied subject from the given model.
|
static Optional<Value> |
Models.object(Model m)
Retrieves an object
Value from the statements in the given model. |
| Modifier and Type | Method and Description |
|---|---|
int |
LexicalValueComparator.compare(Value o1,
Value o2) |
static void |
Statements.consume(ValueFactory vf,
Resource subject,
IRI predicate,
Value object,
java.util.function.Consumer<Statement> consumer,
Resource... contexts)
|
static <C extends Collection<Statement>> |
Statements.create(ValueFactory vf,
Resource subject,
IRI predicate,
Value object,
C collection,
Resource... contexts)
Creates one or more
Statement objects with the given subject, predicate and object, one for
each given context. |
Optional<Statement> |
GetStatementOptional.get(Resource subject,
IRI predicate,
Value object,
Resource... contexts)
Either supplies a statement matching the given pattern, or
Optional.empty() otherwise. |
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,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.subjectResource() instead. |
static IRI |
GraphUtil.getOptionalSubjectURI(Graph graph,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.subjectIRI() instead. |
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,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.subjects() instead. |
static Set<Resource> |
GraphUtil.getSubjects(Graph graph,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.subjects() instead. |
static Resource |
GraphUtil.getUniqueSubject(Graph graph,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.subjectResource() instead. |
static IRI |
GraphUtil.getUniqueSubjectURI(Graph graph,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, IRI, Value, Resource...) and
Model.subjectIRI() instead. |
static void |
GraphUtil.remove(Graph graph,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Model.remove(Resource, IRI, Value, Resource...) instead. |
static Model |
Models.setProperty(Model m,
Resource subject,
IRI property,
Value value,
Resource... contexts)
Sets the property value for the given subject to the given object value, replacing any existing
value(s) for the subject's property.
|
static void |
GraphUtil.setUniqueObject(Graph graph,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
since 2.8.0. Use
Models.setProperty(Model, Resource, IRI, Value, Resource...)
instead. |
| Modifier and Type | Method and Description |
|---|---|
static void |
RDFCollections.consumeValues(Model m,
Resource head,
java.util.function.Consumer<Value> consumer,
Resource... contexts)
|
| 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 © 2015-2019 Eclipse Foundation. All Rights Reserved.