Package org.aksw.gerbil.io.nif
Interface NIFWriter
- All Known Implementing Classes:
AbstractNIFWriter,TurtleNIFWriter
public interface NIFWriter
This interface defines a NIFWriter - a class that should write NIF data from
a given list of
Document instances.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
Method Summary
Modifier and TypeMethodDescriptionReturns theDocumentListWriterused by this parser.This method should return the HTTP content type string for the data that is created by this writer.voidsetDocumentListWriter(DocumentListWriter listWriter) Sets theDocumentListWriterused by this parser.Writes the given lost ofDocumentinstances as NIF data to a String.voidwriteNIF(List<Document> document, OutputStream os) Writes the given lost ofDocumentinstances as NIF data to the givenOutputStream.void
-
Method Details
-
writeNIF
Writes the given lost ofDocumentinstances as NIF data to a String.- Parameters:
document- the list ofDocumentinstances that should be written as NIF data- Returns:
- the String containing the NIF data
-
writeNIF
Writes the given lost ofDocumentinstances as NIF data to the givenWriter.Note that following the recommendations of the Jena framework we highly recommend to use
writeNIF(List, OutputStream)instead of using aWritersince theOutputStreamis not relying on a specific encoding. -
writeNIF
Writes the given lost ofDocumentinstances as NIF data to the givenOutputStream.- Parameters:
document- the list ofDocumentinstances that should be written as NIF dataos- theOutputStreamto which the NIF data should be written
-
getHttpContentType
String getHttpContentType()This method should return the HTTP content type string for the data that is created by this writer.- Returns:
- the HTTP content type string
-
getDocumentListWriter
DocumentListWriter getDocumentListWriter()Returns theDocumentListWriterused by this parser.- Returns:
- the
DocumentListWriterused by this parser
-
setDocumentListWriter
Sets theDocumentListWriterused by this parser.- Parameters:
listWriter- theDocumentListWriterused by this parser
-