Class TaxonomyUpdater

java.lang.Object
de.uni_trier.wi2.procake.utils.taxonomy.TaxonomyUpdater

public class TaxonomyUpdater extends Object
This class allows integrating the manual revised taxonomies into the CAKE domain model. Most of the functions are imitated from the CAKE Rapidminer project.
Author:
unknown (CAKE Rapidminer), Alexander Schultheis
  • Constructor Details

    • TaxonomyUpdater

      public TaxonomyUpdater(String pathCombined)
      Constructor for this class.
      Parameters:
      pathCombined - The path and the name of the input file.
    • TaxonomyUpdater

      public TaxonomyUpdater(String pathCombined, String pathSim, String pathModel)
      Constructor for this class with user created names for the xml files.
      Parameters:
      pathCombined - The path and the name of the input file.
      pathSim - The name of the output file for the similarity measure.
      pathModel - The name of the output file for the model.
  • Method Details

    • createEmptyXMLDocument

      public static Document createEmptyXMLDocument() throws ParserConfigurationException
      This method creates an empty xml document. It was imitated from the CAKE rapidminer project.
      Returns:
      An empty new document.
      Throws:
      ParserConfigurationException
    • createStringFromXMLDocument

      public static String createStringFromXMLDocument(Document document, boolean omitXmlDeclaration) throws TransformerException
      This method creates a string from a xml document. It was imitated from the CAKE rapidminer project.
      Parameters:
      document - The document which should be used.
      omitXmlDeclaration -
      Returns:
      An empty new document.
      Throws:
      TransformerException
    • updateTaxonomyClassic

      public void updateTaxonomyClassic(String className, String measureName)
      This method creates a classic taxonomy.
      Parameters:
      className - Name of the taxonomy class.
      measureName - Name of the taxonomy measure.
    • updateTaxonomyClassicUserWeights

      public void updateTaxonomyClassicUserWeights(String className, String innerNodeInQueryStrategy, String innerNodeInCaseStrategy, String measureName)
      This method creates a classic taxonomy with user weights.
      Parameters:
      className - Name of the taxonomy class.
      innerNodeInCaseStrategy - Strategy if the inner node is in the case.
      innerNodeInQueryStrategy - Strategy if the inner node is in the query.
      measureName - Name of the taxonomy measure.
    • updateTaxonomyNodeHeight

      public void updateTaxonomyNodeHeight(String className, String strategy, String measureName)
      This method creates a node height taxonomy.
      Parameters:
      className - Name of the taxonomy class.
      strategy - Strategy for the computation.
      measureName - Name of the taxonomy measure.
    • updateTaxonomyPath

      public void updateTaxonomyPath(String className, double weightUp, double weightDown, String measureName)
      This method creates a path taxonomy. The weights can be given as double values.
      Parameters:
      className - Name of the taxonomy class.
      weightUp - Weight for the path weightUp.
      weightDown - Weight for the path weightDown.
      measureName - Name of the taxonomy measure.
    • updateTaxonomyPath

      public void updateTaxonomyPath(String className, String weightUp, String weightDown, String measureName)
      This method creates a path taxonomy.
      Parameters:
      className - Name of the taxonomy class.
      weightUp - Weight for the path weightUp.
      weightDown - Weight for the path weightDown.
      measureName - Name of the taxonomy measure.
    • getSimModelPath

      public String getSimModelPath()
    • getModelPath

      public String getModelPath()