knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
RDFNode.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_RDF_NODE_H
7
#define KNOWROB_RDF_NODE_H
8
9
#include <string>
10
11
namespace
knowrob
{
15
enum class
RDFNodeType
{
17
BLANK
,
19
IRI
,
21
LITERAL
22
};
23
27
class
RDFNode {
28
public
:
29
explicit
RDFNode
(
RDFNodeType
rdfNodeType
) :
rdfNodeType_
(
rdfNodeType
) {}
30
31
auto
rdfNodeType
()
const
{
return
rdfNodeType_
; }
32
33
protected
:
34
const
RDFNodeType
rdfNodeType_
;
35
};
36
42
RDFNodeType
rdfNodeTypeGuess
(std::string_view str);
43
44
}
// knowrob
45
46
#endif
//KNOWROB_RDF_NODE_H
knowrob::RDFNode::rdfNodeType
auto rdfNodeType() const
Definition:
RDFNode.h:31
knowrob::RDFNode::rdfNodeType_
const RDFNodeType rdfNodeType_
Definition:
RDFNode.h:34
knowrob::RDFNode::RDFNode
RDFNode(RDFNodeType rdfNodeType)
Definition:
RDFNode.h:29
knowrob
Definition:
DataSource.h:13
knowrob::rdfNodeTypeGuess
RDFNodeType rdfNodeTypeGuess(std::string_view str)
Definition:
RDFNode.cpp:11
knowrob::RDFNodeType
RDFNodeType
Definition:
RDFNode.h:15
knowrob::RDFNodeType::BLANK
@ BLANK
knowrob::RDFNodeType::IRI
@ IRI
knowrob::RDFNodeType::LITERAL
@ LITERAL
include
knowrob
terms
RDFNode.h
Generated by
1.9.1