Debian Codegraph @

Source/Reasoner/Ontology/COntologyTriplesAssertionsAccessor.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_CONTOLOGYTRIPLESASSERTIONSACCESSOR_H
22 #define KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYTRIPLESASSERTIONSACCESSOR_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "OntologySettings.h"
29 #include "COntologyTriplesIndividualAssertionsVisitor.h"
30 #include "COntologyTriplesAssertedTypesVisitor.h"
31 #include "COntologyTriplesIndividualNamesVisitor.h"
32 #include "CIndividual.h"
33
34
35 // Other includes
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 namespace Reasoner {
45
46 namespace Ontology {
47
48 /*!
49 *
50 * \class COntologyTriplesAssertionsAccessor
51 * \author Andreas Steigmiller
52 * \version 0.1
53 * \brief TODO
54 *
55 */
56 class COntologyTriplesAssertionsAccessor {
57 // public methods
58 public:
59 //! Constructor
60 COntologyTriplesAssertionsAccessor();
61
62
63 virtual bool visitIndividualAssertions(cint64 individualId, COntologyTriplesIndividualAssertionsVisitor* visitor, bool visitConceptAssertions = true, bool visitRoleAssertions = true, bool visitReverseRoleAssertions = true, bool visitDataAssertions = true) = 0;
64 virtual bool visitIndividualAssertions(CIndividual* individual, COntologyTriplesIndividualAssertionsVisitor* visitor, bool visitConceptAssertions = true, bool visitRoleAssertions = true, bool visitReverseRoleAssertions = true, bool visitDataAssertions = true);
65
66 virtual bool visitIndividualName(cint64 individualId, COntologyTriplesIndividualNamesVisitor* visitor) = 0;
67 virtual bool visitIndividualName(cint64 individualId, function<bool(const QString& indiName)> visitFunc) = 0;
68 virtual bool visitIndividualAnonymity(cint64 individualId, function<bool(bool anonymous)> visitFunc) = 0;
69
70 virtual bool visitIndividualId(const QString& indiName, function<bool(cint64 indiId)> visitFunc) = 0;
71 virtual bool hasIndividualId(const QString& indiName) = 0;
72 virtual cint64 getIndividualId(const QString& indiName);
73
74 virtual bool visitAllAssertedConcepts(COntologyTriplesAssertedTypesVisitor* visitor) = 0;
75 virtual bool visitAllAssertedObjectRoles(COntologyTriplesAssertedTypesVisitor* visitor) = 0;
76 virtual bool visitAllAssertedDataRoles(COntologyTriplesAssertedTypesVisitor* visitor) = 0;
77
78
79
80 virtual cint64 getMaxIndexedIndividualId() = 0;
81 virtual cint64 getIndexedIndividualCount() = 0;
82
83
84 virtual bool visitDataValueIndividuals(CRole* dataRole, CDataLiteral* dataLiteral, function<bool(cint64 indiId)> visitFunc) = 0;
85
86
87 // protected methods
88 protected:
89
90 // protected variables
91 protected:
92
93
94 // private methods
95 private:
96
97 // private variables
98 private:
99
100 };
101
102 }; // end namespace Ontology
103
104 }; // end namespace Reasoner
105
106 }; // end namespace Konclude
107
108 #endif // KONCLUDE_REASONER_ONTOLOGY_CONTOLOGYTRIPLESASSERTIONSACCESSOR_H