Skip to content

Shift

Normative OWL Class IEC61968

Package: IEC61968.PaymentMetering

Canonical IRI: http://iec.ch/TC57/CIM100#Shift

Generally referring to a period of operation or work performed. Whether the shift is open/closed can be derived from attributes ‘activityInterval.start’ and ‘activityInterval.end’. The grand total for receipts (i.e., cumulative total of all actual receipted amounts during this shift; bankable + non-bankable; excludes rounding error totals) can be derived from receipt: =sum(‘Receipt.receiptAmount’); includes bankable and non-bankable receipts. It also has to be reconciled against: =sum(‘receiptsGrandTotalBankable’ + ‘receiptsGrandTotalNonBankable’) and against receipt summary: =sum(‘ReceiptSummary.receiptsTotal’). The attributes with “GrandTotal” defined in this class may need to be used when the source data is periodically flushed from the system and then these cannot be derived.

classDiagram
  Shift --|> IdentifiedObject
  CashierShift --|> Shift
  VendorShift --|> Shift
  Shift --> DateTimeInterval : activityInterval
Name Canonical Property IRI Range Description
activityInterval cim:Shift.activityInterval cim:DateTimeInterval (Object) Interval for activity of this shift.
receiptsGrandTotalBankable cim:Shift.receiptsGrandTotalBankable cim:Money (Datatype) Total of amounts receipted during this shift that can be manually banked (cash and cheques for example). Values are obtained from Receipt attributes: =sum(Receipt.receiptAmount) for all Receipt.bankable = true.
receiptsGrandTotalNonBankable cim:Shift.receiptsGrandTotalNonBankable cim:Money (Datatype) Total of amounts receipted during this shift that cannot be manually banked (card payments for example). Values are obtained from Receipt attributes: =sum(Receipt.receiptAmount) for all Receipt.bankable = false.
receiptsGrandTotalRounding cim:Shift.receiptsGrandTotalRounding cim:Money (Datatype) Cumulative amount in error due to process rounding not reflected in receiptsGrandTotal. Values are obtained from Receipt attributes: =sum(Receipt.receiptRounding).
transactionsGrandTotal cim:Shift.transactionsGrandTotal cim:Money (Datatype) Cumulative total of transacted amounts during this shift. Values are obtained from transaction: =sum(‘Transaction.transactionAmount’). It also has to be reconciled against transaction summary: =sum(‘TransactionSummary.transactionsTotal’).
transactionsGrandTotalRounding cim:Shift.transactionsGrandTotalRounding cim:Money (Datatype) Cumulative amount in error due to process rounding not reflected in transactionsGandTotal. Values are obtained from Transaction attributes: =sum(Transaction.transactionRounding).
Name Canonical Property IRI Range Description
DiagramObjects cim:IdentifiedObject.DiagramObjects cim:DiagramObject The diagram objects that are associated with the domain object.
InstanceSet cim:IdentifiedObject.InstanceSet cim:InstanceSet Dataset containing the data objects.
aliasName cim:IdentifiedObject.aliasName xsd:string The aliasName is free text human readable name of the object alternative to IdentifiedObject.name. It may be non unique and may not correla…
description cim:IdentifiedObject.description xsd:string The description is a free human readable text describing or naming the object. It may be non unique and may not correlate to a naming hiera…
mRID cim:IdentifiedObject.mRID xsd:string Master resource identifier issued by a model authority. The mRID is unique within an exchange context. Global uniqueness is easily achieved…
name cim:IdentifiedObject.name xsd:string The name is any free human readable and possibly non unique text naming the object.

Open-World Inheritance & Flat Graph Note: Under IEC CIM (RDF/OWL), an instance of cim:Shift can carry properties declared on Shift plus any ancestor in its inheritance chain (IdentifiedObject). By default, the builder below expands the full inherited model so you can inspect everything available on this class. Showing every property is intentional for documentation and not required on the wire; sparse payloads carrying only profile-required fields are equally valid.

Object References vs. Flat Literals: Not all CIM properties are flat scalar values. Object associations reference separate typed CIM entities (such as cim:PSRType or cim:Terminal). In JSON-LD 1.1, those referenced objects are lifted out of the main object into a flat @graph array and linked strictly by @id pointer so the graph stays flat instead of deeply nested. Turtle and RDF/XML serialize the exact same graph, making it easy to compare legacy RDF/XML verbosity against Turtle and JSON-LD.