... | ... | @@ -105,7 +105,7 @@ SELECT ?x ?y WHERE { <someid> a <someklass> ; |
|
|
* Take into account the following when calling this query:
|
|
|
- Make sure to keep `<` and `>` as they indicate a URI in the query. Without them the query is invalid and it will not be executed. So you can replace `<someid>` by `<somethingelse>` but not `somethingelse`.
|
|
|
- Set the TST parameter for `graphname` in the parameter to the service call.
|
|
|
- This query needs to be executed with a service call to `/kdb_server/sparql_query`. You can check the official tutorial for [Python](https://docs.ros.org/en/galactic/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Py-Service-And-Client.html) or [C++](https://docs.ros.org/en/galactic/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Service-And-Client.html) to learn how to make a service call. You only need the client, not the server, since the server is in the database.
|
|
|
- This query needs to be executed with a service call to `/kdb_server/sparql_query`. You can check the official tutorial for [Python](https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Py-Service-And-Client.html) or [C++](https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Service-And-Client.html) to learn how to make a service call. You only need the client, not the server, since the server is in the database.
|
|
|
- To wait for the results, you should use `self.executor.spin_until_future_complete(self.future)` (since we use a special `executor`)
|
|
|
- You also need to create `ReentrantCallbackGroup` like you did in the `tst_executor` of Lab3, and add it to the `create_client` function call.
|
|
|
- In the call to `/kdb_server/sparql_query`, the fields `bindings` and `service` are unused for this lab and can be set to an empty string.
|
... | ... | |