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

#include <mitkRdfTriple.h>

Public Member Functions

 RdfTriple ()
 
 RdfTriple (RdfNode subject, RdfNode predicate, RdfNode object)
 
 RdfTriple (RdfNode subject, RdfNode property, std::string value)
 
virtual ~RdfTriple ()
 
void SetTripleSubject (RdfNode subject)
 
void SetTriplePredicate (RdfNode predicate)
 
void SetTripleObject (RdfNode object)
 
void SetTripleObject (std::string text)
 
RdfNode GetTripleSubject () const
 
RdfNode GetTriplePredicate () const
 
RdfNode GetTripleObject () const
 
bool operator== (const RdfTriple &u) const
 
bool operator!= (const RdfTriple &u) const
 

Detailed Description

Definition at line 28 of file mitkRdfTriple.h.

Constructor & Destructor Documentation

mitk::RdfTriple::RdfTriple ( )

Construct a empty invalid triple.

Definition at line 22 of file mitkRdfTriple.cpp.

mitk::RdfTriple::RdfTriple ( RdfNode  subject,
RdfNode  predicate,
RdfNode  object 
)

Construct a normal triple with two nodes and an object property node between.

Parameters
subjectA node.
predicateA node which represents an object property.
objectA node.

Definition at line 26 of file mitkRdfTriple.cpp.

mitk::RdfTriple::RdfTriple ( RdfNode  subject,
RdfNode  property,
std::string  value 
)

Construct a normal triple with a node, a data property and a value.

Parameters
subjectA node.
predicateA node which represents a data property.
valueA text value.

Definition at line 31 of file mitkRdfTriple.cpp.

mitk::RdfTriple::~RdfTriple ( )
virtual

Definition at line 36 of file mitkRdfTriple.cpp.

Member Function Documentation

RdfNode mitk::RdfTriple::GetTripleObject ( ) const

Get the object of a triple.

Returns
The object of a triple.

Definition at line 71 of file mitkRdfTriple.cpp.

Referenced by mitk::operator<<().

RdfNode mitk::RdfTriple::GetTriplePredicate ( ) const

Get the predicate of a triple.

Returns
The predicate of a triple.

Definition at line 66 of file mitkRdfTriple.cpp.

Referenced by mitk::operator<<().

RdfNode mitk::RdfTriple::GetTripleSubject ( ) const

Get the subject of a triple.

Returns
The subject of a triple.

Definition at line 61 of file mitkRdfTriple.cpp.

Referenced by mitk::operator<<().

bool mitk::RdfTriple::operator!= ( const RdfTriple u) const

Definition at line 84 of file mitkRdfTriple.cpp.

References operator==().

bool mitk::RdfTriple::operator== ( const RdfTriple u) const

Definition at line 76 of file mitkRdfTriple.cpp.

Referenced by operator!=().

void mitk::RdfTriple::SetTripleObject ( RdfNode  object)

Set the object of a triple with an object property.

Parameters
objectA node from type URI, BLANK or LITERAL.

Definition at line 50 of file mitkRdfTriple.cpp.

void mitk::RdfTriple::SetTripleObject ( std::string  text)

Set the object of a triple with a data property as text.

Parameters
textA literal value..

Definition at line 55 of file mitkRdfTriple.cpp.

void mitk::RdfTriple::SetTriplePredicate ( RdfNode  predicate)

Set the predicate of a triple.

Parameters
predicateA node from type URI which can represent an object property or a data property.

Definition at line 45 of file mitkRdfTriple.cpp.

void mitk::RdfTriple::SetTripleSubject ( RdfNode  subject)

Set the subject of a triple.

Parameters
subjectA node from type URI or BLANK.

Definition at line 40 of file mitkRdfTriple.cpp.


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