Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
doc:logging:tutorials-cpp [2014/09/19 07:45] – [Non-Default Contexts] winklerdoc:logging:tutorials-cpp [2014/09/19 15:13] – Added info on registering custom OWL namespaces winkler
Line 300: Line 300:
  
  
 +=== Registering custom OWL namespaces ===
 +
 +When using custom namespaces in the entity class definitions, these namespaces need to be registered properly in the OWL file when exporting it. In order to do that, add this line to your program before exporting your logged data:
 +<code cpp>
 +bscl->registerOWLNamespace("sim", "http://some-namespace.org/#");
 +</code>
 +with both parameters representing your use-case, of course.
 +
 +Custom namespaces can therefore be registered by calling
 +`void BeliefstateClient::registerOWLNamespace(std::string strShortcut, std::string strIRI);`
 +where the shortcut is the short version of the namespace, i.e. `sim`, and the IRI is the actual URL you want to have associated.
 ==== Sample Program ==== ==== Sample Program ====
  
 A complete sample program depicting the ''beliefstate_client'' usage can be found [[doc:logging:tutorials-cpp:sample-program|here]]. A complete sample program depicting the ''beliefstate_client'' usage can be found [[doc:logging:tutorials-cpp:sample-program|here]].