{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModels.CIMEnergyClasses/DiagramObject/schema.json", "title": " Smart Data Models - DiagramObject", "description": "Adapted from CIM data models. An object that defines one or more points in a given space. This object can be associated with anything that specializes IdentifiedObject. For single line diagrams such objects typically include such items as analog values, breakers, disconnectors, power transformers, and transmission lines.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "DiagramObject" ], "description": "Property. NGSI type. It has to be DiagramObject" }, "Diagram": { "description": "Property. Model:'https://schema.org/Number'. A diagram object is part of a diagram. Default: None", "type": "number" }, "DiagramObjectPoints": { "description": "Property. Model:'https://schema.org/Number'. A diagram object can have 0 or more points to reflect its layout position, routing (for polylines) or boundary (for polygons). Default: 'list'", "type": "number" }, "DiagramObjectStyle": { "description": "Property. Model:'https://schema.org/Number'. A diagram object has a style associated that provides a reference for the style used in the originating system. Default: None", "type": "number" }, "IdentifiedObject": { "description": "Property. Model:'https://schema.org/Number'. The diagram objects that are associated with the domain object. Default: None", "type": "number" }, "VisibilityLayers": { "description": "Property. Model:'https://schema.org/Number'. A diagram object can be part of multiple visibility layers. Default: 'list'", "type": "number" }, "drawingOrder": { "description": "Property. Model:'https://schema.org/Number'. The drawing order of this element. The higher the number, the later the element is drawn in sequence. This is used to ensure that elements that overlap are rendered in the correct order. Default: 0", "type": "number" }, "isPolygon": { "description": "Property. Model:'https://schema.org/Number'. Defines whether or not the diagram objects points define the boundaries of a polygon or the routing of a polyline. If this value is true then a receiving application should consider the first and last points to be connected. Default: False", "type": "number" }, "offsetX": { "description": "Property. Model:'https://schema.org/Number'. The offset in the X direction. This is used for defining the offset from centre for rendering an icon (the default is that a single point specifies the centre of the icon). The offset is in per-unit with 0 indicating there is no offset from the horizontal centre of the icon. -0.5 indicates it is offset by 50% to the left and 0.5 indicates an offset of 50% to the right. Default: 0.0", "type": "number" }, "offsetY": { "description": "Property. Model:'https://schema.org/Number'. The offset in the Y direction. This is used for defining the offset from centre for rendering an icon (the default is that a single point specifies the centre of the icon). The offset is in per-unit with 0 indicating there is no offset from the vertical centre of the icon. The offset direction is dependent on the orientation of the diagram, with -0.5 and 0.5 indicating an offset of +/- 50% on the vertical axis. Default: 0.0", "type": "number" }, "rotation": { "description": "Property. Model:'https://schema.org/Number'. Sets the angle of rotation of the diagram object. Zero degrees is pointing to the top of the diagram. Rotation is clockwise. Default: 0.0", "type": "number" } } } ] }