Debian Codegraph @

Source/Reasoner/Ontology/COntologyStringMapping.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_ONTOLOGY_CONTOLOGYSTRINGMAPPING_H
22 #define KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYSTRINGMAPPING_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "OntologySettings.h"
29 #include "COntologyContext.h"
30
31
32 // Other includes
33 #include "Reasoner/Generator/CStringRefStringHasher.h"
34
35 // Logger includes
36 #include "Logger/CLogger.h"
37
38
39 namespace Konclude {
40
41 namespace Reasoner {
42
43 using namespace Generator;
44
45 namespace Ontology {
46
47 /*!
48 *
49 * \class COntologyStringMapping
50 * \author Andreas Steigmiller
51 * \version 0.1
52 * \brief TODO
53 *
54 */
55 class COntologyStringMapping {
56 // public methods
57 public:
58 //! Constructor
59 COntologyStringMapping(COntologyContext* ontologyContext = nullptr);
60
61 //! Destructor
62 virtual ~COntologyStringMapping();
63
64 COntologyStringMapping* referenceStringMapping(COntologyStringMapping* stringMapping);
65
66 CMAPPINGHASH<CStringRefStringHasher,CConcept*>* getClassNameConceptMappingHash(bool create = true);
67 CMAPPINGHASH<CStringRefStringHasher,CRole*>* getPropertyNameRoleMappingHash(bool create = true);
68 CMAPPINGHASH<CStringRefStringHasher,CIndividual*>* getIndividualNameIndividualMappingHash(bool create = true);
69
70 CMAPPINGHASH<QString,CNamePrefix*>* getAbbreviatedNamePrefixHash(bool create = true);
71 CMAPPINGHASH<QString,CNamePrefix*>* getNamePrefixHash(bool create = true);
72
73 CMAPPINGLIST<CNamePrefix*>* getPrefixList(bool create = true);
74
75
76 CConcept* getConceptFromName(const QString& fullClassName);
77 CRole* getRoleFromName(const QString& fullPropertyName);
78 CIndividual* getIndividualFromName(const QString& fullIndividualName);
79
80
81 // protected methods
82 protected:
83
84 // protected variables
85 protected:
86 COntologyContext* mOntoContext;
87 CMAPPINGHASH<CStringRefStringHasher,CConcept*>* mClassNameConceptMapHash;
88 CMAPPINGHASH<CStringRefStringHasher,CRole*>* mPropertyNameRoleMapHash;
89 CMAPPINGHASH<CStringRefStringHasher,CIndividual*>* mIndividualNameIndividualMapHash;
90
91 CMAPPINGHASH<QString,CNamePrefix*>* mAbbreviatedNamePrefixMapHash;
92 CMAPPINGHASH<QString,CNamePrefix*>* mNamePrefixMapHash;
93
94 CMAPPINGLIST<CNamePrefix*>* mPrefixList;
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Ontology
105
106 }; // end namespace Reasoner
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYSTRINGMAPPING_H