Ask Your Question

How to insert or update in KnowRob?

asked 2011-10-20 23:31:43 -0500

Ze JI gravatar image

I wonder if Knowrob (or prolog) has provided functions to insert new items or update current knowledge base? And also save it back to the file...

By the way, what is the best document to start with to use KnowRob?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-10-21 02:09:34 -0500

moritz gravatar image


the best way to start is to do the tutorials linked on the wiki page for the KnowRob stack:

Updating knowledge is of course possible -- the exact way depends on which kinds of knowledge you would like to add. You can always manipulate the Prolog statements directly using rdf_assert/rdf_retract (doc:

For some often-used things like object poses, there are more convenient methods (have a look at the module comp_cop for predicates for setting object poses or for creating object instances).

cheers Moritz

P.S. We are currently working on refactoring the stack towards a set of re-usable library components, having better methods for adding, updating and exporting information. They are documented in the source code, but not yet on the wiki page, and we have not yet released them to the public. If you are working more actively with KnowRob, we can make them public or give you access to the internal repository.

edit flag offensive delete link more


Update: These components have been released as part of knowrob-0.2.0 and are now publicly available in the official KnowRob distribution.
moritz gravatar image moritz  ( 2011-12-07 00:13:54 -0500 )edit

answered 2011-10-23 19:50:50 -0500

moritz gravatar image


I've sent you information via PM how to get access to the KnowRob development repository.


edit flag offensive delete link more

answered 2011-10-21 03:12:19 -0500

Ze JI gravatar image

Thanks for the information, Moritz.

I know swi-prolog and semweb, but only because of my limited knowledge about prolog, I did not find the relevant information. I will have a look again.

Yes, we are tentatively planning to use KnowRob, because of the ontology built with KnowRob. The only hesitation is that I cannot have a thorough understanding of it. It would be nice to have the access to the more up-to-date version, if possible. Many thanks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-10-20 23:31:43 -0500

Seen: 361 times

Last updated: Oct 23 '11