Debian Codegraph @

Source/Reasoner/Preprocess/CMappingUpdaterPreProcess.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_PREPROCESS_CMAPPINGUPDATERPREPROCESS_H
22 #define KONCLUDE_REASONER_PREPROCESS_CMAPPINGUPDATERPREPROCESS_H
23
24 // Libraries includes
25 #include <QSet>
26
27 // Namespace includes
28 #include "CConcreteOntologyPreProcess.h"
29 #include "CConceptRoleIndividualLocator.h"
30
31
32 // Other includes
33 #include "Reasoner/Ontology/CBoxContext.h"
34 #include "Reasoner/Ontology/CConcept.h"
35 #include "Reasoner/Ontology/CRoleDependence.h"
36 #include "Reasoner/Ontology/CMBox.h"
37
38 #include "Utilities/CDynamicExpandingMemoryManager.hpp"
39 #include "Utilities/CSortedNegLinker.hpp"
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45
46 namespace Konclude {
47
48 namespace Reasoner {
49
50 using namespace Ontology;
51
52 namespace Preprocess {
53
54 /*!
55 *
56 * \class CMappingUpdaterPreProcess
57 * \author Andreas Steigmiller
58 * \version 0.1
59 * \brief TODO
60 *
61 */
62 class CMappingUpdaterPreProcess : public CConcreteOntologyPreProcess {
63 // public methods
64 public:
65 //! Constructor
66 CMappingUpdaterPreProcess();
67
68 //! Destructor
69 virtual ~CMappingUpdaterPreProcess();
70
71
72 virtual CConcreteOntology *preprocess(CConcreteOntology *ontology, CPreProcessContext* context);
73
74 // protected methods
75 protected:
76 bool collectActiveOntologyItemsFromActiveEntities();
77 bool collectActiveOntologyItems();
78
79 // private methods
80 private:
81
82
83 // private variables
84 private:
85 CTBox* tbox;
86 CABox* abox;
87 CRBox* rbox;
88 CMBox* mBox;
89
90 CRoleVector *mRoleVec;
91 CConceptVector *mConceptVec;
92 CIndividualVector *mIndiVec;
93
94 COntologyBuildConstructFlags* mBuildConstructFlags;
95 CActiveEntityCountVector* mActiveEntityVector;
96
97 QSet<CConcept*> mUpdateConceptSet;
98 QList<CConcept*> mUpdateConceptList;
99 QSet<CRole*> mUpdateRoleSet;
100 QList<CRole*> mUpdateRoleList;
101 QSet<CIndividual*> mUpdateIndividualSet;
102 QList<CIndividual*> mUpdateIndividualList;
103
104 CBUILDHASH<CRole*,CObjectPropertyTermExpression*>* mRoleObjPropTermHash;
105 CBUILDHASH<CObjectPropertyTermExpression*,CRole*>* mObjPropTermRoleHash;
106
107 CBUILDHASH<CRole*,CDataPropertyTermExpression*>* mRoleDataPropTermHash;
108 CBUILDHASH<CDataPropertyTermExpression*,CRole*>* mDataPropTermRoleHash;
109
110 CBUILDHASH<CClassTermExpression*,CConcept*>* mClassTermConceptHash;
111 CBUILDHASH<CConcept*,CClassTermExpression*>* mConceptClassTermHash;
112
113
114 CBUILDHASH<CIndividualTermExpression*,CIndividual*>* mIndiTermIndiHash;
115 CBUILDHASH<CIndividual*,CIndividualTermExpression*>* mIndiIndiTermHash;
116
117
118 CBUILDSET<CDeclarationAxiomExpression*>* mDeclarationAxiomSet;
119
120 CBUILDHASH<CClassTermExpression*,CClassAxiomExpression*>* mClassTermClassAxiomHash;
121 CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyAxiomExpression*>* mObjPropTermObjPropAxiomHash;
122
123 CMAPPINGHASH<CStringRefStringHasher,CConcept*>* mNameConceptHash;
124 CMAPPINGHASH<CStringRefStringHasher,CRole*>* mNameRoleHash;
125 CMAPPINGHASH<CStringRefStringHasher,CIndividual*>* mNameIndiHash;
126
127 };
128
129 }; // end namespace Preprocess
130
131 }; // end namespace Reasoner
132
133 }; // end namespace Konclude
134
135 #endif // KONCLUDE_REASONER_PREPROCESS_CMAPPINGUPDATERPREPROCESS_H