Debian Codegraph @

Source/Reasoner/Ontology/CConcreteOntology.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_ONTOLOGY_CCONCRETEONTOLOGY_H
22 #define KONCLUDE_REASONER_ONTOLOGY_CCONCRETEONTOLOGY_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "OntologySettings.h"
29 #include "COntology.h"
30 #include "COntologyStructureSummary.h"
31 #include "COntologyStringMapping.h"
32 #include "COntologyDataBoxes.h"
33 #include "COntologyContext.h"
34 #include "CConcreteOntologyContextBase.h"
35 #include "COntologyBuildData.h"
36 #include "COntologyCoreConceptCyclesData.h"
37 #include "CExpressionDataBoxMapping.h"
38 #include "COntologyProcessingSteps.h"
39 #include "COntologyIncrementalRevisionData.h"
40 #include "COntologyTriplesData.h"
41 #include "CIndividualNameResolver.h"
42 #include "COntologyLoadData.h"
43
44 // Other includes
45 #include "Parser/Expressions/CAxiomExpression.h"
46
47 #include "Config/CConfigurationBase.h"
48
49 #include "Reasoner/Taxonomy/CTaxonomy.h"
50 #include "Reasoner/Consistence/CConsistence.h"
51 #include "Reasoner/Consistence/CPrecomputation.h"
52 #include "Reasoner/Classification/CClassification.h"
53 #include "Reasoner/Preprocess/CPreprocessing.h"
54 #include "Reasoner/Realization/CRealization.h"
55
56 #include "Utilities/Memory/CObjectParameterizingAllocator.h"
57
58 // Logger includes
59 #include "Logger/CLogger.h"
60
61
62 namespace Konclude {
63
64 using namespace Parser::Expression;
65 using namespace Config;
66
67 namespace Reasoner {
68
69 using namespace Taxonomy;
70 using namespace Consistence;
71 using namespace Classification;
72 using namespace Preprocess;
73 using namespace Realization;
74
75 namespace Ontology {
76
77 /*!
78 *
79 * \class CConcreteOntology
80 * \author Andreas Steigmiller
81 * \version 0.1
82 * \brief TODO
83 *
84 */
85 class CConcreteOntology : public COntology {
86 // public methods
87 public:
88 //! Constructor
89 CConcreteOntology(CConfigurationBase* configuration);
90 CConcreteOntology(CConcreteOntology* refOntology, CConfigurationBase* configuration);
91
92 //! Destructor
93 virtual ~CConcreteOntology();
94
95 CConcreteOntology* referenceOntology(CConcreteOntology* ontology);
96
97 CConfigurationBase* getConfiguration();
98
99
100 CABox* getABox();
101 CTBox* getTBox();
102 CRBox* getRBox();
103
104 CConcept* getConcept(const QString& className);
105 CRole* getRole(const QString& propertyName);
106 CIndividual* getIndividual(const QString& indiName);
107
108 CConcreteOntology *setConceptTaxonomy(CTaxonomy *taxonomy);
109 virtual CTaxonomy *getConceptTaxonomy();
110 virtual bool hasConceptTaxonomy();
111
112
113 CPrecomputation* getPrecomputation();
114 bool hasPrecomputation();
115 CConcreteOntology* setPrecomputation(CPrecomputation* precomputation);
116
117
118 CPreprocessing* getPreprocessing();
119 bool hasPreprocessing();
120 CConcreteOntology* setPreprocessing(CPreprocessing* preprocessing);
121
122 CRealization* getRealization();
123 bool hasRealization();
124 CConcreteOntology* setRealization(CRealization* realization);
125
126
127 virtual CConsistence* getConsistence();
128 virtual bool hasConsistence();
129 CConcreteOntology *setConsistence(CConsistence *consistence);
130
131 virtual CClassification* getClassification();
132 virtual bool hasClassification();
133 CConcreteOntology *setClassification(CClassification *classification);
134
135 COntologyStructureSummary *getStructureSummary();
136 CConcreteOntology *setStructureSummary(COntologyStructureSummary *structureSummary);
137
138 COntologyDataBoxes *getDataBoxes();
139 CConcreteOntology *setDataBoxes(COntologyDataBoxes *dataBoxes);
140
141 COntologyStringMapping *getStringMapping();
142 CConcreteOntology *setStringMapping(COntologyStringMapping *stringMapping);
143
144 virtual COntologyContext* getOntologyContext();
145
146 COntologyBuildData *getBuildData();
147 CConcreteOntology *setBuildData(COntologyBuildData *buildData);
148
149 COntologyCoreConceptCyclesData* getCoreConceptCyclesData();
150 CConcreteOntology* setCoreConceptCyclesData(COntologyCoreConceptCyclesData* cyclesData);
151
152 COntologyProcessingSteps* getProcessingSteps();
153 CConcreteOntology* setProcessingSteps(COntologyProcessingSteps* stepDatas);
154
155
156 COntologyTriplesData* getOntologyTriplesData();
157
158
159 COntologyIncrementalRevisionData* getIncrementalRevisionData();
160 CConcreteOntology* setIncrementalRevisionData(COntologyIncrementalRevisionData* incRevData);
161
162
163 CIndividualNameResolver* getIndividualNameResolver();
164
165 COntologyLoadData* getLoadData();
166 CConcreteOntology *setLoadData(COntologyLoadData* loadData);
167
168
169 // protected methods
170 protected:
171
172 // protected variables
173 protected:
174 CTaxonomy *mTax;
175 CConsistence* mConsistence;
176 CClassification* mClassification;
177 CPreprocessing* mPreprocessing;
178 CRealization* mRealization;
179 CConfigurationBase* mConfiguration;
180
181 COntologyStructureSummary* mStructSumm;
182 COntologyDataBoxes* mDataBoxes;
183 COntologyStringMapping* mStringMapping;
184 COntologyBuildData* mBuildData;
185 COntologyCoreConceptCyclesData* mConceptCyclesData;
186 COntologyProcessingSteps* mProcessingSteps;
187 COntologyIncrementalRevisionData* mIncRevisionData;
188 COntologyLoadData* mLoadData;
189
190 CPrecomputation* mPrecomputation;
191
192 CConcreteOntologyContextBase* mOntConctext;
193
194 COntologyTriplesData* mOntologyTriplesData;
195 CIndividualNameResolver* mIndividualNameResolver;
196
197 CONTOLOGYAXIOMSET<CAxiomExpression*>* mAxiomSet;
198
199
200 // private methods
201 private:
202
203 // private variables
204 private:
205
206 };
207
208 }; // end namespace Ontology
209
210 }; // end namespace Reasoner
211
212 }; // end namespace Konclude
213
214 #endif // KONCLUDE_REASONER_ONTOLOGY_CCONCRETEONTOLOGY_H