reteplayground
Aggregate

🧊 Rooms per floor β€” neighbours and the floor's 3D model

FloorRoomAdjacent Rooms+1
Dachgeschoss @enGalerie @en6…
Erdgeschoss @enBad @en6…
Erdgeschoss @enBuero @en6…
Erdgeschoss @enFlur @en6…
Run this query β†’ no server Β· no download Β· no account
caviri.github.io/rete
Run this query in the playground β†’ 7 rows Β· 3.0 ms Β· no server, no download β€” the query runs in your browser.

The query

PREFIX bot: <https://w3id.org/bot#> PREFIX cad: <https://w3id.org/rete/cad#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?floor ?room (COUNT(?n) AS ?adjacentRooms) ?model WHERE { ?s a bot:Storey ; rdfs:label ?floor ; bot:hasSpace ?r ; cad:glbModel ?model . ?r rdfs:label ?room ; cad:adjacentSpace ?n . } GROUP BY ?floor ?room ?model ORDER BY ?floor DESC(?adjacentRooms)

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