Class DB2KIF

java.lang.Object
com.articulate.sigma.trans.DB2KIF

public class DB2KIF extends Object
  • Field Details

  • Constructor Details

    • DB2KIF

      public DB2KIF()
  • Method Details

    • getMin

      public Double getMin(String rel, int arg)
      A convenience method that gets the minimum expected value for the given argument to a relation. Return null if there is no such value specified for the relation and argument number.
    • getMax

      public Double getMax(String rel, int arg)
      A convenience method that gets the maximum expected value for the given argument to a relation. Return null if there is no such value specified for the relation and argument number.
    • getGood

      public Set<String> getGood(String rel, String arg)
      A convenience method that gets the set of expected values for the given argument to a relation. Return null if there are no such values specified for the relation and argument number.
    • getBad

      public Set<String> getBad(String rel, String arg)
      A convenience method that gets the set of values not expected for the given argument to a relation. Return null if there are no such values specified for the relation and argument number.
    • clean

      public String clean(List<List<String>> cells)
      Check values in a spreadsheet format where the columns have been mapped to relations and there is a set of good and bad values compiled for the arguments to those relations.
    • initSampleValues

      public static void initSampleValues(DB2KIF dbkif)
      Create some sample good and bad values for testing
    • initValues

      public static void initValues(DB2KIF dbkif)
      Take statements in SUMO and generate sets of good or bad values for relations
    • provingClean

      public void provingClean()
    • toKIF

      public void toKIF(List<List<String>> cells, boolean print)
    • main

      public static void main(String[] args)