| 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 |
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) |
Model |
AbstractModel.unmodifiable() |
| Constructor and Description |
|---|
EmptyModel(Model model) |
LinkedHashModel(Model model) |
TreeModel(Model model) |
| Modifier and Type | Method and Description |
|---|---|
Model |
ModelBuilder.build()
Return the created
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.
|
| 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 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<IRI> |
Models.getPropertyIRI(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as an IRI for the supplied subject from the given model.
|
static Set<IRI> |
Models.getPropertyIRIs(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property IRI values for the supplied subject and property from the given model.
|
static Optional<Literal> |
Models.getPropertyLiteral(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as a
Literal for the supplied subject from the given model. |
static Set<Literal> |
Models.getPropertyLiterals(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property Literal values for the supplied subject and property from the given model.
|
static Optional<Resource> |
Models.getPropertyResource(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as an IRI for the supplied subject from the given model.
|
static Set<Resource> |
Models.getPropertyResources(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property Resource values for the supplied subject and property from the given model.
|
static Optional<String> |
Models.getPropertyString(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as a String for the supplied subject from the given model.
|
static Set<String> |
Models.getPropertyStrings(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property values as Strings for the supplied subject and property from the given 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 Set<IRI> |
Models.objectIRIs(Model m)
Retrieves all object
IRI values 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 Set<Literal> |
Models.objectLiterals(Model m)
Retrieves all object
Literal values 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 Set<Resource> |
Models.objectResources(Model m)
Retrieves all object
Resource values 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 Set<String> |
Models.objectStrings(Model m)
Retrieves all object String values 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 Set<BNode> |
Models.subjectBNodes(Model m)
Retrieves all subject
BNodes 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. |
static Set<IRI> |
Models.subjectIRIs(Model m)
Retrieves all subject
IRIs from the statements in the given model. |
| Constructor and Description |
|---|
ModelBuilder(Model model)
Create a new
ModelBuilder which will append to the supplied Model. |
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.