This is an old revision of the document!
Migrating to KnowRob 2.0
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
Old query(s) | New Query | Comment |
---|---|---|
?- register_ros_package(knowrob_common). ?- register_ros_package(knowrob_vis). | ?- register_ros_package(knowrob). | Many of the sub packages of the knowrob/knowrob repository have been merged into the knowrob package |
?- owl_parser:owl_parse('package://knowrob_yourpackage/owl/yourontology.owl'). ?- rdf_db:rdf_register_prefix(yourontology, 'http://knowrob_yourpackage/owl/yourontology.owl#', [keep(true)]). | ?- tripledb_load('package://knowrob_yourpackage/owl/yourontology.owl', [ namespace(yourontology,'package://knowrob_yourpackage/owl/yourontology.owl#') ]). | If you want to load the owl file and set a namespace |
?- owl_parser:owl_parse('package://knowrob_yourpackage/owl/yourontology.owl'). | ?- tripledb_load('package://knowrob_yourpackage/owl/yourontology.owl'). | If you want to load the owl file but not set a namespace |