| 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 | Method and Description |
|---|---|
Model |
ModelFactory.createEmptyModel() |
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.
|
Model |
Model.unmodifiable()
Returns an unmodifiable view of this 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 |
LinkedHashModel
Hash table based implementation of the
Model interface. |
class |
TreeModel
A Red-Black tree based
Model implementation. |
| Modifier and Type | Method and Description |
|---|---|
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) |
Model |
FilteredModel.filter(Resource s,
IRI p,
Value o,
Resource... c) |
Model |
AbstractModel.unmodifiable() |
| Constructor and Description |
|---|
EmptyModel(Model model) |
LinkedHashModel(Model model) |
TreeModel(Model model) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Value |
Models.anyObject(Model m)
Deprecated.
since 4.0. Use
Models.object(Model) instead. |
static Literal |
Models.anyObjectLiteral(Model m)
Deprecated.
since 4.0. Use
Models.objectLiteral(Model) instead. |
static Resource |
Models.anyObjectResource(Model m)
Deprecated.
since 4.0. Use
Models.objectResource(Model) instead. |
static URI |
Models.anyObjectURI(Model m)
Deprecated.
since 4.0. Use
Models.objectIRI(Model) instead. |
static URI |
Models.anyPredicate(Model m)
Deprecated.
since 4.0. Use
Models.predicate(Model) instead. |
static Resource |
Models.anySubject(Model m)
Deprecated.
since 4.0. Use
Models.subject(Model) instead. |
static BNode |
Models.anySubjectBNode(Model m)
Deprecated.
since 4.0. Use
Models.subjectBNode(Model) instead. |
static URI |
Models.anySubjectURI(Model m)
Deprecated.
since 4.0. Use
Models.subjectIRI(Model) instead. |
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. |
static void |
RDFCollections.consumeValues(Model m,
Resource head,
java.util.function.Consumer<Value> consumer,
Resource... contexts)
|
static void |
RDFCollections.extract(Model sourceModel,
Resource head,
java.util.function.Consumer<Statement> consumer,
Resource... contexts)
Extracts the RDF Collection starting
with supplied
head resource from the supplied source Model and sends the statements
that make up the collection to the supplied Consumer. |
static <C extends Collection<Statement>> |
RDFCollections.getCollection(Model sourceModel,
Resource head,
C sink,
Resource... contexts)
Extracts the RDF Collection starting
with the supplied
head resource from the supplied source Model. |
static Optional<Value> |
Models.object(Model m)
Retrieves an object
Value from the statements in the given model. |
static Optional<IRI> |
Models.objectIRI(Model m)
Retrieves an object
IRI value from the statements in the given model. |
static Optional<Literal> |
Models.objectLiteral(Model m)
Retrieves an object
Literal value from the statements in the given model. |
static Optional<Resource> |
Models.objectResource(Model m)
Retrieves an object
Resource value from the statements in the given model. |
static Optional<String> |
Models.objectString(Model m)
Retrieves an object value as a String from the statements in the given model.
|
static Optional<IRI> |
Models.predicate(Model m)
Retrieves a predicate from the statements in the given model.
|
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 Optional<Resource> |
Models.subject(Model m)
Retrieves a subject
Resource from the statements in the given model. |
static Optional<BNode> |
Models.subjectBNode(Model m)
Retrieves a subject
BNode from the statements in the given model. |
static Optional<IRI> |
Models.subjectIRI(Model m)
Retrieves a subject
IRI from the statements in the given model. |
Copyright © 2015-2016 Eclipse Foundation. All Rights Reserved.