Debian Codegraph @

Source/Parser/CSPARQLBuildingParserTermData.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_CSPARQLBUILDINGPARSERTERMDATA_H
22 #define KONCLUDE_PARSER_CSPARQLBUILDINGPARSERTERMDATA_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ParserSettings.h"
29
30
31 // Other includes
32
33
34 // Logger includes
35 #include "Logger/CLogger.h"
36
37 using namespace Konclude::Logger;
38
39
40 namespace Konclude {
41
42
43 namespace Parser {
44
45 /*!
46 *
47 * \class CSPARQLBuildingParserTermData
48 * \author Andreas Steigmiller
49 * \version 0.1
50 * \brief TODO
51 *
52 */
53 class CSPARQLBuildingParserTermData {
54 // public methods
55 public:
56 //! Constructor
57 CSPARQLBuildingParserTermData(const QString& term);
58
59 enum TermType {
60 UNKNON_TYPE,
61
62 VARIABLE_TYPE,
63 CLASS_VARIABLE_TYPE,
64 PROPERTY_VARIABLE_TYPE,
65 OBJECT_PROPERTY_VARIABLE_TYPE,
66 DATA_PROPERTY_VARIABLE_TYPE,
67 INDIVIDUAL_VARIABLE_TYPE,
68 NAMED_INDIVIDUAL_VARIABLE_TYPE,
69 DATA_LITERAL_VARIABLE_TYPE,
70
71 BLANK_NODE_TYPE,
72 ANONYMOUS_INDIVIDUAL_VARIABLE_TYPE,
73
74 RESOURCE_TYPE,
75 CLASS_TYPE,
76 PROPERTY_TYPE,
77 OBJECT_PROPERTY_TYPE,
78 DATA_PROPERTY_TYPE,
79 NAMED_INDIVIDUAL_TYPE,
80 ANONYMOUS_INDIVIDUAL_TYPE,
81
82 DATA_LITERAL_TYPE
83
84 };
85
86 QString getTermString();
87 TermType getTermType();
88
89 CSPARQLBuildingParserTermData* setTermType(TermType type);
90
91 bool isCompletelyTyped();
92
93
94 bool isClassTerm();
95 bool isPropertyTerm();
96 bool isDataPropertyTerm();
97 bool isObjectPropertyTerm();
98 bool isIndividualTerm();
99 bool isLiteralTerm();
100
101 bool isVariableTerm();
102 bool isNonVariableTerm();
103
104 QList<CSPARQLBuildingParserTripleData*>* getOccuringTripleList();
105 CSPARQLBuildingParserTermData* addOccuringTriple(CSPARQLBuildingParserTripleData* tripleData);
106
107 // protected methods
108 protected:
109
110 // protected variables
111 protected:
112 QString mTermString;
113 TermType mTermType;
114
115 QList<CSPARQLBuildingParserTripleData*> mOccuringTripleList;
116
117 // private methods
118 private:
119
120
121 // private variables
122 private:
123
124
125
126 };
127
128 }; // end namespace Parser
129
130 }; // end namespace Konclude
131
132 #endif // KONCLUDE_PARSER_CSPARQLBUILDINGPARSERTERMDATA_H