Package org.aksw.gerbil.io.nif
Class AbstractNIFWriter
java.lang.Object
org.aksw.gerbil.io.nif.AbstractNIFWriter
- All Implemented Interfaces:
NIFWriter
- Direct Known Subclasses:
TurtleNIFWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.jena.rdf.model.ModelcreateNIFModel(List<Document> document) Returns 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
-
Field Details
-
httpContentType
-
language
-
writer
-
-
Constructor Details
-
AbstractNIFWriter
-
-
Method Details
-
createNIFModel
-
getHttpContentType
Description copied from interface:NIFWriterThis method should return the HTTP content type string for the data that is created by this writer.- Specified by:
getHttpContentTypein interfaceNIFWriter- Returns:
- the HTTP content type string
-
writeNIF
Description copied from interface:NIFWriterWrites the given lost ofDocumentinstances as NIF data to a String. -
writeNIF
Description copied from interface:NIFWriterWrites the given lost ofDocumentinstances as NIF data to the givenOutputStream.- Specified by:
writeNIFin interfaceNIFWriter- Parameters:
document- the list ofDocumentinstances that should be written as NIF dataos- theOutputStreamto which the NIF data should be written
-
writeNIF
Description copied from interface:NIFWriterWrites the given lost ofDocumentinstances as NIF data to the givenWriter.Note that following the recommendations of the Jena framework we highly recommend to use
NIFWriter.writeNIF(List, OutputStream)instead of using aWritersince theOutputStreamis not relying on a specific encoding. -
getDocumentListWriter
Description copied from interface:NIFWriterReturns theDocumentListWriterused by this parser.- Specified by:
getDocumentListWriterin interfaceNIFWriter- Returns:
- the
DocumentListWriterused by this parser
-
setDocumentListWriter
Description copied from interface:NIFWriterSets theDocumentListWriterused by this parser.- Specified by:
setDocumentListWriterin interfaceNIFWriter- Parameters:
listWriter- theDocumentListWriterused by this parser
-