|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <OntologySource.h>


Public Member Functions | |
| OntologySource (const URI &uri, std::string_view format) | |
| virtual | ~OntologySource ()=default |
| void | setFrame (const GraphSelectorPtr &frame) |
| const auto & | frame () const |
| void | setParentOrigin (std::string_view parentOrigin) |
| auto & | parentOrigin () const |
| std::string_view | origin () const |
| virtual bool | load (const TripleHandler &callback)=0 |
| const auto & | imports () const |
| void | setImports (const std::vector< std::string > &imports) |
| OntologySource (const URI &uri, std::string_view format) | |
| virtual | ~OntologySource ()=default |
| void | setFrame (const GraphSelectorPtr &frame) |
| const auto & | frame () const |
| void | setParentOrigin (std::string_view parentOrigin) |
| auto & | parentOrigin () const |
| std::string_view | origin () const |
| virtual bool | load (const TripleHandler &callback)=0 |
| const auto & | imports () const |
| void | setImports (const std::vector< std::string > &imports) |
Public Member Functions inherited from knowrob::DataSource | |
| DataSource (URI uri, std::string_view format, DataSourceType dataSourceType) | |
| const auto & | uri () const |
| const auto & | path () const |
| const auto & | format () const |
| DataSourceType | dataSourceType () const |
| auto | name () const |
| auto | version () const |
| DataSource (URI uri, std::string_view format, DataSourceType dataSourceType) | |
| const auto & | uri () const |
| const auto & | path () const |
| const auto & | format () const |
| DataSourceType | dataSourceType () const |
| auto | name () const |
| auto | version () const |
Protected Attributes | |
| GraphSelectorPtr | frame_ |
| std::optional< std::string > | parentOrigin_ |
| std::string | origin_ |
| std::vector< std::string > | imports_ |
Protected Attributes inherited from knowrob::DataSource | |
| DataSourceType | dataSourceType_ |
| std::string | format_ |
| URI | uri_ |
Additional Inherited Members | |
Static Public Member Functions inherited from knowrob::DataSource | |
| static std::string | getNameFromURI (const std::string &uriString) |
| static std::string | getVersionFromURI (const std::string &uriString) |
| static bool | isVersionString (const std::string &versionString) |
| static std::shared_ptr< DataSource > | create (const VocabularyPtr &vocabulary, const boost::property_tree::ptree &config) |
| static std::string | getNameFromURI (const std::string &uriString) |
| static std::string | getVersionFromURI (const std::string &uriString) |
| static bool | isVersionString (const std::string &versionString) |
| static std::shared_ptr< DataSource > | create (const VocabularyPtr &vocabulary, const boost::property_tree::ptree &config) |
An ontology source is a data source that contains triples.
Definition at line 17 of file OntologySource.h.
|
inline |
Definition at line 19 of file OntologySource.h.
|
virtualdefault |
|
inline |
Definition at line 19 of file OntologySource.h.
|
virtualdefault |
|
inline |
Definition at line 27 of file OntologySource.h.
|
inline |
Definition at line 27 of file OntologySource.h.
|
inline |
|
inline |
|
pure virtual |
Load triples from the SPARQL endpoint.
| callback | the callback to handle the triples. |
Implemented in knowrob::TransformedOntology, knowrob::SPARQLService, knowrob::OntologyFile, knowrob::TransformedOntology, knowrob::SPARQLService, and knowrob::OntologyFile.
|
pure virtual |
Load triples from the SPARQL endpoint.
| callback | the callback to handle the triples. |
Implemented in knowrob::TransformedOntology, knowrob::SPARQLService, knowrob::OntologyFile, knowrob::TransformedOntology, knowrob::SPARQLService, and knowrob::OntologyFile.
|
inline |
|
inline |
|
inline |
Definition at line 38 of file OntologySource.h.
|
inline |
|
inline |
Definition at line 25 of file OntologySource.h.
|
inline |
Definition at line 25 of file OntologySource.h.
|
inline |
|
inline |
| imports | the imports of the ontology. |
Definition at line 60 of file OntologySource.h.
|
inline |
The meaning is that parent origin imports this ontology file.
| parentOrigin | the origin of the parent ontology. |
Definition at line 33 of file OntologySource.h.
|
inline |
The meaning is that parent origin imports this ontology file.
| parentOrigin | the origin of the parent ontology. |
Definition at line 33 of file OntologySource.h.
|
protected |
Definition at line 63 of file OntologySource.h.
|
protected |
Definition at line 66 of file OntologySource.h.
|
protected |
Definition at line 65 of file OntologySource.h.
|
protected |
Definition at line 64 of file OntologySource.h.