Currenty I am trying to couple a Grakn knowledge graph to a ROS environment. From this ROS environment values of attributes are received, which I want to update in our Grakn database.
ROS works with a structure comparable to interrupts. When a new message is received, I start a Graql query to update the values in the database. To be able to update the values, I first need to delete them and thereafter add them. For this interface I use python, our delete and add queries are thus send from the python API.
When I try this, I get some strange behaviour, which is probably encoutered by the speed of the Graql queries I am doing. Depending on the order of the things I am doing, the new values are not updated and the old ones stay for ever. Or the old values are not deleted, resulting in new added values and new added attributes.
Therefore I have some questions:
- What is the maximum number of queries that can be applied in Graql per second? How long should I wait before entering the new query?
- Is it possible to update values in one query, instead of using two queries?
- Do you have experience in coupling Grakn to a ROS like structure and some tips to help me out?
I like working with Grakn and hope you can help me out!