/*
* 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_ONTOLOGY_CEXPRESSIONDATABOXMAPPING_H
#define KONCLUDE_REASONER_ONTOLOGY_CEXPRESSIONDATABOXMAPPING_H
// Libraries includes
// Namespace includes
#include "OntologySettings.h"
#include "COntologyContext.h"
#include "CConcept.h"
#include "CIndividual.h"
#include "CRole.h"
#include "CDatatype.h"
#include "COntologyBuildConstructFlags.h"
#include "CActiveEntityCountVector.h"
// Other includes
#include "Utilities/CSortedNegLinker.hpp"
#include "Utilities/CMemoryManager.hpp"
#include "Utilities/CLinker.hpp"
#include "Parser/Expressions/CClassTermExpression.h"
#include "Parser/Expressions/CIndividualTermExpression.h"
#include "Parser/Expressions/CObjectPropertyTermExpression.h"
#include "Parser/Expressions/CClassAxiomExpression.h"
#include "Parser/Expressions/CObjectPropertyAxiomExpression.h"
#include "Parser/Expressions/CAssertionAxiomExpression.h"
#include "Parser/Expressions/CDataPropertyTermExpression.h"
#include "Parser/Expressions/CDataRangeTermExpression.h"
#include "Parser/Expressions/CDatatypeExpression.h"
#include "Parser/Expressions/CDataPropertyAxiomExpression.h"
#include "Parser/Expressions/CDataLexicalValueExpression.h"
#include "Reasoner/Generator/CExpressionHasher.h"
#include "Utilities/Container/CLinker.h"
// Logger includes
#include "Logger/CLogger.h"
namespace Konclude {
using namespace Utilities;
using namespace Utilities::Container;
using namespace Parser::Expression;
namespace Reasoner {
using namespace Generator;
namespace Ontology {
/*!
*
* \class CExpressionDataBoxMapping
* \author Andreas Steigmiller
* \version 0.1
* \brief TODO
*
*/
class CExpressionDataBoxMapping {
// public methods
public:
//! Constructor
CExpressionDataBoxMapping(COntologyContext* ontoContext);
virtual ~CExpressionDataBoxMapping();
CExpressionDataBoxMapping* referenceDataBoxMapping(CExpressionDataBoxMapping* dataBoxMapping);
COntologyBuildConstructFlags* getBuildConstructFlags();
CActiveEntityCountVector* getActiveEntityVector();
CBUILDHASH* getClassTermConceptMappingHash();
CBUILDHASH* getConceptClassTermMappingHash();
CBUILDHASH* getDataRangeTermConceptMappingHash();
CBUILDHASH* getConceptDataRangeTermMappingHash();
CBUILDHASH* getObjectPropertyTermRoleMappingHash();
CBUILDHASH* getRoleObjectPropertyTermMappingHash();
CBUILDHASH* getDataPropertyTermRoleMappingHash();
CBUILDHASH* getRoleDataPropertyTermMappingHash();
CBUILDHASH* getIndividulTermIndiMappingHash();
CBUILDHASH* getIndiIndividulTermMappingHash();
CBUILDHASH* getDatatypeExpressionDatatypeHash();
CBUILDHASH* getDatatypeDatatypeExpessionHash();
CBUILDHASH, CDataLiteral*>* getDataLexicalValueExpressionDatatypePairDataLiteralHash();
CBUILDHASH* getUpdatedClassAxiomTellOrRetractHash();
CBUILDHASH* getUpdateObjectPropertyAxiomHash();
CBUILDHASH* getUpdateDataPropertyAxiomHash();
CBUILDHASH* getUpdateAssertionAxiomHash();
CBUILDSET< QPair >* getClassTermExpressionClassAxiomExpressionSet();
CBUILDHASH* getClassTermExpressionClassAxiomExpressionHash();
CBUILDSET< QPair >* getObjectPropertyTermObjectPropertyAxiomSet();
CBUILDHASH* getObjectPropertyTermObjectPropertyAxiomHash();
CBUILDSET< QPair >* getDataPropertyTermDataPropertyAxiomSet();
CBUILDHASH* getDataPropertyTermDataPropertyAxiomHash();
CBUILDSET< QPair >* getIndividualTermAssertionAxiomSet();
CBUILDHASH* getIndividualTermAssertionAxiomHash();
CBUILDSET* getTopRebuildClassTermExpressionsSet();
CBUILDSET* getTopRebuildObjectPropertyTermExpressionsSet();
CBUILDHASH* getObjectPropertyTermRoleChainHash();
CBUILDHASH* getRoleChainObjectPropertyTermHash();
CBUILDSET* getBuildedConceptSet();
CBUILDSET* getBuildedObjectRoleSet();
CBUILDSET* getBuildedDataRoleSet();
CBUILDSET* getBuildedDataRangeSet();
CBUILDSET* getBuildedDatatypeSet();
CBUILDSET* getBuildedIndividualSet();
CBUILDLIST* getBuildedConceptList();
CBUILDLIST* getBuildedObjectRoleList();
CBUILDLIST* getBuildedDataRoleList();
CBUILDLIST* getBuildedDataRangeList();
CBUILDLIST* getBuildedDatatypeList();
CBUILDLIST* getBuildedIndividualList();
cint64 getLastActiveCountedEntityAxiom();
CExpressionDataBoxMapping* setLastActiveCountedEntityAxiom(cint64 lastCounted);
cint64 getLastProcessedChangedAxiom();
cint64 getLastProcessedBuildIndividual();
cint64 getLastProcessedBuildConcept();
cint64 getLastProcessedBuildObjectRole();
cint64 getLastProcessedBuildDataRole();
cint64 getLastProcessedBuildDataRange();
cint64 getLastProcessedBuildDatatype();
cint64 getLastProcessedInverseProperty();
cint64 getLastProcessedExpression();
cint64 getLastBuildedIndividual();
cint64 getLastBuildedConcept();
cint64 getLastBuildedObjectRole();
cint64 getLastBuildedDataRole();
cint64 getLastBuildedDataRange();
cint64 getLastBuildedDatatype();
CExpressionDataBoxMapping* setLastProcessedChangedAxiom(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedBuildIndividual(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedBuildConcept(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedBuildObjectRole(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedBuildDataRole(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedBuildDataRange(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedBuildDatatype(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedInverseProperty(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastProcessedExpression(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastBuildedIndividual(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastBuildedConcept(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastBuildedObjectRole(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastBuildedDataRole(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastBuildedDataRange(cint64 lastBuilded);
CExpressionDataBoxMapping* setLastBuildedDatatype(cint64 lastBuilded);
CBUILDHASH* getInverseObjectPropertyHash();
CBUILDHASH* getStructuralExpressionBuildHash();
CBUILDLIST* getExpressionBuildListContainer();
// protected methods
protected:
// protected variables
protected:
COntologyContext* mOntoContext;
CActiveEntityCountVector* mActiveEntityCountVector;
COntologyBuildConstructFlags mConstructFlags;
CBUILDHASH* mClassTermConceptHash;
CBUILDHASH* mConceptClassTermHash;
CBUILDHASH* mDataRangeTermConceptHash;
CBUILDHASH* mConceptDataRangeTermHash;
CBUILDHASH* mObjPropTermRoleHash;
CBUILDHASH* mRoleObjPropTermHash;
CBUILDHASH* mDataPropTermRoleHash;
CBUILDHASH* mRoleDataPropTermHash;
CBUILDHASH* mIndividulTermIndiHash;
CBUILDHASH* mIndiIndividulTermHash;
CBUILDHASH* mDatatypeExpDatatypeHash;
CBUILDHASH* mDatatypeDatatypeExpHash;
CBUILDHASH, CDataLiteral*>* mLexicalDataExpDatatypePairDataLiteralHash;
CBUILDHASH* mUpdateClassAxiomHash;
CBUILDHASH* mUpdateObjectPropertyAxiomHash;
CBUILDHASH* mUpdateDataPropertyAxiomHash;
CBUILDHASH* mUpdateAssertionAxiomHash;
// contains also previous ontology data
CBUILDSET< QPair >* mClassTermClassAxiomSet;
CBUILDHASH* mClassTermClassAxiomHash;
CBUILDSET< QPair >* mObjPropTermObjPropAxiomSet;
CBUILDHASH* mObjPropTermObjPropAxiomHash;
CBUILDSET< QPair >* mDataPropTermDataPropAxiomSet;
CBUILDHASH* mDataPropTermDataPropAxiomHash;
CBUILDSET< QPair >* mIndiTermAssertionAxiomSet;
CBUILDHASH* mIndiTermAssertionAxiomHash;
CBUILDSET* mTopRebuildClassTermExpressionsSet;
CBUILDSET* mTopRebuildObjectPropertyTermExpressionsSet;
CBUILDHASH* mObjPropTermRoleChainHash;
CBUILDHASH* mRoleChainObjPropTermHash;
cint64 mLastActiveCountedEntityAxiom;
cint64 mLastProcessedChangedAxiom;
cint64 mLastProcessedBuildIndividual;
cint64 mLastProcessedBuildConcept;
cint64 mLastProcessedBuildObjectRole;
cint64 mLastProcessedBuildDataRole;
cint64 mLastProcessedBuildDataRange;
cint64 mLastProcessedBuildDatatype;
cint64 mLastProcessedInverseProperty;
cint64 mLastProcessedExpression;
cint64 mLastBuildedIndividual;
cint64 mLastBuildedConcept;
cint64 mLastBuildedObjectRole;
cint64 mLastBuildedDataRole;
cint64 mLastBuildedDataRange;
cint64 mLastBuildedDatatype;
CBUILDSET* mBuildedIndividualSet;
CBUILDSET* mBuildedObjectRoleSet;
CBUILDSET* mBuildedDataRoleSet;
CBUILDSET* mBuildedDataRangeSet;
CBUILDSET* mBuildedDatatypeSet;
CBUILDSET* mBuildedConceptSet;
CBUILDLIST* mBuildedIndividualList;
CBUILDLIST* mBuildedObjectRoleList;
CBUILDLIST* mBuildedDataRoleList;
CBUILDLIST* mBuildedDataRangeList;
CBUILDLIST* mBuildedDatatypeList;
CBUILDLIST* mBuildedConceptList;
CBUILDHASH* mInverseObjectPropertyHash;
CBUILDHASH* mExpressionBuildHash;
CBUILDLIST* mExpressionBuildListContainer;
// private methods
private:
// private variables
private:
};
}; // end namespace Ontology
}; // end namespace Reasoner
}; // end namespace Konclude
#endif // KONCLUDE_REASONER_ONTOLOGY_CEXPRESSIONDATABOXMAPPING_H