Package org.eclipse.rdf4j.rio.ndjsonld
Class NDJSONLDWriterFactory
- java.lang.Object
-
- org.eclipse.rdf4j.rio.ndjsonld.NDJSONLDWriterFactory
-
- All Implemented Interfaces:
RDFWriterFactory
public class NDJSONLDWriterFactory extends Object implements RDFWriterFactory
-
-
Constructor Summary
Constructors Constructor Description NDJSONLDWriterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormatgetRDFFormat()Returns the RDF format for this factory.RDFWritergetWriter(OutputStream out)Returns an RDFWriter instance that will write to the supplied output stream.RDFWritergetWriter(OutputStream out, String baseURI)Returns an RDFWriter instance that will write to the supplied output stream.RDFWritergetWriter(Writer writer)Returns an RDFWriter instance that will write to the supplied writer.RDFWritergetWriter(Writer writer, String baseURI)Returns an RDFWriter instance that will write to the supplied writer.
-
-
-
Method Detail
-
getRDFFormat
public RDFFormat getRDFFormat()
Description copied from interface:RDFWriterFactoryReturns the RDF format for this factory.- Specified by:
getRDFFormatin interfaceRDFWriterFactory
-
getWriter
public RDFWriter getWriter(OutputStream out)
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied output stream.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
out- The OutputStream to write the RDF to.
-
getWriter
public RDFWriter getWriter(OutputStream out, String baseURI)
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
out- The OutputStream to write the RDF to.baseURI- The URI associated with the data in the InputStream.
-
getWriter
public RDFWriter getWriter(Writer writer)
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied writer. (Optional operation)- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
writer- The Writer to write the RDF to.
-
getWriter
public RDFWriter getWriter(Writer writer, String baseURI)
Description copied from interface:RDFWriterFactoryReturns an RDFWriter instance that will write to the supplied writer. Using the supplied baseURI to relativize IRIs to relative IRIs. (Optional operation)- Specified by:
getWriterin interfaceRDFWriterFactory- Parameters:
writer- The Writer to write the RDF to.baseURI- The URI associated with the data in the InputStream.
-
-