Interface RDFWriterF

All Known Subinterfaces:
InfModel, Model, OntModel
All Known Implementing Classes:
InfModelImpl, ModelCom, MonitorModel, OntModelImpl, RDFWriterFImpl

public interface RDFWriterF
An RDFWriter factory interface.
Legacy

Writing RDF is usually done via:

  • RDFDataMgr
  • RDFWriterr
  • Model.write
All of these will use the newer RIOT writers, not implementations of this interface.

The factory will create an appropriate writer for the particular serialization language being read. Predefined languages:

  • RDF/XML - default
  • RDF/XML-ABBREV
  • N-TRIPLE

System wide defaults for classes to use as readers for these languages are defined.

NOTE: All settings are global in nature

  • Method Summary

    Modifier and Type
    Method
    Description
    return an RDFWriter instance for the default serialization language.
    an RDFWriter instance for the specified serialization language.
  • Method Details

    • getWriter

      RDFWriterI getWriter()
      return an RDFWriter instance for the default serialization language.
      Returns:
      an RDFWriter instance for the default serialization language.
    • getWriter

      RDFWriterI getWriter(String lang)
      an RDFWriter instance for the specified serialization language.
      Parameters:
      lang - the serialization language - null selects the default
      Returns:
      the RDFWriter instance