Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkRdfNode.h>
Public Types | |
enum | Type { NOTHING, URI, LITERAL, BLANK } |
Public Member Functions | |
RdfNode () | |
RdfNode (RdfUri uri) | |
RdfNode (std::string text) | |
RdfNode (std::string text, RdfUri dataType) | |
virtual | ~RdfNode () |
void | SetType (Type type) |
void | SetDatatype (RdfUri dataType) |
void | SetValue (std::string value) |
Type | GetType () const |
RdfUri | GetDatatype () const |
std::string | GetValue () const |
bool | operator== (const RdfNode &u) const |
bool | operator!= (const RdfNode &u) const |
Definition at line 31 of file mitkRdfNode.h.
mitk::RdfNode::RdfNode | ( | ) |
Construct a empty invalid node.
Definition at line 28 of file mitkRdfNode.cpp.
mitk::RdfNode::RdfNode | ( | RdfUri | uri | ) |
Construct a node from type URI which represents a object of the real world.
uri | An RdfUri which represents a URI. |
Definition at line 33 of file mitkRdfNode.cpp.
mitk::RdfNode::RdfNode | ( | std::string | text | ) |
Construct a node from type LITERAL.
text | A std::string which represents a literal. |
Definition at line 38 of file mitkRdfNode.cpp.
mitk::RdfNode::RdfNode | ( | std::string | text, |
RdfUri | dataType | ||
) |
Construct a node from type LITERAL with a specific data type.
text | A std::string which represents a literal. |
dataType | An RdfUri which represents a specific data type. |
Definition at line 43 of file mitkRdfNode.cpp.
|
virtual |
Definition at line 48 of file mitkRdfNode.cpp.
RdfUri mitk::RdfNode::GetDatatype | ( | ) | const |
Get the data type of the internal value of a node.
Definition at line 72 of file mitkRdfNode.cpp.
Referenced by mitk::operator<<().
RdfNode::Type mitk::RdfNode::GetType | ( | ) | const |
Get the type of a node.
Definition at line 67 of file mitkRdfNode.cpp.
Referenced by mitk::operator<<().
std::string mitk::RdfNode::GetValue | ( | ) | const |
Get the internal value of a node.
Definition at line 77 of file mitkRdfNode.cpp.
Referenced by mitk::operator<<().
bool mitk::RdfNode::operator!= | ( | const RdfNode & | u | ) | const |
Definition at line 90 of file mitkRdfNode.cpp.
References operator==().
bool mitk::RdfNode::operator== | ( | const RdfNode & | u | ) | const |
Definition at line 82 of file mitkRdfNode.cpp.
Referenced by operator!=().
void mitk::RdfNode::SetDatatype | ( | RdfUri | dataType | ) |
Set the data type of a LITERAL Node.
dataType | An RdfUri which represents an URI of a specific data type. |
Definition at line 57 of file mitkRdfNode.cpp.
void mitk::RdfNode::SetType | ( | RdfNode::Type | type | ) |
Set the type of a Node.
type | An RdfNode::Type which represents a type of a node. |
Definition at line 52 of file mitkRdfNode.cpp.
void mitk::RdfNode::SetValue | ( | std::string | value | ) |
Set the internal represantation of an URI or a text.
value | A std::string which represents an URI or a text. |
Definition at line 62 of file mitkRdfNode.cpp.