Skip to main content

Class

A classifier that defines the properties of a set of individualized (non-relational) entities of the subject domain — for example Person, Enrollment, or Grade. Its instances may be objects, reified properties, or bare values.

PropertyTypeDescription
type"Class"Discriminator.
literalsid[]The literals of an enumeration class.
restrictedTostring[]The possible ontological natures of the class's instances (see values below).
isPowertypeboolean or nullWhether the (high-order) class is a Cardelli powertype.
orderstring or nullThe instantiation order: "1" (first-order), "2", "3", … or "*" (orderless).

Class also carries the properties of Classifier (isAbstract, properties), Decoratable (stereotype, isDerived), and the properties common to all model elements.

The values allowed in restrictedTo are: abstract, collective, event, extrinsic-mode, functional-complex, intrinsic-mode, quality, quantity, relator, situation, and type — see Ontological Nature for what each denotes and the named nature subsets.

When present, order must match the pattern ^(\d+|\*)$ — a positive integer such as "1" or "2", or "*" for an orderless class.

The example below is the «kind» Person class with a single attribute, age.

{
"type": "Class",
"id": "class_1",
"name": { "en": "Person" },
"stereotype": "kind",
"isDerived": false,
"isAbstract": false,
"properties": ["prop_age"],
"literals": [],
"restrictedTo": ["functional-complex"],
"isPowertype": false,
"order": "1",
"customProperties": null,
"created": "2024-09-04",
"modified": null,
"alternativeNames": [],
"description": null,
"editorialNotes": [],
"creators": [],
"contributors": []
}