6 #ifndef KNOWROB_GRAPH_RESTRUCTURING_H
7 #define KNOWROB_GRAPH_RESTRUCTURING_H
13 #include "knowrob/storage/redland/RedlandModel.h"
19 class GraphRestructuring :
public GraphTransformation {
27 void addRule(std::shared_ptr<GraphTransformationRule> rule);
30 bool configure(
const boost::property_tree::ptree &opts)
override;
33 std::unique_ptr<RedlandModel>
model_;
34 std::vector<std::shared_ptr<GraphTransformationRule>>
rules_;
bool readFromFile(const std::string &filename)
void pushInputTriples(const TripleContainerPtr &triples) override
void doTransformation(GraphTransformationRule &rule)
static TriplePatternPtr readTriplePattern(const std::string &filename)
void finalizeTransformation() override
void addRule(std::shared_ptr< GraphTransformationRule > rule)
std::unique_ptr< RedlandModel > model_
std::vector< std::shared_ptr< GraphTransformationRule > > rules_
void initializeTransformation() override
bool configure(const boost::property_tree::ptree &opts) override
std::shared_ptr< TriplePattern > TriplePatternPtr
std::shared_ptr< TripleContainer > TripleContainerPtr