/* * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team. * * This file is part of the reasoning system Konclude. * For details and support, see . * * Konclude is free software: you can redistribute it and/or modify * it under the terms of version 3 of the GNU Lesser General Public * License (LGPLv3) as published by the Free Software Foundation. * * Konclude is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU (Lesser) General Public License for more details. * * You should have received a copy of the GNU (Lesser) General Public * License along with Konclude. If not, see . * */ #ifndef KONCLUDE_REASONER_PREPROCESS_CMAPPINGUPDATERPREPROCESS_H #define KONCLUDE_REASONER_PREPROCESS_CMAPPINGUPDATERPREPROCESS_H // Libraries includes #include // Namespace includes #include "CConcreteOntologyPreProcess.h" #include "CConceptRoleIndividualLocator.h" // Other includes #include "Reasoner/Ontology/CBoxContext.h" #include "Reasoner/Ontology/CConcept.h" #include "Reasoner/Ontology/CRoleDependence.h" #include "Reasoner/Ontology/CMBox.h" #include "Utilities/CDynamicExpandingMemoryManager.hpp" #include "Utilities/CSortedNegLinker.hpp" // Logger includes #include "Logger/CLogger.h" namespace Konclude { namespace Reasoner { using namespace Ontology; namespace Preprocess { /*! * * \class CMappingUpdaterPreProcess * \author Andreas Steigmiller * \version 0.1 * \brief TODO * */ class CMappingUpdaterPreProcess : public CConcreteOntologyPreProcess { // public methods public: //! Constructor CMappingUpdaterPreProcess(); //! Destructor virtual ~CMappingUpdaterPreProcess(); virtual CConcreteOntology *preprocess(CConcreteOntology *ontology, CPreProcessContext* context); // protected methods protected: bool collectActiveOntologyItemsFromActiveEntities(); bool collectActiveOntologyItems(); // private methods private: // private variables private: CTBox* tbox; CABox* abox; CRBox* rbox; CMBox* mBox; CRoleVector *mRoleVec; CConceptVector *mConceptVec; CIndividualVector *mIndiVec; COntologyBuildConstructFlags* mBuildConstructFlags; CActiveEntityCountVector* mActiveEntityVector; QSet mUpdateConceptSet; QList mUpdateConceptList; QSet mUpdateRoleSet; QList mUpdateRoleList; QSet mUpdateIndividualSet; QList mUpdateIndividualList; CBUILDHASH* mRoleObjPropTermHash; CBUILDHASH* mObjPropTermRoleHash; CBUILDHASH* mRoleDataPropTermHash; CBUILDHASH* mDataPropTermRoleHash; CBUILDHASH* mClassTermConceptHash; CBUILDHASH* mConceptClassTermHash; CBUILDHASH* mIndiTermIndiHash; CBUILDHASH* mIndiIndiTermHash; CBUILDSET* mDeclarationAxiomSet; CBUILDHASH* mClassTermClassAxiomHash; CBUILDHASH* mObjPropTermObjPropAxiomHash; CMAPPINGHASH* mNameConceptHash; CMAPPINGHASH* mNameRoleHash; CMAPPINGHASH* mNameIndiHash; }; }; // end namespace Preprocess }; // end namespace Reasoner }; // end namespace Konclude #endif // KONCLUDE_REASONER_PREPROCESS_CMAPPINGUPDATERPREPROCESS_H