public interface TripleWriter extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases resources associated with this
TripleWriter, and flushes (but by default does not close)
any underlying OutputStreams. |
void |
writeNamespace(String prefix,
String uri)
Writes a prefix-namespace mapping.
|
void |
writeTriple(org.eclipse.rdf4j.model.Resource s,
org.eclipse.rdf4j.model.IRI p,
org.eclipse.rdf4j.model.Value o,
org.eclipse.rdf4j.model.Resource g)
Writes a triple and, optionally, a graph resource name.
|
void writeTriple(org.eclipse.rdf4j.model.Resource s,
org.eclipse.rdf4j.model.IRI p,
org.eclipse.rdf4j.model.Value o,
org.eclipse.rdf4j.model.Resource g)
throws TripleHandlerException
s - the subject to writep - the predicate to writeo - the object to writeg - the graph name to write, or nullTripleHandlerException - if there is an error writing the triplevoid writeNamespace(String prefix, String uri) throws TripleHandlerException
prefix - the namespace prefixuri - the namespace uriTripleHandlerException - if there was an error writing out the prefix-namespace mappingvoid close()
throws TripleHandlerException
TripleWriter, and flushes (but by default does not close)
any underlying OutputStreams. Future invocations of methods of this writer
produce undefined behavior after this method has been called.close in interface AutoCloseableTripleHandlerException - if there was an error closing this TripleWriterCopyright © 2010–2019 The Apache Software Foundation. All rights reserved.