#include <MongoTaxonomy.h>
|
using | StringPair = std::pair< std::string_view, std::string_view > |
|
using | StringPair = std::pair< std::string_view, std::string_view > |
|
|
void | update (const std::vector< StringPair > &subClassAssertions, const std::vector< StringPair > &subPropertyAssertions, bool isInsert) |
|
void | update (const std::vector< StringPair > &subClassAssertions, const std::vector< StringPair > &subPropertyAssertions, bool isInsert) |
|
A class to update the taxonomy in a MongoDB.
Definition at line 19 of file MongoTaxonomy.h.
◆ StringPair [1/2]
◆ StringPair [2/2]
◆ MongoTaxonomy() [1/2]
Definition at line 16 of file MongoTaxonomy.cpp.
std::shared_ptr< mongo::Collection > oneCollection_
std::shared_ptr< mongo::Collection > tripleCollection_
VocabularyPtr vocabulary_
◆ MongoTaxonomy() [2/2]
◆ update() [1/2]
void MongoTaxonomy::update |
( |
const std::vector< StringPair > & |
subClassAssertions, |
|
|
const std::vector< StringPair > & |
subPropertyAssertions, |
|
|
bool |
isInsert |
|
) |
| |
|
protected |
Definition at line 193 of file MongoTaxonomy.cpp.
200 if (subClassAssertions.empty() && subPropertyAssertions.empty())
return;
207 if (!subClassAssertions.empty()) {
210 if (!subPropertyAssertions.empty()) {
215 if (!subPropertyAssertions.empty()) {
216 std::set<std::string_view> invalidPropertyAssertions;
217 for (
auto &assertion: subPropertyAssertions) {
218 invalidPropertyAssertions.insert(assertion.first);
221 bulkUpdateTriples_insert(bulk,
vocabulary_, invalidPropertyAssertions);
227 if (!bulk->empty()) {
const IRIAtomPtr subPropertyOf
const IRIAtomPtr subClassOf
◆ update() [2/2]
void knowrob::mongo::MongoTaxonomy::update |
( |
const std::vector< StringPair > & |
subClassAssertions, |
|
|
const std::vector< StringPair > & |
subPropertyAssertions, |
|
|
bool |
isInsert |
|
) |
| |
|
protected |
◆ updateInsert() [1/2]
void MongoTaxonomy::updateInsert |
( |
const std::vector< StringPair > & |
subClassAssertions, |
|
|
const std::vector< StringPair > & |
subPropertyAssertions |
|
) |
| |
Definition at line 181 of file MongoTaxonomy.cpp.
184 update(subClassAssertions, subPropertyAssertions,
true);
void update(const std::vector< StringPair > &subClassAssertions, const std::vector< StringPair > &subPropertyAssertions, bool isInsert)
◆ updateInsert() [2/2]
void knowrob::mongo::MongoTaxonomy::updateInsert |
( |
const std::vector< StringPair > & |
subClassAssertions, |
|
|
const std::vector< StringPair > & |
subPropertyAssertions |
|
) |
| |
◆ updateRemove() [1/2]
void MongoTaxonomy::updateRemove |
( |
const std::vector< StringPair > & |
subClassAssertions, |
|
|
const std::vector< StringPair > & |
subPropertyAssertions |
|
) |
| |
◆ updateRemove() [2/2]
void knowrob::mongo::MongoTaxonomy::updateRemove |
( |
const std::vector< StringPair > & |
subClassAssertions, |
|
|
const std::vector< StringPair > & |
subPropertyAssertions |
|
) |
| |
◆ oneCollection_
◆ tripleCollection_
std::shared_ptr< mongo::Collection > knowrob::mongo::MongoTaxonomy::tripleCollection_ |
|
protected |
◆ vocabulary_
The documentation for this class was generated from the following files: