Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
doc:knowrob2_migration [2020/07/22 10:48] – [Migrating to KnowRob 2.0] sasjonge | doc:knowrob2_migration [2020/07/22 12:31] – [Migration of commonly used queries] sasjonge |
---|
</code> | Many of the sub packages of the knowrob/knowrob repository have been merged into the knowrob package | | </code> | Many of the sub packages of the knowrob/knowrob repository have been merged into the knowrob package | |
| <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(yourontology, 'http://knowrob_yourpackage/owl/yourontology.owl#', [keep(true)]). | ?- rdf_db:rdf_register_prefix( |
| yourontology, 'http://knowrob_yourpackage/owl/yourontology.owl#', [keep(true)]). |
</code> | <code prolog> | </code> | <code prolog> |
?- tripledb_load('package://knowrob_yourpackage/owl/yourontology.owl', | ?- tripledb_load( |
| 'package://knowrob_yourpackage/owl/yourontology.owl', |
[ | [ |
namespace(yourontology,'http://knowrob_yourpackage/owl/yourontology.owl#') | namespace( |
| yourontology, |
| 'http://knowrob_yourpackage/owl/yourontology.owl#' |
| ) |
]). | ]). |
</code> | If you want to load the owl file and set a namespace | | </code> | If you want to load the owl file and set a namespace | |