| 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 |
#include "CExpressionDataBoxMapping.h" |
| 22 |
|
| 23 |
|
| 24 |
namespace Konclude { |
| 25 |
|
| 26 |
namespace Reasoner { |
| 27 |
|
| 28 |
namespace Ontology { |
| 29 |
|
| 30 |
|
| 31 |
CExpressionDataBoxMapping::CExpressionDataBoxMapping(COntologyContext* ontoContext) : mConstructFlags(ontoContext) { |
| 32 |
mOntoContext = ontoContext; |
| 33 |
CMemoryAllocationManager* memAllocMan = CContext::getMemoryAllocationManager(mOntoContext); |
| 34 |
|
| 35 |
mActiveEntityCountVector = CObjectParameterizingAllocator< CActiveEntityCountVector,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 36 |
|
| 37 |
mClassTermConceptHash = CObjectParameterizingAllocator< CBUILDHASH<CClassTermExpression*,CConcept*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 38 |
mConceptClassTermHash = CObjectParameterizingAllocator< CBUILDHASH<CConcept*,CClassTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 39 |
mDataRangeTermConceptHash = CObjectParameterizingAllocator< CBUILDHASH<CDataRangeTermExpression*,CConcept*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 40 |
mConceptDataRangeTermHash = CObjectParameterizingAllocator< CBUILDHASH<CConcept*,CDataRangeTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 41 |
mObjPropTermRoleHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectPropertyTermExpression*,CRole*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 42 |
mRoleObjPropTermHash = CObjectParameterizingAllocator< CBUILDHASH<CRole*,CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 43 |
mDataPropTermRoleHash = CObjectParameterizingAllocator< CBUILDHASH<CDataPropertyTermExpression*,CRole*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 44 |
mRoleDataPropTermHash = CObjectParameterizingAllocator< CBUILDHASH<CRole*,CDataPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 45 |
mIndividulTermIndiHash = CObjectParameterizingAllocator< CBUILDHASH<CIndividualTermExpression*,CIndividual*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 46 |
mIndiIndividulTermHash = CObjectParameterizingAllocator< CBUILDHASH<CIndividual*,CIndividualTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 47 |
|
| 48 |
mDatatypeExpDatatypeHash = CObjectParameterizingAllocator< CBUILDHASH<CDatatypeExpression*,CDatatype*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 49 |
mDatatypeDatatypeExpHash = CObjectParameterizingAllocator< CBUILDHASH<CDatatype*,CDatatypeExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 50 |
|
| 51 |
mLexicalDataExpDatatypePairDataLiteralHash = CObjectParameterizingAllocator< CBUILDHASH<QPair<CDataLexicalValueExpression*, CDatatype*>, CDataLiteral*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 52 |
|
| 53 |
mUpdateClassAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CClassAxiomExpression*,bool>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 54 |
mUpdateObjectPropertyAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectPropertyAxiomExpression*,bool>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 55 |
mUpdateDataPropertyAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CDataPropertyAxiomExpression*,bool>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 56 |
mUpdateAssertionAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CAssertionAxiomExpression*,bool>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 57 |
|
| 58 |
mClassTermClassAxiomSet = CObjectParameterizingAllocator< CBUILDSET< QPair<CClassTermExpression*,CClassAxiomExpression*> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 59 |
mClassTermClassAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CClassTermExpression*,CClassAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 60 |
|
| 61 |
mObjPropTermObjPropAxiomSet = CObjectParameterizingAllocator< CBUILDSET< QPair<CObjectPropertyTermExpression*,CObjectPropertyAxiomExpression*> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 62 |
mObjPropTermObjPropAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 63 |
|
| 64 |
mDataPropTermDataPropAxiomSet = CObjectParameterizingAllocator< CBUILDSET< QPair<CDataPropertyTermExpression*,CDataPropertyAxiomExpression*> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 65 |
mDataPropTermDataPropAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CDataPropertyTermExpression*,CDataPropertyAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 66 |
|
| 67 |
mIndiTermAssertionAxiomSet = CObjectParameterizingAllocator< CBUILDSET< QPair<CIndividualTermExpression*,CAssertionAxiomExpression*> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 68 |
mIndiTermAssertionAxiomHash = CObjectParameterizingAllocator< CBUILDHASH<CIndividualTermExpression*,CAssertionAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 69 |
|
| 70 |
mTopRebuildClassTermExpressionsSet = CObjectParameterizingAllocator< CBUILDSET<CClassTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 71 |
mTopRebuildObjectPropertyTermExpressionsSet = CObjectParameterizingAllocator< CBUILDSET<CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 72 |
|
| 73 |
mObjPropTermRoleChainHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectPropertyAxiomExpression*,CRoleChain*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 74 |
mRoleChainObjPropTermHash = CObjectParameterizingAllocator< CBUILDHASH<CRoleChain*,CObjectPropertyAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 75 |
|
| 76 |
mBuildedConceptSet = CObjectParameterizingAllocator< CBUILDSET<CClassTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 77 |
mBuildedObjectRoleSet = CObjectParameterizingAllocator< CBUILDSET<CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 78 |
mBuildedDataRoleSet = CObjectParameterizingAllocator< CBUILDSET<CDataPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 79 |
mBuildedDataRangeSet = CObjectParameterizingAllocator< CBUILDSET<CDataRangeTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 80 |
mBuildedDatatypeSet = CObjectParameterizingAllocator< CBUILDSET<CDatatypeExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 81 |
mBuildedIndividualSet = CObjectParameterizingAllocator< CBUILDSET<CIndividualTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 82 |
|
| 83 |
mBuildedConceptList = CObjectParameterizingAllocator< CBUILDLIST<CClassTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 84 |
mBuildedObjectRoleList = CObjectParameterizingAllocator< CBUILDLIST<CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 85 |
mBuildedDataRoleList = CObjectParameterizingAllocator< CBUILDLIST<CDataPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 86 |
mBuildedDataRangeList = CObjectParameterizingAllocator< CBUILDLIST<CDataRangeTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 87 |
mBuildedDatatypeList = CObjectParameterizingAllocator< CBUILDLIST<CDatatypeExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 88 |
mBuildedIndividualList = CObjectParameterizingAllocator< CBUILDLIST<CIndividualTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 89 |
|
| 90 |
mExpressionBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CExpressionHasher,CBuildExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 91 |
mExpressionBuildListContainer = CObjectParameterizingAllocator< CBUILDLIST<CBuildExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 92 |
mInverseObjectPropertyHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 93 |
|
| 94 |
mLastActiveCountedEntityAxiom = 0; |
| 95 |
|
| 96 |
mLastProcessedChangedAxiom = 0; |
| 97 |
mLastProcessedBuildIndividual = 0; |
| 98 |
mLastProcessedBuildConcept = 0; |
| 99 |
mLastProcessedBuildObjectRole = 0; |
| 100 |
mLastProcessedBuildDataRole = 0; |
| 101 |
mLastProcessedBuildDataRange = 0; |
| 102 |
mLastProcessedBuildDatatype = 0; |
| 103 |
|
| 104 |
mLastProcessedInverseProperty = 0; |
| 105 |
mLastProcessedExpression = 0; |
| 106 |
|
| 107 |
mLastBuildedIndividual = 0; |
| 108 |
mLastBuildedConcept = 0; |
| 109 |
mLastBuildedObjectRole = 0; |
| 110 |
mLastBuildedDataRole = 0; |
| 111 |
mLastBuildedDataRange = 0; |
| 112 |
mLastBuildedDatatype = 0; |
| 113 |
} |
| 114 |
|
| 115 |
CExpressionDataBoxMapping::~CExpressionDataBoxMapping() { |
| 116 |
CMemoryAllocationManager* memAllocMan = CContext::getMemoryAllocationManager(mOntoContext); |
| 117 |
COPADestroyAndRelease(mClassTermConceptHash,memAllocMan); |
| 118 |
COPADestroyAndRelease(mConceptClassTermHash,memAllocMan); |
| 119 |
COPADestroyAndRelease(mDataRangeTermConceptHash,memAllocMan); |
| 120 |
COPADestroyAndRelease(mConceptDataRangeTermHash,memAllocMan); |
| 121 |
COPADestroyAndRelease(mObjPropTermRoleHash,memAllocMan); |
| 122 |
COPADestroyAndRelease(mRoleObjPropTermHash,memAllocMan); |
| 123 |
COPADestroyAndRelease(mDataPropTermRoleHash,memAllocMan); |
| 124 |
COPADestroyAndRelease(mRoleDataPropTermHash,memAllocMan); |
| 125 |
COPADestroyAndRelease(mIndividulTermIndiHash,memAllocMan); |
| 126 |
COPADestroyAndRelease(mIndiIndividulTermHash,memAllocMan); |
| 127 |
|
| 128 |
COPADestroyAndRelease(mDatatypeExpDatatypeHash,memAllocMan); |
| 129 |
COPADestroyAndRelease(mDatatypeDatatypeExpHash,memAllocMan); |
| 130 |
COPADestroyAndRelease(mLexicalDataExpDatatypePairDataLiteralHash, memAllocMan); |
| 131 |
|
| 132 |
COPADestroyAndRelease(mUpdateClassAxiomHash,memAllocMan); |
| 133 |
COPADestroyAndRelease(mUpdateObjectPropertyAxiomHash,memAllocMan); |
| 134 |
COPADestroyAndRelease(mUpdateDataPropertyAxiomHash,memAllocMan); |
| 135 |
COPADestroyAndRelease(mUpdateAssertionAxiomHash,memAllocMan); |
| 136 |
|
| 137 |
COPADestroyAndRelease(mObjPropTermObjPropAxiomSet,memAllocMan); |
| 138 |
COPADestroyAndRelease(mObjPropTermObjPropAxiomHash,memAllocMan); |
| 139 |
|
| 140 |
COPADestroyAndRelease(mDataPropTermDataPropAxiomSet,memAllocMan); |
| 141 |
COPADestroyAndRelease(mDataPropTermDataPropAxiomHash,memAllocMan); |
| 142 |
|
| 143 |
COPADestroyAndRelease(mIndiTermAssertionAxiomSet,memAllocMan); |
| 144 |
COPADestroyAndRelease(mIndiTermAssertionAxiomHash,memAllocMan); |
| 145 |
|
| 146 |
COPADestroyAndRelease(mTopRebuildClassTermExpressionsSet,memAllocMan); |
| 147 |
COPADestroyAndRelease(mTopRebuildObjectPropertyTermExpressionsSet,memAllocMan); |
| 148 |
|
| 149 |
COPADestroyAndRelease(mClassTermClassAxiomSet,memAllocMan); |
| 150 |
COPADestroyAndRelease(mClassTermClassAxiomHash,memAllocMan); |
| 151 |
|
| 152 |
COPADestroyAndRelease(mObjPropTermRoleChainHash,memAllocMan); |
| 153 |
COPADestroyAndRelease(mRoleChainObjPropTermHash,memAllocMan); |
| 154 |
|
| 155 |
COPADestroyAndRelease(mBuildedConceptSet,memAllocMan); |
| 156 |
COPADestroyAndRelease(mBuildedObjectRoleSet,memAllocMan); |
| 157 |
COPADestroyAndRelease(mBuildedDataRoleSet,memAllocMan); |
| 158 |
COPADestroyAndRelease(mBuildedDataRangeSet,memAllocMan); |
| 159 |
COPADestroyAndRelease(mBuildedDatatypeSet,memAllocMan); |
| 160 |
COPADestroyAndRelease(mBuildedIndividualSet,memAllocMan); |
| 161 |
|
| 162 |
COPADestroyAndRelease(mBuildedIndividualList,memAllocMan); |
| 163 |
COPADestroyAndRelease(mBuildedObjectRoleList,memAllocMan); |
| 164 |
COPADestroyAndRelease(mBuildedDataRoleList,memAllocMan); |
| 165 |
COPADestroyAndRelease(mBuildedDataRangeList,memAllocMan); |
| 166 |
COPADestroyAndRelease(mBuildedDatatypeList,memAllocMan); |
| 167 |
COPADestroyAndRelease(mBuildedConceptList,memAllocMan); |
| 168 |
|
| 169 |
COPADestroyAndRelease(mExpressionBuildHash,memAllocMan); |
| 170 |
COPADestroyAndRelease(mExpressionBuildListContainer,memAllocMan); |
| 171 |
COPADestroyAndRelease(mInverseObjectPropertyHash,memAllocMan); |
| 172 |
} |
| 173 |
|
| 174 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::referenceDataBoxMapping(CExpressionDataBoxMapping* dataBoxMapping) { |
| 175 |
*mClassTermConceptHash = *dataBoxMapping->mClassTermConceptHash; |
| 176 |
*mConceptClassTermHash = *dataBoxMapping->mConceptClassTermHash; |
| 177 |
*mDataRangeTermConceptHash = *dataBoxMapping->mDataRangeTermConceptHash; |
| 178 |
*mConceptDataRangeTermHash = *dataBoxMapping->mConceptDataRangeTermHash; |
| 179 |
*mObjPropTermRoleHash = *dataBoxMapping->mObjPropTermRoleHash; |
| 180 |
*mRoleObjPropTermHash = *dataBoxMapping->mRoleObjPropTermHash; |
| 181 |
*mDataPropTermRoleHash = *dataBoxMapping->mDataPropTermRoleHash; |
| 182 |
*mRoleDataPropTermHash = *dataBoxMapping->mRoleDataPropTermHash; |
| 183 |
*mIndividulTermIndiHash = *dataBoxMapping->mIndividulTermIndiHash; |
| 184 |
*mIndiIndividulTermHash = *dataBoxMapping->mIndiIndividulTermHash; |
| 185 |
|
| 186 |
*mDatatypeExpDatatypeHash = *dataBoxMapping->mDatatypeExpDatatypeHash; |
| 187 |
*mDatatypeDatatypeExpHash = *dataBoxMapping->mDatatypeDatatypeExpHash; |
| 188 |
*mLexicalDataExpDatatypePairDataLiteralHash = *dataBoxMapping->mLexicalDataExpDatatypePairDataLiteralHash; |
| 189 |
|
| 190 |
mActiveEntityCountVector->initActiveEntityCountVector(dataBoxMapping->mActiveEntityCountVector); |
| 191 |
|
| 192 |
mUpdateClassAxiomHash->clear(); |
| 193 |
mUpdateObjectPropertyAxiomHash->clear(); |
| 194 |
mUpdateDataPropertyAxiomHash->clear(); |
| 195 |
mUpdateAssertionAxiomHash->clear(); |
| 196 |
|
| 197 |
//*mUpdateClassAxiomHash = *dataBoxMapping->mUpdateClassAxiomHash; |
| 198 |
//*mUpdateObjectPropertyAxiomHash = *dataBoxMapping->mUpdateObjectPropertyAxiomHash; |
| 199 |
|
| 200 |
*mClassTermClassAxiomSet = *dataBoxMapping->mClassTermClassAxiomSet; |
| 201 |
*mClassTermClassAxiomHash = *dataBoxMapping->mClassTermClassAxiomHash; |
| 202 |
|
| 203 |
|
| 204 |
*mObjPropTermObjPropAxiomSet = *dataBoxMapping->mObjPropTermObjPropAxiomSet; |
| 205 |
*mObjPropTermObjPropAxiomHash = *dataBoxMapping->mObjPropTermObjPropAxiomHash; |
| 206 |
|
| 207 |
*mDataPropTermDataPropAxiomSet = *dataBoxMapping->mDataPropTermDataPropAxiomSet; |
| 208 |
*mDataPropTermDataPropAxiomHash = *dataBoxMapping->mDataPropTermDataPropAxiomHash; |
| 209 |
|
| 210 |
*mIndiTermAssertionAxiomSet = *dataBoxMapping->mIndiTermAssertionAxiomSet; |
| 211 |
*mIndiTermAssertionAxiomHash = *dataBoxMapping->mIndiTermAssertionAxiomHash; |
| 212 |
|
| 213 |
*mTopRebuildClassTermExpressionsSet = *dataBoxMapping->mTopRebuildClassTermExpressionsSet; |
| 214 |
*mTopRebuildObjectPropertyTermExpressionsSet = *dataBoxMapping->mTopRebuildObjectPropertyTermExpressionsSet; |
| 215 |
|
| 216 |
*mObjPropTermRoleChainHash = *dataBoxMapping->mObjPropTermRoleChainHash; |
| 217 |
*mRoleChainObjPropTermHash = *dataBoxMapping->mRoleChainObjPropTermHash; |
| 218 |
|
| 219 |
mLastActiveCountedEntityAxiom = dataBoxMapping->mLastActiveCountedEntityAxiom; |
| 220 |
|
| 221 |
mLastProcessedChangedAxiom = dataBoxMapping->mLastProcessedChangedAxiom; |
| 222 |
mLastProcessedBuildIndividual = dataBoxMapping->mLastProcessedBuildIndividual; |
| 223 |
mLastProcessedBuildConcept = dataBoxMapping->mLastProcessedBuildConcept; |
| 224 |
mLastProcessedBuildObjectRole = dataBoxMapping->mLastProcessedBuildObjectRole; |
| 225 |
mLastProcessedBuildDataRole = dataBoxMapping->mLastProcessedBuildDataRole; |
| 226 |
mLastProcessedBuildDataRange = dataBoxMapping->mLastProcessedBuildDataRange; |
| 227 |
mLastProcessedBuildDatatype = dataBoxMapping->mLastProcessedBuildDatatype; |
| 228 |
|
| 229 |
mLastProcessedInverseProperty = dataBoxMapping->mLastProcessedInverseProperty; |
| 230 |
mLastProcessedExpression = dataBoxMapping->mLastProcessedExpression; |
| 231 |
|
| 232 |
mLastBuildedIndividual = dataBoxMapping->mLastBuildedIndividual; |
| 233 |
mLastBuildedConcept = dataBoxMapping->mLastBuildedConcept; |
| 234 |
mLastBuildedObjectRole = dataBoxMapping->mLastBuildedObjectRole; |
| 235 |
mLastBuildedDataRole = dataBoxMapping->mLastBuildedDataRole; |
| 236 |
mLastBuildedDataRange = dataBoxMapping->mLastBuildedDataRange; |
| 237 |
mLastBuildedDatatype = dataBoxMapping->mLastBuildedDatatype; |
| 238 |
|
| 239 |
*mBuildedIndividualList = *dataBoxMapping->mBuildedIndividualList; |
| 240 |
*mBuildedConceptList = *dataBoxMapping->mBuildedConceptList; |
| 241 |
*mBuildedObjectRoleList = *dataBoxMapping->mBuildedObjectRoleList; |
| 242 |
*mBuildedDataRoleList = *dataBoxMapping->mBuildedDataRoleList; |
| 243 |
*mBuildedDataRangeList = *dataBoxMapping->mBuildedDataRangeList; |
| 244 |
*mBuildedDatatypeList = *dataBoxMapping->mBuildedDatatypeList; |
| 245 |
|
| 246 |
*mBuildedIndividualSet = *dataBoxMapping->mBuildedIndividualSet; |
| 247 |
*mBuildedObjectRoleSet = *dataBoxMapping->mBuildedObjectRoleSet; |
| 248 |
*mBuildedDataRoleSet = *dataBoxMapping->mBuildedDataRoleSet; |
| 249 |
*mBuildedDatatypeSet = *dataBoxMapping->mBuildedDatatypeSet; |
| 250 |
*mBuildedDataRangeSet = *dataBoxMapping->mBuildedDataRangeSet; |
| 251 |
*mBuildedConceptSet = *dataBoxMapping->mBuildedConceptSet; |
| 252 |
|
| 253 |
*mInverseObjectPropertyHash = *dataBoxMapping->mInverseObjectPropertyHash; |
| 254 |
*mExpressionBuildHash = *dataBoxMapping->mExpressionBuildHash; |
| 255 |
*mExpressionBuildListContainer = *dataBoxMapping->mExpressionBuildListContainer; |
| 256 |
|
| 257 |
mConstructFlags.referenceBuildConstructFlags(&dataBoxMapping->mConstructFlags); |
| 258 |
return this; |
| 259 |
} |
| 260 |
|
| 261 |
|
| 262 |
CActiveEntityCountVector* CExpressionDataBoxMapping::getActiveEntityVector() { |
| 263 |
return mActiveEntityCountVector; |
| 264 |
} |
| 265 |
|
| 266 |
|
| 267 |
COntologyBuildConstructFlags* CExpressionDataBoxMapping::getBuildConstructFlags() { |
| 268 |
return &mConstructFlags; |
| 269 |
} |
| 270 |
|
| 271 |
CBUILDHASH<CClassTermExpression*,CConcept*>* CExpressionDataBoxMapping::getClassTermConceptMappingHash() { |
| 272 |
return mClassTermConceptHash; |
| 273 |
} |
| 274 |
|
| 275 |
CBUILDHASH<CConcept*,CClassTermExpression*>* CExpressionDataBoxMapping::getConceptClassTermMappingHash() { |
| 276 |
return mConceptClassTermHash; |
| 277 |
} |
| 278 |
|
| 279 |
CBUILDHASH<CDataRangeTermExpression*,CConcept*>* CExpressionDataBoxMapping::getDataRangeTermConceptMappingHash() { |
| 280 |
return mDataRangeTermConceptHash; |
| 281 |
} |
| 282 |
|
| 283 |
CBUILDHASH<CConcept*,CDataRangeTermExpression*>* CExpressionDataBoxMapping::getConceptDataRangeTermMappingHash() { |
| 284 |
return mConceptDataRangeTermHash; |
| 285 |
} |
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
CBUILDHASH<CObjectPropertyTermExpression*,CRole*>* CExpressionDataBoxMapping::getObjectPropertyTermRoleMappingHash() { |
| 290 |
return mObjPropTermRoleHash; |
| 291 |
} |
| 292 |
|
| 293 |
CBUILDHASH<CRole*,CObjectPropertyTermExpression*>* CExpressionDataBoxMapping::getRoleObjectPropertyTermMappingHash() { |
| 294 |
return mRoleObjPropTermHash; |
| 295 |
} |
| 296 |
|
| 297 |
|
| 298 |
CBUILDHASH<CDataPropertyTermExpression*,CRole*>* CExpressionDataBoxMapping::getDataPropertyTermRoleMappingHash() { |
| 299 |
return mDataPropTermRoleHash; |
| 300 |
} |
| 301 |
|
| 302 |
CBUILDHASH<CRole*,CDataPropertyTermExpression*>* CExpressionDataBoxMapping::getRoleDataPropertyTermMappingHash() { |
| 303 |
return mRoleDataPropTermHash; |
| 304 |
} |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
CBUILDHASH<CIndividualTermExpression*,CIndividual*>* CExpressionDataBoxMapping::getIndividulTermIndiMappingHash() { |
| 309 |
return mIndividulTermIndiHash; |
| 310 |
} |
| 311 |
|
| 312 |
CBUILDHASH<CIndividual*,CIndividualTermExpression*>* CExpressionDataBoxMapping::getIndiIndividulTermMappingHash() { |
| 313 |
return mIndiIndividulTermHash; |
| 314 |
} |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
CBUILDHASH<QPair<CDataLexicalValueExpression*, CDatatype*>, CDataLiteral*>* CExpressionDataBoxMapping::getDataLexicalValueExpressionDatatypePairDataLiteralHash() { |
| 319 |
return mLexicalDataExpDatatypePairDataLiteralHash; |
| 320 |
} |
| 321 |
|
| 322 |
|
| 323 |
CBUILDHASH<CDatatypeExpression*,CDatatype*>* CExpressionDataBoxMapping::getDatatypeExpressionDatatypeHash() { |
| 324 |
return mDatatypeExpDatatypeHash; |
| 325 |
} |
| 326 |
|
| 327 |
CBUILDHASH<CDatatype*,CDatatypeExpression*>* CExpressionDataBoxMapping::getDatatypeDatatypeExpessionHash() { |
| 328 |
return mDatatypeDatatypeExpHash; |
| 329 |
} |
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
CBUILDHASH<CClassAxiomExpression*,bool>* CExpressionDataBoxMapping::getUpdatedClassAxiomTellOrRetractHash() { |
| 334 |
return mUpdateClassAxiomHash; |
| 335 |
} |
| 336 |
|
| 337 |
|
| 338 |
CBUILDHASH<CObjectPropertyAxiomExpression*,bool>* CExpressionDataBoxMapping::getUpdateObjectPropertyAxiomHash() { |
| 339 |
return mUpdateObjectPropertyAxiomHash; |
| 340 |
} |
| 341 |
|
| 342 |
CBUILDHASH<CDataPropertyAxiomExpression*,bool>* CExpressionDataBoxMapping::getUpdateDataPropertyAxiomHash() { |
| 343 |
return mUpdateDataPropertyAxiomHash; |
| 344 |
} |
| 345 |
|
| 346 |
CBUILDHASH<CAssertionAxiomExpression*,bool>* CExpressionDataBoxMapping::getUpdateAssertionAxiomHash() { |
| 347 |
return mUpdateAssertionAxiomHash; |
| 348 |
} |
| 349 |
|
| 350 |
|
| 351 |
CBUILDSET< QPair<CClassTermExpression*,CClassAxiomExpression*> >* CExpressionDataBoxMapping::getClassTermExpressionClassAxiomExpressionSet() { |
| 352 |
return mClassTermClassAxiomSet; |
| 353 |
} |
| 354 |
|
| 355 |
CBUILDHASH<CClassTermExpression*,CClassAxiomExpression*>* CExpressionDataBoxMapping::getClassTermExpressionClassAxiomExpressionHash() { |
| 356 |
return mClassTermClassAxiomHash; |
| 357 |
} |
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
CBUILDSET< QPair<CObjectPropertyTermExpression*,CObjectPropertyAxiomExpression*> >* CExpressionDataBoxMapping::getObjectPropertyTermObjectPropertyAxiomSet() { |
| 362 |
return mObjPropTermObjPropAxiomSet; |
| 363 |
} |
| 364 |
|
| 365 |
CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyAxiomExpression*>* CExpressionDataBoxMapping::getObjectPropertyTermObjectPropertyAxiomHash() { |
| 366 |
return mObjPropTermObjPropAxiomHash; |
| 367 |
} |
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
CBUILDSET< QPair<CDataPropertyTermExpression*,CDataPropertyAxiomExpression*> >* CExpressionDataBoxMapping::getDataPropertyTermDataPropertyAxiomSet() { |
| 374 |
return mDataPropTermDataPropAxiomSet; |
| 375 |
} |
| 376 |
|
| 377 |
CBUILDHASH<CDataPropertyTermExpression*,CDataPropertyAxiomExpression*>* CExpressionDataBoxMapping::getDataPropertyTermDataPropertyAxiomHash() { |
| 378 |
return mDataPropTermDataPropAxiomHash; |
| 379 |
} |
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
CBUILDSET< QPair<CIndividualTermExpression*,CAssertionAxiomExpression*> >* CExpressionDataBoxMapping::getIndividualTermAssertionAxiomSet() { |
| 387 |
return mIndiTermAssertionAxiomSet; |
| 388 |
} |
| 389 |
|
| 390 |
CBUILDHASH<CIndividualTermExpression*,CAssertionAxiomExpression*>* CExpressionDataBoxMapping::getIndividualTermAssertionAxiomHash() { |
| 391 |
return mIndiTermAssertionAxiomHash; |
| 392 |
} |
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
CBUILDSET<CClassTermExpression*>* CExpressionDataBoxMapping::getTopRebuildClassTermExpressionsSet() { |
| 397 |
return mTopRebuildClassTermExpressionsSet; |
| 398 |
} |
| 399 |
|
| 400 |
CBUILDSET<CObjectPropertyTermExpression*>* CExpressionDataBoxMapping::getTopRebuildObjectPropertyTermExpressionsSet() { |
| 401 |
return mTopRebuildObjectPropertyTermExpressionsSet; |
| 402 |
} |
| 403 |
|
| 404 |
CBUILDHASH<CObjectPropertyAxiomExpression*,CRoleChain*>* CExpressionDataBoxMapping::getObjectPropertyTermRoleChainHash() { |
| 405 |
return mObjPropTermRoleChainHash; |
| 406 |
} |
| 407 |
|
| 408 |
CBUILDHASH<CRoleChain*,CObjectPropertyAxiomExpression*>* CExpressionDataBoxMapping::getRoleChainObjectPropertyTermHash() { |
| 409 |
return mRoleChainObjPropTermHash; |
| 410 |
} |
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
CBUILDSET<CClassTermExpression*>* CExpressionDataBoxMapping::getBuildedConceptSet() { |
| 415 |
return mBuildedConceptSet; |
| 416 |
} |
| 417 |
|
| 418 |
CBUILDSET<CObjectPropertyTermExpression*>* CExpressionDataBoxMapping::getBuildedObjectRoleSet() { |
| 419 |
return mBuildedObjectRoleSet; |
| 420 |
} |
| 421 |
|
| 422 |
CBUILDSET<CDataPropertyTermExpression*>* CExpressionDataBoxMapping::getBuildedDataRoleSet() { |
| 423 |
return mBuildedDataRoleSet; |
| 424 |
} |
| 425 |
|
| 426 |
|
| 427 |
CBUILDSET<CDataRangeTermExpression*>* CExpressionDataBoxMapping::getBuildedDataRangeSet() { |
| 428 |
return mBuildedDataRangeSet; |
| 429 |
} |
| 430 |
|
| 431 |
CBUILDSET<CDatatypeExpression*>* CExpressionDataBoxMapping::getBuildedDatatypeSet() { |
| 432 |
return mBuildedDatatypeSet; |
| 433 |
} |
| 434 |
|
| 435 |
CBUILDSET<CIndividualTermExpression*>* CExpressionDataBoxMapping::getBuildedIndividualSet() { |
| 436 |
return mBuildedIndividualSet; |
| 437 |
} |
| 438 |
|
| 439 |
|
| 440 |
cint64 CExpressionDataBoxMapping::getLastActiveCountedEntityAxiom() { |
| 441 |
return mLastActiveCountedEntityAxiom; |
| 442 |
} |
| 443 |
|
| 444 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastActiveCountedEntityAxiom(cint64 lastCounted) { |
| 445 |
mLastActiveCountedEntityAxiom = lastCounted; |
| 446 |
return this; |
| 447 |
} |
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
cint64 CExpressionDataBoxMapping::getLastProcessedChangedAxiom() { |
| 452 |
return mLastProcessedChangedAxiom; |
| 453 |
} |
| 454 |
|
| 455 |
cint64 CExpressionDataBoxMapping::getLastBuildedIndividual() { |
| 456 |
return mLastBuildedIndividual; |
| 457 |
} |
| 458 |
|
| 459 |
cint64 CExpressionDataBoxMapping::getLastBuildedConcept() { |
| 460 |
return mLastBuildedConcept; |
| 461 |
} |
| 462 |
|
| 463 |
cint64 CExpressionDataBoxMapping::getLastBuildedObjectRole() { |
| 464 |
return mLastBuildedObjectRole; |
| 465 |
} |
| 466 |
|
| 467 |
cint64 CExpressionDataBoxMapping::getLastBuildedDataRole() { |
| 468 |
return mLastBuildedDataRole; |
| 469 |
} |
| 470 |
|
| 471 |
cint64 CExpressionDataBoxMapping::getLastBuildedDataRange() { |
| 472 |
return mLastBuildedDataRange; |
| 473 |
} |
| 474 |
|
| 475 |
cint64 CExpressionDataBoxMapping::getLastBuildedDatatype() { |
| 476 |
return mLastBuildedDatatype; |
| 477 |
|
| 478 |
} |
| 479 |
cint64 CExpressionDataBoxMapping::getLastProcessedBuildIndividual() { |
| 480 |
return mLastProcessedBuildIndividual; |
| 481 |
} |
| 482 |
|
| 483 |
cint64 CExpressionDataBoxMapping::getLastProcessedBuildConcept() { |
| 484 |
return mLastProcessedBuildConcept; |
| 485 |
} |
| 486 |
|
| 487 |
cint64 CExpressionDataBoxMapping::getLastProcessedBuildObjectRole() { |
| 488 |
return mLastProcessedBuildObjectRole; |
| 489 |
} |
| 490 |
|
| 491 |
cint64 CExpressionDataBoxMapping::getLastProcessedBuildDataRole() { |
| 492 |
return mLastProcessedBuildDataRole; |
| 493 |
} |
| 494 |
|
| 495 |
cint64 CExpressionDataBoxMapping::getLastProcessedBuildDatatype() { |
| 496 |
return mLastProcessedBuildDatatype; |
| 497 |
} |
| 498 |
|
| 499 |
cint64 CExpressionDataBoxMapping::getLastProcessedBuildDataRange() { |
| 500 |
return mLastProcessedBuildDataRange; |
| 501 |
} |
| 502 |
|
| 503 |
cint64 CExpressionDataBoxMapping::getLastProcessedInverseProperty() { |
| 504 |
return mLastProcessedInverseProperty; |
| 505 |
} |
| 506 |
|
| 507 |
cint64 CExpressionDataBoxMapping::getLastProcessedExpression() { |
| 508 |
return mLastProcessedExpression; |
| 509 |
} |
| 510 |
|
| 511 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedChangedAxiom(cint64 lastBuilded) { |
| 512 |
mLastProcessedChangedAxiom = lastBuilded; |
| 513 |
return this; |
| 514 |
} |
| 515 |
|
| 516 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedBuildIndividual(cint64 lastBuilded) { |
| 517 |
mLastProcessedBuildIndividual = lastBuilded; |
| 518 |
return this; |
| 519 |
} |
| 520 |
|
| 521 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedBuildConcept(cint64 lastBuilded) { |
| 522 |
mLastProcessedBuildConcept = lastBuilded; |
| 523 |
return this; |
| 524 |
} |
| 525 |
|
| 526 |
|
| 527 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedBuildObjectRole(cint64 lastBuilded) { |
| 528 |
mLastProcessedBuildObjectRole = lastBuilded; |
| 529 |
return this; |
| 530 |
} |
| 531 |
|
| 532 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedBuildDataRole(cint64 lastBuilded) { |
| 533 |
mLastProcessedBuildDataRole = lastBuilded; |
| 534 |
return this; |
| 535 |
} |
| 536 |
|
| 537 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedBuildDatatype(cint64 lastBuilded) { |
| 538 |
mLastProcessedBuildDatatype = lastBuilded; |
| 539 |
return this; |
| 540 |
} |
| 541 |
|
| 542 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedBuildDataRange(cint64 lastBuilded) { |
| 543 |
mLastProcessedBuildDataRange = lastBuilded; |
| 544 |
return this; |
| 545 |
} |
| 546 |
|
| 547 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedInverseProperty(cint64 lastBuilded) { |
| 548 |
mLastProcessedInverseProperty = lastBuilded; |
| 549 |
return this; |
| 550 |
} |
| 551 |
|
| 552 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastProcessedExpression(cint64 lastBuilded) { |
| 553 |
mLastProcessedExpression = lastBuilded; |
| 554 |
return this; |
| 555 |
} |
| 556 |
|
| 557 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastBuildedIndividual(cint64 lastBuilded) { |
| 558 |
mLastBuildedIndividual = lastBuilded; |
| 559 |
return this; |
| 560 |
} |
| 561 |
|
| 562 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastBuildedConcept(cint64 lastBuilded) { |
| 563 |
mLastBuildedConcept = lastBuilded; |
| 564 |
return this; |
| 565 |
} |
| 566 |
|
| 567 |
|
| 568 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastBuildedObjectRole(cint64 lastBuilded) { |
| 569 |
mLastBuildedObjectRole = lastBuilded; |
| 570 |
return this; |
| 571 |
} |
| 572 |
|
| 573 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastBuildedDataRole(cint64 lastBuilded) { |
| 574 |
mLastBuildedDataRole = lastBuilded; |
| 575 |
return this; |
| 576 |
} |
| 577 |
|
| 578 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastBuildedDataRange(cint64 lastBuilded) { |
| 579 |
mLastBuildedDataRange = lastBuilded; |
| 580 |
return this; |
| 581 |
} |
| 582 |
|
| 583 |
CExpressionDataBoxMapping* CExpressionDataBoxMapping::setLastBuildedDatatype(cint64 lastBuilded) { |
| 584 |
mLastBuildedDatatype = lastBuilded; |
| 585 |
return this; |
| 586 |
} |
| 587 |
|
| 588 |
CBUILDLIST<CClassTermExpression*>* CExpressionDataBoxMapping::getBuildedConceptList() { |
| 589 |
return mBuildedConceptList; |
| 590 |
} |
| 591 |
|
| 592 |
CBUILDLIST<CObjectPropertyTermExpression*>* CExpressionDataBoxMapping::getBuildedObjectRoleList() { |
| 593 |
return mBuildedObjectRoleList; |
| 594 |
} |
| 595 |
|
| 596 |
CBUILDLIST<CDataPropertyTermExpression*>* CExpressionDataBoxMapping::getBuildedDataRoleList() { |
| 597 |
return mBuildedDataRoleList; |
| 598 |
} |
| 599 |
|
| 600 |
|
| 601 |
CBUILDLIST<CDataRangeTermExpression*>* CExpressionDataBoxMapping::getBuildedDataRangeList() { |
| 602 |
return mBuildedDataRangeList; |
| 603 |
} |
| 604 |
|
| 605 |
CBUILDLIST<CDatatypeExpression*>* CExpressionDataBoxMapping::getBuildedDatatypeList() { |
| 606 |
return mBuildedDatatypeList; |
| 607 |
} |
| 608 |
|
| 609 |
CBUILDLIST<CIndividualTermExpression*>* CExpressionDataBoxMapping::getBuildedIndividualList() { |
| 610 |
return mBuildedIndividualList; |
| 611 |
} |
| 612 |
|
| 613 |
CBUILDHASH<CExpressionHasher,CBuildExpression*>* CExpressionDataBoxMapping::getStructuralExpressionBuildHash() { |
| 614 |
return mExpressionBuildHash; |
| 615 |
} |
| 616 |
|
| 617 |
CBUILDLIST<CBuildExpression*>* CExpressionDataBoxMapping::getExpressionBuildListContainer() { |
| 618 |
return mExpressionBuildListContainer; |
| 619 |
} |
| 620 |
|
| 621 |
CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyTermExpression*>* CExpressionDataBoxMapping::getInverseObjectPropertyHash() { |
| 622 |
return mInverseObjectPropertyHash; |
| 623 |
} |
| 624 |
|
| 625 |
|
| 626 |
}; // end namespace Ontology |
| 627 |
|
| 628 |
}; // end namespace Reasoner |
| 629 |
|
| 630 |
}; // end namespace Konclude |