public interface SailDataset extends SailClosable
SailSource at a point in time that will remain consistent until close() is called. The
life cycle follows that of a read operation.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when this
SailDataset is no longer is used, such as when a read operation is complete. |
CloseableIteration<? extends org.eclipse.rdf4j.model.Resource,SailException> |
getContextIDs()
Returns the set of all unique context identifiers that are used to store statements.
|
String |
getNamespace(String prefix)
Gets the namespace that is associated with the specified prefix, if any.
|
CloseableIteration<? extends org.eclipse.rdf4j.model.Namespace,SailException> |
getNamespaces()
Gets the namespaces relevant to the data contained in this object.
|
CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,SailException> |
getStatements(org.eclipse.rdf4j.model.Resource subj,
org.eclipse.rdf4j.model.IRI pred,
org.eclipse.rdf4j.model.Value obj,
org.eclipse.rdf4j.model.Resource... contexts)
Gets all statements that have a specific subject, predicate and/or object.
|
default CloseableIteration<? extends org.eclipse.rdf4j.model.Triple,SailException> |
getTriples(org.eclipse.rdf4j.model.Resource subj,
org.eclipse.rdf4j.model.IRI pred,
org.eclipse.rdf4j.model.Value obj)
Gets all RDF-star triples that have a specific subject, predicate and/or object.
|
void close()
throws SailException
SailDataset is no longer is used, such as when a read operation is complete. An
isolation level compatible with IsolationLevels.SNAPSHOT will ensure the state of this
SailDataset dose not change between the first call to this object until SailClosable#release() is
called.close in interface AutoCloseableclose in interface SailClosableSailException - if this resource cannot be closedCloseableIteration<? extends org.eclipse.rdf4j.model.Namespace,SailException> getNamespaces() throws SailException
SailException - If this object encountered an error or unexpected situation internally.String getNamespace(String prefix) throws SailException
prefix - A namespace prefix, or an empty string in case of the default namespace.SailException - If this object encountered an error or unexpected situation internally.NullPointerException - In case prefix is null.CloseableIteration<? extends org.eclipse.rdf4j.model.Resource,SailException> getContextIDs() throws SailException
SailExceptionCloseableIteration<? extends org.eclipse.rdf4j.model.Statement,SailException> getStatements(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws SailException
subj - A Resource specifying the subject, or null for a wildcard.pred - A IRI specifying the predicate, or null for a wildcard.obj - A Value specifying the object, or null for a wildcard.contexts - The context(s) to get the statements from. Note that this parameter is a vararg and as such is
optional. If no contexts are supplied the method operates on all contexts.SailException - If the triple source failed to get the statements.default CloseableIteration<? extends org.eclipse.rdf4j.model.Triple,SailException> getTriples(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj) throws SailException
subj - A Resource specifying the subject, or null for a wildcard.pred - A IRI specifying the predicate, or null for a wildcard.obj - A Value specifying the object, or null for a wildcard.SailException - If the triple source failed to get the RDF-star triples.Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.