Interface Writer

All Known Implementing Classes:
StreamRDFWriter

public interface Writer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addProperty(int property, int valueClass, String valueId)
    Adds a property statement for the current element whose value is an individual.
    void
    addProperty(int property, String value, boolean isResource)
    Adds the specified property statement for the current element.
    void
    end()
    Called when finish data generation.
    void
    Finishes the current file.
    void
    endSection(int classType)
    Finishes the current section.
    void
    Called when starting data generation.
    void
    startAboutSection(int classType, String id)
    Starts a section for the specified instance identified by an rdf:about attribute.
    void
    startFile(String fileName)
    Starts file writing.
    void
    startSection(int classType, String id)
    Starts a section for the specified instance.
  • Method Details

    • start

      void start()
      Called when starting data generation.
    • end

      void end()
      Called when finish data generation.
    • startFile

      void startFile(String fileName)
      Starts file writing.
      Parameters:
      fileName - File name.
    • endFile

      void endFile()
      Finishes the current file.
    • startSection

      void startSection(int classType, String id)
      Starts a section for the specified instance.
      Parameters:
      classType - Type of the instance.
      id - Id of the instance.
    • startAboutSection

      void startAboutSection(int classType, String id)
      Starts a section for the specified instance identified by an rdf:about attribute.
      Parameters:
      classType - Type of the instance.
      id - Id of the instance.
    • endSection

      void endSection(int classType)
      Finishes the current section.
      Parameters:
      classType - Type of the current instance.
    • addProperty

      void addProperty(int property, String value, boolean isResource)
      Adds the specified property statement for the current element.
      Parameters:
      property - Type of the property.
      value - Property value.
      isResource - Indicates if the property value is an rdf resource (True), or it is literal (False).
    • addProperty

      void addProperty(int property, int valueClass, String valueId)
      Adds a property statement for the current element whose value is an individual.
      Parameters:
      property - Type of the property.
      valueClass - Type of the individual.
      valueId - Id of the individual.