Attention: The EBRAINS drive will be unavailable for most of the weekend starting the 25th October. Although the Lab is availble while the Drive is down, files that are stored in the Drive will not be loaded and you will be unable to save documents directly on the Lab.


Changes for page kg-spatial-search

Last modified by oschmid on 2023/08/22 11:23

From version 8.1
edited by oschmid
on 2023/08/22 09:25
Change comment: There is no comment for this version
To version 9.1
edited by oschmid
on 2023/08/22 09:25
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -29,7 +29,7 @@
29 29  Simply use the API endpoint at [[https:~~/~~/spatial.kg.ebrains.eu/api/>>https://spatial.kg.ebrains.eu/api/]] by running queries according to the following examples:
30 30  
31 31  
32 -==== Get started: Query by a "bounding box" (hyperrectangle) ====
32 +=== Get started: Query by a "bounding box" (hyperrectangle) ===
33 33  
34 34  {{code language="bash" layout="LINENUMBERS"}}
35 35  curl -X 'POST' \
... ... @@ -44,7 +44,7 @@
44 44  As you can see, you're sending a POST request to the endpoint at **https:~/~/spatial.kg.ebrains.eu/spatial-search/cores/ebrains/spatial_objects  **with a payload defining a geometry of interest. In this case, we're looking for all objects that are **inside **a **hyperrectangle **defined by its lowest and highest point in the coordinate system of the coordinate space **AMB-CCF_v3-RAS**. This query will return you an array of ids of the objects located within the geometry which you then can use to conveniently query the KG either through the [[Instance API>>https://core.kg.ebrains.eu/swagger-ui/index.html#/2%20Advanced/getInstancesByIds]] or the [[Query API>>https://core.kg.ebrains.eu/swagger-ui/index.html#/1%20Basic/runDynamicQuery]] to access detailed meta information.
45 45  
46 46  
47 -==== Query by hypersphere ====
47 +=== Query by hypersphere ===
48 48  
49 49  Alongside the possibility to use hyperrectangles for querying the spatial search, you can also use hyperspheres:
50 50  
... ... @@ -58,7 +58,7 @@
58 58  
59 59  
60 60  
61 -==== Advanced use: Union geometries for complex queries ====
61 +=== Advanced use: Union geometries for complex queries ===
62 62  
63 63  To build arbitrarily complex geometries, it is possible to combine hyperrectangles and hyperspheres via (nested) unions:
64 64