Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:knowrob2_migration [2020/07/22 10:08] – [Migration of commonly used queries] 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. | ||
Line 7: | Line 9: | ||
===== Migration of commonly used queries ===== | ===== Migration of commonly used queries ===== | ||
- | ^ Old query ^ New Query ^ Comment | + | ==== Registering of old KnowRob packages ===== |
- | | <code prolog>? | + | |
- | ?- register_ros_package(knowrob_vis). | + | 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). | ?- register_ros_package(knowrob). | ||
- | </ | + | </ |
- | | <code prolog>? | + | ==== Loading .owl files ===== |
- | ?- register_ros_package(knowrob_vis). | + | |
+ | OWL files where loadid | ||
+ | |||
+ | | <code prolog>? | ||
+ | ?- rdf_db: | ||
+ | yourontology, | ||
</ | </ | ||
- | ?- register_ros_package(knowrob). | + | ?- tripledb_load( |
- | </ | + | ' |
+ | [ | ||
+ | | ||
+ | | ||
+ | ' | ||
+ | ) | ||
+ | ]). | ||
+ | </ | ||
+ | | <code prolog>? | ||
+ | </ | ||
+ | ?- tripledb_load(' | ||
+ | </ |