Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRdfTriple.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKRDFTRIPLE_H
18 #define MITKRDFTRIPLE_H
19 
20 #include <MitkRDFExports.h>
21 
22 #include "mitkRdfNode.h"
23 
24 namespace mitk {
28  class MITKRDF_EXPORT RdfTriple
29  {
30  public:
31 
35  RdfTriple();
36 
43  RdfTriple(RdfNode subject, RdfNode predicate, RdfNode object);
44 
51  RdfTriple(RdfNode subject, RdfNode property, std::string value);
52 
53  virtual ~RdfTriple();
54 
59  void SetTripleSubject(RdfNode subject);
60 
65  void SetTriplePredicate(RdfNode predicate);
66 
71  void SetTripleObject(RdfNode object);
72 
77  void SetTripleObject(std::string text);
78 
83  RdfNode GetTripleSubject() const;
84 
89  RdfNode GetTriplePredicate() const;
90 
95  RdfNode GetTripleObject() const;
96 
97  bool operator==(const RdfTriple &u) const;
98  bool operator!=(const RdfTriple &u) const;
99 
100  private:
101  RdfNode m_Subject;
102  RdfNode m_Predicate;
103  RdfNode m_Object;
104  };
105 
106  MITKRDF_EXPORT std::ostream & operator<<(std::ostream &out, const RdfTriple &t);
107 }
108 
109 #endif // MITKRDFTRIPLE_H
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)