Differences

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

Link to this comparison view

Both sides previous revision Previous revision
doc:knowrob2_migration [2020/07/22 12:31]
sasjonge [Migration of commonly used queries]
doc:knowrob2_migration [2020/07/22 13:32] (current)
sasjonge [Migration of commonly used queries]
Line 9: Line 9:
 ===== Migration of commonly used queries ===== ===== Migration of commonly used queries =====
  
-^ Old query(s) ​     ^ New Query       ^ Comment ​         ^ +==== Registering of old KnowRob packages ===== 
-<code prolog>?​- register_ros_package(knowrob_common). + 
-?- register_ros_package(knowrob_vis). +Many of the packages of the old knowrob/​knowrob repository, e.g. knowrob_common or knowrob_vis have been merged into one knowrob package. Therefore calls of the form  
-</​code> ​   ​| ​<code prolog>+ 
 +<code prolog>?​- register_ros_package(knowrob_common). 
 +?- register_ros_package(knowrob_vis).</​code>​ 
 + 
 +can be replaced by 
 + 
 +<code prolog>
 ?- register_ros_package(knowrob). ?- register_ros_package(knowrob).
-</​code> ​   | Many of the sub packages of the knowrob/​knowrob repository have been merged into the knowrob package |+</​code> ​   
 + 
 +==== Loading .owl files ===== 
 + 
 +OWL files where loadid 
 | <code prolog>?​- owl_parser:​owl_parse('​package://​knowrob_yourpackage/​owl/​yourontology.owl'​). | <code prolog>?​- owl_parser:​owl_parse('​package://​knowrob_yourpackage/​owl/​yourontology.owl'​).
 ?- rdf_db:​rdf_register_prefix( ?- rdf_db:​rdf_register_prefix(