knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
OntologyFile.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_ONTOLOGY_FILE_H
7 #define KNOWROB_ONTOLOGY_FILE_H
8 
9 #include "knowrob/semweb/OntologySource.h"
10 #include "knowrob/semweb/TripleContainer.h"
11 #include "knowrob/semweb/TripleFormat.h"
12 #include "knowrob/semweb/OntologyLanguage.h"
13 #include "knowrob/semweb/Vocabulary.h"
14 
15 namespace knowrob {
19  class OntologyFile : public OntologySource {
20  public:
26  OntologyFile(VocabularyPtr vocabulary, const URI &uri, std::string_view format);
27 
32 
37 
42 
43  // Override OntologySource
44  bool load(const TripleHandler &callback) override;
45 
46  protected:
50  };
51 
52 } // knowrob
53 
54 #endif //KNOWROB_ONTOLOGY_FILE_H
const auto & format() const
Definition: DataSource.h:49
const auto & uri() const
Definition: DataSource.h:39
semweb::TripleFormat tripleFormat() const
Definition: OntologyFile.h:31
VocabularyPtr vocabulary_
Definition: OntologyFile.h:47
semweb::OntologyLanguage ontologyLanguage() const
Definition: OntologyFile.h:41
semweb::OntologyLanguage ontologyLanguage_
Definition: OntologyFile.h:49
semweb::TripleFormat tripleFormat_
Definition: OntologyFile.h:48
OntologyFile(VocabularyPtr vocabulary, const URI &uri, std::string_view format)
void setOntologyLanguage(semweb::OntologyLanguage language)
Definition: OntologyFile.h:36
bool load(const TripleHandler &callback) override
std::function< void(const TripleContainerPtr &)> TripleHandler
std::shared_ptr< Vocabulary > VocabularyPtr
Definition: Vocabulary.h:233