reteplayground
Select

A structural skeleton — one model's element classes

Ifc ClassCount
IfcBeam @en97
IfcSlab @en20
IfcColumn @en17
IfcBuildingElementProxy @en8
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 5 rows · 8.0 ms · no server, no download — the query runs in your browser.

The query

PREFIX g: <https://w3id.org/rete/gnibim#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?ifcClass ?count WHERE { ?m g:discipline "structural" ; rdfs:label ?model ; g:tally ?t . ?t g:ifcClass ?c ; g:count ?count . ?c rdfs:label ?ifcClass . FILTER(CONTAINS(STR(?model), "Project 0")) } ORDER BY DESC(?count)

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