Skip to main content

element_class

Function element_class 

Source
pub fn element_class(
    schema: &Schema,
    obj: &Object,
    class: ClassId,
    profiles: ProfileMask,
) -> ClassId
Expand description

The class an object is written as in a file serving profiles.

The most specific class (the object’s own or an ancestor) that the profiles declare and whose mandatory attributes the model supplies. An SSH file thus writes <cim:Equipment rdf:about="…"> for an ACLineSegment (SSH does not declare ACLineSegment); the most specific class would fail the profile’s SHACL shapes. Falls back to the object’s own class.