Changes for page kg-spatial-search
Last modified by oschmid on 2023/08/22 11:23
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -31,7 +31,7 @@ 31 31 32 32 ==== Get started: Query by a "bounding box" (hyperrectangle) ==== 33 33 34 -{{code language="bash" layout="LINENUMBERS"}}34 +{{code}} 35 35 curl -X 'POST' \ 36 36 'https://spatial.kg.ebrains.eu/spatial-search/cores/ebrains/spatial_objects' \ 37 37 -H 'accept: application/json' \ ... ... @@ -48,7 +48,7 @@ 48 48 49 49 Alongside the possibility to use hyperrectangles for querying the spatial search, you can also use hyperspheres: 50 50 51 -{{code language="javascript" layout="LINENUMBERS"}}51 +{{code}} 52 52 { 53 53 "filters": "inside(hypersphere{[50.0,146.0,227.0], 2, \"AMB-CCF_v3-RAS\"})" 54 54 } ... ... @@ -62,9 +62,16 @@ 62 62 63 63 To build arbitrarily complex geometries, it is possible to combine hyperrectangles and hyperspheres via (nested) unions: 64 64 65 -{{code language="javascript" layout="LINENUMBERS"}}65 +{{code}} 66 66 { 67 - "filters": "union(union(inside(hyperrectangle{[50.0,146.0,227.0], [51.0, 149.0, 228.0], \"AMB-CCF_v3-RAS\"}), inside(hyperrectangle{[120.0,146.0,227.0], [150.0, 180.0, 300.0], \"AMB-CCF_v3-RAS\"})),inside(hypersphere{[50.0,146.0,227.0], 2, \"AMB-CCF_v3-RAS\"}))" 67 + "filters": " 68 + union( 69 + union( 70 + inside(hyperrectangle{[50.0,146.0,227.0], [51.0, 149.0, 228.0], \"AMB-CCF_v3-RAS\"}), 71 + inside(hyperrectangle{[120.0,146.0,227.0], [150.0, 180.0, 300.0], \"AMB-CCF_v3-RAS\"}) 72 + ), 73 + inside(hypersphere{[50.0,146.0,227.0], 2, \"AMB-CCF_v3-RAS\"}) 74 + )" 68 68 } 69 69 {{/code}} 70 70