Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::RdfNode Class Reference

#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
 

Detailed Description

Definition at line 31 of file mitkRdfNode.h.

Constructor & Destructor Documentation

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.

Parameters
uriAn 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.

Parameters
textA 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.

Parameters
textA std::string which represents a literal.
dataTypeAn RdfUri which represents a specific data type.

Definition at line 43 of file mitkRdfNode.cpp.

mitk::RdfNode::~RdfNode ( )
virtual

Definition at line 48 of file mitkRdfNode.cpp.

Member Function Documentation

RdfUri mitk::RdfNode::GetDatatype ( ) const

Get the data type of the internal value of a node.

Returns
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.

Returns
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.

Returns
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.

Parameters
dataTypeAn 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.

Parameters
typeAn 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.

Parameters
valueA std::string which represents an URI or a text.

Definition at line 62 of file mitkRdfNode.cpp.


The documentation for this class was generated from the following files: