全局描述:**路灯控制面板数据模型。
版本: 0.0.2
[*] 如果属性中没有类型,是因为它可能有多个类型或不同的格式/模式。
activePower[array]
: 每相消耗的有功功率。有序三相有功功率按以下顺序排列:[R Y B] . Model: https://schema.org/Textaddress[object]
: 邮寄地址 . Model: https://schema.org/addressaddressCountry[string]
: 国家。例如,西班牙 . Model: https://schema.org/addressCountryaddressLocality[string]
: 街道地址所在的地点,以及该地点所在的区域 . Model: https://schema.org/addressLocalityaddressRegion[string]
: 地点所在的地区,以及该地区位于哪个国家 . Model: https://schema.org/addressRegiondistrict[string]
: 地区是一种行政区划,在一些国家由地方政府管理postOfficeBoxNumber[string]
: 用于邮政信箱地址的邮政信箱号码。例如:03578 . Model: https://schema.org/postOfficeBoxNumberpostalCode[string]
: 邮政编码。例如:24004 . Model: https://schema.org/https://schema.org/postalCodestreetAddress[string]
: 街道地址 . Model: https://schema.org/streetAddress
alternateName[string]
: 该项目的替代名称areaServed[string]
: 提供服务或提供物品的地理区域 . Model: https://schema.org/TextdataProvider[string]
: 标识统一数据实体提供者的字符序列dateCreated[date-time]
: 实体创建时间戳。通常由存储平台分配dateModified[date-time]
: 实体最后一次修改的时间戳。通常由存储平台分配description[string]
: 项目描述deviceInfo[object]
: 与观测结果相关的设备信息 . Model: https://schema.org/TextdeviceBatteryStatus[string]
: 显示报告设备的电池充电状态(连接、断开) . Model: https://schema.org/TextdeviceId[string]
: 与该观测值相对应的物理传感器/测量站的设备 ID . Model: https://schema.org/TextdeviceModel[object]
: 描述有关设备、传感器或系统的信息 . Model: https://schema.org/TextdeviceName[string]
: 该观测点对应的传感设备/站的设备名称或站名 . Model: https://schema.org/TextdeviceSimNumber[string]
: 提供废物管理车上设备的模拟号码 . Model: https://schema.org/Textmeasurand[string]
: 设备感知/观测/测量的属性 . Model: https://schema.org/Text
id[*]
: 实体的唯一标识符location[*]
: 项目的 Geojson 引用。它可以是点、线条字符串、多边形、多点、多线条字符串或多多边形name[string]
: 该项目的名称numStreetlight[number]
: 描述与该观测点相对应的连接到馈电面板的路灯总数 . Model: https://schema.org/NumberobservationDateTime[date-time]
: 最后报告的观察时间 . Model: https://schema.org/Textowner[array]
: 包含一个 JSON 编码字符序列的列表,其中引用了所有者的唯一 IdsphaseCurrent[array]
: 每相电流。按以下顺序排列的三相有功功率:[R Y B] . Model: https://schema.org/TextphaseVoltage[array]
: 每相电压。按以下顺序排列的三相有功功率:[R Y B] . Model: https://schema.org/TextpowerState[string]
: 显示路灯馈电板的当前状态 . Model: https://schema.org/TextreactivePower[array]
: 每相消耗的无功功率。有序三相有功功率按以下顺序排列:[R Y B] . Model: https://schema.org/TextseeAlso[*]
: 指向有关该项目的其他资源的 uri 列表source[string]
: 以 URL 形式给出实体数据原始来源的字符串。建议使用源提供者的完全合格域名或源对象的 URLtotalActivePower[number]
: 各相消耗的有功功率总量 . Model: https://schema.org/NumbertotalReactivePower[number]
: 所有相位的总无功功率 . Model: https://schema.org/Numbertype[string]
: NGSI 实体类型。必须是 StreetlightFeeder
所需属性
id
type
按字母顺序排列(点击查看详情)
full yaml details
StreetlightFeeder:
description: A streetlight control panel Data Model.
properties:
activePower:
description: 'Active power consumed per phase. Ordered triple comprising of active power from three phases in the following order: [R Y B]'
items:
minItems: 3
type: number
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
address:
description: The mailing address
properties:
addressCountry:
description: 'The country. For example, Spain'
type: string
x-ngsi:
model: https://schema.org/addressCountry
type: Property
addressLocality:
description: 'The locality in which the street address is, and which is in the region'
type: string
x-ngsi:
model: https://schema.org/addressLocality
type: Property
addressRegion:
description: 'The region in which the locality is, and which is in the country'
type: string
x-ngsi:
model: https://schema.org/addressRegion
type: Property
district:
description: 'A district is a type of administrative division that, in some countries, is managed by the local government'
type: string
x-ngsi:
type: Property
postOfficeBoxNumber:
description: 'The post office box number for PO box addresses. For example, 03578'
type: string
x-ngsi:
model: https://schema.org/postOfficeBoxNumber
type: Property
postalCode:
description: 'The postal code. For example, 24004'
type: string
x-ngsi:
model: https://schema.org/https://schema.org/postalCode
type: Property
streetAddress:
description: The street address
type: string
x-ngsi:
model: https://schema.org/streetAddress
type: Property
streetNr:
description: Number identifying a specific property on a public street
type: string
x-ngsi:
type: Property
type: object
x-ngsi:
model: https://schema.org/address
type: Property
alternateName:
description: An alternative name for this item
type: string
x-ngsi:
type: Property
areaServed:
description: The geographic area where a service or offered item is provided
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
dataProvider:
description: A sequence of characters identifying the provider of the harmonised data entity
type: string
x-ngsi:
type: Property
dateCreated:
description: Entity creation timestamp. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
dateModified:
description: Timestamp of the last modification of the entity. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
description:
description: A description of this item
type: string
x-ngsi:
type: Property
deviceInfo:
description: Information about the device associated with the observations
properties:
deviceBatteryStatus:
description: 'Gives the Battery charging status of the reporting device(Connected, Disconnected)'
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
deviceId:
description: Device ID of the physical sensor/ measurement station corresponding to this observation
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
deviceModel:
description: 'Describes the information of the device, sensor or system in consideration'
properties:
brandName:
description: 'Name of the brand associated with an entity, e.g., sensor, device etc'
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
manufacturerName:
description: 'Name of the manufacturer associated with an entity, e.g., sensor, device etc'
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
modelName:
description: 'Name of a specific model associated with an entity, e.g., sensor, device etc'
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
modelURL:
description: 'URL providing further information of a specific model associated with an entity, e.g., sensor, device etc'
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
type: object
x-ngsi:
model: https://schema.org/Text
type: Property
deviceName:
description: Device Name or Station name of the sensor device/station corresponding to this observation
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
deviceSimNumber:
description: Gives the sim number of the device in the waste management vehicle
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
measurand:
description: Property/properties sensed/observed/measured by the device
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
rfId:
description: Gives the ID of the RFID reader
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
type: object
x-ngsi:
model: https://schema.org/Text
type: Property
id:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
location:
description: 'Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon'
oneOf:
- description: Geojson reference to the item. Point
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
type: number
minItems: 2
type: array
type:
enum:
- Point
type: string
required:
- type
- coordinates
title: GeoJSON Point
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. LineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type:
enum:
- LineString
type: string
required:
- type
- coordinates
title: GeoJSON LineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. Polygon
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type:
enum:
- Polygon
type: string
required:
- type
- coordinates
title: GeoJSON Polygon
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiPoint
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
type: array
type:
enum:
- MultiPoint
type: string
required:
- type
- coordinates
title: GeoJSON MultiPoint
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type: array
type:
enum:
- MultiLineString
type: string
required:
- type
- coordinates
title: GeoJSON MultiLineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type: array
type:
enum:
- MultiPolygon
type: string
required:
- type
- coordinates
title: GeoJSON MultiPolygon
type: object
x-ngsi:
type: GeoProperty
x-ngsi:
type: GeoProperty
name:
description: The name of this item
type: string
x-ngsi:
type: Property
numStreetlight:
description: Describes the total number of streetlights connected to the feeder panel corresponding to this observation
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
observationDateTime:
description: Last reported time of observation
format: date-time
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
owner:
description: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)
items:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
type: array
x-ngsi:
type: Property
phaseCurrent:
description: 'Current per phase. Ordered triple comprising of active power from three phases in the following order: [R Y B]'
items:
minItems: 3
type: number
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
phaseVoltage:
description: 'Voltage per phase. Ordered triple comprising of active power from three phases in the following order: [R Y B]'
items:
minItems: 3
type: number
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
powerState:
description: Indicates the current status of the streetlight feeder panel
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
reactivePower:
description: 'Reactive power consumed per phase. Ordered triple comprising of active power from three phases in the following order: [R Y B]'
items:
minItems: 3
type: number
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
seeAlso:
description: list of uri pointing to additional resources about the item
oneOf:
- items:
format: uri
type: string
minItems: 1
type: array
- format: uri
type: string
x-ngsi:
type: Property
source:
description: 'A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object'
type: string
x-ngsi:
type: Property
totalActivePower:
description: Total active power consumed by all phases
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
totalReactivePower:
description: Total reactive power for all phases
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
type:
description: NGSI entity type. It has to be StreetlightFeeder
enum:
- StreetlightFeeder
type: string
x-ngsi:
type: Property
required:
- id
- type
type: object
x-derived-from: ""
x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted provided that the license conditions are met. Copyleft (c) 2022 Contributors to Smart Data Models Program'
x-license-url: https://github.com/smart-data-models/dataModel.Streetlighting/blob/master/StreetlightFeeder/LICENSE.md
x-model-schema: https://smart-data-models.github.io/dataModel.Streetlighting/StreetLightFeeder/schema.json
x-model-tags: IUDX
x-version: 0.0.2
下面是一个以 JSON-LD 格式作为键值的 StreetlightFeeder 示例。当使用 options=keyValues
时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "https://smart-data-models.github.io/dataModel.Streetlighting/StreetLightFeeder/schema.json",
"type": "StreetlightFeeder",
"totalActivePower": 30,
"phaseCurrent": [
25,
28,
30
],
"reactivePower": [
25,
28,
30
],
"numStreetlight": 45,
"phaseVoltage": [
240,
120,
50
],
"totalReactivePower": 200,
"activePower": [
120,
200,
150
],
"powerState": "ON",
"observationDateTime": "2021-03-11T15:51:02+05:30",
"deviceInfo": {
"rfId": "5634684",
"deviceBatteryStatus": "Connected",
"deviceName": "SL1",
"deviceId": "43",
"measurand": "6",
"deviceSimNumber": "6755375727",
"deviceModel": {
"brandName": "abc",
"manufacturerName": "xyz",
"modelName": "SL1",
"modelURL": "www.abcstreetlight.com"
}
}
}
下面是一个规范化 JSON-LD 格式的 StreetlightFeeder 示例。在不使用选项的情况下,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "https://smart-data-models.github.io/dataModel.Streetlighting/StreetLightFeeder/schema.json",
"type": "StreetlightFeeder",
"totalActivePower": {
"type": "Number",
"value": 30
},
"phaseCurrent": {
"type": "StructuredValue",
"value": [
25,
28,
30
]
},
"reactivePower": {
"type": "StructuredValue",
"value": [
25,
28,
30
]
},
"numStreetlight": {
"type": "Number",
"value": 45
},
"phaseVoltage": {
"type": "StructuredValue",
"value": [
240,
120,
50
]
},
"totalReactivePower": {
"type": "Number",
"value": 200
},
"activePower": {
"type": "StructuredValue",
"value": [
120,
200,
150
]
},
"powerState": {
"type": "Text",
"value": "ON"
},
"observationDateTime": {
"type": "DateTime",
"value": "2021-03-11T15:51:02+05:30"
},
"deviceInfo": {
"type": "StructuredValue",
"value": {
"rfId": "5634684",
"deviceBatteryStatus": "Connected",
"deviceName": "SL1",
"deviceId": "43",
"measurand": "6",
"deviceSimNumber": "6755375727",
"deviceModel": {
"brandName": "abc",
"manufacturerName": "xyz",
"modelName": "SL1",
"modelURL": "www.abcstreetlight.com"
}
}
}
}
下面是一个以 JSON-LD 格式作为键值的 StreetlightFeeder 示例。当使用 options=keyValues
时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "https://smart-data-models.github.io/dataModel.Streetlighting/StreetLightFeeder/schema.json",
"type": "StreetlightFeeder",
"activePower": [
120,
200,
150
],
"deviceInfo": {
"rfId": "5634684",
"deviceBatteryStatus": "Connected",
"deviceName": "SL1",
"deviceId": "43",
"measurand": "6",
"deviceSimNumber": "6755375727",
"deviceModel": {
"brandName": "abc",
"manufacturerName": "xyz",
"modelName": "SL1",
"modelURL": "www.abcstreetlight.com"
}
},
"numStreetlight": 45,
"observationDateTime": "2021-03-11T15:51:02+05:30",
"phaseCurrent": [
25,
28,
30
],
"phaseVoltage": [
240,
120,
50
],
"powerState": "ON",
"reactivePower": [
25,
28,
30
],
"totalActivePower": 30,
"totalReactivePower": 200,
"@context": [
"https://smart-data-models.github.io/dataModel.Streetlighting/context.jsonld"
]
}
下面是一个规范化 JSON-LD 格式的 StreetlightFeeder 示例。当不使用选项时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "https://smart-data-models.github.io/dataModel.Streetlighting/StreetLightFeeder/schema.json",
"type": "StreetlightFeeder",
"activePower": {
"type": "Property",
"value": [
120,
200,
150
]
},
"deviceInfo": {
"type": "Property",
"value": {
"rfId": "5634684",
"deviceBatteryStatus": "Connected",
"deviceName": "SL1",
"deviceId": "43",
"measurand": "6",
"deviceSimNumber": "6755375727",
"deviceModel": {
"brandName": "abc",
"manufacturerName": "xyz",
"modelName": "SL1",
"modelURL": "www.abcstreetlight.com"
}
}
},
"numStreetlight": {
"type": "Property",
"value": 45
},
"observationDateTime": {
"type": "Property",
"value": {
"@type": "DateTime",
"@value": "2021-03-11T15:51:02+05:30"
}
},
"phaseCurrent": {
"type": "Property",
"value": [
25,
28,
30
]
},
"phaseVoltage": {
"type": "Property",
"value": [
240,
120,
50
]
},
"powerState": {
"type": "Property",
"value": "ON"
},
"reactivePower": {
"type": "Property",
"value": [
25,
28,
30
]
},
"totalActivePower": {
"type": "Property",
"value": 30
},
"totalReactivePower": {
"type": "Property",
"value": 200
},
"@context": [
"https://smart-data-models.github.io/dataModel.Streetlighting/context.jsonld"
]
}
请参阅 FAQ 10,获取如何处理幅度单位的答案。