public class RioMemoryTripleSource extends Object implements org.semanticweb.owlapi.io.OWLOntologyDocumentSource
| Constructor and Description |
|---|
RioMemoryTripleSource(info.aduna.iteration.CloseableIteration<org.openrdf.model.Statement,? extends org.openrdf.OpenRDFException> statements)
Creates a RioMemoryTripleSource using a closeable iteration.
|
RioMemoryTripleSource(info.aduna.iteration.CloseableIteration<org.openrdf.model.Statement,? extends org.openrdf.OpenRDFException> statements,
Map<String,String> namespaces)
Creates a RioMemoryTripleSource using a closeable iteration.
|
RioMemoryTripleSource(Iterable<org.openrdf.model.Statement> statements)
Creates a RioMemoryTripleSource using an
Iterable of
Statement objects. |
RioMemoryTripleSource(Iterator<org.openrdf.model.Statement> statements)
Creates a RioMemoryTripleSource using an
Iterable of
Statement objects. |
RioMemoryTripleSource(Iterator<org.openrdf.model.Statement> statements,
Map<String,String> namespaces)
Creates a RioMemoryTripleSource using an
Iterable of
Statement objects. |
| Modifier and Type | Method and Description |
|---|---|
org.semanticweb.owlapi.model.IRI |
getDocumentIRI() |
org.semanticweb.owlapi.model.OWLDocumentFormat |
getFormat() |
InputStream |
getInputStream() |
String |
getMIMEType() |
Map<String,String> |
getNamespaces() |
Reader |
getReader() |
Iterator<org.openrdf.model.Statement> |
getStatementIterator() |
boolean |
isFormatKnown() |
boolean |
isInputStreamAvailable() |
boolean |
isMIMETypeKnown() |
boolean |
isReaderAvailable() |
void |
setNamespaces(Map<String,String> nextNamespaces) |
void |
setNamespaces(Set<org.openrdf.model.Namespace> nextNamespaces) |
public RioMemoryTripleSource(@Nonnull Iterator<org.openrdf.model.Statement> statements)
Iterable of
Statement objects.statements - An Iterator of Statement objects that make up this
source.public RioMemoryTripleSource(@Nonnull Iterator<org.openrdf.model.Statement> statements, @Nonnull Map<String,String> namespaces)
Iterable of
Statement objects.statements - An Iterator of Statement objects that make up this
source.namespaces - A Map of namespaces from prefix to full URI which are to be used
by this source.public RioMemoryTripleSource(@Nonnull Iterable<org.openrdf.model.Statement> statements)
Iterable of
Statement objects. Model, the namespaces from the
model are also used.statements - A CloseableIteration of Statement objects that
make up this source.public RioMemoryTripleSource(info.aduna.iteration.CloseableIteration<org.openrdf.model.Statement,? extends org.openrdf.OpenRDFException> statements)
statements - A CloseableIteration of Statement objects that
make up this source.public RioMemoryTripleSource(info.aduna.iteration.CloseableIteration<org.openrdf.model.Statement,? extends org.openrdf.OpenRDFException> statements,
Map<String,String> namespaces)
statements - A CloseableIteration of Statement objects that
make up this source.namespaces - A Map of namespaces from prefix to full URI which are to be used
by this source.public boolean isReaderAvailable()
isReaderAvailable in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic Reader getReader()
getReader in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic boolean isInputStreamAvailable()
isInputStreamAvailable in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic InputStream getInputStream()
getInputStream in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic org.semanticweb.owlapi.model.IRI getDocumentIRI()
getDocumentIRI in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic boolean isFormatKnown()
isFormatKnown in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic org.semanticweb.owlapi.model.OWLDocumentFormat getFormat()
getFormat in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic Iterator<org.openrdf.model.Statement> getStatementIterator()
public void setNamespaces(Set<org.openrdf.model.Namespace> nextNamespaces)
nextNamespaces - set of namespaces to setpublic void setNamespaces(Map<String,String> nextNamespaces)
nextNamespaces - map of namespaces to setpublic String getMIMEType()
getMIMEType in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourcepublic boolean isMIMETypeKnown()
isMIMETypeKnown in interface org.semanticweb.owlapi.io.OWLOntologyDocumentSourceCopyright © 2016 The University of Manchester. All Rights Reserved.