public interface RDF4JGraphLike<T extends TripleLike> extends GraphLike<T>, AutoCloseable
This is a common interface for RDF4JGraph and RDF4JDataset
which provides access to the underlying RDF4J Model and/or
Repository.
At least one of asModel() or asRepository() will always be
Optional.isPresent().
RDF4JDataset,
RDF4JGraph| Modifier and Type | Method and Description |
|---|---|
Optional<org.eclipse.rdf4j.model.Model> |
asModel()
Return the corresponding RDF4J
Model, if present. |
Optional<org.eclipse.rdf4j.repository.Repository> |
asRepository()
Return the corresponding RDF4J
Repository, if present. |
add, clear, contains, iterate, remove, size, streamcloseOptional<org.eclipse.rdf4j.model.Model> asModel()
Model, if present.
The return value is Optional.isPresent() if this is backed by a
Model.
Changes to the Model are reflected in both directions.
Optional<org.eclipse.rdf4j.repository.Repository> asRepository()
Repository, if present.
The return value is Optional.isPresent() if this is backed by a
Repository.
Changes to the Repository are reflected in both directions.
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.