reteplayground
Select

GeoSPARQL in 3D — everything within 45 mm of the liver

StructureMm
Hepatic portal vein @en10
Caudate lobe @en13
Caudate process @en15
Diaphragmatic fascia @en20
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 15 rows · 407 ms · 128.0 KB of 5.4 MB read over HTTP range · no server, no download — the query runs in your browser.

The query

PREFIX anat: <https://w3id.org/rete/anatomy#> PREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX geo3: <https://w3id.org/rete/geo3#> PREFIX geof3: <https://w3id.org/rete/geo3/function/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?structure (ROUND(geof3:distance3D(?lw, ?w)) AS ?mm) WHERE { ?liver rdfs:label "Liver"@en ; geo:hasGeometry/geo3:asWKT3D ?lw . ?s a anat:AnatomicalStructure ; rdfs:label ?structure ; geo:hasGeometry/geo3:asWKT3D ?w . FILTER(?s != ?liver && langMatches(lang(?structure), "en")) FILTER(geof3:distance3D(?lw, ?w) < 45) } ORDER BY ?mm LIMIT 15

rete playground · documentation · github.com/caviri/rete