| 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 "COntologyStructureSummary.h" |
| 22 |
|
| 23 |
|
| 24 |
namespace Konclude { |
| 25 |
|
| 26 |
namespace Reasoner { |
| 27 |
|
| 28 |
namespace Ontology { |
| 29 |
|
| 30 |
|
| 31 |
COntologyStructureSummary::COntologyStructureSummary(COntologyContext* ontologyContext) { |
| 32 |
clear(); |
| 33 |
} |
| 34 |
|
| 35 |
|
| 36 |
COntologyStructureSummary::~COntologyStructureSummary() { |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
COntologyStructureSummary *COntologyStructureSummary::clear() { |
| 41 |
mConClassCount = 0; |
| 42 |
mConCount = 0; |
| 43 |
mRoleObPropCount = 0; |
| 44 |
mDataPropCount = 0; |
| 45 |
mConGCICount = 0; |
| 46 |
|
| 47 |
mConIntersectionCount = 0; |
| 48 |
mConUnionCount = 0; |
| 49 |
mConNegCount = 0; |
| 50 |
mConSomeCount = 0; |
| 51 |
mConOnlyCount = 0; |
| 52 |
mConAtmostCount = 0; |
| 53 |
mConAtleastCount = 0; |
| 54 |
mConQualAtmostCount = 0; |
| 55 |
mConQualAtleastCount = 0; |
| 56 |
mConNonqualAtmostCount = 0; |
| 57 |
mConNonqualAtleastCount = 0; |
| 58 |
mConSubclassCount = 0; |
| 59 |
mConEquivalenceCount = 0; |
| 60 |
|
| 61 |
mConPrimCount = 0; |
| 62 |
mConCompCount = 0; |
| 63 |
mPrimClassCount = 0; |
| 64 |
mCompClassCount = 0; |
| 65 |
|
| 66 |
|
| 67 |
mConFuncAtmostCount = 0; |
| 68 |
mConValueCount = 0; |
| 69 |
mConNominalIndividualCount = 0; |
| 70 |
mConSelfCount = 0; |
| 71 |
mConAutChooceCount = 0; |
| 72 |
mConAutStateCount = 0; |
| 73 |
mConAutTransCount = 0; |
| 74 |
|
| 75 |
|
| 76 |
mRoleInvCount = 0; |
| 77 |
mRoleEqCount = 0; |
| 78 |
mRoleDisjCount = 0; |
| 79 |
mRoleRangeConCount = 0; |
| 80 |
mRoleDomainConCount = 0; |
| 81 |
mRoleAsymmetricCount = 0; |
| 82 |
mRoleSymmetricCount = 0; |
| 83 |
mRoleFuncCount = 0; |
| 84 |
mRoleInvFuncCount = 0; |
| 85 |
mRoleTransCount = 0; |
| 86 |
mRoleRefCount = 0; |
| 87 |
mRoleIrrefCount = 0; |
| 88 |
|
| 89 |
mNegDisOccurrence = false; |
| 90 |
mCardOccurrence = false; |
| 91 |
mExistOccurrence = false; |
| 92 |
mQualCardOccurrence = false; |
| 93 |
mFunctionalityOccurrence = false; |
| 94 |
mTransitivityOccurrence = false; |
| 95 |
mRoleHierarchyOccurrence = false; |
| 96 |
mComplexSubRoleOccurrence = false; |
| 97 |
mUniversalRoleOccurrence = false; |
| 98 |
mInverseOccurrence = false; |
| 99 |
mNominalIndividualOccurrence = false; |
| 100 |
mNominalOccurrence = false; |
| 101 |
mGroundingOccurrence = false; |
| 102 |
mDatatypeOccurrence = false; |
| 103 |
|
| 104 |
mExpressStringCalc = false; |
| 105 |
mAllClassesDeterministic = false; |
| 106 |
mAllClassesEL = false; |
| 107 |
|
| 108 |
return this; |
| 109 |
} |
| 110 |
|
| 111 |
|
| 112 |
COntologyStructureSummary* COntologyStructureSummary::referenceStructureSummary(COntologyStructureSummary* structureSummary) { |
| 113 |
clear(); |
| 114 |
mAllClassesDeterministic = structureSummary->mAllClassesDeterministic; |
| 115 |
mAllClassesEL = structureSummary->mAllClassesEL; |
| 116 |
|
| 117 |
mConClassCount = structureSummary->mConClassCount; |
| 118 |
mConCount = structureSummary->mConCount; |
| 119 |
mRoleObPropCount = structureSummary->mRoleObPropCount; |
| 120 |
mDataPropCount = structureSummary->mDataPropCount; |
| 121 |
mConGCICount = structureSummary->mConGCICount; |
| 122 |
|
| 123 |
mConIntersectionCount = structureSummary->mConIntersectionCount; |
| 124 |
mConUnionCount = structureSummary->mConUnionCount; |
| 125 |
mConNegCount = structureSummary->mConNegCount; |
| 126 |
mConSomeCount = structureSummary->mConSomeCount; |
| 127 |
mConOnlyCount = structureSummary->mConOnlyCount; |
| 128 |
mConAtmostCount = structureSummary->mConAtmostCount; |
| 129 |
mConAtleastCount = structureSummary->mConAtleastCount; |
| 130 |
mConQualAtmostCount = structureSummary->mConQualAtmostCount; |
| 131 |
mConQualAtleastCount = structureSummary->mConQualAtleastCount; |
| 132 |
mConNonqualAtmostCount = structureSummary->mConNonqualAtmostCount; |
| 133 |
mConNonqualAtleastCount = structureSummary->mConNonqualAtleastCount; |
| 134 |
mConSubclassCount = structureSummary->mConSubclassCount; |
| 135 |
mConEquivalenceCount = structureSummary->mConEquivalenceCount; |
| 136 |
|
| 137 |
mConPrimCount = structureSummary->mConPrimCount; |
| 138 |
mConCompCount = structureSummary->mConCompCount; |
| 139 |
mPrimClassCount = structureSummary->mPrimClassCount; |
| 140 |
mCompClassCount = structureSummary->mCompClassCount; |
| 141 |
|
| 142 |
|
| 143 |
mConFuncAtmostCount = structureSummary->mConFuncAtmostCount; |
| 144 |
mConValueCount = structureSummary->mConValueCount; |
| 145 |
mConNominalIndividualCount = structureSummary->mConNominalIndividualCount; |
| 146 |
mConSelfCount = structureSummary->mConSelfCount; |
| 147 |
mConAutChooceCount = structureSummary->mConAutChooceCount; |
| 148 |
mConAutStateCount = structureSummary->mConAutStateCount; |
| 149 |
mConAutTransCount = structureSummary->mConAutTransCount; |
| 150 |
|
| 151 |
|
| 152 |
mRoleInvCount = structureSummary->mRoleInvCount; |
| 153 |
mRoleEqCount = structureSummary->mRoleEqCount; |
| 154 |
mRoleDisjCount = structureSummary->mRoleDisjCount; |
| 155 |
mRoleRangeConCount = structureSummary->mRoleRangeConCount; |
| 156 |
mRoleDomainConCount = structureSummary->mRoleDomainConCount; |
| 157 |
mRoleAsymmetricCount = structureSummary->mRoleAsymmetricCount; |
| 158 |
mRoleSymmetricCount = structureSummary->mRoleSymmetricCount; |
| 159 |
mRoleFuncCount = structureSummary->mRoleFuncCount; |
| 160 |
mRoleInvFuncCount = structureSummary->mRoleInvFuncCount; |
| 161 |
mRoleTransCount = structureSummary->mRoleTransCount; |
| 162 |
mRoleRefCount = structureSummary->mRoleRefCount; |
| 163 |
mRoleIrrefCount = structureSummary->mRoleIrrefCount; |
| 164 |
|
| 165 |
mNegDisOccurrence = structureSummary->mNegDisOccurrence; |
| 166 |
mCardOccurrence = structureSummary->mCardOccurrence; |
| 167 |
mExistOccurrence = structureSummary->mExistOccurrence; |
| 168 |
mQualCardOccurrence = structureSummary->mQualCardOccurrence; |
| 169 |
mFunctionalityOccurrence = structureSummary->mFunctionalityOccurrence; |
| 170 |
mTransitivityOccurrence = structureSummary->mTransitivityOccurrence; |
| 171 |
mRoleHierarchyOccurrence = structureSummary->mRoleHierarchyOccurrence; |
| 172 |
mComplexSubRoleOccurrence = structureSummary->mComplexSubRoleOccurrence; |
| 173 |
mUniversalRoleOccurrence = structureSummary->mUniversalRoleOccurrence; |
| 174 |
mInverseOccurrence = structureSummary->mInverseOccurrence; |
| 175 |
mNominalIndividualOccurrence = structureSummary->mNominalIndividualOccurrence; |
| 176 |
mNominalOccurrence = structureSummary->mNominalOccurrence; |
| 177 |
mGroundingOccurrence = structureSummary->mGroundingOccurrence; |
| 178 |
mDatatypeOccurrence = structureSummary->mDatatypeOccurrence; |
| 179 |
|
| 180 |
return this; |
| 181 |
} |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
bool COntologyStructureSummary::hasOnlyDeterministicConceptClasses() { |
| 186 |
return mAllClassesDeterministic; |
| 187 |
} |
| 188 |
|
| 189 |
COntologyStructureSummary* COntologyStructureSummary::setOnlyDeterministicConceptClasses(bool allClassesDeterministic) { |
| 190 |
mAllClassesDeterministic = allClassesDeterministic; |
| 191 |
return this; |
| 192 |
} |
| 193 |
|
| 194 |
bool COntologyStructureSummary::hasOnlyELConceptClasses() { |
| 195 |
return mAllClassesEL; |
| 196 |
} |
| 197 |
|
| 198 |
COntologyStructureSummary* COntologyStructureSummary::setOnlyELConceptClasses(bool allClassesEL) { |
| 199 |
mAllClassesEL = allClassesEL; |
| 200 |
return this; |
| 201 |
} |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
QString COntologyStructureSummary::getExpressivenessString() { |
| 206 |
if (!mExpressStringCalc) { |
| 207 |
calculateExpressiveness(); |
| 208 |
} |
| 209 |
return expressString; |
| 210 |
} |
| 211 |
|
| 212 |
|
| 213 |
COntologyStructureSummary *COntologyStructureSummary::calculateExpressiveness() { |
| 214 |
QString appendString; |
| 215 |
expressString.clear(); |
| 216 |
expressString = "AL"; |
| 217 |
if (hasNegationDisjunctionsOccurrence()) { |
| 218 |
expressString = "ALC"; |
| 219 |
} else if (hasExistensialOccurrence()) { |
| 220 |
expressString = "ALE"; |
| 221 |
} |
| 222 |
if (hasTransitivityOccurrence()) { |
| 223 |
appendString = "+"; |
| 224 |
} |
| 225 |
if (expressString == "ALC" && appendString.contains("+")) { |
| 226 |
expressString = "S"; |
| 227 |
appendString = appendString.replace("+",""); |
| 228 |
} |
| 229 |
|
| 230 |
if (hasComplexSubRoleOccurrence()) { |
| 231 |
expressString = "SR"; |
| 232 |
} else if (hasRoleHierarchyOccurrence()) { |
| 233 |
expressString += "H"; |
| 234 |
} |
| 235 |
|
| 236 |
if (hasNominalOccurrence()) { |
| 237 |
expressString += "O"; |
| 238 |
} |
| 239 |
if (hasInverseOccurrence()) { |
| 240 |
expressString += "I"; |
| 241 |
} |
| 242 |
|
| 243 |
if (hasQualifiedCardinalityOccurrence()) { |
| 244 |
expressString += "Q"; |
| 245 |
} else if (hasCardinalityOccurrence()) { |
| 246 |
expressString += "N"; |
| 247 |
} else if (hasFunctionalityOccurrence()) { |
| 248 |
expressString += "F"; |
| 249 |
} |
| 250 |
|
| 251 |
if (hasGroundingOccurrence()) { |
| 252 |
expressString += "V"; |
| 253 |
} |
| 254 |
|
| 255 |
if (hasDatatypeOccurrence()) { |
| 256 |
expressString += "(D)"; |
| 257 |
} |
| 258 |
|
| 259 |
expressString += appendString; |
| 260 |
|
| 261 |
mExpressStringCalc = true; |
| 262 |
return this; |
| 263 |
} |
| 264 |
|
| 265 |
|
| 266 |
COntologyStructureSummary *COntologyStructureSummary::incClassCount(qint64 incCount) { |
| 267 |
mConClassCount += incCount; |
| 268 |
return this; |
| 269 |
} |
| 270 |
|
| 271 |
COntologyStructureSummary *COntologyStructureSummary::incConceptCount(qint64 incCount) { |
| 272 |
mConCount += incCount; |
| 273 |
return this; |
| 274 |
} |
| 275 |
|
| 276 |
COntologyStructureSummary *COntologyStructureSummary::incObjectPropertyCount(qint64 incCount) { |
| 277 |
mRoleObPropCount += incCount; |
| 278 |
return this; |
| 279 |
} |
| 280 |
|
| 281 |
COntologyStructureSummary *COntologyStructureSummary::incDataPropertyCount(qint64 incCount) { |
| 282 |
mDataPropCount += incCount; |
| 283 |
return this; |
| 284 |
} |
| 285 |
|
| 286 |
COntologyStructureSummary *COntologyStructureSummary::incGCICount(qint64 incCount) { |
| 287 |
mConGCICount += incCount; |
| 288 |
return this; |
| 289 |
} |
| 290 |
|
| 291 |
COntologyStructureSummary *COntologyStructureSummary::incConceptIntersectionCount(qint64 incCount) { |
| 292 |
mConIntersectionCount += incCount; |
| 293 |
return this; |
| 294 |
} |
| 295 |
|
| 296 |
COntologyStructureSummary *COntologyStructureSummary::incConceptUnionCount(qint64 incCount) { |
| 297 |
mConUnionCount += incCount; |
| 298 |
return this; |
| 299 |
} |
| 300 |
|
| 301 |
COntologyStructureSummary *COntologyStructureSummary::incConceptNegCount(qint64 incCount) { |
| 302 |
mConNegCount += incCount; |
| 303 |
return this; |
| 304 |
} |
| 305 |
|
| 306 |
COntologyStructureSummary *COntologyStructureSummary::incConceptSomeCount(qint64 incCount) { |
| 307 |
mConSomeCount += incCount; |
| 308 |
return this; |
| 309 |
} |
| 310 |
|
| 311 |
COntologyStructureSummary *COntologyStructureSummary::incConceptOnlyCount(qint64 incCount) { |
| 312 |
mConOnlyCount += incCount; |
| 313 |
return this; |
| 314 |
} |
| 315 |
|
| 316 |
COntologyStructureSummary *COntologyStructureSummary::incConceptAtmostCount(qint64 incCount) { |
| 317 |
mConAtmostCount += incCount; |
| 318 |
return this; |
| 319 |
} |
| 320 |
|
| 321 |
COntologyStructureSummary *COntologyStructureSummary::incConceptAtleastCount(qint64 incCount) { |
| 322 |
mConAtleastCount += incCount; |
| 323 |
return this; |
| 324 |
} |
| 325 |
|
| 326 |
COntologyStructureSummary *COntologyStructureSummary::incConceptQualifiedAtleastCount(qint64 incCount) { |
| 327 |
mConQualAtleastCount += incCount; |
| 328 |
return this; |
| 329 |
} |
| 330 |
|
| 331 |
COntologyStructureSummary *COntologyStructureSummary::incConceptQualifiedAtmostCount(qint64 incCount) { |
| 332 |
mConQualAtmostCount += incCount; |
| 333 |
return this; |
| 334 |
} |
| 335 |
|
| 336 |
COntologyStructureSummary *COntologyStructureSummary::incConceptNotQualifiedAtleastCount(qint64 incCount) { |
| 337 |
mConNonqualAtleastCount += incCount; |
| 338 |
return this; |
| 339 |
} |
| 340 |
|
| 341 |
COntologyStructureSummary *COntologyStructureSummary::incConceptNotQualifiedAtmostCount(qint64 incCount) { |
| 342 |
mConNonqualAtmostCount += incCount; |
| 343 |
return this; |
| 344 |
} |
| 345 |
|
| 346 |
COntologyStructureSummary *COntologyStructureSummary::incConceptEquivalenceCount(qint64 incCount) { |
| 347 |
mConEquivalenceCount += incCount; |
| 348 |
return this; |
| 349 |
} |
| 350 |
|
| 351 |
COntologyStructureSummary *COntologyStructureSummary::incConceptSubclassCount(qint64 incCount) { |
| 352 |
mConSubclassCount += incCount; |
| 353 |
return this; |
| 354 |
} |
| 355 |
|
| 356 |
|
| 357 |
COntologyStructureSummary *COntologyStructureSummary::incPrimitiveConceptCount(qint64 incCount) { |
| 358 |
mConPrimCount += incCount; |
| 359 |
return this; |
| 360 |
} |
| 361 |
|
| 362 |
COntologyStructureSummary *COntologyStructureSummary::incComplexConceptCount(qint64 incCount) { |
| 363 |
mConCompCount += incCount; |
| 364 |
return this; |
| 365 |
} |
| 366 |
|
| 367 |
COntologyStructureSummary *COntologyStructureSummary::incAtomicClassCount(qint64 incCount) { |
| 368 |
mPrimClassCount += incCount; |
| 369 |
return this; |
| 370 |
} |
| 371 |
|
| 372 |
COntologyStructureSummary *COntologyStructureSummary::incComplexClassCount(qint64 incCount) { |
| 373 |
mCompClassCount += incCount; |
| 374 |
return this; |
| 375 |
} |
| 376 |
|
| 377 |
|
| 378 |
COntologyStructureSummary *COntologyStructureSummary::incRoleInverseCount(qint64 incCount) { |
| 379 |
mRoleInvCount += incCount; |
| 380 |
return this; |
| 381 |
} |
| 382 |
|
| 383 |
COntologyStructureSummary *COntologyStructureSummary::incRoleEquivalenceCount(qint64 incCount) { |
| 384 |
mRoleEqCount += incCount; |
| 385 |
return this; |
| 386 |
} |
| 387 |
|
| 388 |
COntologyStructureSummary *COntologyStructureSummary::incRoleDisjointCount(qint64 incCount) { |
| 389 |
mRoleDisjCount += incCount; |
| 390 |
return this; |
| 391 |
} |
| 392 |
|
| 393 |
COntologyStructureSummary *COntologyStructureSummary::incRoleRangeConceptCount(qint64 incCount) { |
| 394 |
mRoleRangeConCount += incCount; |
| 395 |
return this; |
| 396 |
} |
| 397 |
|
| 398 |
COntologyStructureSummary *COntologyStructureSummary::incRoleDomainConceptCount(qint64 incCount) { |
| 399 |
mRoleDomainConCount += incCount; |
| 400 |
return this; |
| 401 |
} |
| 402 |
|
| 403 |
COntologyStructureSummary *COntologyStructureSummary::incRoleAsymmetricCount(qint64 incCount) { |
| 404 |
mRoleAsymmetricCount += incCount; |
| 405 |
return this; |
| 406 |
} |
| 407 |
|
| 408 |
COntologyStructureSummary *COntologyStructureSummary::incRoleSymmetricCount(qint64 incCount) { |
| 409 |
mRoleSymmetricCount += incCount; |
| 410 |
return this; |
| 411 |
} |
| 412 |
|
| 413 |
COntologyStructureSummary *COntologyStructureSummary::incRoleFunctionalCount(qint64 incCount) { |
| 414 |
mRoleFuncCount += incCount; |
| 415 |
return this; |
| 416 |
} |
| 417 |
|
| 418 |
COntologyStructureSummary *COntologyStructureSummary::incRoleInverseFunctionalCount(qint64 incCount) { |
| 419 |
mRoleInvFuncCount += incCount; |
| 420 |
return this; |
| 421 |
} |
| 422 |
|
| 423 |
COntologyStructureSummary *COntologyStructureSummary::incRoleTransetivCount(qint64 incCount) { |
| 424 |
mRoleTransCount += incCount; |
| 425 |
return this; |
| 426 |
} |
| 427 |
|
| 428 |
COntologyStructureSummary *COntologyStructureSummary::incRoleReflexivityCount(qint64 incCount) { |
| 429 |
mRoleRefCount += incCount; |
| 430 |
return this; |
| 431 |
} |
| 432 |
|
| 433 |
COntologyStructureSummary *COntologyStructureSummary::incRoleIrreflexivityCount(qint64 incCount) { |
| 434 |
mRoleIrrefCount += incCount; |
| 435 |
return this; |
| 436 |
} |
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
COntologyStructureSummary *COntologyStructureSummary::incConceptFunctionalAtmostCount(qint64 incCount) { |
| 441 |
mConFuncAtmostCount += incCount; |
| 442 |
return this; |
| 443 |
} |
| 444 |
|
| 445 |
COntologyStructureSummary *COntologyStructureSummary::incConceptValueCount(qint64 incCount) { |
| 446 |
mConValueCount += incCount; |
| 447 |
return this; |
| 448 |
} |
| 449 |
|
| 450 |
COntologyStructureSummary *COntologyStructureSummary::incConceptNominalIndividualCount(qint64 incCount) { |
| 451 |
mConNominalIndividualCount += incCount; |
| 452 |
return this; |
| 453 |
} |
| 454 |
|
| 455 |
COntologyStructureSummary *COntologyStructureSummary::incConceptSelfCount(qint64 incCount) { |
| 456 |
mConSelfCount += incCount; |
| 457 |
return this; |
| 458 |
} |
| 459 |
|
| 460 |
COntologyStructureSummary *COntologyStructureSummary::incConceptAutomateChooseCount(qint64 incCount) { |
| 461 |
mConAutChooceCount += incCount; |
| 462 |
return this; |
| 463 |
} |
| 464 |
|
| 465 |
COntologyStructureSummary *COntologyStructureSummary::incConceptAutomateStateCount(qint64 incCount) { |
| 466 |
mConAutStateCount += incCount; |
| 467 |
return this; |
| 468 |
} |
| 469 |
|
| 470 |
COntologyStructureSummary *COntologyStructureSummary::incConceptAutomateTransitiveCount(qint64 incCount) { |
| 471 |
mConAutTransCount += incCount; |
| 472 |
return this; |
| 473 |
} |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
qint64 COntologyStructureSummary::getClassCount() { |
| 478 |
return mConClassCount; |
| 479 |
} |
| 480 |
|
| 481 |
qint64 COntologyStructureSummary::getConceptCount() { |
| 482 |
return mConCount; |
| 483 |
} |
| 484 |
|
| 485 |
qint64 COntologyStructureSummary::getObjectPropertyCount() { |
| 486 |
return mRoleObPropCount; |
| 487 |
} |
| 488 |
|
| 489 |
qint64 COntologyStructureSummary::getDataPropertyCount() { |
| 490 |
return mDataPropCount; |
| 491 |
} |
| 492 |
|
| 493 |
qint64 COntologyStructureSummary::getGCICount() { |
| 494 |
return mConGCICount; |
| 495 |
} |
| 496 |
|
| 497 |
|
| 498 |
qint64 COntologyStructureSummary::getConceptIntersectionCount() { |
| 499 |
return mConIntersectionCount; |
| 500 |
} |
| 501 |
|
| 502 |
qint64 COntologyStructureSummary::getConceptUnionCount() { |
| 503 |
return mConUnionCount; |
| 504 |
} |
| 505 |
|
| 506 |
qint64 COntologyStructureSummary::getConceptNotCount() { |
| 507 |
return mConNegCount; |
| 508 |
} |
| 509 |
|
| 510 |
qint64 COntologyStructureSummary::getConceptSomeCount() { |
| 511 |
return mConSomeCount; |
| 512 |
} |
| 513 |
|
| 514 |
qint64 COntologyStructureSummary::getConceptOnlyCount() { |
| 515 |
return mConOnlyCount; |
| 516 |
} |
| 517 |
|
| 518 |
qint64 COntologyStructureSummary::getConceptAtmostCount() { |
| 519 |
return mConAtmostCount; |
| 520 |
} |
| 521 |
|
| 522 |
qint64 COntologyStructureSummary::getConceptAtleastCount() { |
| 523 |
return mConAtleastCount; |
| 524 |
} |
| 525 |
|
| 526 |
qint64 COntologyStructureSummary::getConceptQualifiedAtleastCount() { |
| 527 |
return mConQualAtleastCount; |
| 528 |
} |
| 529 |
|
| 530 |
qint64 COntologyStructureSummary::getConceptQualifiedAtmostCount() { |
| 531 |
return mConQualAtmostCount; |
| 532 |
} |
| 533 |
|
| 534 |
qint64 COntologyStructureSummary::getConceptNotQualifiedAtleastCount() { |
| 535 |
return mConNonqualAtleastCount; |
| 536 |
} |
| 537 |
|
| 538 |
qint64 COntologyStructureSummary::getConceptNotQualifiedAtmostCount() { |
| 539 |
return mConNonqualAtmostCount; |
| 540 |
} |
| 541 |
|
| 542 |
qint64 COntologyStructureSummary::getConceptEquivalenceCount() { |
| 543 |
return mConEquivalenceCount; |
| 544 |
} |
| 545 |
|
| 546 |
qint64 COntologyStructureSummary::getConceptSubclassCount() { |
| 547 |
return mConSubclassCount; |
| 548 |
} |
| 549 |
|
| 550 |
|
| 551 |
bool COntologyStructureSummary::hasConceptIntersections() { |
| 552 |
return mConIntersectionCount > 0; |
| 553 |
} |
| 554 |
|
| 555 |
bool COntologyStructureSummary::hasConceptUnions() { |
| 556 |
return mConUnionCount > 0; |
| 557 |
} |
| 558 |
|
| 559 |
bool COntologyStructureSummary::hasConceptNots() { |
| 560 |
return mConNegCount > 0; |
| 561 |
} |
| 562 |
|
| 563 |
bool COntologyStructureSummary::hasConceptSomes() { |
| 564 |
return mConSomeCount > 0; |
| 565 |
} |
| 566 |
|
| 567 |
bool COntologyStructureSummary::hasConceptOnlys() { |
| 568 |
return mConOnlyCount > 0; |
| 569 |
} |
| 570 |
|
| 571 |
bool COntologyStructureSummary::hasConceptAtmosts() { |
| 572 |
return mConAtmostCount > 0; |
| 573 |
} |
| 574 |
|
| 575 |
bool COntologyStructureSummary::hasConceptAtleasts() { |
| 576 |
return mConAtleastCount > 0; |
| 577 |
} |
| 578 |
|
| 579 |
bool COntologyStructureSummary::hasConceptQualifiedAtleasts() { |
| 580 |
return mConQualAtleastCount > 0; |
| 581 |
} |
| 582 |
|
| 583 |
bool COntologyStructureSummary::hasConceptQualifiedAtmosts() { |
| 584 |
return mConQualAtmostCount > 0; |
| 585 |
} |
| 586 |
|
| 587 |
bool COntologyStructureSummary::hasConceptNotQualifiedAtleasts() { |
| 588 |
return mConNonqualAtleastCount > 0; |
| 589 |
} |
| 590 |
|
| 591 |
bool COntologyStructureSummary::hasConceptNotQualifiedAtmosts() { |
| 592 |
return mConNonqualAtmostCount > 0; |
| 593 |
} |
| 594 |
|
| 595 |
bool COntologyStructureSummary::hasConceptEquivalences() { |
| 596 |
return mConEquivalenceCount > 0; |
| 597 |
} |
| 598 |
|
| 599 |
bool COntologyStructureSummary::hasConceptSubclasses() { |
| 600 |
return mConSubclassCount > 0; |
| 601 |
} |
| 602 |
|
| 603 |
|
| 604 |
qint64 COntologyStructureSummary::getPrimitiveConceptCount() { |
| 605 |
return mConPrimCount; |
| 606 |
} |
| 607 |
|
| 608 |
qint64 COntologyStructureSummary::getComplexConceptCount() { |
| 609 |
return mConCompCount; |
| 610 |
} |
| 611 |
|
| 612 |
qint64 COntologyStructureSummary::getAtomicClassCount() { |
| 613 |
return mPrimClassCount; |
| 614 |
} |
| 615 |
|
| 616 |
qint64 COntologyStructureSummary::getComplexClassCount() { |
| 617 |
return mCompClassCount; |
| 618 |
} |
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
qint64 COntologyStructureSummary::getRoleInverseCount() { |
| 623 |
return mRoleInvCount; |
| 624 |
} |
| 625 |
|
| 626 |
qint64 COntologyStructureSummary::getRoleEquivalenceCount() { |
| 627 |
return mRoleEqCount; |
| 628 |
} |
| 629 |
|
| 630 |
qint64 COntologyStructureSummary::getRoleDisjointCount() { |
| 631 |
return mRoleDisjCount; |
| 632 |
} |
| 633 |
|
| 634 |
qint64 COntologyStructureSummary::getRoleRangeConceptCount() { |
| 635 |
return mRoleRangeConCount; |
| 636 |
} |
| 637 |
|
| 638 |
qint64 COntologyStructureSummary::getRoleDomainConceptCount() { |
| 639 |
return mRoleDomainConCount; |
| 640 |
} |
| 641 |
|
| 642 |
qint64 COntologyStructureSummary::getRoleAsymmetricCount() { |
| 643 |
return mRoleAsymmetricCount; |
| 644 |
} |
| 645 |
|
| 646 |
qint64 COntologyStructureSummary::getRoleSymmetricCount() { |
| 647 |
return mRoleSymmetricCount; |
| 648 |
} |
| 649 |
|
| 650 |
qint64 COntologyStructureSummary::getRoleFunctionalCount() { |
| 651 |
return mRoleFuncCount; |
| 652 |
} |
| 653 |
|
| 654 |
qint64 COntologyStructureSummary::getRoleInverseFunctionalCount() { |
| 655 |
return mRoleInvFuncCount; |
| 656 |
} |
| 657 |
|
| 658 |
qint64 COntologyStructureSummary::getRoleTransetivCount() { |
| 659 |
return mRoleTransCount; |
| 660 |
} |
| 661 |
|
| 662 |
qint64 COntologyStructureSummary::getRoleReflexivityCount() { |
| 663 |
return mRoleRefCount; |
| 664 |
} |
| 665 |
|
| 666 |
qint64 COntologyStructureSummary::getRoleIrreflexivityCount() { |
| 667 |
return mRoleIrrefCount; |
| 668 |
} |
| 669 |
|
| 670 |
|
| 671 |
qint64 COntologyStructureSummary::getConceptFunctionalAtmostCount() { |
| 672 |
return mConFuncAtmostCount; |
| 673 |
} |
| 674 |
|
| 675 |
qint64 COntologyStructureSummary::getConceptValueCount() { |
| 676 |
return mConValueCount; |
| 677 |
} |
| 678 |
|
| 679 |
qint64 COntologyStructureSummary::getConceptIndividualCount() { |
| 680 |
return mConNominalIndividualCount; |
| 681 |
} |
| 682 |
|
| 683 |
qint64 COntologyStructureSummary::getConceptSelfCount() { |
| 684 |
return mConSelfCount; |
| 685 |
} |
| 686 |
|
| 687 |
qint64 COntologyStructureSummary::getConceptAutomateChooseCount() { |
| 688 |
return mConAutChooceCount; |
| 689 |
} |
| 690 |
|
| 691 |
qint64 COntologyStructureSummary::getConceptAutomateStateCount() { |
| 692 |
return mConAutStateCount; |
| 693 |
} |
| 694 |
|
| 695 |
qint64 COntologyStructureSummary::getConceptAutomateTransitiveCount() { |
| 696 |
return mConAutTransCount; |
| 697 |
} |
| 698 |
|
| 699 |
|
| 700 |
|
| 701 |
bool COntologyStructureSummary::hasRoleInverses() { |
| 702 |
return mRoleInvCount; |
| 703 |
} |
| 704 |
|
| 705 |
bool COntologyStructureSummary::hasRoleEquivalences() { |
| 706 |
return mRoleEqCount; |
| 707 |
} |
| 708 |
|
| 709 |
bool COntologyStructureSummary::hasRoleDisjoints() { |
| 710 |
return mRoleDisjCount; |
| 711 |
} |
| 712 |
|
| 713 |
bool COntologyStructureSummary::hasRoleRangeConcepts() { |
| 714 |
return mRoleRangeConCount; |
| 715 |
} |
| 716 |
|
| 717 |
bool COntologyStructureSummary::hasRoleDomainConcepts() { |
| 718 |
return mRoleDomainConCount; |
| 719 |
} |
| 720 |
|
| 721 |
bool COntologyStructureSummary::hasRoleAsymmetrics() { |
| 722 |
return mRoleAsymmetricCount; |
| 723 |
} |
| 724 |
|
| 725 |
bool COntologyStructureSummary::hasRoleSymmetrics() { |
| 726 |
return mRoleSymmetricCount; |
| 727 |
} |
| 728 |
|
| 729 |
bool COntologyStructureSummary::hasRoleFunctionals() { |
| 730 |
return mRoleFuncCount; |
| 731 |
} |
| 732 |
|
| 733 |
bool COntologyStructureSummary::hasRoleInverseFunctionals() { |
| 734 |
return mRoleInvFuncCount; |
| 735 |
} |
| 736 |
|
| 737 |
bool COntologyStructureSummary::hasRoleTransetivs() { |
| 738 |
return mRoleTransCount; |
| 739 |
} |
| 740 |
|
| 741 |
bool COntologyStructureSummary::hasRoleReflexivitys() { |
| 742 |
return mRoleRefCount; |
| 743 |
} |
| 744 |
|
| 745 |
bool COntologyStructureSummary::hasRoleIrreflexivitys() { |
| 746 |
return mRoleIrrefCount; |
| 747 |
} |
| 748 |
|
| 749 |
|
| 750 |
bool COntologyStructureSummary::hasConceptFunctionalAtmosts() { |
| 751 |
return mConFuncAtmostCount; |
| 752 |
} |
| 753 |
|
| 754 |
bool COntologyStructureSummary::hasConceptValues() { |
| 755 |
return mConValueCount; |
| 756 |
} |
| 757 |
|
| 758 |
bool COntologyStructureSummary::hasConceptNominalIndividual() { |
| 759 |
return mConNominalIndividualCount; |
| 760 |
} |
| 761 |
|
| 762 |
bool COntologyStructureSummary::hasConceptSelfs() { |
| 763 |
return mConSelfCount; |
| 764 |
} |
| 765 |
|
| 766 |
bool COntologyStructureSummary::hasConceptAutomateChooses() { |
| 767 |
return mConAutChooceCount; |
| 768 |
} |
| 769 |
|
| 770 |
bool COntologyStructureSummary::hasConceptAutomateStates() { |
| 771 |
return mConAutStateCount; |
| 772 |
} |
| 773 |
|
| 774 |
bool COntologyStructureSummary::hasConceptAutomateTransitives() { |
| 775 |
return mConAutTransCount; |
| 776 |
} |
| 777 |
|
| 778 |
COntologyStructureSummary *COntologyStructureSummary::setNegationDisjunctionsOccurrence(bool occured) { |
| 779 |
mNegDisOccurrence = occured; |
| 780 |
return this; |
| 781 |
} |
| 782 |
|
| 783 |
COntologyStructureSummary *COntologyStructureSummary::setCardinalityOccurrence(bool occured) { |
| 784 |
mCardOccurrence = occured; |
| 785 |
return this; |
| 786 |
} |
| 787 |
|
| 788 |
COntologyStructureSummary *COntologyStructureSummary::setExistensialOccurrence(bool occured) { |
| 789 |
mExistOccurrence = occured; |
| 790 |
return this; |
| 791 |
} |
| 792 |
|
| 793 |
COntologyStructureSummary *COntologyStructureSummary::setQualifiedCardinalityOccurrence(bool occured) { |
| 794 |
mQualCardOccurrence = occured; |
| 795 |
return this; |
| 796 |
} |
| 797 |
|
| 798 |
COntologyStructureSummary *COntologyStructureSummary::setFunctionalityOccurrence(bool occured) { |
| 799 |
mFunctionalityOccurrence = occured; |
| 800 |
return this; |
| 801 |
} |
| 802 |
|
| 803 |
COntologyStructureSummary *COntologyStructureSummary::setTransitivityOccurrence(bool occured) { |
| 804 |
mTransitivityOccurrence = occured; |
| 805 |
return this; |
| 806 |
} |
| 807 |
|
| 808 |
COntologyStructureSummary *COntologyStructureSummary::setRoleHierarchyOccurrence(bool occured) { |
| 809 |
mRoleHierarchyOccurrence = occured; |
| 810 |
return this; |
| 811 |
} |
| 812 |
|
| 813 |
COntologyStructureSummary *COntologyStructureSummary::setComplexSubRoleOccurrence(bool occured) { |
| 814 |
mComplexSubRoleOccurrence = occured; |
| 815 |
return this; |
| 816 |
} |
| 817 |
|
| 818 |
COntologyStructureSummary *COntologyStructureSummary::setUniversalRoleOccurrence(bool occured) { |
| 819 |
mUniversalRoleOccurrence = occured; |
| 820 |
return this; |
| 821 |
} |
| 822 |
|
| 823 |
COntologyStructureSummary *COntologyStructureSummary::setInverseOccurrence(bool occured) { |
| 824 |
mInverseOccurrence = occured; |
| 825 |
return this; |
| 826 |
} |
| 827 |
|
| 828 |
COntologyStructureSummary *COntologyStructureSummary::setNominalIndividualOccurrence(bool occured) { |
| 829 |
mNominalIndividualOccurrence = occured; |
| 830 |
return this; |
| 831 |
} |
| 832 |
|
| 833 |
COntologyStructureSummary *COntologyStructureSummary::setNominalOccurrence(bool occured) { |
| 834 |
mNominalOccurrence = occured; |
| 835 |
return this; |
| 836 |
} |
| 837 |
|
| 838 |
COntologyStructureSummary *COntologyStructureSummary::setGroundingOccurrence(bool occured) { |
| 839 |
mGroundingOccurrence = occured; |
| 840 |
return this; |
| 841 |
} |
| 842 |
|
| 843 |
|
| 844 |
COntologyStructureSummary *COntologyStructureSummary::setDatatypeOccurrence(bool occured) { |
| 845 |
mDatatypeOccurrence = occured; |
| 846 |
return this; |
| 847 |
} |
| 848 |
|
| 849 |
bool COntologyStructureSummary::hasNegationDisjunctionsOccurrence() { |
| 850 |
return mNegDisOccurrence; |
| 851 |
} |
| 852 |
|
| 853 |
bool COntologyStructureSummary::hasCardinalityOccurrence() { |
| 854 |
return mCardOccurrence; |
| 855 |
} |
| 856 |
|
| 857 |
bool COntologyStructureSummary::hasExistensialOccurrence() { |
| 858 |
return mExistOccurrence; |
| 859 |
} |
| 860 |
|
| 861 |
bool COntologyStructureSummary::hasQualifiedCardinalityOccurrence() { |
| 862 |
return mQualCardOccurrence; |
| 863 |
} |
| 864 |
|
| 865 |
bool COntologyStructureSummary::hasFunctionalityOccurrence() { |
| 866 |
return mFunctionalityOccurrence; |
| 867 |
} |
| 868 |
|
| 869 |
bool COntologyStructureSummary::hasTransitivityOccurrence() { |
| 870 |
return mTransitivityOccurrence; |
| 871 |
} |
| 872 |
|
| 873 |
bool COntologyStructureSummary::hasRoleHierarchyOccurrence() { |
| 874 |
return mRoleHierarchyOccurrence; |
| 875 |
} |
| 876 |
|
| 877 |
bool COntologyStructureSummary::hasComplexSubRoleOccurrence() { |
| 878 |
return mComplexSubRoleOccurrence; |
| 879 |
} |
| 880 |
|
| 881 |
bool COntologyStructureSummary::hasUniversalRoleOccurrence() { |
| 882 |
return mUniversalRoleOccurrence; |
| 883 |
} |
| 884 |
|
| 885 |
bool COntologyStructureSummary::hasInverseOccurrence() { |
| 886 |
return mInverseOccurrence; |
| 887 |
} |
| 888 |
|
| 889 |
bool COntologyStructureSummary::hasNominalIndividualOccurrence() { |
| 890 |
return mNominalIndividualOccurrence; |
| 891 |
} |
| 892 |
|
| 893 |
bool COntologyStructureSummary::hasNominalOccurrence() { |
| 894 |
return mNominalOccurrence; |
| 895 |
} |
| 896 |
|
| 897 |
bool COntologyStructureSummary::hasGroundingOccurrence() { |
| 898 |
return mGroundingOccurrence; |
| 899 |
} |
| 900 |
|
| 901 |
|
| 902 |
bool COntologyStructureSummary::hasDatatypeOccurrence() { |
| 903 |
return mDatatypeOccurrence; |
| 904 |
} |
| 905 |
|
| 906 |
|
| 907 |
}; // end namespace Ontology |
| 908 |
|
| 909 |
}; // end namespace Reasoner |
| 910 |
|
| 911 |
}; // end namespace Konclude |