From: <ji...@us...> - 2011-03-16 21:14:21
|
Revision: 2724 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=2724&view=rev Author: jialva Date: 2011-03-16 21:14:14 +0000 (Wed, 16 Mar 2011) Log Message: ----------- undoing last "commit" regarding fuzzy extension Modified Paths: -------------- trunk/components-core/src/main/java/org/dllearner/core/ComponentManager.java trunk/components-core/src/main/java/org/dllearner/core/configurators/ComponentFactory.java trunk/components-core/src/main/java/org/dllearner/reasoning/ReasonerType.java trunk/components-core/src/main/resources/components.ini trunk/interfaces/src/main/java/org/dllearner/cli/ConfMapper.java Removed Paths: ------------- trunk/components-core/src/main/java/org/dllearner/algorithms/fuzzydll/ trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyCELOEConfigurator.java trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyOWLAPIReasonerConfigurator.java trunk/components-core/src/main/java/org/dllearner/reasoning/fuzzydll/ trunk/components-core/src/main/resources/FuzzyDL/ Modified: trunk/components-core/src/main/java/org/dllearner/core/ComponentManager.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/core/ComponentManager.java 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/components-core/src/main/java/org/dllearner/core/ComponentManager.java 2011-03-16 21:14:14 UTC (rev 2724) @@ -83,7 +83,6 @@ "org.dllearner.kb.OWLAPIOntology", //reasoners "org.dllearner.reasoning.OWLAPIReasoner", - "org.dllearner.reasoning.fuzzydll.FuzzyOWLAPIReasoner", // added by Josue "org.dllearner.reasoning.DIGReasoner", "org.dllearner.reasoning.FastRetrievalReasoner", "org.dllearner.reasoning.FastInstanceChecker", @@ -103,7 +102,6 @@ "org.dllearner.algorithms.el.ELLearningAlgorithm", "org.dllearner.algorithms.el.ELLearningAlgorithmDisjunctive", "org.dllearner.algorithms.celoe.CELOE", - "org.dllearner.algorithms.fuzzydll.FuzzyCELOE", //added by Josue "org.dllearner.algorithms.isle.ISLE" } )); Modified: trunk/components-core/src/main/java/org/dllearner/core/configurators/ComponentFactory.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/core/configurators/ComponentFactory.java 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/components-core/src/main/java/org/dllearner/core/configurators/ComponentFactory.java 2011-03-16 21:14:14 UTC (rev 2724) @@ -27,7 +27,6 @@ import org.dllearner.algorithms.celoe.CELOE; import org.dllearner.algorithms.el.ELLearningAlgorithm; import org.dllearner.algorithms.el.ELLearningAlgorithmDisjunctive; -import org.dllearner.algorithms.fuzzydll.FuzzyCELOE; import org.dllearner.algorithms.gp.GP; import org.dllearner.algorithms.isle.ISLE; import org.dllearner.algorithms.ocel.OCEL; @@ -50,7 +49,6 @@ import org.dllearner.reasoning.OWLAPIReasoner; import org.dllearner.reasoning.PelletReasoner; import org.dllearner.reasoning.ProtegeReasoner; -import org.dllearner.reasoning.fuzzydll.FuzzyOWLAPIReasoner; /** * automatically generated, do not edit manually. @@ -140,14 +138,6 @@ } /** -* @param knowledgeSource see KnowledgeSource -* @return a component ready for initialization FuzzyOWLAPIReasoner -**/ -public static FuzzyOWLAPIReasoner getFuzzyOWLAPIReasoner(Set<KnowledgeSource> knowledgeSource) { -return FuzzyOWLAPIReasonerConfigurator.getFuzzyOWLAPIReasoner(knowledgeSource); -} - -/** * @param classToDescribe class of which a description should be learned * @param reasoningService see ReasoningService * @return a component ready for initialization ClassLearningProblem @@ -239,16 +229,6 @@ * @param learningProblem see LearningProblem * @param reasoningService see ReasoningService * @throws LearningProblemUnsupportedException see -* @return a component ready for initialization FuzzyCELOE -**/ -public static FuzzyCELOE getFuzzyCELOE(LearningProblem learningProblem, ReasonerComponent reasoningService) throws LearningProblemUnsupportedException { -return FuzzyCELOEConfigurator.getFuzzyCELOE(learningProblem, reasoningService); -} - -/** -* @param learningProblem see LearningProblem -* @param reasoningService see ReasoningService -* @throws LearningProblemUnsupportedException see * @return a component ready for initialization GP **/ public static GP getGP(LearningProblem learningProblem, ReasonerComponent reasoningService) throws LearningProblemUnsupportedException { Deleted: trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyCELOEConfigurator.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyCELOEConfigurator.java 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyCELOEConfigurator.java 2011-03-16 21:14:14 UTC (rev 2724) @@ -1,499 +0,0 @@ -/** - * Copyright (C) 2007-2008, Jens Lehmann - * - * This file is part of DL-Learner. - * - * DL-Learner is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * DL-Learner is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package org.dllearner.core.configurators; - -import org.dllearner.algorithms.fuzzydll.FuzzyCELOE; -import org.dllearner.core.ComponentManager; -import org.dllearner.core.LearningProblem; -import org.dllearner.core.LearningProblemUnsupportedException; -import org.dllearner.core.ReasonerComponent; - -/** -* automatically generated, do not edit manually. -* run org.dllearner.scripts.ConfigJavaGenerator to update -**/ -public class FuzzyCELOEConfigurator extends RefinementOperatorConfigurator implements Configurator { - -private boolean reinitNecessary = false; -private FuzzyCELOE fuzzyCELOE; - -/** -* @param fuzzyCELOE see FuzzyCELOE -**/ -public FuzzyCELOEConfigurator(FuzzyCELOE fuzzyCELOE){ -this.fuzzyCELOE = fuzzyCELOE; -} - -/** -* @param reasoningService see reasoningService -* @param learningProblem see learningProblem -* @throws LearningProblemUnsupportedException see -* @return FuzzyCELOE -**/ -public static FuzzyCELOE getFuzzyCELOE(LearningProblem learningProblem, ReasonerComponent reasoningService) throws LearningProblemUnsupportedException{ -FuzzyCELOE component = ComponentManager.getInstance().learningAlgorithm(FuzzyCELOE.class, learningProblem, reasoningService); -return component; -} - -/** -* useAllConstructor specifies whether the universal concept constructor is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: true -* @return boolean -**/ -public boolean getUseAllConstructor() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useAllConstructor") ; -} -/** -* useExistsConstructor specifies whether the existential concept constructor is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: true -* @return boolean -**/ -public boolean getUseExistsConstructor() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useExistsConstructor") ; -} -/** -* useHasValueConstructor specifies whether the hasValue constructor is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getUseHasValueConstructor() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useHasValueConstructor") ; -} -/** -* useDataHasValueConstructor specifies whether the hasValue constructor is used in the learning algorithm in combination with data properties. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getUseDataHasValueConstructor() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useDataHasValueConstructor") ; -} -/** -* valueFrequencyThreshold specifies how often an object must occur as value in order to be considered for hasValue restrictions. -* mandatory: false| reinit necessary: true -* default value: 3 -* @return int -**/ -public int getValueFrequencyThreshold() { -return (Integer) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "valueFrequencyThreshold") ; -} -/** -* useCardinalityRestrictions specifies whether CardinalityRestrictions is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: true -* @return boolean -**/ -public boolean getUseCardinalityRestrictions() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useCardinalityRestrictions") ; -} -/** -* cardinalityLimit Gives the maximum number used in cardinality restrictions.. -* mandatory: false| reinit necessary: true -* default value: 5 -* @return int -**/ -public int getCardinalityLimit() { -return (Integer) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "cardinalityLimit") ; -} -/** -* useNegation specifies whether negation is used in the learning algorothm. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getUseNegation() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useNegation") ; -} -/** -* useBooleanDatatypes specifies whether boolean datatypes are used in the learning algorothm. -* mandatory: false| reinit necessary: true -* default value: true -* @return boolean -**/ -public boolean getUseBooleanDatatypes() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useBooleanDatatypes") ; -} -/** -* useDoubleDatatypes specifies whether boolean datatypes are used in the learning algorothm. -* mandatory: false| reinit necessary: true -* default value: true -* @return boolean -**/ -public boolean getUseDoubleDatatypes() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "useDoubleDatatypes") ; -} -/** -* maxExecutionTimeInSeconds algorithm will stop after specified seconds. -* mandatory: false| reinit necessary: true -* default value: 10 -* @return int -**/ -public int getMaxExecutionTimeInSeconds() { -return (Integer) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "maxExecutionTimeInSeconds") ; -} -/** -* noisePercentage the (approximated) percentage of noise within the examples. -* mandatory: false| reinit necessary: true -* default value: 0.0 -* @return double -**/ -public double getNoisePercentage() { -return (Double) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "noisePercentage") ; -} -/** -* terminateOnNoiseReached specifies whether to terminate when noise criterion is met. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getTerminateOnNoiseReached() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "terminateOnNoiseReached") ; -} -/** -* maxDepth maximum depth of description. -* mandatory: false| reinit necessary: true -* default value: 7 -* @return int -**/ -public int getMaxDepth() { -return (Integer) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "maxDepth") ; -} -/** -* maxNrOfResults Sets the maximum number of results one is interested in. (Setting this to a lower value may increase performance as the learning algorithm has to store/evaluate/beautify less descriptions).. -* mandatory: false| reinit necessary: true -* default value: 10 -* @return int -**/ -public int getMaxNrOfResults() { -return (Integer) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "maxNrOfResults") ; -} -/** -* maxClassDescriptionTests The maximum number of candidate hypothesis the algorithm is allowed to test (0 = no limit). The algorithm will stop afterwards. (The real number of tests can be slightly higher, because this criterion usually won't be checked after each single test.). -* mandatory: false| reinit necessary: true -* default value: 0 -* @return int -**/ -public int getMaxClassDescriptionTests() { -return (Integer) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "maxClassDescriptionTests") ; -} -/** -* singleSuggestionMode Use this if you are interested in only one suggestion and your learning problem has many (more than 1000) examples.. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getSingleSuggestionMode() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "singleSuggestionMode") ; -} -/** -* instanceBasedDisjoints Specifies whether to use real disjointness checks or instance based ones (no common instances) in the refinement operator.. -* mandatory: false| reinit necessary: true -* default value: true -* @return boolean -**/ -public boolean getInstanceBasedDisjoints() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "instanceBasedDisjoints") ; -} -/** -* filterDescriptionsFollowingFromKB If true, then the results will not contain suggestions, which already follow logically from the knowledge base. Be careful, since this requires a potentially expensive consistency check for candidate solutions.. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getFilterDescriptionsFollowingFromKB() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "filterDescriptionsFollowingFromKB") ; -} -/** -* reuseExistingDescription If true, the algorithm tries to find a good starting point close to an existing definition/super class of the given class in the knowledge base.. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getReuseExistingDescription() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "reuseExistingDescription") ; -} -/** -* writeSearchTree specifies whether to write a search tree. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getWriteSearchTree() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "writeSearchTree") ; -} -/** -* searchTreeFile file to use for the search tree. -* mandatory: false| reinit necessary: true -* default value: log/searchTree.txt -* @return String -**/ -public String getSearchTreeFile() { -return (String) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "searchTreeFile") ; -} -/** -* replaceSearchTree specifies whether to replace the search tree in the log file after each run or append the new search tree. -* mandatory: false| reinit necessary: true -* default value: false -* @return boolean -**/ -public boolean getReplaceSearchTree() { -return (Boolean) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "replaceSearchTree") ; -} -/** -* expansionPenaltyFactor heuristic penalty per syntactic construct used (lower = finds more complex expression, but might miss simple ones). -* mandatory: false| reinit necessary: true -* default value: 0.1 -* @return double -**/ -public double getExpansionPenaltyFactor() { -return (Double) ComponentManager.getInstance().getConfigOptionValue(fuzzyCELOE, "expansionPenaltyFactor") ; -} - -/** -* @param useAllConstructor specifies whether the universal concept constructor is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: true -**/ -public void setUseAllConstructor(boolean useAllConstructor) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useAllConstructor", useAllConstructor); -reinitNecessary = true; -} -/** -* @param useExistsConstructor specifies whether the existential concept constructor is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: true -**/ -public void setUseExistsConstructor(boolean useExistsConstructor) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useExistsConstructor", useExistsConstructor); -reinitNecessary = true; -} -/** -* @param useHasValueConstructor specifies whether the hasValue constructor is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setUseHasValueConstructor(boolean useHasValueConstructor) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useHasValueConstructor", useHasValueConstructor); -reinitNecessary = true; -} -/** -* @param useDataHasValueConstructor specifies whether the hasValue constructor is used in the learning algorithm in combination with data properties. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setUseDataHasValueConstructor(boolean useDataHasValueConstructor) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useDataHasValueConstructor", useDataHasValueConstructor); -reinitNecessary = true; -} -/** -* @param valueFrequencyThreshold specifies how often an object must occur as value in order to be considered for hasValue restrictions. -* mandatory: false| reinit necessary: true -* default value: 3 -**/ -public void setValueFrequencyThreshold(int valueFrequencyThreshold) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "valueFrequencyThreshold", valueFrequencyThreshold); -reinitNecessary = true; -} -/** -* @param useCardinalityRestrictions specifies whether CardinalityRestrictions is used in the learning algorithm. -* mandatory: false| reinit necessary: true -* default value: true -**/ -public void setUseCardinalityRestrictions(boolean useCardinalityRestrictions) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useCardinalityRestrictions", useCardinalityRestrictions); -reinitNecessary = true; -} -/** -* @param cardinalityLimit Gives the maximum number used in cardinality restrictions.. -* mandatory: false| reinit necessary: true -* default value: 5 -**/ -public void setCardinalityLimit(int cardinalityLimit) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "cardinalityLimit", cardinalityLimit); -reinitNecessary = true; -} -/** -* @param useNegation specifies whether negation is used in the learning algorothm. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setUseNegation(boolean useNegation) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useNegation", useNegation); -reinitNecessary = true; -} -/** -* @param useBooleanDatatypes specifies whether boolean datatypes are used in the learning algorothm. -* mandatory: false| reinit necessary: true -* default value: true -**/ -public void setUseBooleanDatatypes(boolean useBooleanDatatypes) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useBooleanDatatypes", useBooleanDatatypes); -reinitNecessary = true; -} -/** -* @param useDoubleDatatypes specifies whether boolean datatypes are used in the learning algorothm. -* mandatory: false| reinit necessary: true -* default value: true -**/ -public void setUseDoubleDatatypes(boolean useDoubleDatatypes) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "useDoubleDatatypes", useDoubleDatatypes); -reinitNecessary = true; -} -/** -* @param maxExecutionTimeInSeconds algorithm will stop after specified seconds. -* mandatory: false| reinit necessary: true -* default value: 10 -**/ -public void setMaxExecutionTimeInSeconds(int maxExecutionTimeInSeconds) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "maxExecutionTimeInSeconds", maxExecutionTimeInSeconds); -reinitNecessary = true; -} -/** -* @param noisePercentage the (approximated) percentage of noise within the examples. -* mandatory: false| reinit necessary: true -* default value: 0.0 -**/ -public void setNoisePercentage(double noisePercentage) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "noisePercentage", noisePercentage); -reinitNecessary = true; -} -/** -* @param terminateOnNoiseReached specifies whether to terminate when noise criterion is met. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setTerminateOnNoiseReached(boolean terminateOnNoiseReached) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "terminateOnNoiseReached", terminateOnNoiseReached); -reinitNecessary = true; -} -/** -* @param maxDepth maximum depth of description. -* mandatory: false| reinit necessary: true -* default value: 7 -**/ -public void setMaxDepth(int maxDepth) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "maxDepth", maxDepth); -reinitNecessary = true; -} -/** -* @param maxNrOfResults Sets the maximum number of results one is interested in. (Setting this to a lower value may increase performance as the learning algorithm has to store/evaluate/beautify less descriptions).. -* mandatory: false| reinit necessary: true -* default value: 10 -**/ -public void setMaxNrOfResults(int maxNrOfResults) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "maxNrOfResults", maxNrOfResults); -reinitNecessary = true; -} -/** -* @param maxClassDescriptionTests The maximum number of candidate hypothesis the algorithm is allowed to test (0 = no limit). The algorithm will stop afterwards. (The real number of tests can be slightly higher, because this criterion usually won't be checked after each single test.). -* mandatory: false| reinit necessary: true -* default value: 0 -**/ -public void setMaxClassDescriptionTests(int maxClassDescriptionTests) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "maxClassDescriptionTests", maxClassDescriptionTests); -reinitNecessary = true; -} -/** -* @param singleSuggestionMode Use this if you are interested in only one suggestion and your learning problem has many (more than 1000) examples.. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setSingleSuggestionMode(boolean singleSuggestionMode) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "singleSuggestionMode", singleSuggestionMode); -reinitNecessary = true; -} -/** -* @param instanceBasedDisjoints Specifies whether to use real disjointness checks or instance based ones (no common instances) in the refinement operator.. -* mandatory: false| reinit necessary: true -* default value: true -**/ -public void setInstanceBasedDisjoints(boolean instanceBasedDisjoints) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "instanceBasedDisjoints", instanceBasedDisjoints); -reinitNecessary = true; -} -/** -* @param filterDescriptionsFollowingFromKB If true, then the results will not contain suggestions, which already follow logically from the knowledge base. Be careful, since this requires a potentially expensive consistency check for candidate solutions.. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setFilterDescriptionsFollowingFromKB(boolean filterDescriptionsFollowingFromKB) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "filterDescriptionsFollowingFromKB", filterDescriptionsFollowingFromKB); -reinitNecessary = true; -} -/** -* @param reuseExistingDescription If true, the algorithm tries to find a good starting point close to an existing definition/super class of the given class in the knowledge base.. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setReuseExistingDescription(boolean reuseExistingDescription) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "reuseExistingDescription", reuseExistingDescription); -reinitNecessary = true; -} -/** -* @param writeSearchTree specifies whether to write a search tree. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setWriteSearchTree(boolean writeSearchTree) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "writeSearchTree", writeSearchTree); -reinitNecessary = true; -} -/** -* @param searchTreeFile file to use for the search tree. -* mandatory: false| reinit necessary: true -* default value: log/searchTree.txt -**/ -public void setSearchTreeFile(String searchTreeFile) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "searchTreeFile", searchTreeFile); -reinitNecessary = true; -} -/** -* @param replaceSearchTree specifies whether to replace the search tree in the log file after each run or append the new search tree. -* mandatory: false| reinit necessary: true -* default value: false -**/ -public void setReplaceSearchTree(boolean replaceSearchTree) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "replaceSearchTree", replaceSearchTree); -reinitNecessary = true; -} -/** -* @param expansionPenaltyFactor heuristic penalty per syntactic construct used (lower = finds more complex expression, but might miss simple ones). -* mandatory: false| reinit necessary: true -* default value: 0.1 -**/ -public void setExpansionPenaltyFactor(double expansionPenaltyFactor) { -ComponentManager.getInstance().applyConfigEntry(fuzzyCELOE, "expansionPenaltyFactor", expansionPenaltyFactor); -reinitNecessary = true; -} - -/** -* true, if this component needs reinitializsation. -* @return boolean -**/ -public boolean isReinitNecessary(){ -return reinitNecessary; -} - - -} Deleted: trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyOWLAPIReasonerConfigurator.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyOWLAPIReasonerConfigurator.java 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/components-core/src/main/java/org/dllearner/core/configurators/FuzzyOWLAPIReasonerConfigurator.java 2011-03-16 21:14:14 UTC (rev 2724) @@ -1,101 +0,0 @@ -/** - * Copyright (C) 2007-2008, Jens Lehmann - * - * This file is part of DL-Learner. - * - * DL-Learner is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * DL-Learner is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package org.dllearner.core.configurators; - -import java.net.URL; -import java.util.Set; -import org.dllearner.core.ComponentManager; -import org.dllearner.core.KnowledgeSource; -import org.dllearner.reasoning.fuzzydll.FuzzyOWLAPIReasoner; - -/** -* automatically generated, do not edit manually. -* run org.dllearner.scripts.ConfigJavaGenerator to update -**/ -public class FuzzyOWLAPIReasonerConfigurator implements Configurator { - -private boolean reinitNecessary = false; -private FuzzyOWLAPIReasoner fuzzyOWLAPIReasoner; - -/** -* @param fuzzyOWLAPIReasoner see FuzzyOWLAPIReasoner -**/ -public FuzzyOWLAPIReasonerConfigurator(FuzzyOWLAPIReasoner fuzzyOWLAPIReasoner){ -this.fuzzyOWLAPIReasoner = fuzzyOWLAPIReasoner; -} - -/** -* @param knowledgeSource see knowledgeSource -* @return FuzzyOWLAPIReasoner -**/ -public static FuzzyOWLAPIReasoner getFuzzyOWLAPIReasoner(Set<KnowledgeSource> knowledgeSource) { -FuzzyOWLAPIReasoner component = ComponentManager.getInstance().reasoner(FuzzyOWLAPIReasoner.class, knowledgeSource); -return component; -} - -/** -* reasonerType FaCT++, HermiT, OWLlink or Pellet, which means "fact", "hermit", "owllink" or "pellet". -* mandatory: false| reinit necessary: true -* default value: pellet -* @return String -**/ -public String getReasonerType() { -return (String) ComponentManager.getInstance().getConfigOptionValue(fuzzyOWLAPIReasoner, "reasonerType") ; -} -/** -* owlLinkURL the URL to the remote OWLlink server. -* mandatory: false| reinit necessary: true -* default value: http://localhost:8080/ -* @return URL -**/ -public URL getOwlLinkURL() { -return (URL) ComponentManager.getInstance().getConfigOptionValue(fuzzyOWLAPIReasoner, "owlLinkURL") ; -} - -/** -* @param reasonerType FaCT++, HermiT, OWLlink or Pellet, which means "fact", "hermit", "owllink" or "pellet". -* mandatory: false| reinit necessary: true -* default value: pellet -**/ -public void setReasonerType(String reasonerType) { -ComponentManager.getInstance().applyConfigEntry(fuzzyOWLAPIReasoner, "reasonerType", reasonerType); -reinitNecessary = true; -} -/** -* @param owlLinkURL the URL to the remote OWLlink server. -* mandatory: false| reinit necessary: true -* default value: http://localhost:8080/ -**/ -public void setOwlLinkURL(URL owlLinkURL) { -ComponentManager.getInstance().applyConfigEntry(fuzzyOWLAPIReasoner, "owlLinkURL", owlLinkURL); -reinitNecessary = true; -} - -/** -* true, if this component needs reinitializsation. -* @return boolean -**/ -public boolean isReinitNecessary(){ -return reinitNecessary; -} - - -} Modified: trunk/components-core/src/main/java/org/dllearner/reasoning/ReasonerType.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/reasoning/ReasonerType.java 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/components-core/src/main/java/org/dllearner/reasoning/ReasonerType.java 2011-03-16 21:14:14 UTC (rev 2724) @@ -26,5 +26,5 @@ * */ public enum ReasonerType { - KAON2, DIG, FAST_RETRIEVAL, OWLAPI_FACT, OWLAPI_PELLET, OWLAPI_HERMIT, OWLAPI_FUZZY, FAST_INSTANCE_CHECKER, PELLET, PROTEGE + KAON2, DIG, FAST_RETRIEVAL, OWLAPI_FACT, OWLAPI_PELLET, OWLAPI_HERMIT, FAST_INSTANCE_CHECKER, PELLET, PROTEGE } \ No newline at end of file Modified: trunk/components-core/src/main/resources/components.ini =================================================================== --- trunk/components-core/src/main/resources/components.ini 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/components-core/src/main/resources/components.ini 2011-03-16 21:14:14 UTC (rev 2724) @@ -7,7 +7,6 @@ org.dllearner.kb.OWLAPIOntology # reasoners org.dllearner.reasoning.OWLAPIReasoner -org.dllearner.reasoning.fuzzydll.FuzzyOWLAPIReasoner org.dllearner.reasoning.DIGReasoner org.dllearner.reasoning.FastRetrievalReasoner org.dllearner.reasoning.FastInstanceChecker @@ -27,5 +26,4 @@ org.dllearner.algorithms.el.ELLearningAlgorithm org.dllearner.algorithms.el.ELLearningAlgorithmDisjunctive org.dllearner.algorithms.celoe.CELOE -org.dllearner.algorithms.fuzzydll.FuzzyCELOE org.dllearner.algorithms.isle.ISLE Modified: trunk/interfaces/src/main/java/org/dllearner/cli/ConfMapper.java =================================================================== --- trunk/interfaces/src/main/java/org/dllearner/cli/ConfMapper.java 2011-03-16 11:38:50 UTC (rev 2723) +++ trunk/interfaces/src/main/java/org/dllearner/cli/ConfMapper.java 2011-03-16 21:14:14 UTC (rev 2724) @@ -31,7 +31,6 @@ import org.dllearner.algorithms.celoe.CELOE; import org.dllearner.algorithms.el.ELLearningAlgorithm; import org.dllearner.algorithms.el.ELLearningAlgorithmDisjunctive; -import org.dllearner.algorithms.fuzzydll.FuzzyCELOE; import org.dllearner.algorithms.gp.GP; import org.dllearner.algorithms.ocel.OCEL; import org.dllearner.algorithms.refinement.ROLearner; @@ -50,7 +49,6 @@ import org.dllearner.reasoning.FastInstanceChecker; import org.dllearner.reasoning.FastRetrievalReasoner; import org.dllearner.reasoning.OWLAPIReasoner; -import org.dllearner.reasoning.fuzzydll.FuzzyOWLAPIReasoner; /** * Contains mappings from component classes to strings. @@ -92,7 +90,6 @@ knowledgeSourceMapping.put("sparql", SparqlKnowledgeSource.class); reasonerMapping.put("digReasoner", DIGReasoner.class); reasonerMapping.put("owlAPIReasoner", OWLAPIReasoner.class); - reasonerMapping.put("fuzzyOwlAPIReasoner", FuzzyOWLAPIReasoner.class); // added by Josue reasonerMapping.put("fastInstanceChecker", FastInstanceChecker.class); reasonerMapping.put("fastRetrievalReasoner", FastRetrievalReasoner.class); learningProblemMapping.put("posNegLPStandard", PosNegLPStandard.class); @@ -108,7 +105,6 @@ learningAlgorithmMapping.put("el", ELLearningAlgorithm.class); learningAlgorithmMapping.put("disjunctiveEL", ELLearningAlgorithmDisjunctive.class); learningAlgorithmMapping.put("celoe", CELOE.class); - learningAlgorithmMapping.put("fuzzyCeloe", FuzzyCELOE.class); // added by Josue // you do not need to edit anything below This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |