knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
TransformedOntology.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_TRANSFORMED_ONTOLOGY_H
7 #define KNOWROB_TRANSFORMED_ONTOLOGY_H
8 
9 #include "knowrob/semweb/OntologySource.h"
10 #include "knowrob/storage/redland/RedlandModel.h"
11 
12 namespace knowrob {
16  class TransformedOntology : public OntologySource {
17  public:
23  TransformedOntology(const URI &uri, std::string_view format);
24 
30  bool load(const TripleHandler &callback) override;
31 
35  auto &storage() { return storage_; }
36 
37  protected:
38  std::unique_ptr<RedlandModel> storage_;
39  };
40 
41 } // knowrob
42 
43 #endif //KNOWROB_TRANSFORMED_ONTOLOGY_H
const auto & format() const
Definition: DataSource.h:49
const auto & uri() const
Definition: DataSource.h:39
bool load(const TripleHandler &callback) override
std::unique_ptr< RedlandModel > storage_
TransformedOntology(const URI &uri, std::string_view format)
std::function< void(const TripleContainerPtr &)> TripleHandler