Debian Codegraph @

Source/Reasoner/Ontology/CDatatype.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_CDATATYPE_H
22 #define KONCLUDE_REASONER_ONTOLOGY_CDATATYPE_H
23
24 // Libraries includes
25 #include <QString>
26
27
28 // Namespace includes
29 #include "OntologySettings.h"
30 #include "CTagItem.h"
31 #include "CDatatypeValueSpaceType.h"
32
33
34 // Other includes
35
36
37 // Logger includes
38 #include "Logger/CLogger.h"
39
40
41 namespace Konclude {
42
43 namespace Reasoner {
44
45 namespace Ontology {
46
47 /*!
48 *
49 * \class CDatatype
50 * \author Andreas Steigmiller
51 * \version 0.1
52 * \brief TODO
53 *
54 */
55 class CDatatype : public CTagItem {
56 // public methods
57 public:
58
59 enum DATATYPE_BASIC_TYPE { DBT_NON, DBT_REAL, DBT_STRING, DBT_BOOLEAN, DBT_DOUBLE, DBT_FLOAT, DBT_IRI, DBT_HEXBINARY, DBT_BASE64BINARY, DBT_XML, DBT_DATETIME };
60 enum DATATYPE_TYPE { DT_NON, DT_REAL, DT_DECIMAL, DT_INTEGER, DT_RATIONAL, DT_PLAINLITERAL, DT_STRING, DT_BOOLEAN, DT_DOUBLE, DT_FLOAT, DT_IRI, DT_XML };
61
62 //! Constructor
63 CDatatype();
64
65 CDatatype* initDatatype(const QString& datatypeIRI, bool basic = false);
66 CDatatype* initDatatype(const QString& datatypeIRI, cint64 datatypeTag, bool basic);
67
68 CDatatype* setDatatypeTag(qint64 datatypeTag);
69 cint64 getDatatypeTag() const;
70
71 bool isBasicDatatype();
72 CDatatype* setBasicDatatype(bool basic);
73
74
75 CDatatype* getBasicDatatype();
76 CDatatype* setBasicDatatype(CDatatype* basicDatatpye);
77
78 DATATYPE_BASIC_TYPE getBasicDatatypeType();
79 CDatatype* setBasicDatatypeType(DATATYPE_BASIC_TYPE basicDatatpyeType);
80
81 DATATYPE_TYPE getDatatypeType();
82 CDatatype* setDatatypeType(DATATYPE_TYPE datatpyeType);
83
84 const QString& getDatatypeIRI();
85
86 CConcept* getDatatypeConcept();
87 bool hasDatatypeConcept();
88 CDatatype* setDatatypeConcept(CConcept* concept);
89
90 CConcept* getDefinitionConcept();
91 CDatatype* setDefinitionConcept(CConcept* concept);
92
93 CDatatypeValueSpaceType* getValueSpaceType();
94 CDatatype* setValueSpaceType(CDatatypeValueSpaceType* valueSpaceType);
95
96 bool isNormalized();
97 CDatatype* setNormalized(bool normalized);
98
99 // protected methods
100 protected:
101
102 // protected variables
103 protected:
104 bool mBasicDatatype;
105 bool mNormalized;
106 QString mDatatypeIRI;
107 CConcept* mDatatypeConcept;
108 CConcept* mDefinitionConcept;
109 CDatatypeValueSpaceType* mValueSpaceType;
110 CDatatype* mDatatpyeBasic;
111 DATATYPE_BASIC_TYPE mBasicDatatpyeType;
112 DATATYPE_TYPE mDatatpyeType;
113
114
115 // private methods
116 private:
117
118 // private variables
119 private:
120
121 };
122
123 }; // end namespace Ontology
124
125 }; // end namespace Reasoner
126
127 }; // end namespace Konclude
128
129 #endif // KONCLUDE_REASONER_ONTOLOGY_CDATATYPE_H