6 #ifndef KNOWROB_ONTOLOGY_SOURCE_H
7 #define KNOWROB_ONTOLOGY_SOURCE_H
9 #include "knowrob/DataSource.h"
10 #include "knowrob/semweb/GraphSelector.h"
11 #include "knowrob/semweb/TripleContainer.h"
17 class OntologySource :
public DataSource {
static std::string getNameFromURI(const std::string &uriString)
const auto & format() const
std::optional< std::string > parentOrigin_
void setFrame(const GraphSelectorPtr &frame)
void setParentOrigin(std::string_view parentOrigin)
OntologySource(const URI &uri, std::string_view format)
virtual ~OntologySource()=default
virtual bool load(const TripleHandler &callback)=0
const auto & frame() const
std::string_view origin() const
void setImports(const std::vector< std::string > &imports)
const auto & imports() const
auto & parentOrigin() const
std::vector< std::string > imports_
std::shared_ptr< const GraphSelector > GraphSelectorPtr
std::function< void(const TripleContainerPtr &)> TripleHandler