owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
triple_printer.hpp
Go to the documentation of this file.
1 
6 #ifndef TRIPLE_PRINTER_HPP_
7 #define TRIPLE_PRINTER_HPP_
8 #include <iostream>
9 #include "raptor2.h"
10 
11 namespace owlcpp{ namespace test{
12 
16  void insert(void const* statement) {
17  const raptor_statement* rs = static_cast<const raptor_statement*>(statement);
18  std::cout
19  << raptor_term_to_string(rs->subject) << ' '
20  << raptor_term_to_string(rs->predicate) << ' '
21  << raptor_term_to_string(rs->object) << '\n'
22  ;
23  }
24 };
25 
26 
27 }//namespace test
28 }//namespace owlcpp
29 #endif /* TRIPLE_PRINTER_HPP_ */