... | ... | @@ -34,7 +34,7 @@ rm -rf $HOME/.lrs_kdb/stores/ |
|
|
The following service call will insert two objects in the graph named **salientpoints**, one human (with identifier 1) at coordinates `(8,10)` and one table (with identifier 2) at coordinates `(10,12)`:
|
|
|
|
|
|
```bash
|
|
|
ros2 service call /kdb_server/insert_triples ros2_kdb_msgs/srv/InsertTriples "
|
|
|
ros2 service call /kdb_server/insert_triples ros2_kdb_interfaces/srv/InsertTriples "
|
|
|
graphname: 'salientpoints'
|
|
|
format: 'ttl'
|
|
|
content: '@prefix gis: <http://www.ida.liu.se/~TDDE05/gis>
|
... | ... | @@ -52,7 +52,7 @@ This will insert two objects, the first has uuid `id1`, coordinate `(8,10)` and |
|
|
The following query can be used to retrieve all the elements in the database:
|
|
|
|
|
|
```bash
|
|
|
ros2 service call /kdb_server/sparql_query ros2_kdb_msgs/srv/QueryDatabase "graphname: 'salientpoints'
|
|
|
ros2 service call /kdb_server/sparql_query ros2_kdb_interfaces/srv/QueryDatabase "graphname: 'salientpoints'
|
|
|
format: 'json'
|
|
|
query: 'SELECT ?subject ?predicate ?object WHERE { ?subject ?predicate ?object }'"
|
|
|
```
|
... | ... | @@ -63,7 +63,7 @@ query: 'SELECT ?subject ?predicate ?object WHERE { ?subject ?predicate ?object } |
|
|
The following query can be used to retrieve all the object with their class that are near the point of coordinate `(10, 12)`:
|
|
|
|
|
|
```bash
|
|
|
ros2 service call /kdb_server/sparql_query ros2_kdb_msgs/srv/QueryDatabase "graphname: 'salientpoints'
|
|
|
ros2 service call /kdb_server/sparql_query ros2_kdb_interfaces/srv/QueryDatabase "graphname: 'salientpoints'
|
|
|
format: 'json'
|
|
|
query: '
|
|
|
PREFIX gis: <http://www.ida.liu.se/~TDDE05/gis>
|
... | ... | |