| 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 "COntologyBuildData.h" |
| 22 |
|
| 23 |
|
| 24 |
namespace Konclude { |
| 25 |
|
| 26 |
namespace Reasoner { |
| 27 |
|
| 28 |
namespace Ontology { |
| 29 |
|
| 30 |
|
| 31 |
COntologyBuildData::COntologyBuildData(COntologyContext* ontoContext) : mExpressionCounter(ontoContext) { |
| 32 |
mOntoContext = ontoContext; |
| 33 |
|
| 34 |
CMemoryAllocationManager* memAllocMan = CContext::getMemoryAllocationManager(mOntoContext); |
| 35 |
mTellAxiomSet = CObjectParameterizingAllocator< CONTOLOGYAXIOMSET<CAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 36 |
mRetractAxiomSet = CObjectParameterizingAllocator< CONTOLOGYAXIOMSET<CAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 37 |
|
| 38 |
mTellUpdatedAxiomSet = CObjectParameterizingAllocator< CONTOLOGYAXIOMSET<CAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 39 |
mRetractUpdatedAxiomSet = CObjectParameterizingAllocator< CONTOLOGYAXIOMSET<CAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 40 |
|
| 41 |
mChangeAxiomList = CObjectParameterizingAllocator< CONTOLOGYAXIOMLIST< QPair<CAxiomExpression*,bool> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 42 |
mChangeUpdatedAxiomList = CObjectParameterizingAllocator< CONTOLOGYAXIOMLIST< QPair<CAxiomExpression*,bool> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 43 |
|
| 44 |
mDeclarationAxiomSet = CObjectParameterizingAllocator< CBUILDSET<CDeclarationAxiomExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 45 |
|
| 46 |
mTopClassExpression = nullptr; |
| 47 |
mBottomClassExpression = nullptr; |
| 48 |
|
| 49 |
mTopDataRangeExpression = nullptr; |
| 50 |
mBottomDataRangeExpression = nullptr; |
| 51 |
|
| 52 |
mTopObjPropExpression = nullptr; |
| 53 |
mBottomObjPropExpression = nullptr; |
| 54 |
|
| 55 |
mTopDataPropExpression = nullptr; |
| 56 |
mBottomDataPropExpression = nullptr; |
| 57 |
|
| 58 |
mExpressionBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CExpressionHasher,CBuildExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 59 |
mClassBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CClassExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 60 |
mObjectPropertyBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CObjectPropertyExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 61 |
mIndividualBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CNamedIndividualExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 62 |
mAnoIndividualBuildHash = CObjectParameterizingAllocator< CBUILDHASH<QPair<CStringRefStringHasher,CStringRefStringHasher>,CAnonymousIndividualExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 63 |
mDatatypeIRIDatatypeBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CDatatypeExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 64 |
mDataPropertyBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CDataPropertyExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 65 |
mDataLexicalValueBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CDataLexicalValueExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 66 |
mFacetIRIFacetBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,CDataFacetExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 67 |
|
| 68 |
mExpressionBuildListContainer = CObjectParameterizingAllocator< CBUILDLIST<CBuildExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 69 |
|
| 70 |
mInverseObjectPropertyHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 71 |
mInverseObjectPropertyList = CObjectParameterizingAllocator< CBUILDLIST< QPair<CObjectPropertyTermExpression*,CObjectPropertyTermExpression*> >,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 72 |
|
| 73 |
mIndividualVariableIDHash = CObjectParameterizingAllocator< CBUILDHASH<CObjectIndividualVariableExpression*,cint64>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 74 |
mNominalIndividualVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<QPair<CStringRefStringHasher,cint64>,CObjectIndividualVariableExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 75 |
|
| 76 |
mBuildConceptSet = CObjectParameterizingAllocator< CBUILDSET<CClassTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 77 |
mBuildObjectRoleSet = CObjectParameterizingAllocator< CBUILDSET<CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 78 |
mBuildIndividualSet = CObjectParameterizingAllocator< CBUILDSET<CIndividualTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 79 |
mBuildDataRoleSet = CObjectParameterizingAllocator< CBUILDSET<CDataPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 80 |
mBuildDatatypeSet = CObjectParameterizingAllocator< CBUILDSET<CDatatypeExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 81 |
mBuildDataRangesSet = CObjectParameterizingAllocator< CBUILDSET<CDataRangeTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 82 |
|
| 83 |
mBuildConceptList = CObjectParameterizingAllocator< CBUILDLIST<CClassTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 84 |
mBuildObjectRoleList = CObjectParameterizingAllocator< CBUILDLIST<CObjectPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 85 |
mBuildIndividualList = CObjectParameterizingAllocator< CBUILDLIST<CIndividualTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 86 |
mBuildDataRoleList = CObjectParameterizingAllocator< CBUILDLIST<CDataPropertyTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 87 |
mBuildDatatypeList = CObjectParameterizingAllocator< CBUILDLIST<CDatatypeExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 88 |
mBuildDataRangesList = CObjectParameterizingAllocator< CBUILDLIST<CDataRangeTermExpression*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 89 |
|
| 90 |
|
| 91 |
mImportDataHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher,COntologyImportData*>,CContext* >::allocateAndConstructAndParameterize(memAllocMan,mOntoContext); |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
mNamedIndividualVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CIndividualVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 96 |
mAnonymousIndividualVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CIndividualVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 97 |
mClassVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CClassVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 98 |
mObjectPropertyVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CObjectPropertyVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 99 |
mDataPropertyVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CDataPropertyVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 100 |
|
| 101 |
mDataValueVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CDataValueVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 102 |
mDataLiteralVariableBuildHash = CObjectParameterizingAllocator< CBUILDHASH<CStringRefStringHasher, CDataLiteralVariableExpression*>, CContext* >::allocateAndConstructAndParameterize(memAllocMan, mOntoContext); |
| 103 |
|
| 104 |
mAxiomNumber = 0; |
| 105 |
mEntityNumber = 0; |
| 106 |
} |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
COntologyBuildData::~COntologyBuildData() { |
| 111 |
CMemoryAllocationManager* memAllocMan = CContext::getMemoryAllocationManager(mOntoContext); |
| 112 |
// TODO: delete all |
| 113 |
//cDeleteAll(*mExpressionBuildListContainer); |
| 114 |
COPADestroyAndRelease(mTellAxiomSet,memAllocMan); |
| 115 |
COPADestroyAndRelease(mRetractAxiomSet,memAllocMan); |
| 116 |
COPADestroyAndRelease(mTellUpdatedAxiomSet,memAllocMan); |
| 117 |
COPADestroyAndRelease(mRetractUpdatedAxiomSet,memAllocMan); |
| 118 |
|
| 119 |
COPADestroyAndRelease(mChangeAxiomList,memAllocMan); |
| 120 |
COPADestroyAndRelease(mChangeUpdatedAxiomList,memAllocMan); |
| 121 |
|
| 122 |
|
| 123 |
COPADestroyAndRelease(mDeclarationAxiomSet,memAllocMan); |
| 124 |
|
| 125 |
COPADestroyAndRelease(mExpressionBuildHash,memAllocMan); |
| 126 |
COPADestroyAndRelease(mClassBuildHash,memAllocMan); |
| 127 |
COPADestroyAndRelease(mObjectPropertyBuildHash,memAllocMan); |
| 128 |
COPADestroyAndRelease(mIndividualBuildHash,memAllocMan); |
| 129 |
COPADestroyAndRelease(mAnoIndividualBuildHash,memAllocMan); |
| 130 |
COPADestroyAndRelease(mDatatypeIRIDatatypeBuildHash,memAllocMan); |
| 131 |
COPADestroyAndRelease(mExpressionBuildListContainer,memAllocMan); |
| 132 |
COPADestroyAndRelease(mDataPropertyBuildHash,memAllocMan); |
| 133 |
COPADestroyAndRelease(mDataLexicalValueBuildHash,memAllocMan); |
| 134 |
COPADestroyAndRelease(mFacetIRIFacetBuildHash,memAllocMan); |
| 135 |
|
| 136 |
COPADestroyAndRelease(mInverseObjectPropertyHash,memAllocMan); |
| 137 |
COPADestroyAndRelease(mInverseObjectPropertyList,memAllocMan); |
| 138 |
COPADestroyAndRelease(mIndividualVariableIDHash,memAllocMan); |
| 139 |
COPADestroyAndRelease(mNominalIndividualVariableBuildHash, memAllocMan); |
| 140 |
COPADestroyAndRelease(mNamedIndividualVariableBuildHash, memAllocMan); |
| 141 |
COPADestroyAndRelease(mAnonymousIndividualVariableBuildHash, memAllocMan); |
| 142 |
COPADestroyAndRelease(mClassVariableBuildHash, memAllocMan); |
| 143 |
COPADestroyAndRelease(mObjectPropertyVariableBuildHash, memAllocMan); |
| 144 |
COPADestroyAndRelease(mDataPropertyVariableBuildHash, memAllocMan); |
| 145 |
|
| 146 |
COPADestroyAndRelease(mBuildConceptSet,memAllocMan); |
| 147 |
COPADestroyAndRelease(mBuildObjectRoleSet,memAllocMan); |
| 148 |
COPADestroyAndRelease(mBuildIndividualSet,memAllocMan); |
| 149 |
COPADestroyAndRelease(mBuildDataRoleSet,memAllocMan); |
| 150 |
COPADestroyAndRelease(mBuildDatatypeSet,memAllocMan); |
| 151 |
COPADestroyAndRelease(mBuildDataRangesSet,memAllocMan); |
| 152 |
COPADestroyAndRelease(mDataValueVariableBuildHash, memAllocMan); |
| 153 |
COPADestroyAndRelease(mDataLiteralVariableBuildHash, memAllocMan); |
| 154 |
|
| 155 |
COPADestroyAndRelease(mBuildConceptList,memAllocMan); |
| 156 |
COPADestroyAndRelease(mBuildObjectRoleList,memAllocMan); |
| 157 |
COPADestroyAndRelease(mBuildDataRoleList,memAllocMan); |
| 158 |
COPADestroyAndRelease(mBuildIndividualList,memAllocMan); |
| 159 |
COPADestroyAndRelease(mBuildDatatypeList,memAllocMan); |
| 160 |
COPADestroyAndRelease(mBuildDataRangesList,memAllocMan); |
| 161 |
|
| 162 |
COPADestroyAndRelease(mImportDataHash,memAllocMan); |
| 163 |
} |
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
COntologyBuildData* COntologyBuildData::referenceBuildData(COntologyBuildData* buildData) { |
| 168 |
*mTellAxiomSet = *buildData->mTellAxiomSet; |
| 169 |
*mRetractAxiomSet = *buildData->mRetractAxiomSet; |
| 170 |
|
| 171 |
mTellUpdatedAxiomSet->clear(); |
| 172 |
mRetractUpdatedAxiomSet->clear(); |
| 173 |
|
| 174 |
*mChangeAxiomList = *buildData->mChangeAxiomList; |
| 175 |
mChangeUpdatedAxiomList->clear(); |
| 176 |
|
| 177 |
//*mTellUpdatedAxiomSet = *buildData->mTellUpdatedAxiomSet; |
| 178 |
//*mRetractUpdatedAxiomSet = *buildData->mRetractUpdatedAxiomSet; |
| 179 |
|
| 180 |
*mDeclarationAxiomSet = *buildData->mDeclarationAxiomSet; |
| 181 |
|
| 182 |
|
| 183 |
mTopClassExpression = buildData->mTopClassExpression; |
| 184 |
mBottomClassExpression = buildData->mBottomClassExpression; |
| 185 |
|
| 186 |
mTopDataRangeExpression = buildData->mTopDataRangeExpression; |
| 187 |
mBottomDataRangeExpression = buildData->mBottomDataRangeExpression; |
| 188 |
|
| 189 |
mTopObjPropExpression = buildData->mTopObjPropExpression; |
| 190 |
mBottomObjPropExpression = buildData->mBottomObjPropExpression; |
| 191 |
|
| 192 |
mTopDataPropExpression = buildData->mTopDataPropExpression; |
| 193 |
mBottomDataPropExpression = buildData->mBottomDataPropExpression; |
| 194 |
|
| 195 |
*mExpressionBuildHash = *buildData->mExpressionBuildHash; |
| 196 |
*mClassBuildHash = *buildData->mClassBuildHash; |
| 197 |
*mObjectPropertyBuildHash = *buildData->mObjectPropertyBuildHash; |
| 198 |
*mIndividualBuildHash = *buildData->mIndividualBuildHash; |
| 199 |
*mAnoIndividualBuildHash = *buildData->mAnoIndividualBuildHash; |
| 200 |
*mDatatypeIRIDatatypeBuildHash = *buildData->mDatatypeIRIDatatypeBuildHash; |
| 201 |
*mDataPropertyBuildHash = *buildData->mDataPropertyBuildHash; |
| 202 |
*mDataLexicalValueBuildHash = *buildData->mDataLexicalValueBuildHash; |
| 203 |
*mFacetIRIFacetBuildHash = *buildData->mFacetIRIFacetBuildHash; |
| 204 |
|
| 205 |
*mExpressionBuildListContainer = *buildData->mExpressionBuildListContainer; |
| 206 |
|
| 207 |
*mInverseObjectPropertyHash = *buildData->mInverseObjectPropertyHash; |
| 208 |
*mInverseObjectPropertyList = *buildData->mInverseObjectPropertyList; |
| 209 |
|
| 210 |
*mIndividualVariableIDHash = *buildData->mIndividualVariableIDHash; |
| 211 |
*mNominalIndividualVariableBuildHash = *buildData->mNominalIndividualVariableBuildHash; |
| 212 |
*mNamedIndividualVariableBuildHash = *buildData->mNamedIndividualVariableBuildHash; |
| 213 |
*mAnonymousIndividualVariableBuildHash = *buildData->mAnonymousIndividualVariableBuildHash; |
| 214 |
*mDataValueVariableBuildHash = *buildData->mDataValueVariableBuildHash; |
| 215 |
*mDataLiteralVariableBuildHash = *buildData->mDataLiteralVariableBuildHash; |
| 216 |
*mClassVariableBuildHash = *buildData->mClassVariableBuildHash; |
| 217 |
*mObjectPropertyVariableBuildHash = *buildData->mObjectPropertyVariableBuildHash; |
| 218 |
*mDataPropertyVariableBuildHash = *buildData->mDataPropertyVariableBuildHash; |
| 219 |
|
| 220 |
*mBuildIndividualList = *buildData->mBuildIndividualList; |
| 221 |
*mBuildConceptList = *buildData->mBuildConceptList; |
| 222 |
*mBuildObjectRoleList = *buildData->mBuildObjectRoleList; |
| 223 |
*mBuildDataRoleList = *buildData->mBuildDataRoleList; |
| 224 |
*mBuildDatatypeList = *buildData->mBuildDatatypeList; |
| 225 |
*mBuildDataRangesList = *buildData->mBuildDataRangesList; |
| 226 |
|
| 227 |
*mImportDataHash = *buildData->mImportDataHash; |
| 228 |
|
| 229 |
mAxiomNumber = buildData->mAxiomNumber; |
| 230 |
mEntityNumber = buildData->mEntityNumber; |
| 231 |
|
| 232 |
mExpressionCounter.referenceBuildExpressionCounter(&buildData->mExpressionCounter); |
| 233 |
|
| 234 |
return this; |
| 235 |
} |
| 236 |
|
| 237 |
|
| 238 |
CBUILDHASH<CStringRefStringHasher,COntologyImportData*>* COntologyBuildData::getImportDataHash() { |
| 239 |
return mImportDataHash; |
| 240 |
} |
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
CONTOLOGYAXIOMSET<CAxiomExpression*>* COntologyBuildData::getTellAxiomSet() { |
| 245 |
return mTellAxiomSet; |
| 246 |
} |
| 247 |
|
| 248 |
CONTOLOGYAXIOMSET<CAxiomExpression*>* COntologyBuildData::getRetractAxiomSet() { |
| 249 |
return mRetractAxiomSet; |
| 250 |
} |
| 251 |
|
| 252 |
CONTOLOGYAXIOMSET<CAxiomExpression*>* COntologyBuildData::getUpdatedTellAxiomSet() { |
| 253 |
return mTellUpdatedAxiomSet; |
| 254 |
} |
| 255 |
|
| 256 |
CONTOLOGYAXIOMSET<CAxiomExpression*>* COntologyBuildData::getUpdatedRetractAxiomSet() { |
| 257 |
return mRetractUpdatedAxiomSet; |
| 258 |
} |
| 259 |
|
| 260 |
CONTOLOGYAXIOMLIST< QPair<CAxiomExpression*,bool> >* COntologyBuildData::getChangeAxiomList() { |
| 261 |
return mChangeAxiomList; |
| 262 |
} |
| 263 |
|
| 264 |
CONTOLOGYAXIOMLIST< QPair<CAxiomExpression*,bool> >* COntologyBuildData::getUpdatedChangeAxiomList() { |
| 265 |
return mChangeUpdatedAxiomList; |
| 266 |
} |
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
CBUILDSET<CDeclarationAxiomExpression*>* COntologyBuildData::getDeclarationAxiomSet() { |
| 272 |
return mDeclarationAxiomSet; |
| 273 |
} |
| 274 |
|
| 275 |
|
| 276 |
CClassTermExpression* COntologyBuildData::getTopClassExpression() { |
| 277 |
return mTopClassExpression; |
| 278 |
} |
| 279 |
|
| 280 |
CClassTermExpression* COntologyBuildData::getBottomClassExpression() { |
| 281 |
return mBottomClassExpression; |
| 282 |
} |
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
CDataRangeTermExpression* COntologyBuildData::getTopDataRangeExpression() { |
| 287 |
return mTopDataRangeExpression; |
| 288 |
} |
| 289 |
|
| 290 |
CDataRangeTermExpression* COntologyBuildData::getBottomDataRangeExpression() { |
| 291 |
return mBottomDataRangeExpression; |
| 292 |
} |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
CObjectPropertyTermExpression* COntologyBuildData::getTopObjectPropertyExpression() { |
| 297 |
return mTopObjPropExpression; |
| 298 |
} |
| 299 |
|
| 300 |
CObjectPropertyTermExpression* COntologyBuildData::getBottomObjectPropertyExpression() { |
| 301 |
return mBottomObjPropExpression; |
| 302 |
} |
| 303 |
|
| 304 |
|
| 305 |
CDataPropertyTermExpression* COntologyBuildData::getTopDataPropertyExpression() { |
| 306 |
return mTopDataPropExpression; |
| 307 |
} |
| 308 |
|
| 309 |
CDataPropertyTermExpression* COntologyBuildData::getBottomDataPropertyExpression() { |
| 310 |
return mBottomDataPropExpression; |
| 311 |
} |
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
COntologyBuildData* COntologyBuildData::setTopClassExpression(CClassTermExpression* topClassExp) { |
| 316 |
mTopClassExpression = topClassExp; |
| 317 |
return this; |
| 318 |
} |
| 319 |
|
| 320 |
COntologyBuildData* COntologyBuildData::setBottomClassExpression(CClassTermExpression* bottomClassExp) { |
| 321 |
mBottomClassExpression = bottomClassExp; |
| 322 |
return this; |
| 323 |
} |
| 324 |
|
| 325 |
|
| 326 |
COntologyBuildData* COntologyBuildData::setTopDataRangeExpression(CDataRangeTermExpression* dataRangeExp) { |
| 327 |
mTopDataRangeExpression = dataRangeExp; |
| 328 |
return this; |
| 329 |
} |
| 330 |
|
| 331 |
COntologyBuildData* COntologyBuildData::setBottomDataRangeExpression(CDataRangeTermExpression* dataRangeExp) { |
| 332 |
mBottomDataRangeExpression = dataRangeExp; |
| 333 |
return this; |
| 334 |
} |
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
COntologyBuildData* COntologyBuildData::setTopObjectPropertyExpression(CObjectPropertyTermExpression* topObjectPropertyExp) { |
| 339 |
mTopObjPropExpression = topObjectPropertyExp; |
| 340 |
return this; |
| 341 |
} |
| 342 |
|
| 343 |
COntologyBuildData* COntologyBuildData::setBottomObjectPropertyExpression(CObjectPropertyTermExpression* bottomObjectPropertyExp) { |
| 344 |
mBottomObjPropExpression = bottomObjectPropertyExp; |
| 345 |
return this; |
| 346 |
} |
| 347 |
|
| 348 |
COntologyBuildData* COntologyBuildData::setTopDataPropertyExpression(CDataPropertyTermExpression* dataPropertyExp) { |
| 349 |
mTopDataPropExpression = dataPropertyExp; |
| 350 |
return this; |
| 351 |
} |
| 352 |
|
| 353 |
COntologyBuildData* COntologyBuildData::setBottomDataPropertyExpression(CDataPropertyTermExpression* dataPropertyExp) { |
| 354 |
mBottomDataPropExpression = dataPropertyExp; |
| 355 |
return this; |
| 356 |
} |
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
CBUILDHASH<CExpressionHasher,CBuildExpression*>* COntologyBuildData::getStructuralExpressionBuildHash() { |
| 362 |
return mExpressionBuildHash; |
| 363 |
} |
| 364 |
|
| 365 |
CBUILDHASH<CStringRefStringHasher,CClassExpression*>* COntologyBuildData::getClassEntityBuildHash() { |
| 366 |
return mClassBuildHash; |
| 367 |
} |
| 368 |
|
| 369 |
CBUILDHASH<CStringRefStringHasher,CObjectPropertyExpression*>* COntologyBuildData::getObjectPropertyEntityBuildHash() { |
| 370 |
return mObjectPropertyBuildHash; |
| 371 |
} |
| 372 |
|
| 373 |
|
| 374 |
CBUILDHASH<CStringRefStringHasher,CDataPropertyExpression*>* COntologyBuildData::getDataPropertyEntityBuildHash() { |
| 375 |
return mDataPropertyBuildHash; |
| 376 |
} |
| 377 |
|
| 378 |
|
| 379 |
CBUILDHASH<CStringRefStringHasher,CDataLexicalValueExpression*>* COntologyBuildData::getDataLexicalValueBuildHash() { |
| 380 |
return mDataLexicalValueBuildHash; |
| 381 |
} |
| 382 |
|
| 383 |
|
| 384 |
CBUILDHASH<CStringRefStringHasher,CNamedIndividualExpression*>* COntologyBuildData::getIndividualEntityBuildHash() { |
| 385 |
return mIndividualBuildHash; |
| 386 |
} |
| 387 |
|
| 388 |
|
| 389 |
CBUILDHASH<QPair<CStringRefStringHasher,CStringRefStringHasher>,CAnonymousIndividualExpression*>* COntologyBuildData::getAnonymousIndividualBuildHash() { |
| 390 |
return mAnoIndividualBuildHash; |
| 391 |
} |
| 392 |
|
| 393 |
|
| 394 |
CBUILDHASH<CStringRefStringHasher,CDatatypeExpression*>* COntologyBuildData::getDatatypeIRIBuildHash() { |
| 395 |
return mDatatypeIRIDatatypeBuildHash; |
| 396 |
} |
| 397 |
|
| 398 |
|
| 399 |
CBUILDHASH<CStringRefStringHasher,CDataFacetExpression*>* COntologyBuildData::getFacetIRIBuildHash() { |
| 400 |
return mFacetIRIFacetBuildHash; |
| 401 |
} |
| 402 |
|
| 403 |
|
| 404 |
CBUILDLIST<CBuildExpression*>* COntologyBuildData::getExpressionBuildListContainer() { |
| 405 |
return mExpressionBuildListContainer; |
| 406 |
} |
| 407 |
|
| 408 |
|
| 409 |
CBUILDHASH<CObjectPropertyTermExpression*,CObjectPropertyTermExpression*>* COntologyBuildData::getInverseObjectPropertyHash() { |
| 410 |
return mInverseObjectPropertyHash; |
| 411 |
} |
| 412 |
|
| 413 |
|
| 414 |
CBUILDLIST< QPair<CObjectPropertyTermExpression*,CObjectPropertyTermExpression*> >* COntologyBuildData::getInverseObjectPropertyList() { |
| 415 |
return mInverseObjectPropertyList; |
| 416 |
} |
| 417 |
|
| 418 |
|
| 419 |
CBUILDHASH<CObjectIndividualVariableExpression*,cint64>* COntologyBuildData::getIndividualVariableIDHash() { |
| 420 |
return mIndividualVariableIDHash; |
| 421 |
} |
| 422 |
|
| 423 |
CBUILDHASH<QPair<CStringRefStringHasher,cint64>,CObjectIndividualVariableExpression*>* COntologyBuildData::getNominalIndividualVariableBuildHash() { |
| 424 |
return mNominalIndividualVariableBuildHash; |
| 425 |
} |
| 426 |
|
| 427 |
|
| 428 |
CBUILDHASH<CStringRefStringHasher, CIndividualVariableExpression*>* COntologyBuildData::getNamedIndividualVariableBuildHash() { |
| 429 |
return mNamedIndividualVariableBuildHash; |
| 430 |
} |
| 431 |
|
| 432 |
|
| 433 |
CBUILDHASH<CStringRefStringHasher, CDataValueVariableExpression*>* COntologyBuildData::getDataValueVariableBuildHash() { |
| 434 |
return mDataValueVariableBuildHash; |
| 435 |
} |
| 436 |
|
| 437 |
|
| 438 |
CBUILDHASH<CStringRefStringHasher, CDataLiteralVariableExpression*>* COntologyBuildData::getDataLiteralVariableBuildHash() { |
| 439 |
return mDataLiteralVariableBuildHash; |
| 440 |
} |
| 441 |
|
| 442 |
CBUILDHASH<CStringRefStringHasher, CIndividualVariableExpression*>* COntologyBuildData::getAnonymousIndividualVariableBuildHash() { |
| 443 |
return mAnonymousIndividualVariableBuildHash; |
| 444 |
} |
| 445 |
|
| 446 |
|
| 447 |
|
| 448 |
CBUILDHASH<CStringRefStringHasher, CClassVariableExpression*>* COntologyBuildData::getClassVariableBuildHash() { |
| 449 |
return mClassVariableBuildHash; |
| 450 |
} |
| 451 |
|
| 452 |
CBUILDHASH<CStringRefStringHasher, CObjectPropertyVariableExpression*>* COntologyBuildData::getObjectPropertyVariableBuildHash() { |
| 453 |
return mObjectPropertyVariableBuildHash; |
| 454 |
} |
| 455 |
|
| 456 |
CBUILDHASH<CStringRefStringHasher, CDataPropertyVariableExpression*>* COntologyBuildData::getDataPropertyVariableBuildHash() { |
| 457 |
return mDataPropertyVariableBuildHash; |
| 458 |
} |
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
CBUILDSET<CClassTermExpression*>* COntologyBuildData::getBuildConceptSet() { |
| 464 |
return mBuildConceptSet; |
| 465 |
} |
| 466 |
|
| 467 |
CBUILDSET<CObjectPropertyTermExpression*>* COntologyBuildData::getBuildObjectRoleSet() { |
| 468 |
return mBuildObjectRoleSet; |
| 469 |
} |
| 470 |
|
| 471 |
CBUILDSET<CDataPropertyTermExpression*>* COntologyBuildData::getBuildDataRoleSet() { |
| 472 |
return mBuildDataRoleSet; |
| 473 |
} |
| 474 |
|
| 475 |
CBUILDSET<CDataRangeTermExpression*>* COntologyBuildData::getBuildDataRangeSet() { |
| 476 |
return mBuildDataRangesSet; |
| 477 |
} |
| 478 |
|
| 479 |
CBUILDSET<CDatatypeExpression*>* COntologyBuildData::getBuildDatatypeSet() { |
| 480 |
return mBuildDatatypeSet; |
| 481 |
} |
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
CBUILDSET<CIndividualTermExpression*>* COntologyBuildData::getBuildIndividualSet() { |
| 488 |
return mBuildIndividualSet; |
| 489 |
} |
| 490 |
|
| 491 |
|
| 492 |
CBUILDLIST<CClassTermExpression*>* COntologyBuildData::getBuildConceptList() { |
| 493 |
return mBuildConceptList; |
| 494 |
} |
| 495 |
|
| 496 |
CBUILDLIST<CObjectPropertyTermExpression*>* COntologyBuildData::getBuildObjectRoleList() { |
| 497 |
return mBuildObjectRoleList; |
| 498 |
} |
| 499 |
|
| 500 |
CBUILDLIST<CDataPropertyTermExpression*>* COntologyBuildData::getBuildDataRoleList() { |
| 501 |
return mBuildDataRoleList; |
| 502 |
} |
| 503 |
|
| 504 |
CBUILDLIST<CIndividualTermExpression*>* COntologyBuildData::getBuildIndividualList() { |
| 505 |
return mBuildIndividualList; |
| 506 |
} |
| 507 |
|
| 508 |
CBUILDLIST<CDataRangeTermExpression*>* COntologyBuildData::getBuildDataRangeList() { |
| 509 |
return mBuildDataRangesList; |
| 510 |
} |
| 511 |
|
| 512 |
CBUILDLIST<CDatatypeExpression*>* COntologyBuildData::getBuildDatatypeList() { |
| 513 |
return mBuildDatatypeList; |
| 514 |
} |
| 515 |
|
| 516 |
cint64 COntologyBuildData::getNextAxiomNumber(bool moveNext) { |
| 517 |
cint64 nextNumber = mAxiomNumber; |
| 518 |
if (moveNext) { |
| 519 |
++mAxiomNumber; |
| 520 |
} |
| 521 |
return nextNumber; |
| 522 |
} |
| 523 |
|
| 524 |
COntologyBuildData* COntologyBuildData::setNextAxiomNumber(cint64 axiomNumber) { |
| 525 |
mAxiomNumber = axiomNumber; |
| 526 |
return this; |
| 527 |
} |
| 528 |
|
| 529 |
|
| 530 |
cint64 COntologyBuildData::getNextEntityNumber(bool moveNext) { |
| 531 |
cint64 nextNumber = mEntityNumber; |
| 532 |
if (moveNext) { |
| 533 |
++mEntityNumber; |
| 534 |
} |
| 535 |
return nextNumber; |
| 536 |
} |
| 537 |
|
| 538 |
COntologyBuildData* COntologyBuildData::setNextEntityNumber(cint64 entityNumber) { |
| 539 |
mEntityNumber = entityNumber; |
| 540 |
return this; |
| 541 |
} |
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
COntologyBuildExpressionCounter* COntologyBuildData::getBuildExpressionCounter() { |
| 546 |
return &mExpressionCounter; |
| 547 |
} |
| 548 |
|
| 549 |
|
| 550 |
}; // end namespace Ontology |
| 551 |
|
| 552 |
}; // end namespace Reasoner |
| 553 |
|
| 554 |
}; // end namespace Konclude |