| 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 |
|---|---|
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 | Method and Description |
|---|---|
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(). |
| Modifier and Type | Class and Description |
|---|---|
class |
ContextStatement
An extension of
SimpleStatement that adds a context field. |
class |
ContextStatementImpl
Deprecated.
since 4.0. Use
ContextStatement instead for extension, and ValueFactory for
instantiation. |
class |
SimpleStatement
A simple default implementation of the
Statement interface for statements that don't have an
associated context. |
class |
StatementImpl
Deprecated.
since 4.0. Use
SimpleStatement instead for extension, and ValueFactory for
instantiation. |
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<Statement> |
GraphImpl.statements
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
TreeModel.ceiling(Statement e) |
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) |
Statement |
TreeModel.first() |
Statement |
TreeModel.floor(Statement e) |
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> |
GraphImpl.iterator()
Deprecated.
|
Iterator<Statement> |
EmptyModel.iterator() |
Iterator<Statement> |
TreeModel.iterator() |
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.
|
SortedSet<Statement> |
TreeModel.subSet(Statement fromElement,
Statement toElement) |
SortedSet<Statement> |
TreeModel.tailSet(Statement fromElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GraphImpl.add(Statement st)
Deprecated.
|
boolean |
AbstractModel.add(Statement st) |
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 |
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) |
| Constructor and Description |
|---|
GraphImpl(Collection<? extends Statement> statements)
Deprecated.
|
GraphImpl(ValueFactory valueFactory,
Collection<? extends Statement> statements)
Deprecated.
|
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>> |
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 |
|---|---|
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).
|
| 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 boolean |
Models.equals(Iterable<? extends Statement> model1,
Iterable<? extends Statement> model2)
Deprecated.
since 2.8.0. Use
Models.isomorphic(Iterable, Iterable) instead. |
static boolean |
Models.equals(Iterable<? extends Statement> model1,
Iterable<? extends Statement> model2)
Deprecated.
since 2.8.0. Use
Models.isomorphic(Iterable, Iterable) instead. |
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-2019 Eclipse Foundation. All Rights Reserved.