Properties

Property sets and properties — property.Pset.Name, the set and name wildcards, quoted names, the fields of a property, list, enumerated, bounded and complex properties, origin, and property.meta.

A property belongs to a property set (Property set): Pset_WallCommon.IsExternal, Pset_DoorCommon.FireRating. BQL addresses a property by set and name, with a wildcard for either.

property.Pset.Name#

Text#
property.<Pset>.<Name>
property.*.<Name>            // the property in any set
property.<Pset>.*            // every property of the set
property.*                   // every property of the object
property.<Pset>.<Name>.<field>

Set and property names are identifiers or quoted strings; quote a name with spaces, dashes or a leading digit (property."AR_Ruum"."115_Kategooria"). A property path always needs a property name: property.Pset_WallCommon on its own is a syntax error.

BQL#
GET qid, attribute.Name, property.Pset_WallCommon.IsExternal, property.Pset_WallCommon.FireRating WHERE type = IFCWALL
BQL#
GET qid, property.*.FireRating WHERE type = IFCDOOR AND property.*.FireRating
BQL#
GET qid, property.Pset_SpaceCommon.* WHERE type = IFCSPACE
BQL#
GET qid, property."AR_Ruum"."115_Kategooria" WHERE type = IFCSPACE

In WHERE#

Properties compare with the comparators of WHERE: booleans with = true/= false, numbers with <, BETWEEN, tolerances and unit literals, strings with CONTAINS, STARTS_WITH, MATCHES_REGEX, and any of them with = null or the bare has-value form.

BQL#
GET qid WHERE type = IFCSPACE AND property.Pset_SpaceCommon.HandicapAccessible = false
BQL#
GET qid, property.Pset_SpaceThermalRequirements.SpaceTemperatureMax WHERE type = IFCSPACE AND property.*.SpaceTemperatureMax >= 20

Fields#

A property in the result is an object with name, propertySetName, type (the basic type of the value), value, classType (the IFC value type, such as IFCLABEL or IFCBOOLEAN), an optional description, and unit and symbol when the value has a unit. Each field can be selected explicitly: property.Pset_WallCommon.FireRating.value, .name, .description, .type, .classType, .propertySetName, .oid, .unit, .symbol.

BQL#
GET property.Pset_WallCommon.FireRating.value, COUNT(qid) WHERE type = IFCWALL GROUP BY property.Pset_WallCommon.FireRating.value

Property kinds#

IFC property classType Result
Single value The value type (IFCLABEL, IFCBOOLEAN, IFCLENGTHMEASURE, …) value
List value IFCPROPERTYLISTVALUE values, a list of typed values
Enumerated value IFCPROPERTYENUMERATEDVALUE values, the selected enumeration items
Bounded value IFCPROPERTYBOUNDEDVALUE lowerBoundValue, upperBoundValue, pointSetValue
Complex property IFCCOMPLEXPROPERTY The nested properties under the complex property's name

A nested member of a complex property is addressed by extending the path: property.<Pset>.<Complex>.<Member>.

Origin: properties from the type#

Properties an object inherits from its type object are returned with origin: "type"; a property defined on the occurrence itself has no origin. The merging rule and the own relation that restricts a query to the occurrence's own data are on type-objects#merging.

property.meta#

property.meta returns the names of the property sets and properties the object has, without their values. Grouping on it is the way to survey which properties exist in a model before writing a query (Meta features).

BQL#
GET property.meta, COUNT(qid) WHERE type = IFCSPACE GROUP BY property.meta

Used in#