| 1 |
/* |
| 2 |
* Copyright (C) 2013-2015, 2019 by the Konclude Developer Team. |
| 3 |
* |
| 4 |
* This file is part of the reasoning system Konclude. |
| 5 |
* For details and support, see <http://konclude.com/>. |
| 6 |
* |
| 7 |
* Konclude is free software: you can redistribute it and/or modify |
| 8 |
* it under the terms of version 3 of the GNU Lesser General Public |
| 9 |
* License (LGPLv3) as published by the Free Software Foundation. |
| 10 |
* |
| 11 |
* Konclude is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU (Lesser) General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU (Lesser) General Public |
| 17 |
* License along with Konclude. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
* |
| 19 |
*/ |
| 20 |
|
| 21 |
#include "CReasonerEvaluationProfileSelectorFactory.h" |
| 22 |
|
| 23 |
|
| 24 |
namespace Konclude { |
| 25 |
|
| 26 |
namespace Test { |
| 27 |
|
| 28 |
namespace Evaluation { |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
CReasonerEvaluationProfileSelectorFactory::CReasonerEvaluationProfileSelectorFactory(const QString& baseEvalName, const QString& baseOutputDir, const QString& expressivityDir) { |
| 33 |
mBaseEvalName = baseEvalName; |
| 34 |
mBaseOutputDir = baseOutputDir; |
| 35 |
mExpressivityDir = expressivityDir; |
| 36 |
} |
| 37 |
|
| 38 |
|
| 39 |
CReasonerEvaluationGroupRequestSelector* CReasonerEvaluationProfileSelectorFactory::getSelectors(CReasonerEvaluationGroupRequestSelector* prevSelector) { |
| 40 |
CReasonerEvaluationGroupRequestSelector* selectors = prevSelector; |
| 41 |
selectors = getSelectorsForDLProfile(selectors); |
| 42 |
selectors = getSelectorsForRLProfile(selectors); |
| 43 |
selectors = getSelectorsForQLProfile(selectors); |
| 44 |
selectors = getSelectorsForELProfile(selectors); |
| 45 |
return selectors; |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
CReasonerEvaluationGroupRequestSelector* CReasonerEvaluationProfileSelectorFactory::getSelectorsForDLProfile(CReasonerEvaluationGroupRequestSelector* prevSelector) { |
| 50 |
CReasonerEvaluationGroupRequestSelector* selectors = prevSelector; |
| 51 |
CReasonerEvaluationGroupRequestSelector* tmpSelector = nullptr; |
| 52 |
tmpSelector = new CReasonerEvaluationProfileRequestSelector(CReasonerEvaluationProfileRequestSelector::REPRS_PROFILE_DL,mExpressivityDir); |
| 53 |
tmpSelector->setNameString(mBaseEvalName+" :: OWL-DL"); |
| 54 |
tmpSelector->setOutputString(mBaseOutputDir+"OWL-DL/"); |
| 55 |
selectors = tmpSelector->append(selectors); |
| 56 |
return selectors; |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
CReasonerEvaluationGroupRequestSelector* CReasonerEvaluationProfileSelectorFactory::getSelectorsForRLProfile(CReasonerEvaluationGroupRequestSelector* prevSelector) { |
| 61 |
CReasonerEvaluationGroupRequestSelector* selectors = prevSelector; |
| 62 |
CReasonerEvaluationGroupRequestSelector* tmpSelector = nullptr; |
| 63 |
tmpSelector = new CReasonerEvaluationProfileRequestSelector(CReasonerEvaluationProfileRequestSelector::REPRS_PROFILE_RL,mExpressivityDir); |
| 64 |
tmpSelector->setNameString(mBaseEvalName+" :: OWL-RL"); |
| 65 |
tmpSelector->setOutputString(mBaseOutputDir+"OWL-RL/"); |
| 66 |
selectors = tmpSelector->append(selectors); |
| 67 |
return selectors; |
| 68 |
} |
| 69 |
|
| 70 |
|
| 71 |
CReasonerEvaluationGroupRequestSelector* CReasonerEvaluationProfileSelectorFactory::getSelectorsForELProfile(CReasonerEvaluationGroupRequestSelector* prevSelector) { |
| 72 |
CReasonerEvaluationGroupRequestSelector* selectors = prevSelector; |
| 73 |
CReasonerEvaluationGroupRequestSelector* tmpSelector = nullptr; |
| 74 |
tmpSelector = new CReasonerEvaluationProfileRequestSelector(CReasonerEvaluationProfileRequestSelector::REPRS_PROFILE_EL,mExpressivityDir); |
| 75 |
tmpSelector->setNameString(mBaseEvalName+" :: OWL-EL"); |
| 76 |
tmpSelector->setOutputString(mBaseOutputDir+"OWL-EL/"); |
| 77 |
selectors = tmpSelector->append(selectors); |
| 78 |
return selectors; |
| 79 |
} |
| 80 |
|
| 81 |
|
| 82 |
CReasonerEvaluationGroupRequestSelector* CReasonerEvaluationProfileSelectorFactory::getSelectorsForQLProfile(CReasonerEvaluationGroupRequestSelector* prevSelector) { |
| 83 |
CReasonerEvaluationGroupRequestSelector* selectors = prevSelector; |
| 84 |
CReasonerEvaluationGroupRequestSelector* tmpSelector = nullptr; |
| 85 |
tmpSelector = new CReasonerEvaluationProfileRequestSelector(CReasonerEvaluationProfileRequestSelector::REPRS_PROFILE_QL,mExpressivityDir); |
| 86 |
tmpSelector->setNameString(mBaseEvalName+" :: OWL-QL"); |
| 87 |
tmpSelector->setOutputString(mBaseOutputDir+"OWL-QL/"); |
| 88 |
selectors = tmpSelector->append(selectors); |
| 89 |
return selectors; |
| 90 |
} |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
}; // end namespace Evaluation |
| 95 |
|
| 96 |
}; // end namespace Test |
| 97 |
|
| 98 |
}; // end namespace Konclude |