| Package | Description |
|---|---|
| org.eclipse.rdf4j.model |
The RDF Model API
|
| org.eclipse.rdf4j.model.impl |
Default implementations of the RDF model interfaces
|
| org.eclipse.rdf4j.model.util |
Helper classes for working with RDF models.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ContextStatement
An extension of
SimpleStatement that adds a context field. |
class |
ContextStatementImpl
Deprecated.
since 2.0. Use
ContextStatement instead for extension, and ValueFactory for
instantiation. |
static class |
LinkedHashModel.ModelStatement |
class |
SimpleStatement
A simple default implementation of the
Statement interface for statements that don't have an associated
context. |
class |
StatementImpl
Deprecated.
since 2.0. Use
SimpleStatement instead for extension, and ValueFactory for instantiation. |
| Modifier and Type | Method and Description |
|---|---|
Statement |
TreeModel.ceiling(Statement e) |
Statement |
AbstractValueFactory.createStatement(Resource subject,
IRI predicate,
Value object) |
Statement |
ValidatingValueFactory.createStatement(Resource subject,
IRI predicate,
Value object) |
Statement |
AbstractValueFactory.createStatement(Resource subject,
IRI predicate,
Value object,
Resource context) |
Statement |
ValidatingValueFactory.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) |
Statement |
TreeModel.first() |
Statement |
TreeModel.floor(Statement e) |
Statement |
LinkedHashModel.ModelStatement.getStatement() |
Statement |
TreeModel.higher(Statement e) |
Statement |
TreeModel.last() |
Statement |
TreeModel.lower(Statement e) |
Statement |
TreeModel.pollFirst() |
Statement |
TreeModel.pollLast() |
| Modifier and Type | Method and Description |
|---|---|
Comparator<? super Statement> |
TreeModel.comparator() |
SortedSet<Statement> |
TreeModel.headSet(Statement toElement) |
Iterator<Statement> |
TreeModel.iterator() |
Iterator<Statement> |
EmptyModel.iterator() |
SortedSet<Statement> |
TreeModel.subSet(Statement fromElement,
Statement toElement) |
SortedSet<Statement> |
TreeModel.tailSet(Statement fromElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractModel.add(Statement st) |
boolean |
LinkedHashModel.add(Statement statement) |
Statement |
TreeModel.ceiling(Statement e) |
Statement |
TreeModel.floor(Statement e) |
SortedSet<Statement> |
TreeModel.headSet(Statement toElement) |
Statement |
TreeModel.higher(Statement e) |
Statement |
TreeModel.lower(Statement e) |
SortedSet<Statement> |
TreeModel.subSet(Statement fromElement,
Statement toElement) |
SortedSet<Statement> |
TreeModel.tailSet(Statement fromElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractModel.addAll(Collection<? extends Statement> c) |
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 |
TreeModel.removeTermIteration(Iterator<Statement> iterator,
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 |
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) |
| Constructor and Description |
|---|
ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj,
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx,
Statement statement) |
| Constructor and Description |
|---|
LinkedHashModel(Collection<? extends Statement> c) |
LinkedHashModel(Set<Namespace> namespaces,
Collection<? extends Statement> c) |
TreeModel(Collection<? extends Statement> c) |
TreeModel(Set<Namespace> namespaces,
Collection<? extends Statement> c) |
| Modifier and Type | Class and Description |
|---|---|
class |
PatternIterator<S extends Statement>
Excludes an Iterator
|
| Modifier and Type | Method and Description |
|---|---|
static <C extends Collection<Statement>> |
RDFCollections.asRDF(Iterable<?> values,
Resource head,
C sink,
Resource... contexts)
Converts the supplied
Iterable to an RDF
Collection, using the supplied head resource as the starting resource of the RDF Collection. |
static <C extends Collection<Statement>> |
RDFCollections.asRDF(Iterable<?> values,
Resource head,
C sink,
ValueFactory valueFactory,
Resource... contexts)
Converts the supplied
Iterable to an RDF
Collection, using the supplied head resource as the starting resource of the RDF Collection. |
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. |
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. |
| Modifier and Type | Method and Description |
|---|---|
static Statement |
Statements.stripContext(Statement statement)
Strips the context (if any) from the supplied statement and returns a statement with the same subject, predicate
and object, but with no assigned context.
|
static Statement |
Statements.stripContext(ValueFactory vf,
Statement statement)
Strips the context (if any) from the supplied statement and returns a statement with the same subject, predicate
and object, but with no assigned context.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.function.BiConsumer<Model,Statement> |
ModelCollector.accumulator() |
Optional<Statement> |
GetStatementOptional.get(Resource subject,
IRI predicate,
Value object,
Resource... contexts)
Either supplies a statement matching the given pattern, or
Optional.empty() otherwise. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Statements.isSameTriple(Statement st1,
Statement st2)
Checks if the two statements represent the same triple (that is, they have equal subject, predicate, and object).
|
static Statement |
Statements.stripContext(Statement statement)
Strips the context (if any) from the supplied statement and returns a statement with the same subject, predicate
and object, but with no assigned context.
|
static Statement |
Statements.stripContext(ValueFactory vf,
Statement statement)
Strips the context (if any) from the supplied statement and returns a statement with the same subject, predicate
and object, but with no assigned context.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Statements.consume(ValueFactory vf,
Resource subject,
IRI predicate,
Value object,
java.util.function.Consumer<Statement> consumer,
Resource... contexts)
|
static void |
RDFCollections.consumeCollection(Iterable<?> values,
Resource head,
java.util.function.Consumer<Statement> consumer,
Resource... contexts)
Converts the supplied
Iterable to an RDF
Collection, using the supplied head resource as the starting resource of the RDF Collection. |
static void |
RDFCollections.consumeCollection(Iterable<?> values,
Resource head,
java.util.function.Consumer<Statement> consumer,
ValueFactory vf,
Resource... contexts)
Converts the supplied
Iterable to an RDF
Collection, using the supplied head resource as the starting resource of the RDF Collection. |
static <E extends RDF4JException> |
RDFCollections.extract(GetStatementOptional statementSupplier,
Resource head,
java.util.function.Consumer<Statement> collectionConsumer,
java.util.function.Function<String,java.util.function.Supplier<E>> exceptionSupplier,
Resource... contexts)
Extracts an RDF Collection starting with the supplied list head from the statement supplier and sends all
statements that make up the collection to the supplied
Consumer function. |
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 boolean |
Models.isomorphic(Iterable<? extends Statement> model1,
Iterable<? extends Statement> model2)
Compares two RDF models, and returns true if they consist of isomorphic graphs and the isomorphic graph
identifiers map 1:1 to each other.
|
static boolean |
Models.isomorphic(Iterable<? extends Statement> model1,
Iterable<? extends Statement> model2)
Compares two RDF models, and returns true if they consist of isomorphic graphs and the isomorphic graph
identifiers map 1:1 to each other.
|
static boolean |
Models.isSubset(Iterable<? extends Statement> model1,
Iterable<? extends Statement> model2)
Compares two RDF models, and returns true if the first model is a subset of the second model, using
graph isomorphism to map statements between models.
|
static boolean |
Models.isSubset(Iterable<? extends Statement> model1,
Iterable<? extends Statement> model2)
Compares two RDF models, and returns true if the first model is a subset of the second model, using
graph isomorphism to map statements between models.
|
static boolean |
Models.isSubset(Set<? extends Statement> model1,
Set<? extends Statement> model2)
Compares two RDF models, and returns true if the first model is a subset of the second model, using
graph isomorphism to map statements between models.
|
static boolean |
Models.isSubset(Set<? extends Statement> model1,
Set<? extends Statement> model2)
Compares two RDF models, and returns true if the first model is a subset of the second model, using
graph isomorphism to map statements between models.
|
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.