rete
playground
Aggregate
π§ Rooms per floor β neighbours and the floor's 3D model
Floor
Room
Adjacent Rooms
+1
Dachgeschoss @en
Galerie @en
6
β¦
Erdgeschoss @en
Bad @en
6
β¦
Erdgeschoss @en
Buero @en
6
β¦
Erdgeschoss @en
Flur @en
6
β¦
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