| 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_CONTOLOGYPROCESSINGSTEP_H |
| 22 |
#define KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYPROCESSINGSTEP_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
#include "OntologySettings.h" |
| 29 |
#include "COntologyProcessingRequirement.h" |
| 30 |
|
| 31 |
|
| 32 |
// Other includes |
| 33 |
|
| 34 |
|
| 35 |
// Logger includes |
| 36 |
#include "Logger/CLogger.h" |
| 37 |
|
| 38 |
|
| 39 |
namespace Konclude { |
| 40 |
|
| 41 |
namespace Reasoner { |
| 42 |
|
| 43 |
namespace Ontology { |
| 44 |
|
| 45 |
/*! |
| 46 |
* |
| 47 |
* \class COntologyProcessingStep |
| 48 |
* \author Andreas Steigmiller |
| 49 |
* \version 0.1 |
| 50 |
* \brief TODO |
| 51 |
* |
| 52 |
*/ |
| 53 |
class COntologyProcessingStep { |
| 54 |
// public methods |
| 55 |
public: |
| 56 |
|
| 57 |
enum PROCESSINGSTEPTYPE { |
| 58 |
OPSTRIPLESMAPPING = 0, OPSACTIVECOUNT = 1, OPSBUILD = 2, OPSPREPROCESS = 3, OPSTRIPLESINDEXING = 4, OPSCONSISTENCY = 5, OPSPRECOMPUTEINDIVIDUAL = 6, OPSPRECOMPUTESATURATION = 7, OPSPRECOMPUTECYCLES = 8, OPSPRECOMPUTEOCCURRENCESTATISTICS = 9, |
| 59 |
OPSCLASSCLASSIFY = 10, OPSOBJECTROPERTYCLASSIFY = 11, OPSDATAROPERTYCLASSIFY = 12, OPSINITREALIZE = 13, OPSCONCEPTREALIZE = 14, OPSROLEREALIZE = 15, OPSSAMEINDIVIDUALSREALIZE = 16, OPSANSWERCOMPLEXQUERY = 17 |
| 60 |
}; |
| 61 |
enum PROCESSORTYPE { |
| 62 |
OPPREPROCESSOR, OPPRECOMPUTER, OPCLASSCLASSIFIER, OPOBJECTPROPERTYCLASSIFIER, OPDATAPROPERTYCLASSIFIER, OPREALIZER, OPANSWERER |
| 63 |
}; |
| 64 |
|
| 65 |
//! Constructor |
| 66 |
COntologyProcessingStep(PROCESSINGSTEPTYPE processingType, cint64 id, PROCESSORTYPE processorType); |
| 67 |
|
| 68 |
PROCESSINGSTEPTYPE getOntologyProcessingType(); |
| 69 |
cint64 getProcessingStepID(); |
| 70 |
|
| 71 |
COntologyProcessingStep* addProcessingRequirement(COntologyProcessingRequirement* requirement); |
| 72 |
|
| 73 |
PROCESSORTYPE getProcessorType(); |
| 74 |
|
| 75 |
QList<COntologyProcessingRequirement*>* getProcessingRequirementList(); |
| 76 |
|
| 77 |
bool areAllRequirementsSatisfied(COntology* ontology); |
| 78 |
|
| 79 |
const QString getProcessingStepName(); |
| 80 |
|
| 81 |
|
| 82 |
// protected methods |
| 83 |
protected: |
| 84 |
|
| 85 |
// protected variables |
| 86 |
protected: |
| 87 |
PROCESSINGSTEPTYPE mProcessingType; |
| 88 |
cint64 mProcessingStepID; |
| 89 |
PROCESSORTYPE mProcessorType; |
| 90 |
|
| 91 |
QList<COntologyProcessingRequirement*> mProcessingRequirementList; |
| 92 |
|
| 93 |
// private methods |
| 94 |
private: |
| 95 |
|
| 96 |
// private variables |
| 97 |
private: |
| 98 |
|
| 99 |
}; |
| 100 |
|
| 101 |
}; // end namespace Ontology |
| 102 |
|
| 103 |
}; // end namespace Reasoner |
| 104 |
|
| 105 |
}; // end namespace Konclude |
| 106 |
|
| 107 |
#endif // KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYPROCESSINGSTEP_H |