Skip to content

Visual query language

Ruben de Laat edited this page Sep 23, 2015 · 16 revisions

This page explains a visual query language. This will not necessarily become a real way of quering BIM models, for now it serves as tool to develop/explain the new query language.

Current considerations

  • Remove the "Root" node, if you consider all the blocks with no input's as starting points, there is no need to have a "Root" node.

Examples

Query a list of GUID's

Query multiple types

Query name property

Query AND + Comparators

This will return all IfcWall objects with a OverallWidth > 2 AND OverallHeight > 3

Query NOT + null

This will return all IfcWall objects that have a Representation. Could maybe also be visualized by adding an explicite NOT block.

Query IFC properties

These are not direct object-properties, but properties that are attached to the object via IfcPropertySet/IfcPropertySingleValue etc...

Query object with certain property value, but exclude and get referenced

This query first selects all IfcBuildingStorey objects that have the name "Storey 2", which would usually be used to get one single storey (using a GUID here would be better). However this storey is not added to the resultset (note the "exclude" attribute). The Storey is only used as a path to get to the Window/Door objects that are linked to it.

The "Decomposes" and "Contains" blocks are uses of reusable blocks that are defined here and here respectively.

Clone this wiki locally