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
17
bool
TransformedOntology::load
(
const
TripleHandler
&callback) {
18
storage_
->batch(callback);
19
return
true
;
20
}
knowrob::OntologySource
Definition:
OntologySource.h:17
knowrob::OntologySource::origin_
std::string origin_
Definition:
OntologySource.h:65
knowrob::TransformedOntology::TransformedOntology
TransformedOntology(const URI &uri, std::string_view format)
Definition:
TransformedOntology.cpp:10
knowrob::TransformedOntology::load
bool load(const TripleHandler &callback) override
Definition:
TransformedOntology.cpp:17
knowrob::TransformedOntology::storage_
std::unique_ptr< RedlandModel > storage_
Definition:
TransformedOntology.h:38
knowrob::URI
Definition:
URI.h:17
knowrob
Definition:
DataSource.h:13
knowrob::RedlandStorageType::MEMORY
@ MEMORY
knowrob::TripleHandler
std::function< void(const TripleContainerPtr &)> TripleHandler
Definition:
TripleContainer.h:191
src
semweb
TransformedOntology.cpp
Generated by
1.9.1