knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
TransformedOntology.cpp
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 #include "knowrob/semweb/TransformedOntology.h"
7 
8 using namespace knowrob;
9 
10 TransformedOntology::TransformedOntology(const URI &uri, std::string_view format)
11  : OntologySource(uri, format) {
12  storage_ = std::make_unique<RedlandModel>();
13  storage_->setStorageType(RedlandStorageType::MEMORY);
14  storage_->setOrigin(origin_);
15 }
16 
18  storage_->batch(callback);
19  return true;
20 }
TransformedOntology(const URI &uri, std::string_view format)
bool load(const TripleHandler &callback) override
std::unique_ptr< RedlandModel > storage_
std::function< void(const TripleContainerPtr &)> TripleHandler