public class TurtleStarWriter extends TurtleWriter
TurtleWriter that writes RDF-star documents in the Turtle-star format by including the
RDF-star triples.baseIRI, bufferedStatements, lastWrittenPredicate, lastWrittenSubject, statementClosed, writernamespaceTable, statementConsumer| Constructor and Description |
|---|
TurtleStarWriter(OutputStream out)
Creates a new TurtleStarWriter that will write to the supplied OutputStream.
|
TurtleStarWriter(OutputStream out,
ParsedIRI baseIRI)
Creates a new TurtleStarWriter that will write to the supplied OutputStream using the supplied base IRI.
|
TurtleStarWriter(Writer writer)
Creates a new TurtleStarWriter that will write to the supplied Writer.
|
TurtleStarWriter(Writer writer,
ParsedIRI baseIRI)
Creates a new TurtleStarWriter that will write to the supplied Writer using the supplied base IRI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsFileFormat(FileFormat format) |
RDFFormat |
getRDFFormat() |
protected void |
writeTriple(org.eclipse.rdf4j.model.Triple triple,
boolean canShorten) |
closePreviousStatement, consumeStatement, endRDF, getModelFactory, getSupportedSettings, getWriter, handleComment, handleNamespace, handleStatementInternal, setModelFactory, startRDF, writeBase, writeBNode, writeBNode, writeCommentLine, writeLiteral, writeNamespace, writePredicate, writeResource, writeResource, writeStatement, writeTripleRDFStar, writeURI, writeValue, writeValuecheckWritingStarted, getFileFormat, getWriterConfig, handleStatement, isWritingStarted, set, setWriterConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterConfig, set, setWriterConfighandleStatementgetFileFormatpublic TurtleStarWriter(OutputStream out)
out - The OutputStream to write the TurtleStar document to.public TurtleStarWriter(OutputStream out, ParsedIRI baseIRI)
out - The OutputStream to write the TurtleStar document to.baseIRI - The base IRI to use.public TurtleStarWriter(Writer writer)
writer - The Writer to write the TurtleStar document to.public RDFFormat getRDFFormat()
getRDFFormat in interface RDFWritergetRDFFormat in class TurtleWriterpublic boolean acceptsFileFormat(FileFormat format)
protected void writeTriple(org.eclipse.rdf4j.model.Triple triple, boolean canShorten) throws IOException
writeTriple in class TurtleWriterIOExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.