Debian Codegraph @

Source/Reasoner/Query/CPropertyHierarchyResult.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_QUERY_CPROPERTYHIERARCHYRESULT_H
22 #define KONCLUDE_REASONER_QUERY_CPROPERTYHIERARCHYRESULT_H
23
24 // Libraries includes
25 #include <QHash>
26
27 // Namespace includes
28 #include "CQueryResult.h"
29 #include "CStringHierarchyResult.h"
30 #include "CPropertySubPropertiesRelationResult.h"
31 #include "CPropertySynsetResult.h"
32
33 // Other includes
34
35
36 // Logger includes
37 #include "Logger/CLogger.h"
38
39
40
41 namespace Konclude {
42
43 namespace Reasoner {
44
45 namespace Query {
46
47 /*!
48 *
49 * \class CPropertyHierarchyResult
50 * \author Andreas Steigmiller
51 * \version 0.1
52 * \brief TODO
53 *
54 */
55 class CPropertyHierarchyResult : public CStringHierarchyResult<CPropertyHierarchyResult,CPropertySubPropertiesRelationResult,CPropertySynsetResult> {
56 // public methods
57 public:
58 //! Constructor
59 CPropertyHierarchyResult(bool dataProperties = false);
60 CPropertyHierarchyResult(const QString &bottomHierarchyProperty, const QString &topHierarchyProperty, bool dataProperties = false);
61 CPropertyHierarchyResult(const QStringList &bottomHierarchyProperties, const QStringList &topHierarchyProperties, bool dataProperties = false);
62 CPropertyHierarchyResult(CPropertySynsetResult *takeBottomPropertySynset, CPropertySynsetResult *takeTopPropertySynset, bool dataProperties = false);
63 CPropertyHierarchyResult(CPropertySynsetResult *takeBottomPropertySynset, bool dataProperties = false);
64
65
66
67 CPropertySynsetResult* getPropertySynset(const QString &propertyName, bool create = true);
68 CPropertySynsetResult* getPropertySynset(const QStringList &propertyNames, bool create = true);
69 CPropertySynsetResult* addPropertySynset(CPropertySynsetResult *takePropertySynset);
70
71 CPropertySynsetResult* setTopPropertySynset(CPropertySynsetResult *propertySynset);
72
73
74 CPropertySynsetResult* getBottomPropertySynset();
75 CPropertySynsetResult* getTopPropertySynset();
76
77 CPropertySubPropertiesRelationResult* addSubPropertyRelation(CPropertySynsetResult *superPropertySynset, CPropertySynsetResult *anySubPropertySynset);
78 CPropertySubPropertiesRelationResult* getSubPropertyRelation(CPropertySynsetResult *superPropertySynset, bool create = true);
79
80
81 bool hasDataProperties();
82 bool hasObjectProperties();
83
84 CPropertyHierarchyResult* setDataProperties(bool dataProperties);
85
86
87 // protected methods
88 protected:
89 bool mDataProperties;
90
91 // protected variables
92 protected:
93
94 // private methods
95 private:
96
97 // private variables
98 private:
99
100 };
101
102 }; // end namespace Query
103
104 }; // end namespace Reasoner
105
106 }; // end namespace Konclude
107
108 #endif // KONCLUDE_REASONER_QUERY_CPROPERTYHIERARCHYRESULT_H