| 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 |
#ifndef KONCLUDE_REASONER_CLASSIFIER_CONTOLOGYPROPERTYROLECLASSIFICATIONITEM_H |
| 22 |
#define KONCLUDE_REASONER_CLASSIFIER_CONTOLOGYPROPERTYROLECLASSIFICATIONITEM_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
#include <QPair> |
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "ClassifierSettings.h" |
| 29 |
#include "CPropertyClassificationComputationItem.h" |
| 30 |
#include "CClassifiedCallbackDataContext.h" |
| 31 |
#include "CClassifierStatistics.h" |
| 32 |
#include "COntologyClassificationItem.h" |
| 33 |
|
| 34 |
// Other includes |
| 35 |
#include "Reasoner/Classification/CPropertyRoleClassification.h" |
| 36 |
#include "Reasoner/Classification/CClassificationCalculationStatisticsCollection.h" |
| 37 |
#include "Reasoner/Classification/CClassificationStatisticsCollectionStrings.h" |
| 38 |
|
| 39 |
#include "Reasoner/Ontology/CConcreteOntology.h" |
| 40 |
#include "Reasoner/Ontology/COntologyProcessingStep.h" |
| 41 |
#include "Reasoner/Ontology/COntologyProcessingSteps.h" |
| 42 |
#include "Reasoner/Ontology/COntologyProcessingStepData.h" |
| 43 |
#include "Reasoner/Ontology/CConceptNegationPair.h" |
| 44 |
|
| 45 |
#include "Reasoner/Consistiser/CIndividualDependenceTrackingCollector.h" |
| 46 |
|
| 47 |
#include "Reasoner/Taxonomy/CRolePropertiesHierarchy.h" |
| 48 |
|
| 49 |
#include "Reasoner/Kernel/Task/CCalculationConfigurationExtension.h" |
| 50 |
|
| 51 |
#include "Concurrent/Callback/CCallbackListExecuter.h" |
| 52 |
|
| 53 |
// Logger includes |
| 54 |
#include "Logger/CLogger.h" |
| 55 |
|
| 56 |
|
| 57 |
namespace Konclude { |
| 58 |
|
| 59 |
using namespace Concurrent::Callback; |
| 60 |
|
| 61 |
namespace Reasoner { |
| 62 |
|
| 63 |
using namespace Ontology; |
| 64 |
using namespace Taxonomy; |
| 65 |
using namespace Classification; |
| 66 |
using namespace Consistiser; |
| 67 |
|
| 68 |
using namespace Kernel::Task; |
| 69 |
|
| 70 |
namespace Classifier { |
| 71 |
|
| 72 |
|
| 73 |
/*! |
| 74 |
* |
| 75 |
* \class COntologyPropertyRoleClassificationItem |
| 76 |
* \author Andreas Steigmiller |
| 77 |
* \version 0.1 |
| 78 |
* \brief TODO |
| 79 |
* |
| 80 |
*/ |
| 81 |
class COntologyPropertyRoleClassificationItem : public CPropertyRoleClassification, public COntologyClassificationItem { |
| 82 |
// public methods |
| 83 |
public: |
| 84 |
//! Constructor |
| 85 |
COntologyPropertyRoleClassificationItem(CConfigurationBase *configuration, CClassifierStatistics *nextClassificationStatistics = 0); |
| 86 |
|
| 87 |
//! Destructor |
| 88 |
virtual ~COntologyPropertyRoleClassificationItem(); |
| 89 |
|
| 90 |
virtual COntologyPropertyRoleClassificationItem *initClassificationItem(CConcreteOntology *ontology, CRolePropertiesHierarchy *hierarchy, bool classifyDataProperties); |
| 91 |
|
| 92 |
|
| 93 |
virtual CRolePropertiesHierarchy *getHierarchy(); |
| 94 |
virtual CTBox *getTBox(); |
| 95 |
|
| 96 |
virtual QHash<CSatisfiableCalculationJob*,CPropertyClassificationComputationItem*>* getComputationItemHash(); |
| 97 |
|
| 98 |
|
| 99 |
CPropertyRoleClassification* getPropertyRoleClassification(); |
| 100 |
|
| 101 |
bool isHierarchyConstructed(); |
| 102 |
COntologyPropertyRoleClassificationItem* submitHierarchyConstructed(); |
| 103 |
COntologyPropertyRoleClassificationItem* setHierarchyConstructionFailed(); |
| 104 |
bool isHierarchyConstructionFailed(); |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
bool isDataRolesClassification(); |
| 109 |
bool isObjectRolesClassification(); |
| 110 |
COntologyPropertyRoleClassificationItem* setDataRolesClassification(bool classifyDataRoles); |
| 111 |
|
| 112 |
|
| 113 |
// protected methods |
| 114 |
protected: |
| 115 |
|
| 116 |
// protected variables |
| 117 |
protected: |
| 118 |
CRolePropertiesHierarchy *mHierarchy; |
| 119 |
|
| 120 |
QHash<CSatisfiableCalculationJob*, CPropertyClassificationComputationItem*> mWorkItemHash; |
| 121 |
|
| 122 |
bool mHierarchyConstructed; |
| 123 |
bool mHierarchyConstructionFailed; |
| 124 |
|
| 125 |
bool mClassifyDataRoles; |
| 126 |
|
| 127 |
// private methods |
| 128 |
private: |
| 129 |
|
| 130 |
// private variables |
| 131 |
private: |
| 132 |
|
| 133 |
}; |
| 134 |
|
| 135 |
}; // end namespace Classifier |
| 136 |
|
| 137 |
}; // end namespace Reasoner |
| 138 |
|
| 139 |
}; // end namespace Konclude |
| 140 |
|
| 141 |
#endif // KONCLUDE_REASONER_CLASSIFIER_CONTOLOGYPROPERTYROLECLASSIFICATIONITEM_H |