... | ... | @@ -52,7 +52,8 @@ 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_interfaces/srv/QueryDatabase "graphname: 'salientpoints'
|
|
|
ros2 service call /kdb_server/sparql_query ros2_kdb_interfaces/srv/QueryDatabase "queries:
|
|
|
- graphnames: [salientpoints]
|
|
|
format: 'json'
|
|
|
query: 'SELECT ?subject ?predicate ?object WHERE { ?subject ?predicate ?object }'"
|
|
|
```
|
... | ... | @@ -63,7 +64,8 @@ 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_interfaces/srv/QueryDatabase "graphname: 'salientpoints'
|
|
|
ros2 service call /kdb_server/sparql_query ros2_kdb_interfaces/srv/QueryDatabase "queries:
|
|
|
- graphnames: ['salientpoints']
|
|
|
format: 'json'
|
|
|
query: '
|
|
|
PREFIX gis: <http://www.ida.liu.se/~TDDE05/gis>
|
... | ... | |