Debian Codegraph @

Source/Reasoner/Generator/CConcreteOntologyInverseRoleBuilder.h

raw
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 #ifndef KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYINVERSEROLEBUILDER_H
22 #define KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYINVERSEROLEBUILDER_H
23
24 // Libraries includes
25 #include <QSet>
26
27 // Namespace includes
28
29
30 // Other includes
31 #include "Reasoner/Ontology/CBoxContext.h"
32 #include "Reasoner/Ontology/CConcept.h"
33 #include "Reasoner/Ontology/CRoleDependence.h"
34 #include "Reasoner/Ontology/CMBox.h"
35 #include "Reasoner/Ontology/CConcreteOntology.h"
36
37 #include "Reasoner/Preprocess/CConceptRoleIndividualLocator.h"
38
39 #include "Utilities/CDynamicExpandingMemoryManager.hpp"
40 #include "Utilities/CSortedNegLinker.hpp"
41
42 #include "Parser/Expressions/CInverseObjectPropertyOfExpression.h"
43
44 // Logger includes
45 #include "Logger/CLogger.h"
46
47
48
49 namespace Konclude {
50
51 using namespace Parser::Expression;
52
53 namespace Reasoner {
54
55 using namespace Preprocess;
56
57 namespace Generator {
58
59 /*!
60 *
61 * \class CConcreteOntologyInverseRoleBuilder
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class CConcreteOntologyInverseRoleBuilder {
68 // public methods
69 public:
70 //! Constructor
71 CConcreteOntologyInverseRoleBuilder();
72
73 //! Destructor
74 virtual ~CConcreteOntologyInverseRoleBuilder();
75
76 static CRole* createInverseRoleDelayed(CRole* role, QHash<CRole*,CRole*>* roleInverseRoleCreateHash, CConcreteOntology* onto);
77
78 static bool createDelayedInverseRoles(QHash<CRole*,CRole*>* roleInverseRoleCreateHash, CConcreteOntology* onto);
79 static CRole* createInverseRole(CRole* role, CConcreteOntology* onto);
80 static CRole* getLocalizedRole(CRole* role, CConcreteOntology* onto);
81 static CRole* getLocalizedRole(cint64 roleTag, CConcreteOntology* onto);
82 static bool hasInverseRole(CRole* role, bool searchInverseEquivalent = true);
83 static CRole* getInverseRole(CRole* role, bool searchInverseEquivalent = true);
84
85 // protected methods
86 protected:
87
88 // private methods
89 private:
90
91
92 // private variables
93 private:
94
95
96 };
97
98 }; // end namespace Generator
99
100 }; // end namespace Reasoner
101
102 }; // end namespace Konclude
103
104 #endif // KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYINVERSEROLEBUILDER_H