Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:knowrob2_migration [2020/07/22 09:53] – created sasjonge | doc:knowrob2_migration [2020/07/22 13:32] (current) – [Migration of commonly used queries] sasjonge | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Migrating to KnowRob 2.0 ====== | ====== Migrating to KnowRob 2.0 ====== | ||
+ | |||
+ | **This page is a work in progress** | ||
The current master branch contains a redesign of KnowRob. The redesign changes the way how Knowrob has to be included into your project. Additionally some queries were replaced. | The current master branch contains a redesign of KnowRob. The redesign changes the way how Knowrob has to be included into your project. Additionally some queries were replaced. | ||
+ | |||
+ | ===== Changes in the project dependencies and imports ===== | ||
+ | |||
+ | ===== Migration of commonly used queries ===== | ||
+ | |||
+ | ==== Registering of old KnowRob packages ===== | ||
+ | |||
+ | Many of the packages of the old knowrob/ | ||
+ | |||
+ | <code prolog>? | ||
+ | ?- register_ros_package(knowrob_vis).</ | ||
+ | |||
+ | can be replaced by | ||
+ | |||
+ | <code prolog> | ||
+ | ?- register_ros_package(knowrob). | ||
+ | </ | ||
+ | |||
+ | ==== Loading .owl files ===== | ||
+ | |||
+ | OWL files where loadid | ||
+ | |||
+ | | <code prolog>? | ||
+ | ?- rdf_db: | ||
+ | yourontology, | ||
+ | </ | ||
+ | ?- tripledb_load( | ||
+ | ' | ||
+ | [ | ||
+ | | ||
+ | | ||
+ | ' | ||
+ | ) | ||
+ | ]). | ||
+ | </ | ||
+ | | <code prolog>? | ||
+ | </ | ||
+ | ?- tripledb_load(' | ||
+ | </ |