Class TaxonomyUpdater
java.lang.Object
de.uni_trier.wi2.procake.utils.taxonomy.TaxonomyUpdater
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 Summary
ConstructorDescriptionTaxonomyUpdater
(String pathCombined) Constructor for this class.TaxonomyUpdater
(String pathCombined, String pathSim, String pathModel) Constructor for this class with user created names for the xml files. -
Method Summary
Modifier and TypeMethodDescriptionstatic Document
This method creates an empty xml document.static String
createStringFromXMLDocument
(Document document, boolean omitXmlDeclaration) This method creates a string from a xml document.void
updateTaxonomyClassic
(String className, String measureName) This method creates a classic taxonomy.void
updateTaxonomyClassicUserWeights
(String className, String innerNodeInQueryStrategy, String innerNodeInCaseStrategy, String measureName) This method creates a classic taxonomy with user weights.void
updateTaxonomyNodeHeight
(String className, String strategy, String measureName) This method creates a node height taxonomy.void
updateTaxonomyPath
(String className, double weightUp, double weightDown, String measureName) This method creates a path taxonomy.void
updateTaxonomyPath
(String className, String weightUp, String weightDown, String measureName) This method creates a path taxonomy.
-
Constructor Details
-
TaxonomyUpdater
Constructor for this class.- Parameters:
pathCombined
- The path and the name of the input file.
-
TaxonomyUpdater
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
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
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
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
-
getModelPath
-