Debian Codegraph @

Source/Reasoner/Generator/CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper.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 #ifdef KONCLUDE_REDLAND_INTEGRATION
21
22 #ifndef KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYREDLANDTRIPLESDATAQUERYINGEXPRESSIONMAPPER_H
23 #define KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYREDLANDTRIPLESDATAQUERYINGEXPRESSIONMAPPER_H
24
25
26 // Libraries includes
27 #include <QHash>
28 #include <QStack>
29
30
31 // Namespace includes
32 #include "CConcreteOntologyRedlandTriplesDataExpressionMapper.h"
33
34
35 // Other includes
36 #include "Reasoner/Ontology/CConcreteOntology.h"
37
38 #include "Reasoner/Triples/CRedlandStoredTriplesData.h"
39 #include "Reasoner/Triples/CRedlandNodeHasher.h"
40
41 #include "Utilities/Container/CLinker.h"
42
43
44 // Logger includes
45 #include "Logger/CLogger.h"
46
47
48
49
50
51 namespace Konclude {
52
53 using namespace Utilities;
54 using namespace Utilities::Memory;
55 using namespace Utilities::Container;
56 using namespace Parser;
57
58 namespace Reasoner {
59
60 using namespace Ontology;
61 using namespace Triples;
62
63 namespace Generator {
64
65 /*!
66 *
67 * \class CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper
68 * \author Andreas Steigmiller
69 * \version 0.1
70 * \brief TODO
71 *
72 */
73 class CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper : public CConcreteOntologyRedlandTriplesDataExpressionMapper {
74 // public methods
75 public:
76 CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper(COntologyBuilder* ontologyBuilder);
77 virtual ~CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper();
78
79
80
81 QList<CAxiomExpression*> takeQueryingCollectedAxiomExpressions();
82
83 CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper* useEntitiesVariableExpressionMapping(const QHash<QString, CBuildExpression*>& freshEntityUseVariableExpressionHash, CTriplesData* tripleData);
84
85 // protected functions
86 protected:
87 virtual CConcreteOntologyRedlandTriplesDataExpressionMapper* handleParsedOntologyAxiomExpression(CAxiomExpression* axiomExpression);
88
89 CConcreteOntologyRedlandTriplesDataQueryingExpressionMapper* insertEntityUsingVariableExpression(CBuildExpression* expression, const QString& entityUri, librdf_world* world, QHash<CRedlandNodeHasher, CRedlandNodeProcessingData*>& nodeIdentifierDataHash, QList<CRedlandNodeProcessingData*>& nodeHandlingList);
90
91 // protected variables
92 protected:
93 QList<CAxiomExpression*> mQueryingCollectedAxiomExpList;
94
95
96 };
97
98
99 }; // end namespace Generator
100
101 }; // end namespace Reasoner
102
103 }; // end namespace Konclude
104
105 #endif // end KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYREDLANDTRIPLESDATAQUERYINGEXPRESSIONMAPPER_H
106
107 #endif // !KONCLUDE_REDLAND_INTEGRATION