Interface RDFWriterFactory

  • Method Details Link icon

    • getRDFFormat Link icon

      RDFFormat getRDFFormat()
      Returns the RDF format for this factory.
    • getWriter Link icon

      RDFWriter getWriter(OutputStream out)
      Returns an RDFWriter instance that will write to the supplied output stream.
      Parameters:
      out - The OutputStream to write the RDF to.
    • getWriter Link icon

      RDFWriter getWriter(OutputStream out, String baseURI) throws URISyntaxException
      Returns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.
      Parameters:
      out - The OutputStream to write the RDF to.
      baseURI - The URI associated with the data in the InputStream.
      Throws:
      URISyntaxException
    • getWriter Link icon

      RDFWriter getWriter(Writer writer)
      Returns an RDFWriter instance that will write to the supplied writer. (Optional operation)
      Parameters:
      writer - The Writer to write the RDF to.
      Throws:
      UnsupportedOperationException - if the RDFWriter the specific format does not support writing to a Writer
    • getWriter Link icon

      RDFWriter getWriter(Writer writer, String baseURI) throws URISyntaxException
      Returns an RDFWriter instance that will write to the supplied writer. Using the supplied baseURI to relativize IRIs to relative IRIs. (Optional operation)
      Parameters:
      writer - The Writer to write the RDF to.
      baseURI - The URI associated with the data in the InputStream.
      Throws:
      URISyntaxException
      UnsupportedOperationException - if the RDFWriter the specific format does not support writing to a Writer