6 #ifndef KNOWROB_ONTOLOGY_PARSER_H
7 #define KNOWROB_ONTOLOGY_PARSER_H
12 #include "knowrob/semweb/TripleContainer.h"
13 #include "knowrob/semweb/TripleFormat.h"
14 #include "knowrob/semweb/Triple.h"
15 #include "knowrob/semweb/GraphSelector.h"
16 #include "knowrob/storage/redland/RaptorContainer.h"
22 class OntologyParser {
void setFrame(const GraphSelectorPtr &frame)
std::function< int()> doParse_
static raptor_world * createWorld()
void setOrigin(std::string_view origin)
OntologyParser(const std::string_view &fileURI, semweb::TripleFormat format)
void setBlankPrefix(const std::string_view &blankPrefix)
raptor_parser * createParser(knowrob::semweb::TripleFormat format)
void applyFrame(Triple *triple)
void setFilter(const TripleFilter &filter)
bool run(const TripleHandler &callback)
void add(raptor_statement *statement, const TripleHandler &callback)
std::vector< std::string > imports_
void flush(const TripleHandler &callback)
std::shared_ptr< RaptorContainer > currentBatch_
FunctionRule & function()
std::function< bool(const Triple &)> TripleFilter
std::shared_ptr< const GraphSelector > GraphSelectorPtr
std::function< void(const TripleContainerPtr &)> TripleHandler