reteplayground
Path

Walls, the rooms they enclose, and where they sit

WallRoomFloor+2
Wand-Ext-OG-1 @enGalerie @enDachgeschoss @en
Wand-Ext-ERDG-4 @enWohnen @enErdgeschoss @en
Wand-Ext-ERDG-4 @enKüche @enErdgeschoss @en
Wand-Int-ERDG-5 @enKüche @enErdgeschoss @en
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 26 rows · 4.0 ms · no server, no download — the query runs in your browser.

The query

PREFIX cad: <https://w3id.org/rete/cad#> PREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX geo3: <https://w3id.org/rete/geo3#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?wall ?room ?floor ?x ?y WHERE { ?e cad:boundsSpace ?r ; cad:ifcClass "IfcWallStandardCase" ; rdfs:label ?wall ; cad:inStorey ?s ; geo:hasGeometry ?g . ?r rdfs:label ?room . ?s rdfs:label ?floor . ?g geo3:x ?x ; geo3:y ?y . } LIMIT 80

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