Debian Codegraph @

Source/Reasoner/Classifier/COntologyClassClassificationItem.h

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