6 #ifndef KNOWROB_ONTOLOGY_FILE_H
7 #define KNOWROB_ONTOLOGY_FILE_H
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"
19 class OntologyFile :
public OntologySource {
const auto & format() const
semweb::TripleFormat tripleFormat() const
VocabularyPtr vocabulary_
semweb::OntologyLanguage ontologyLanguage() const
semweb::OntologyLanguage ontologyLanguage_
semweb::TripleFormat tripleFormat_
OntologyFile(VocabularyPtr vocabulary, const URI &uri, std::string_view format)
void setOntologyLanguage(semweb::OntologyLanguage language)
bool load(const TripleHandler &callback) override
std::function< void(const TripleContainerPtr &)> TripleHandler
std::shared_ptr< Vocabulary > VocabularyPtr