Package org.eclipse.rdf4j.rio.rdfjson
Class RDFJSONWriterFactory
java.lang.Object
org.eclipse.rdf4j.rio.rdfjson.RDFJSONWriterFactory
- All Implemented Interfaces:
RDFWriterFactory
An
RDFWriterFactory
for RDF/JSON writers.- Author:
- Peter Ansell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the RDF format for this factory.getWriter(OutputStream out)
Returns an RDFWriter instance that will write to the supplied output stream.getWriter(OutputStream out, String baseURI)
Returns an RDFWriter instance that will write to the supplied output stream.Returns an RDFWriter instance that will write to the supplied writer.Returns an RDFWriter instance that will write to the supplied writer.
-
Constructor Details
-
RDFJSONWriterFactory
public RDFJSONWriterFactory()
-
-
Method Details
-
getRDFFormat
Description copied from interface:RDFWriterFactory
Returns the RDF format for this factory.- Specified by:
getRDFFormat
in interfaceRDFWriterFactory
-
getWriter
Description copied from interface:RDFWriterFactory
Returns an RDFWriter instance that will write to the supplied output stream.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.
-
getWriter
Description copied from interface:RDFWriterFactory
Returns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
out
- The OutputStream to write the RDF to.baseURI
- The URI associated with the data in the InputStream.
-
getWriter
Description copied from interface:RDFWriterFactory
Returns an RDFWriter instance that will write to the supplied writer. (Optional operation)- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.
-
getWriter
Description copied from interface:RDFWriterFactory
Returns an RDFWriter instance that will write to the supplied writer. Using the supplied baseURI to relativize IRIs to relative IRIs. (Optional operation)- Specified by:
getWriter
in interfaceRDFWriterFactory
- Parameters:
writer
- The Writer to write the RDF to.baseURI
- The URI associated with the data in the InputStream.
-