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


Public Member Functions | |
| OntologyFile (VocabularyPtr vocabulary, const URI &uri, std::string_view format) | |
| semweb::TripleFormat | tripleFormat () const |
| void | setOntologyLanguage (semweb::OntologyLanguage language) |
| semweb::OntologyLanguage | ontologyLanguage () const |
| bool | load (const TripleHandler &callback) override |
| OntologyFile (VocabularyPtr vocabulary, const URI &uri, std::string_view format) | |
| semweb::TripleFormat | tripleFormat () const |
| void | setOntologyLanguage (semweb::OntologyLanguage language) |
| semweb::OntologyLanguage | ontologyLanguage () const |
| bool | load (const TripleHandler &callback) override |
Public Member Functions inherited from knowrob::OntologySource | |
| 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 |
| 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 |
| 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 | |
| VocabularyPtr | vocabulary_ |
| semweb::TripleFormat | tripleFormat_ |
| semweb::OntologyLanguage | ontologyLanguage_ |
Protected Attributes inherited from knowrob::OntologySource | |
| 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 file is a data source that provides ontology data in a file.
Definition at line 19 of file OntologyFile.h.
| OntologyFile::OntologyFile | ( | VocabularyPtr | vocabulary, |
| const URI & | uri, | ||
| std::string_view | format | ||
| ) |
| vocabulary | the vocabulary of the ontology. |
| uri | URI of the data source. |
| format | string identifier of the data format. |
Definition at line 14 of file OntologyFile.cpp.
| knowrob::OntologyFile::OntologyFile | ( | VocabularyPtr | vocabulary, |
| const URI & | uri, | ||
| std::string_view | format | ||
| ) |
| vocabulary | the vocabulary of the ontology. |
| uri | URI of the data source. |
| format | string identifier of the data format. |
|
overridevirtual |
Load triples from the SPARQL endpoint.
| callback | the callback to handle the triples. |
Implements knowrob::OntologySource.
Definition at line 21 of file OntologyFile.cpp.
|
overridevirtual |
Load triples from the SPARQL endpoint.
| callback | the callback to handle the triples. |
Implements knowrob::OntologySource.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 49 of file OntologyFile.h.
|
protected |
Definition at line 48 of file OntologyFile.h.
|
protected |
Definition at line 47 of file OntologyFile.h.