Debian Codegraph @

Source/Reasoner/Query/CWriteQuerySerializer.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_CWRITEQUERYSERIALIZER_H
22 #define KONCLUDE_REASONER_QUERY_CWRITEQUERYSERIALIZER_H
23
24 // Libraries includes
25
26
27
28 // Namespace includes
29 #include "QuerySettings.h"
30
31 // Other includes
32
33 // Logger includes
34 #include "Logger/CLogger.h"
35
36
37
38 namespace Konclude {
39
40 namespace Reasoner {
41
42 namespace Query {
43
44 /*!
45 *
46 * \class CWriteQuerySerializer
47 * \author Andreas Steigmiller
48 * \version 0.1
49 * \brief TODO
50 *
51 */
52 class CWriteQuerySerializer {
53 // public methods
54 public:
55 //! Constructor
56 CWriteQuerySerializer();
57
58 virtual const QString getOutputName() = 0;
59
60 virtual void writeObjectPropertyDeclaration(const QString& propertyName) = 0;
61 virtual void writeDataPropertyDeclaration(const QString& propertyName) = 0;
62 virtual void writeSubObjectPropertyRelation(const QString& subPropertyName, const QString& superPropertyName) = 0;
63 virtual void writeSubDataPropertyRelation(const QString& subPropertyName, const QString& superPropertyName) = 0;
64 virtual void writeObjectPropertyEquivalenceRelations(const QStringList& propertyNameList) = 0;
65 virtual void writeDataPropertyEquivalenceRelations(const QStringList& propertyNameList) = 0;
66
67
68 virtual void writeClassDeclaration(const QString& className) = 0;
69 virtual void writeSubClassRelation(const QString& subClassName, const QString& superClassName) = 0;
70 virtual void writeClassEquivalenceRelations(const QStringList& classNameList) = 0;
71
72
73 virtual void writeNamedIndividualDeclaration(const QString& individualName) = 0;
74 virtual void writeAnonymousIndividualDeclaration(const QString& individualName) = 0;
75 virtual void writeNamedIndividualType(const QString& individualName, const QString& className) = 0;
76 virtual void writeAnonymousIndividualType(const QString& individualName, const QString& className) = 0;
77
78 virtual void writeOntologyPrefix(const QString& prefixName, const QString& prefixIRI) = 0;
79 virtual void writeOntologyStart() = 0;
80 virtual void writeOntologyEnd() = 0;
81
82
83 virtual bool startWritingOutput() = 0;
84 virtual bool endWritingOutput() = 0;
85
86
87 // protected methods
88 protected:
89
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_CWRITEQUERYSERIALIZER_H