6 #ifndef KNOWROB_MONGO_TAXONOMY_H
7 #define KNOWROB_MONGO_TAXONOMY_H
21 using StringPair = std::pair<std::string_view, std::string_view>;
23 MongoTaxonomy(
const std::shared_ptr<mongo::Collection> &tripleCollection,
24 const std::shared_ptr<mongo::Collection> &oneCollection,
28 const std::vector<StringPair> &subClassAssertions,
29 const std::vector<StringPair> &subPropertyAssertions);
32 const std::vector<StringPair> &subClassAssertions,
33 const std::vector<StringPair> &subPropertyAssertions);
41 const std::vector<StringPair> &subClassAssertions,
42 const std::vector<StringPair> &subPropertyAssertions,
MongoTaxonomy(const std::shared_ptr< mongo::Collection > &tripleCollection, const std::shared_ptr< mongo::Collection > &oneCollection, const VocabularyPtr &vocabulary)
std::pair< std::string_view, std::string_view > StringPair
std::shared_ptr< mongo::Collection > oneCollection_
void updateInsert(const std::vector< StringPair > &subClassAssertions, const std::vector< StringPair > &subPropertyAssertions)
void update(const std::vector< StringPair > &subClassAssertions, const std::vector< StringPair > &subPropertyAssertions, bool isInsert)
std::shared_ptr< mongo::Collection > tripleCollection_
void updateRemove(const std::vector< StringPair > &subClassAssertions, const std::vector< StringPair > &subPropertyAssertions)
VocabularyPtr vocabulary_
std::shared_ptr< Vocabulary > VocabularyPtr