From 13a935e8f10d337a3153ec0cb089e82325ac634c Mon Sep 17 00:00:00 2001 From: Alberto Abella Date: Fri, 17 Nov 2023 19:49:44 +0100 Subject: [PATCH] updated ParkingAccess/doc/spec_ZH.md --- ParkingAccess/doc/spec_ZH.md | 946 +++++++++++++++++------------------ 1 file changed, 466 insertions(+), 480 deletions(-) diff --git a/ParkingAccess/doc/spec_ZH.md b/ParkingAccess/doc/spec_ZH.md index 7d7c0d6..39d035e 100644 --- a/ParkingAccess/doc/spec_ZH.md +++ b/ParkingAccess/doc/spec_ZH.md @@ -1,433 +1,431 @@ - -[![Smart Data Models](https://smartdatamodels.org/wp-content/uploads/2022/01/SmartDataModels_logo.png "Logo")](https://smartdatamodels.org) - 实体:停车场入口 -======== - - [开放许可](https://github.com/smart-data-models//dataModel.Parking/blob/master/ParkingAccess/LICENSE.md) - [文件自动生成](https://docs.google.com/presentation/d/e/2PACX-1vTs-Ng5dIAwkg91oTTUdt8ua7woBXhPnwavZ0FxgR8BsAI_Ek3C5q97Nd94HS8KhP-r_quD4H0fgyt3/pub?start=false&loop=false&delayms=3000#slide=id.gb715ace035_0_60) - - - 全局描述:**泊车通道--待办事项:提供完整的模式** - 版本: 0.0.1 - - - - ## 属性列表 - - [*] 如果属性中没有类型,是因为它可能有多个类型或不同的格式/模式。 -- `address[object]`: 邮寄地址 . Model: [https://schema.org/address](https://schema.org/address) - `addressCountry[string]`: 国家。例如,西班牙 . Model: [https://schema.org/addressCountry](https://schema.org/addressCountry) - - `addressLocality[string]`: 街道地址所在的地点,以及该地点所在的区域 . Model: [https://schema.org/addressLocality](https://schema.org/addressLocality) - - `addressRegion[string]`: 地点所在的地区,以及该地区位于哪个国家 . Model: [https://schema.org/addressRegion](https://schema.org/addressRegion) - - `district[string]`: 地区是一种行政区划,在一些国家由地方政府管理 - - `postOfficeBoxNumber[string]`: 用于邮政信箱地址的邮政信箱号码。例如:03578 . Model: [https://schema.org/postOfficeBoxNumber](https://schema.org/postOfficeBoxNumber) - - `postalCode[string]`: 邮政编码。例如:24004 . Model: [https://schema.org/https://schema.org/postalCode](https://schema.org/https://schema.org/postalCode) - - `streetAddress[string]`: 街道地址 . Model: [https://schema.org/streetAddress](https://schema.org/streetAddress) -- `alternateName[string]`: 该项目的替代名称 - `areaServed[string]`: 提供服务或提供物品的地理区域 . Model: [https://schema.org/Text](https://schema.org/Text) - `category[array]`: 接入点的类别(入口、出口等)。允许值:DATEX II _AccessCategoryEnum_ 指定的值或对应用程序有意义的其他值 - `dataProvider[string]`: 标识统一数据实体提供者的字符序列 - `dateCreated[date-time]`: 实体创建时间戳。通常由存储平台分配 - `dateModified[date-time]`: 实体最后一次修改的时间戳。通常由存储平台分配 - `description[string]`: 项目描述 - `features[array]`: DATEX II _essEquipmentEnum_和 _AccessibilityEnum_指定的值或对应用程序有意义的其他值 - `height[number]`: 接入点高度 . Model: [https://schema.org/height](https://schema.org/height) - `id[*]`: 实体的唯一标识符 - `location[*]`: 项目的 Geojson 引用。它可以是点、线条字符串、多边形、多点、多线条字符串或多多边形 - `name[string]`: 该项目的名称 - `owner[array]`: 包含一个 JSON 编码字符序列的列表,其中引用了所有者的唯一 Ids - `refOffStreetParking[*]`: 该出入口的路边停车场可通往 - `seeAlso[*]`: 指向有关该项目的其他资源的 uri 列表 - `slope[number]`: 接入点的坡度(相对值) . Model: [https://schema.org/Number](https://schema.org/Number) - `source[string]`: 以 URL 形式给出实体数据原始来源的字符串。建议使用源提供者的完全合格域名或源对象的 URL - `type[string]`: NGSI 实体类型。必须是 ParkingAccess - `width[number]`: 接入点宽度 . Model: [https://schema.org/width](https://schema.org/width) - - 所需属性 -- `id` - `location` - `type` - - 代表通往停车场(通常是路边停车场)的入口。 - - - ## 属性的数据模型描述 - 按字母顺序排列(点击查看详情) - - -
full yaml details - ```yaml -ParkingAccess: - description: 'Parking Access - TODO: Provide a complete Schema' - properties: - 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 - category: - description: 'Category of the access point (entrance, exit, etc.). Allowed values: Those specified by the DATEX II _AccessCategoryEnum_ or other values meaningful to the application' - items: - type: string - type: array - x-ngsi: - 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 - features: - description: Those specified by the DATEX II _essEquipmentEnum_ and by _AccessibilityEnum_ or other values meaningful to the application - items: - type: string - type: array - x-ngsi: - type: Property - height: - description: Height of the access point - type: number - x-ngsi: - model: https://schema.org/height - 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 - 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 - refOffStreetParking: - 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: The offstreet parking site this access point gives access to - x-ngsi: - type: Relationship - 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 - slope: - description: Slope of the access point (in relative terms) - type: number - x-ngsi: - model: https://schema.org/Number - 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 - type: - description: NGSI Entity type. It has to be ParkingAccess - enum: - - ParkingAccess - type: string - x-ngsi: - type: Property - width: - description: Width of the access point - type: number - x-ngsi: - model: https://schema.org/width - type: Property - required: - - id - - type - - location - 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.Parking/blob/master/ParkingAccess/LICENSE.md - x-model-schema: https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/schema.json - x-model-tags: "" - x-version: 0.0.1 -``` -
- - - - - ## 有效载荷示例 - #### ParkingAccess NGSI-v2 密钥值示例 - 下面是一个以 JSON-LD 格式作为键值的 ParkingAccess 示例。当使用 `options=keyValues` 时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 -
show/hide example + +[![Smart Data Models](https://smartdatamodels.org/wp-content/uploads/2022/01/SmartDataModels_logo.png "Logo")](https://smartdatamodels.org) + 实体:停车场入口 +======== + + [开放许可](https://github.com/smart-data-models//dataModel.Parking/blob/master/ParkingAccess/LICENSE.md) + [文件自动生成](https://docs.google.com/presentation/d/e/2PACX-1vTs-Ng5dIAwkg91oTTUdt8ua7woBXhPnwavZ0FxgR8BsAI_Ek3C5q97Nd94HS8KhP-r_quD4H0fgyt3/pub?start=false&loop=false&delayms=3000#slide=id.gb715ace035_0_60) + + + 全局描述:**泊车通道--待办事项:提供完整的模式** + 版本: 0.0.1 + + + ## 属性列表 + [*] 如果属性中没有类型,是因为它可能有多个类型或不同的格式/模式。 +- `address[object]`: 邮寄地址 . Model: [https://schema.org/address](https://schema.org/address) - `addressCountry[string]`: 国家。例如,西班牙 . Model: [https://schema.org/addressCountry](https://schema.org/addressCountry) + - `addressLocality[string]`: 街道地址所在的地点,以及该地点所在的区域 . Model: [https://schema.org/addressLocality](https://schema.org/addressLocality) + - `addressRegion[string]`: 地点所在的地区,以及该地区位于哪个国家 . Model: [https://schema.org/addressRegion](https://schema.org/addressRegion) + - `district[string]`: 地区是一种行政区划,在一些国家由地方政府管理 + - `postOfficeBoxNumber[string]`: 用于邮政信箱地址的邮政信箱号码。例如:03578 . Model: [https://schema.org/postOfficeBoxNumber](https://schema.org/postOfficeBoxNumber) + - `postalCode[string]`: 邮政编码。例如:24004 . Model: [https://schema.org/https://schema.org/postalCode](https://schema.org/https://schema.org/postalCode) + - `streetAddress[string]`: 街道地址 . Model: [https://schema.org/streetAddress](https://schema.org/streetAddress) +- `alternateName[string]`: 该项目的替代名称 - `areaServed[string]`: 提供服务或提供物品的地理区域 . Model: [https://schema.org/Text](https://schema.org/Text) - `category[array]`: 接入点的类别(入口、出口等)。允许值:DATEX II _AccessCategoryEnum_ 指定的值或对应用程序有意义的其他值 - `dataProvider[string]`: 标识统一数据实体提供者的字符序列 - `dateCreated[date-time]`: 实体创建时间戳。通常由存储平台分配 - `dateModified[date-time]`: 实体最后一次修改的时间戳。通常由存储平台分配 - `description[string]`: 项目描述 - `features[array]`: DATEX II _essEquipmentEnum_和 _AccessibilityEnum_指定的值或对应用程序有意义的其他值 - `height[number]`: 接入点高度 . Model: [https://schema.org/height](https://schema.org/height) - `id[*]`: 实体的唯一标识符 - `location[*]`: 项目的 Geojson 引用。它可以是点、线条字符串、多边形、多点、多线条字符串或多多边形 - `name[string]`: 该项目的名称 - `owner[array]`: 包含一个 JSON 编码字符序列的列表,其中引用了所有者的唯一 Ids - `refOffStreetParking[*]`: 该出入口的路边停车场可通往 - `seeAlso[*]`: 指向有关该项目的其他资源的 uri 列表 - `slope[number]`: 接入点的坡度(相对值) . Model: [https://schema.org/Number](https://schema.org/Number) - `source[string]`: 以 URL 形式给出实体数据原始来源的字符串。建议使用源提供者的完全合格域名或源对象的 URL - `type[string]`: NGSI 实体类型。必须是 ParkingAccess - `width[number]`: 接入点宽度 . Model: [https://schema.org/width](https://schema.org/width) + + 所需属性 +- `id` - `location` - `type` + + 代表通往停车场(通常是路边停车场)的入口。 + + + ## 属性的数据模型描述 + 按字母顺序排列(点击查看详情) + + +
full yaml details + ```yaml +ParkingAccess: + description: 'Parking Access - TODO: Provide a complete Schema' + properties: + 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 + category: + description: 'Category of the access point (entrance, exit, etc.). Allowed values: Those specified by the DATEX II _AccessCategoryEnum_ or other values meaningful to the application' + items: + type: string + type: array + x-ngsi: + 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 + features: + description: Those specified by the DATEX II _essEquipmentEnum_ and by _AccessibilityEnum_ or other values meaningful to the application + items: + type: string + type: array + x-ngsi: + type: Property + height: + description: Height of the access point + type: number + x-ngsi: + model: https://schema.org/height + 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 + 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 + refOffStreetParking: + 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: The offstreet parking site this access point gives access to + x-ngsi: + type: Relationship + 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 + slope: + description: Slope of the access point (in relative terms) + type: number + x-ngsi: + model: https://schema.org/Number + 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 + type: + description: NGSI Entity type. It has to be ParkingAccess + enum: + - ParkingAccess + type: string + x-ngsi: + type: Property + width: + description: Width of the access point + type: number + x-ngsi: + model: https://schema.org/width + type: Property + required: + - id + - type + - location + 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.Parking/blob/master/ParkingAccess/LICENSE.md + x-model-schema: https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/schema.json + x-model-tags: "" + x-version: 0.0.1 +``` +
+ + + + + ## 有效载荷示例 + #### ParkingAccess NGSI-v2 密钥值示例 + 下面是一个以 JSON-LD 格式作为键值的 ParkingAccess 示例。当使用 `options=keyValues` 时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 +
show/hide example ```json { "id": "urn:ngsi-ld:ParkingAccess:accesspoint-trinidade-1", @@ -449,22 +447,22 @@ ParkingAccess: ] } ``` -
- #### ParkingAccess NGSI-v2 标准化示例 - 下面是一个规范化 JSON-LD 格式的 ParkingAccess 示例。在不使用选项的情况下,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 -
show/hide example +
+ #### ParkingAccess NGSI-v2 标准化示例 + 下面是一个规范化 JSON-LD 格式的 ParkingAccess 示例。在不使用选项的情况下,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 +
show/hide example ```json { "id": "urn:ngsi-ld:ParkingAccess:accesspoint-trinidade-1", "type": "ParkingAccess", "category": { - "type": "array", + "type": "StructuredValue", "value": [ "vehicleEntrance" ] }, "features": { - "type": "arrray", + "type": "StructuredValue", "value": [ "barrier" ] @@ -484,56 +482,44 @@ ParkingAccess: "value": "Trinidade main entrance" }, "refOffStreetParking": { - "type": "Relationship", + "type": "Text", "value": "urn:ngsi-ld:OffStreetParking:porto-OffStreetParking-23889" } } ``` -
- #### ParkingAccess NGSI-LD 键值示例 - 下面是一个以 JSON-LD 格式作为键值的 ParkingAccess 示例。当使用 `options=keyValues` 时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 -
show/hide example +
+ #### ParkingAccess NGSI-LD 键值示例 + 下面是一个以 JSON-LD 格式作为键值的 ParkingAccess 示例。当使用 `options=keyValues` 时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 +
show/hide example ```json { - "id": "accesspoint-trinidade-1", + "id": "urn:ngsi-ld:ParkingAccess:accesspoint-trinidade-1", "type": "ParkingAccess", - "category": { - "value": [ - "vehicleEntrance" - ] - }, - "name": { - "value": "Trinidade main entrance" - }, + "name": "Trinidade main entrance", "location": { - "type": "geo:json", - "value": { - "type": "Point", - "coordinates": [ - -8.60961198807, - 41.150691773 - ] - } - }, - "refOffStreetParking": { - "type": "Relationship", - "value": "porto-OffStreetParking-23889" - }, - "features": { - "value": [ - "barrier" - ] + "coordinates": [ + -8.60961198807, + 41.150691773 + ], + "type": "Point" }, + "category": [ + "vehicleEntrance" + ], + "refOffStreetParking": "urn:ngsi-ld:OffStreetParking:porto-OffStreetParking-23889", + "features": [ + "barrier" + ], "@context": [ "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld", "https://raw.githubusercontent.com/smart-data-models/dataModel.Parking/master/context.jsonld" ] } ``` -
- #### ParkingAccess NGSI-LD 标准化示例 - 下面是一个规范化 JSON-LD 格式的 ParkingAccess 示例。当不使用选项时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 -
show/hide example +
+ #### ParkingAccess NGSI-LD 标准化示例 + 下面是一个规范化 JSON-LD 格式的 ParkingAccess 示例。当不使用选项时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 +
show/hide example ```json { "id": "urn:ngsi-ld:ParkingAccess:accesspoint-trinidade-1", @@ -574,12 +560,12 @@ ParkingAccess: ] } ``` -
- - - - 请参阅 [FAQ 10](https://smartdatamodels.org/index.php/faqs/),获取如何处理幅度单位的答案。 - - ---- - [Smart Data Models](https://smartdatamodels.org) +++ [Contribution Manual](https://bit.ly/contribution_manual) +++ [About](https://bit.ly/Introduction_SDM) +
+ + + + 请参阅 [FAQ 10](https://smartdatamodels.org/index.php/faqs/),获取如何处理幅度单位的答案。 + + +--- + [Smart Data Models](https://smartdatamodels.org) +++ [Contribution Manual](https://bit.ly/contribution_manual) +++ [About](https://bit.ly/Introduction_SDM)