Classifications

Classification references — identity, identification and itemReference, name and location, the classification system and its fields, wildcards, filtering, and classification.meta.

A classification reference links an object to a code in a classification system (Classification): NL-SfB, Uniclass, OmniClass, a company table. BQL exposes the reference's fields and the system it belongs to.

Fields#

Path Value
classification The reference's identity: ItemReference in IFC2X3 models, Identification in IFC4 and later.
classification.identity The same, spelled out.
classification.identification, classification.itemReference The schema-specific field, when you need one of them exactly.
classification.name The reference's Name.
classification.location The reference's Location (a URI).
classification.* Every field of the reference.
classification.system The classification system's name.
classification.system.name, .edition, .editionDate, .source Fields of the IfcClassification the reference belongs to.
classification.system.* Every field of the system.
BQL#
GET qid, attribute.Name, classification.identity, classification.name, classification.system.name WHERE type = IFCWALL
BQL#
GET qid, classification.* WHERE type = IFCDOOR

In WHERE#

The string comparators apply to every field. Filtering on the system name and the code together pins a reference to one system.

BQL#
GET qid, attribute.Name WHERE type = IFCWALL AND classification.system.name = "NL-SfB" AND classification.identity STARTS_WITH "21"
BQL#
GET type, COUNT(qid) WHERE NOT classification GROUP BY type

One system's entries#

An object can carry references of several systems, and two conditions on classification may each be satisfied by a different reference. A filter in brackets narrows the path to the references that satisfy one comparison — on a field of the reference, or with system. on a field of its system (name, edition, source) — so the field read after it comes from those references only.

BQL#
GET qid, classification[system.name CONTAINS "SfB"].identification WHERE classification[system.name CONTAINS "SfB"].identification STARTS_WITH "21"

Any comparator that takes a text applies inside the brackets. In an expression the filtered path is the first matching reference's value, which is what a virtual feature that maps one system onto another builds on. A condition on a filtered path, and GROUP BY on one, is decided once per classification reference of the model: the filter is a property of the reference (or of its system), not of the object. GET classification[system.name = "NL-SfB"].identification, COUNT(qid) GROUP BY classification[system.name = "NL-SfB"].identification counts per code of that one system - a Revit export also carries the Uniformat assembly code, which an unfiltered classification.identification counts as well.

Distribution of codes#

BQL#
GET classification.identity, classification.name, COUNT(qid) WHERE type = IFCWALL GROUP BY classification.identity, classification.name

Classifications of materials#

A material can carry its own classification; read it through material.classification.<field> (materials#fields).

classification.meta#

classification.meta lists which classification fields and systems an object has, without the values; it is selectable only (Meta features).

Used in#

  • Relations — codes per object and per system.