Skip to content

Latest commit

 

History

History
103 lines (65 loc) · 3.17 KB

datamodel_template.md

File metadata and controls

103 lines (65 loc) · 3.17 KB

{{Data Model Name}}

Description

{{Data Model Description}}

Data Model

A JSON Schema corresponding to this data model can be found at {{add link to JSON Schema}}

  • id : Unique identifier. It shall be a URN in the form urn:ngsi-ld:{{EntityType}}:<identifier> where <identifier> shall be a unique ID string.

  • type : Entity type. It must be equal to {{EntityType}}.

  • modifiedAt or dateModified (NGSIv2): Last update timestamp of this entity.

    • Attribute type: Property. DateTime
    • Read-Only. Automatically generated.
  • createdAt or dateCreated (NGSIv2): Entity's creation timestamp.

    • Attribute type: Property. DateTime
    • Read-Only. Automatically generated.
  • owner : Entity's owners.

{{Location and address are two typical attributes that are added here for convenience}}

  • location : Location of {{Entity Type}} represented by a GeoJSON geometry.

  • address : Civic address of {{Entity Type}}

{{Below there is a description of a typical attribute of type Property}}

  • {{attributeName}} : {{Description of the Attribute}}

    • Normative References: {{Add a normative reference}}
    • Attribute type: Property. {{Add here the attribute data type}}
    • Attribute metadata Properties:
      • {{metadata Property name}} : {{Metadata Property Description}}
    • {{Optional/Mandatory}}

{Below there is a description of a typical attribute of type Relationship}}

  • {{attributeName}} : {{Description of the Attribute}}

    • Normative References: {{Add a normative reference}}
    • Attribute type: Relationship. {{Add here the description of the target relationship object}}
    • Attribute metadata Properties:
      • {{metadata Property name}} : {{Metadata Property Description}}
    • {{Optional/Mandatory}}

Note: JSON Schemas are intended to capture the data type and associated constraints of the different Attributes, regardless their final representation format in NGSI(v2, LD).

Examples of use

Normalized Example

Normalized NGSI response

{{Provide a JSON example in NGSIv2 Normalized Format}}

key-value pairs Example

Sample uses simplified representation for data consumers ?options=keyValues

{{Provide a JSON example in NGSIv2 keyValues Format}}

LD Example

Sample uses the NGSI-LD representation

{{Provide a JSON example in NGSI-LD Format}}

Use it with a real service

{{Provide a link to a real service providing data following the harmonized data format}}

Open Issues

{{Describe here any open issue}}