Package org.eclipse.rdf4j.sail.model
Class SailModel
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<org.eclipse.rdf4j.model.Statement>
-
- org.eclipse.rdf4j.model.impl.AbstractModel
-
- org.eclipse.rdf4j.sail.model.SailModel
-
- All Implemented Interfaces:
Serializable,Iterable<org.eclipse.rdf4j.model.Statement>,Collection<org.eclipse.rdf4j.model.Statement>,Set<org.eclipse.rdf4j.model.Statement>,org.eclipse.rdf4j.model.Model,org.eclipse.rdf4j.model.NamespaceAware
@InternalUseOnly public class SailModel extends org.eclipse.rdf4j.model.impl.AbstractModelModel implementation for aSailConnection. AllSailExceptions are wrapped in aModelException. Not thread-safe.- Author:
- Mark
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SailModel(SailConnection conn, boolean includeInferred)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)booleanclear(org.eclipse.rdf4j.model.Resource... contexts)protected voidcloseIterator(Iterator<?> iter)booleancontains(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)org.eclipse.rdf4j.model.Modelfilter(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)Optional<org.eclipse.rdf4j.model.Namespace>getNamespace(String prefix)Set<org.eclipse.rdf4j.model.Namespace>getNamespaces()Iterator<org.eclipse.rdf4j.model.Statement>iterator()The returned Iterator implements Closeable.booleanremove(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)Optional<org.eclipse.rdf4j.model.Namespace>removeNamespace(String prefix)voidremoveTermIteration(Iterator<org.eclipse.rdf4j.model.Statement> iter, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)voidsetConnection(SailConnection conn)org.eclipse.rdf4j.model.NamespacesetNamespace(String prefix, String name)voidsetNamespace(org.eclipse.rdf4j.model.Namespace namespace)intsize()-
Methods inherited from class org.eclipse.rdf4j.model.impl.AbstractModel
add, addAll, clear, contains, containsAll, contexts, isEmpty, objects, predicates, remove, removeAll, retainAll, subjects, toArray, toArray, unmodifiable
-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Constructor Detail
-
SailModel
public SailModel(SailConnection conn, boolean includeInferred)
-
-
Method Detail
-
setConnection
public void setConnection(SailConnection conn)
-
getNamespaces
public Set<org.eclipse.rdf4j.model.Namespace> getNamespaces()
-
setNamespace
public void setNamespace(org.eclipse.rdf4j.model.Namespace namespace)
-
contains
public boolean contains(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
-
add
public boolean add(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
-
remove
public boolean remove(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
-
clear
public boolean clear(org.eclipse.rdf4j.model.Resource... contexts)
- Specified by:
clearin interfaceorg.eclipse.rdf4j.model.Model- Overrides:
clearin classorg.eclipse.rdf4j.model.impl.AbstractModel
-
filter
public org.eclipse.rdf4j.model.Model filter(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
-
removeTermIteration
public void removeTermIteration(Iterator<org.eclipse.rdf4j.model.Statement> iter, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
- Specified by:
removeTermIterationin classorg.eclipse.rdf4j.model.impl.AbstractModel
-
iterator
public Iterator<org.eclipse.rdf4j.model.Statement> iterator()
The returned Iterator implements Closeable. If it is not exhausted then it should be explicitly closed.- Specified by:
iteratorin interfaceCollection<org.eclipse.rdf4j.model.Statement>- Specified by:
iteratorin interfaceIterable<org.eclipse.rdf4j.model.Statement>- Specified by:
iteratorin interfaceSet<org.eclipse.rdf4j.model.Statement>- Specified by:
iteratorin classAbstractCollection<org.eclipse.rdf4j.model.Statement>
-
closeIterator
protected void closeIterator(Iterator<?> iter)
- Overrides:
closeIteratorin classorg.eclipse.rdf4j.model.impl.AbstractModel
-
size
public int size()
- Specified by:
sizein interfaceCollection<org.eclipse.rdf4j.model.Statement>- Specified by:
sizein interfaceSet<org.eclipse.rdf4j.model.Statement>- Specified by:
sizein classAbstractCollection<org.eclipse.rdf4j.model.Statement>
-
-