knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
MongoTriple.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_MONGO_TRIPLE_H
7
#define KNOWROB_MONGO_TRIPLE_H
8
9
#include "knowrob/semweb/Vocabulary.h"
10
#include "knowrob/semweb/Triple.h"
11
#include "
Document.h
"
12
13
namespace
knowrob::mongo
{
17
class
MongoTriple {
18
public
:
19
MongoTriple
(
const
VocabularyPtr
&vocabulary,
20
const
Triple
&tripleData,
21
const
std::string
&fallbackOrigin,
22
bool
isTaxonomic);
23
27
auto
&
document
()
const
{
return
document_
; }
28
29
protected
:
30
Document
document_
;
31
32
static
bson_t *
createDocument
(
33
const
VocabularyPtr
&vocabulary,
34
const
Triple
&tripleData,
35
const
std::string
&fallbackOrigin,
36
bool
isTaxonomic);
37
};
38
39
}
// knowrob
40
41
#endif
//KNOWROB_MONGO_TRIPLE_H
knowrob::Triple
Definition:
Triple.h:20
knowrob::mongo::Document
Definition:
Document.h:16
knowrob::mongo::MongoTriple::MongoTriple
MongoTriple(const VocabularyPtr &vocabulary, const Triple &tripleData, const std::string &fallbackOrigin, bool isTaxonomic)
knowrob::mongo::MongoTriple::createDocument
static bson_t * createDocument(const VocabularyPtr &vocabulary, const Triple &tripleData, const std::string &fallbackOrigin, bool isTaxonomic)
knowrob::mongo::MongoTriple::document
auto & document() const
Definition:
MongoTriple.h:27
knowrob::mongo::MongoTriple::document_
Document document_
Definition:
MongoTriple.h:30
Document.h
knowrob::mongo
Definition:
BindingsCursor.h:12
knowrob::parsers::terms::string
TermRule & string()
Definition:
terms.cpp:63
knowrob::VocabularyPtr
std::shared_ptr< Vocabulary > VocabularyPtr
Definition:
Vocabulary.h:233
include
knowrob
storage
mongo
MongoTriple.h
Generated by
1.9.1