knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <GraphRestructuring.h>
Public Member Functions | |
GraphRestructuring () | |
void | addRule (std::shared_ptr< GraphTransformationRule > rule) |
bool | configure (const boost::property_tree::ptree &opts) override |
GraphRestructuring () | |
void | addRule (std::shared_ptr< GraphTransformationRule > rule) |
bool | configure (const boost::property_tree::ptree &opts) override |
Public Member Functions inherited from knowrob::GraphTransformation | |
GraphTransformation ()=default | |
virtual | ~GraphTransformation ()=default |
void | setOrigin (std::string_view origin) |
auto | origin () const |
void | apply (OntologySource &ontologySource, const TripleHandler &callback) |
GraphTransformation ()=default | |
virtual | ~GraphTransformation ()=default |
void | setOrigin (std::string_view origin) |
auto | origin () const |
void | apply (OntologySource &ontologySource, const TripleHandler &callback) |
Protected Member Functions | |
void | doTransformation (GraphTransformationRule &rule) |
bool | readFromFile (const std::string &filename) |
void | initializeTransformation () override |
void | finalizeTransformation () override |
void | pushInputTriples (const TripleContainerPtr &triples) override |
void | doTransformation (GraphTransformationRule &rule) |
bool | readFromFile (const std::string &filename) |
void | initializeTransformation () override |
void | finalizeTransformation () override |
void | pushInputTriples (const TripleContainerPtr &triples) override |
Protected Member Functions inherited from knowrob::GraphTransformation | |
void | initializeNext () |
void | finalizeNext () |
void | setNext (const std::shared_ptr< GraphTransformation > &next) |
void | setNext (const TripleHandler &next) |
void | pushOutputTriples (const TripleContainerPtr &triples) |
void | initializeNext () |
void | finalizeNext () |
void | setNext (const std::shared_ptr< GraphTransformation > &next) |
void | setNext (const TripleHandler &next) |
void | pushOutputTriples (const TripleContainerPtr &triples) |
Static Protected Member Functions | |
static TriplePatternPtr | readTriplePattern (const std::string &filename) |
static TriplePatternPtr | readTriplePattern (const std::string &filename) |
Protected Attributes | |
std::unique_ptr< RedlandModel > | model_ |
std::vector< std::shared_ptr< GraphTransformationRule > > | rules_ |
Protected Attributes inherited from knowrob::GraphTransformation | |
TripleHandler | next_ |
std::shared_ptr< GraphTransformation > | nextTransformation_ |
std::string | origin_ |
Additional Inherited Members | |
Static Public Member Functions inherited from knowrob::GraphTransformation | |
static std::shared_ptr< GraphTransformation > | create (const boost::property_tree::ptree &config) |
static std::shared_ptr< GraphTransformation > | create (const boost::property_tree::ptree &config) |
A graph transformation that restructures and possibly renames entities in the input graph.
Definition at line 19 of file GraphRestructuring.h.
GraphRestructuring::GraphRestructuring | ( | ) |
Definition at line 15 of file GraphRestructuring.cpp.
knowrob::GraphRestructuring::GraphRestructuring | ( | ) |
void GraphRestructuring::addRule | ( | std::shared_ptr< GraphTransformationRule > | rule | ) |
Adds a rule to this transformation.
rule | a rule. |
Definition at line 20 of file GraphRestructuring.cpp.
void knowrob::GraphRestructuring::addRule | ( | std::shared_ptr< GraphTransformationRule > | rule | ) |
Adds a rule to this transformation.
rule | a rule. |
|
overridevirtual |
Configure the transformation with the given options.
config | the options |
Implements knowrob::GraphTransformation.
Definition at line 24 of file GraphRestructuring.cpp.
|
overridevirtual |
Configure the transformation with the given options.
config | the options |
Implements knowrob::GraphTransformation.
|
protected |
Definition at line 129 of file GraphRestructuring.cpp.
|
protected |
|
overrideprotectedvirtual |
Finalize the transformation.
Implements knowrob::GraphTransformation.
Definition at line 111 of file GraphRestructuring.cpp.
|
overrideprotectedvirtual |
Finalize the transformation.
Implements knowrob::GraphTransformation.
|
overrideprotectedvirtual |
Initialize the transformation.
Implements knowrob::GraphTransformation.
Definition at line 105 of file GraphRestructuring.cpp.
|
overrideprotectedvirtual |
Initialize the transformation.
Implements knowrob::GraphTransformation.
|
overrideprotectedvirtual |
Push input triples to the transformation.
triples | the input triples |
Implements knowrob::GraphTransformation.
Definition at line 125 of file GraphRestructuring.cpp.
|
overrideprotectedvirtual |
Push input triples to the transformation.
triples | the input triples |
Implements knowrob::GraphTransformation.
|
protected |
Definition at line 38 of file GraphRestructuring.cpp.
|
protected |
|
staticprotected |
Definition at line 93 of file GraphRestructuring.cpp.
|
staticprotected |
|
protected |
Definition at line 33 of file GraphRestructuring.h.
|
protected |
Definition at line 34 of file GraphRestructuring.h.