Class StreamRDFWriter

java.lang.Object
edu.lehigh.swat.bench.uba.StreamRDFWriter
All Implemented Interfaces:
Writer

public class StreamRDFWriter extends Object implements Writer
  • Constructor Summary

    Constructors
    Constructor
    Description
    StreamRDFWriter(org.apache.jena.riot.system.StreamRDF stream, Generator generator)
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StreamRDFWriter

      public StreamRDFWriter(org.apache.jena.riot.system.StreamRDF stream, Generator generator)
  • Method Details

    • start

      public void start()
      Description copied from interface: Writer
      Called when starting data generation.
      Specified by:
      start in interface Writer
    • end

      public void end()
      Description copied from interface: Writer
      Called when finish data generation.
      Specified by:
      end in interface Writer
    • startFile

      public void startFile(String fileName)
      Description copied from interface: Writer
      Starts file writing.
      Specified by:
      startFile in interface Writer
      Parameters:
      fileName - File name.
    • endFile

      public void endFile()
      Description copied from interface: Writer
      Finishes the current file.
      Specified by:
      endFile in interface Writer
    • startSection

      public void startSection(int classType, String id)
      Description copied from interface: Writer
      Starts a section for the specified instance.
      Specified by:
      startSection in interface Writer
      Parameters:
      classType - Type of the instance.
      id - Id of the instance.
    • startAboutSection

      public void startAboutSection(int classType, String id)
      Description copied from interface: Writer
      Starts a section for the specified instance identified by an rdf:about attribute.
      Specified by:
      startAboutSection in interface Writer
      Parameters:
      classType - Type of the instance.
      id - Id of the instance.
    • endSection

      public void endSection(int classType)
      Description copied from interface: Writer
      Finishes the current section.
      Specified by:
      endSection in interface Writer
      Parameters:
      classType - Type of the current instance.
    • addProperty

      public void addProperty(int property, String value, boolean isResource)
      Description copied from interface: Writer
      Adds the specified property statement for the current element.
      Specified by:
      addProperty in interface Writer
      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

      public void addProperty(int property, int valueClass, String valueId)
      Description copied from interface: Writer
      Adds a property statement for the current element whose value is an individual.
      Specified by:
      addProperty in interface Writer
      Parameters:
      property - Type of the property.
      valueClass - Type of the individual.
      valueId - Id of the individual.