Debian Codegraph @

Source/Parser/COWLlinkQtXMLResultParser.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_PARSER_COWLLINKQTXMLRESULTPARSER_H
22 #define KONCLUDE_PARSER_COWLLINKQTXMLRESULTPARSER_H
23
24 // Libraries includes
25 #include <QDomDocument>
26 #include <QDomElement>
27
28 // Namespace includes
29 #include "CStringPrimitiveConverter.h"
30
31
32 // Other includes
33 #include "Reasoner/Query/CBooleanQueryResult.h"
34 #include "Reasoner/Query/CSubClassHierarchyQuery.h"
35 #include "Reasoner/Query/CClassesResult.h"
36 #include "Reasoner/Query/CQueryResult.h"
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41 using namespace Konclude::Logger;
42
43 using namespace std;
44
45
46 namespace Konclude {
47
48 using namespace Reasoner::Query;
49
50 namespace Parser {
51
52
53
54
55 /*!
56 *
57 * \class COWLlinkQtXMLResultParser
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief Parser for OWL/XML Files
61 *
62 */
63 class COWLlinkQtXMLResultParser {
64 // public methods
65 public:
66 //! Constructor
67 COWLlinkQtXMLResultParser();
68
69 //! Destructor
70 virtual ~COWLlinkQtXMLResultParser();
71
72 CQueryResult *parseQueryResult(QDomElement *node);
73 CBooleanQueryResult *parseBooleanQueryResult(QDomElement *node);
74 CClassesResult *parseClassesResult(QDomElement *node);
75 CClassHierarchyResult *parseClassHierarchyResult(QDomElement *node);
76 CClassSynsetResult *parseClassSynsetResult(QDomElement *node);
77 QStringList parseClassNames(QDomElement *node);
78
79
80 // protected methods
81 protected:
82 bool hasTopClass(CClassSynsetResult *classSynset);
83
84 // protected variables
85 protected:
86
87
88 // private methods
89 private:
90
91
92 // private variables
93 private:
94
95
96
97 };
98
99 }; // end namespace Parser
100
101 }; // end namespace Konclude
102
103 #endif // KONCLUDE_PARSER_COWLLINKQTXMLRESULTPARSER_H