Organizing Models and Elements
Information Hierarchy explains the mechanics of how Element
s can be organized into various kinds of hierarchies, which can be used together to model Entities in the real-world from various Modeling Perspectives and at various Modeling Granularities.
Top of the World explains how and why Elements are structured within the RepositoryModel to describe what the BIS Repository is “about”. The ‘leaf nodes’ in the RepositoryModel
are InformationPartitionElements (henceforth “partitions”) that establish a Modeling Perspective for a given Subject.
This topic reviews those fundamentals and provides guidance to Domain authors and client developers on how and why Models and Elements are organized under partitions. Before diving into detailed explanations, we summarize the rules reviewed or established in this topic.
A Summary of Principles and Rules for Modeling with BIS
These principles and rules govern how Model
s and Element
s are organized to model real-world Objects.
- BIS conceives that a real-world Object consists of multiple Entities, each from a different Modeling Perspective.
- An
Element
models an Entity. - An
Element
can only be placed in aModel
of compatible Modeling Perspective. - A sub-Model of an
Element
models the same Entity as theElement
, but at a finer granularity. Model
s can only sub-modelElement
s of a compatible Modeling Perspective.- A parent
Element
identifies an Entity and may model a part of it, but it together with its childElement
s model the Entity. - Parent
Element
s and ChildElement
s must be in the sameModel
. - A single party should be responsible for all
Element
s in a givenModel
. - A single party can be responsible for multiple
Model
s. - Modeling the physical perspective:
- Use Spatial Composition rules and patterns in order to model
Element
s that spatially organize otherElement
s into a spatial-breakdown hierarchy. - Organize
PhysicalModel
s andPhysicalElement
s primarily around the implementations of physical systems (that implement functions). These will tend to align with responsibility boundaries. - Where a physical Entity is part of multiple physical systems, it should be modeled by a
PhysicalElement
in aModel
owned by the primary responsible party. All parties can “share” thePhysicalElement
usingPhysicalSystemGroupsMembers
relationships.
- Use Spatial Composition rules and patterns in order to model
- Within the constraints above, the domain author can impose additional organization for domain-specific reasons.
- Domain authors should give users flexibility to further-partition for arbitrary reasons, so what could logically be modeled in a single
Model
could be partitioned into two, via a siblingSubject
. - Software should not be too “rigid” in its expectations of how
Element
s are organized in toModel
s, especially in the physical perspective. Functional and analyticalModel
s can be more rigid, because they are highly-specialized.
Considerations while Modeling a Domain
As a domain author, you are faced with many options for modeling your domain, which are described below.
Multiple domain contexts
There will be distinct Digital Twins for design phases like Design, Construction, and Operations, and for major categories of infrastructure like Cities or Buildings or other facilities. There should be as much commonality among these as possible, but the domain author must have an awareness of the kinds of Digital Twins and the range of workflows where their domain is relevant. The modeling decisions discussed below occur in the context of those Digital Twins and workflows.
Domain authors should study examples of other domain schemas to see how others have addressed modeling challenges.
The many considerations
The domain author has a tough job. They must consider:
- Object boundaries: Consider the real-world and conceptually carve it up into Objects
- Entity boundaries: Carve those Objects up into Entities.
- Whole-part relationships: Consider the whole-part relationships among the Entities (and how to model them.)
- Other Relationships: Consider other relationships among Entities (and how to model them).
- Attributes: Consider the attributes of the Entities (and how to model them).
The “Object boundaries” consideration is business-as-usual for data modelers and will not be covered here.
The “Entity boundaries” consideration is covered in discussions of Modeling Perspectives.
The remaining considerations will be covered in the following sections.
Whole-Part Relationships
Each Entity will be modeled with an Element
. Does the Entity have “parts” that are worth modeling individually in the given context? The answer to that question will lead to one of three choices:
- “Atomic” Element: There are no “parts” to model. Atomic
Element
s can still model significant internal structure using the GeometryStream, Properties, andElementAspect
s. - Parent-Child Modeling: The whole Entity is modeled as “parts” consisting of a parent
Element
and its childElement
s. The “sum” of the parent and childElement
s models the whole Entity. TheseElement
s implementIParentElement
. See Parent-Child Relationships. - Spatial-Composition: The whole Entity corresponds to an
Element
that spatially organizes otherElements
. The whole Entity needs to be decomposed into a hierarchy of major volumetric parts, which ultimately organizePhysicalElement
s andSpatialLocationElement
s. See Spatial Composition. - Sub-modeling: The “parts” are modeled in a sub-
Model
of thisElement
. The sub-modeledElement
represents the whole Entity. The “sum” of allElement
s in the sub-Model
of theElement
also represents the whole Entity, but at a finer granularity. TheseElement
s implementISubModeledElement
.
In the picture below, Entity 0 is the volume occupied by a Spatial Organizer, such as an Infrastructure Facility, so it is modeled according to the rules and patterns of the Spatial Composition schema. Thus, Element
F-0 represents the Whole Entity 0, which aggregates three major FacilityParts, Entities 1, 2 and 3, modeled by Elements
FP-1, FP-2 and FP3, which spatially breaks it down. Furthermore, Entities 4 and 5 are spatially organized by Entity FP-3, and modeled by Elements
P-4 and P-5.
In a different case, depicted by the picture below, Entity 0 is modeled with an ISubModeledElement
, so Element
P-0 represents the whole Entity 0, and its sub-Model
also represents the whole Entity 0, at a different granularity. Entity 4 is modeled as an IParentElement
, so Element
s P-4, P-5, and P-6 collectively represent Entity 4 and its parts.
Use these questions to determine whether to use parent-child modeling, sub-modeling or spatial composition:
That last question needs elaboration. What are typical reasons why users need to both model the Entity as-a-whole and also model it as a collection of fine-grained parts? Reasons include:
- According to the SRPP, if one party determines that X should exist in a particular place, but delegates responsibility for modeling X in detail to a second party, the delegate would need to do their work in their own
Model
. - If some workflows want to deal with the Entity-as-a-whole, but other workflows (e.g. fabrication for construction) need to deal with it as a set of parts, the fabricator would want a
Model
focused on the parts used to fabricate the whole.
As a boundary case, if one of the parts is clearly a “lead” part, e.g. a “Beam” with specific additions (welded on) or subtractions (cut out) then maybe parent-child is more appropriate. The decision to use parent-child modeling vs sub-modeling can be quite tricky. You should examine schemas from comparable domains and consult experts, if possible.
| Next: Modeling Systems |:---
Last Updated: 13 May, 2024