owlcpp  v0.3.3~
C++ library for working with OWL ontologies
All Classes Namespaces Files Functions Macros Pages
print_triple.hpp
Go to the documentation of this file.
1 
6 #ifndef PRINT_TRIPLE_HPP_
7 #define PRINT_TRIPLE_HPP_
8 #include <sstream>
10 #include "owlcpp/rdf/triple.hpp"
11 
12 namespace owlcpp{
13 
16 inline std::string to_string(Triple const& t, Triple_store const& ts) {
17  std::ostringstream str;
18  str
19  << to_string(t.subj_, ts) << ' '
20  << to_string(t.pred_, ts) << ' '
21  << to_string(t.obj_, ts)
22  ;
23  return str.str();
24 }
25 
26 }//namespace owlcpp
27 #endif /* PRINT_TRIPLE_HPP_ */