|
1 | | -<!-- 10-Header --> |
| 1 | +<!-- 10-Header --> |
2 | 2 | [](https://smartdatamodels.org) |
3 | | -实体: OSMShop |
4 | | -===============<!-- /10-Header --> |
5 | | -<!-- 15-License --> |
6 | | -[Open License](https://github.com/smart-data-models//dataModel.OpenStreetMap/blob/master/OSMShop/LICENSE.md) |
7 | | -[document generated automatically](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) |
8 | | -<!-- /15-License --> |
9 | | -<!-- 20-Description --> |
10 | | -全局描述: **OpenStreetMap 中标记为 shop=* 的商店或零售店。代表直接向最终客户销售零售产品的场所** |
11 | | -版本: 0.0.1 |
12 | | -<!-- /20-Description --> |
13 | | -<!-- 30-PropertiesList --> |
| 3 | +实体:OSMShop |
| 4 | +===============<!-- /10-Header --> |
| 5 | +<!-- 15-License --> |
| 6 | +[Open License](https://github.com/smart-data-models//dataModel.OpenStreetMap/blob/master/OSMShop/LICENSE.md) |
| 7 | +[document generated automatically](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) |
| 8 | +<!-- /15-License --> |
| 9 | +<!-- 20-Description --> |
| 10 | +全局描述:**一个来自OpenStreetMap的商店或零售店,标记为shop=*. 表示直接向最终客户出售零售产品的机构** |
| 11 | +版本:0.0.1 |
| 12 | +<!-- /20-Description --> |
| 13 | +<!-- 30-PropertiesList --> |
14 | 14 |
|
15 | | -## 属性列表 |
| 15 | +## 属性列表 |
16 | 16 |
|
17 | | -<sup><sub>[*] 如果属性中没有类型,则表示它可能有多种类型或不同的格式/模式</sub></sup> |
18 | | -- `address[object]`: 商店地址,按照 schema.org PostalAddress 结构化 - `addressCity[string]`: 地址的城市 |
19 | | - - `addressCountry[string]`: ISO 3166-1 alpha-2 国家代码 |
20 | | - - `houseNumber[string]`: 门牌号或建筑物编号 |
21 | | - - `postalCode[string]`: 邮政编码 |
22 | | - - `streetAddress[string]`: 街道名称 |
23 | | -- `alternateName[string]`: 此项目的替代名称 - `areaServed[string]`: 提供服务或商品的地理区域。模型: [https://schema.org/Text](https://schema.org/Text)- `brand[string]`: 如果商店是连锁店或特许经营店的一部分,则为品牌名称。模型: [https://wiki.openstreetmap.org/wiki/Key:brand](https://wiki.openstreetmap.org/wiki/Key:brand)- `dataProvider[string]`: 标识统一数据实体提供者的字符序列 - `dateCreated[date-time]`: 实体创建时间戳。这通常由存储平台分配 - `dateModified[date-time]`: 实体最后修改时间戳。这通常由存储平台分配 - `description[string]`: 此项目的描述 - `id[*]`: 实体的唯一标识符 - `location[*]`: Geojson 对项目的引用。可以是 Point、LineString、Polygon、MultiPoint、MultiLineString 或 MultiPolygon - `name[string]`: 此项目的名称 - `openingHours[string]`: 商店的 OSM 格式营业时间。模型: [https://wiki.openstreetmap.org/wiki/Key:opening_hours](https://wiki.openstreetmap.org/wiki/Key:opening_hours)- `operator[string]`: 经营商店的实体名称。模型: [https://wiki.openstreetmap.org/wiki/Key:operator](https://wiki.openstreetmap.org/wiki/Key:operator)- `organic[string]`: 指示商店是否销售有机产品。模型: [https://wiki.openstreetmap.org/wiki/Key:organic](https://wiki.openstreetmap.org/wiki/Key:organic)- `osmId[number]`: 原始 OpenStreetMap 元素的整数标识符 - `osmLastModified[date-time]`: 最后修改时间戳 - `osmType[string]`: 原始 OSM 元素的类型 - `owner[array]`: 包含 JSON 编码字符序列的列表,引用所有者(一个或多个)的唯一 ID - `phone[string]`: 商店的电话号码 - `seeAlso[*]`: 指向附加资源的 URI 列表 - `shopType[string]`: 对零售类别进行分类的 OSM 商店标签。枚举值:'supermarket, convenience, bakery, clothes, shoes, hairdresser, car_repair, bicycle, hardware, electronics, florist, books...'。模型: [https://wiki.openstreetmap.org/wiki/Key:shop](https://wiki.openstreetmap.org/wiki/Key:shop)- `source[string]`: 以 URL 形式提供实体数据原始来源的字符序列。建议为来源提供者的完全限定域名,或指向来源对象的 URL - `type[string]`: NGSI 实体类型。必须是 OSMShop - `website[uri]`: 官方网站 URL - `wheelchair[string]`: 轮椅可达性。模型: [https://wiki.openstreetmap.org/wiki/Key:wheelchair](https://wiki.openstreetmap.org/wiki/Key:wheelchair)<!-- /30-PropertiesList --> |
24 | | -<!-- 35-RequiredProperties --> |
25 | | -必需属性 |
26 | | -- `id` - `location` - `osmId` - `osmType` - `shopType` - `type` <!-- /35-RequiredProperties --> |
27 | | -<!-- 40-NotesYaml --> |
28 | | -<!-- /40-NotesYaml --> |
29 | | -<!-- 50-DataModelHeader --> |
30 | | -## 属性数据模型描述 |
31 | | -按字母顺序排序(点击查看详情) |
32 | | -<!-- /50-DataModelHeader --> |
33 | | -<!-- 60-ModelYaml --> |
34 | | -<details><summary><strong>完整的 YAML 详情</strong></summary> |
35 | | -```yaml |
| 17 | +<sup><sub>[*] 如果属性中没有类型,是因为它可以有多种类型或不同的格式/模式</sub></sup> |
| 18 | +- `address[object]`:商店的地址,按照schema.org PostalAddress结构化 |
| 19 | + - `addressCity[string]`:地址的城市 |
| 20 | + - `addressCountry[string]`:ISO 3166-1 alpha-2国家代码 |
| 21 | + - `houseNumber[string]`:房屋或建筑编号 |
| 22 | + - `postalCode[string]`:邮政编码 |
| 23 | + - `streetAddress[string]`:街道名称 |
| 24 | +- `alternateName[string]`:该项的替代名称 - `areaServed[string]`:服务或提供的项目所提供的的地理区域 . 模型:[https://schema.org/Text](https://schema.org/Text)- `brand[string]`:如果商店是连锁店或特许经营的一部分,则为品牌名称 . 模型:[https://wiki.openstreetmap.org/wiki/Key:brand](https://wiki.openstreetmap.org/wiki/Key:brand)- `dataProvider[string]`:一串字符,用于识别提供的和谐数据实体 - `dateCreated[date-time]`:实体创建的时间戳。这通常由存储平台分配 - `dateModified[date-time]`:实体最后修改的时间戳。这通常由存储平台分配 - `description[string]`:对该项的描述 - `id[*]`:实体的唯一标识符 - `location[*]`:对该项的Geojson引用。它可以是Point、LineString、Polygon、MultiPoint、MultiLineString或MultiPolygon - `name[string]`:该项的名称 - `openingHours[string]`:商店的营业时间,以OSM格式表示 . 模型:[https://wiki.openstreetmap.org/wiki/Key:opening_hours](https://wiki.openstreetmap.org/wiki/Key:opening_hours)- `operator[string]`:经营商店的实体名称 . 模型:[https://wiki.openstreetmap.org/wiki/Key:operator](https://wiki.openstreetmap.org/wiki/Key:operator)- `organic[string]`:指示商店是否销售有机产品 . 模型:[https://wiki.openstreetmap.org/wiki/Key:organic](https://wiki.openstreetmap.org/wiki/Key:organic)- `osmId[number]`:原始OpenStreetMap元素的整数标识符 - `osmLastModified[date-time]`:最后修改的时间戳 - `osmType[string]`:原始OSM元素的类型 - `owner[array]`:包含对所有者(们)的唯一ID的JSON编码字符序列的列表 - `phone[string]`:商店的电话号码 - `seeAlso[*]`:指向其他资源的URI列表 - `shopType[string]`:将零售类别分类的OSM商店标签。枚举:'超市、便利店、面包店、服装、鞋子、理发店、汽车维修、自行车、五金、电子产品、花店、书籍...' . 模型:[https://wiki.openstreetmap.org/wiki/Key:shop](https://wiki.openstreetmap.org/wiki/Key:shop)- `source[string]`:实体数据的原始来源的字符序列,以URL形式给出。建议使用源提供者的全限定域名或源对象的URL - `type[string]`:NGSI实体类型。必须是OSMShop - `website[uri]`:官方网站的URL - `wheelchair[string]`:轮椅无障碍 . 模型:[https://wiki.openstreetmap.org/wiki/Key:wheelchair](https://wiki.openstreetmap.org/wiki/Key:wheelchair)<!-- /30-PropertiesList --> |
| 25 | +<!-- 35-RequiredProperties --> |
| 26 | +必需属性 |
| 27 | +- `id` - `location` - `osmId` - `osmType` - `shopType` - `type` <!-- /35-RequiredProperties --> |
| 28 | +<!-- 40-NotesYaml --> |
| 29 | +<!-- /40-NotesYaml --> |
| 30 | +<!-- 50-DataModelHeader --> |
| 31 | +## 属性的数据模型描述 |
| 32 | +按字母顺序排序(点击查看详细信息) |
| 33 | +<!-- /50-DataModelHeader --> |
| 34 | +<!-- 60-ModelYaml --> |
| 35 | +<details><summary><strong>完整的YAML详细信息</strong></summary> |
| 36 | +```yaml |
36 | 37 | OSMShop: |
37 | 38 | description: A shop or retail store from OpenStreetMap tagged with shop=*. Represents establishments selling retail products directly to end customers |
38 | 39 | properties: |
@@ -496,15 +497,15 @@ OSMShop: |
496 | 497 | x-version: 0.0.1 |
497 | 498 | ``` |
498 | 499 | </details> |
499 | | -<!-- /60-ModelYaml --> |
500 | | -<!-- 70-MiddleNotes --> |
501 | | -<!-- /70-MiddleNotes --> |
502 | | -<!-- 80-Examples --> |
503 | | -## 示例载荷 |
504 | | -#### OSMShop NGSI-v2 键值对示例 |
505 | | -这是一个 OSMShop 的 JSON 格式键值对示例。当使用 `options=keyValues` 时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 |
| 500 | +<!-- /60-ModelYaml --> |
| 501 | +<!-- 70-MiddleNotes --> |
| 502 | +<!-- /70-MiddleNotes --> |
| 503 | +<!-- 80-Examples --> |
| 504 | +## 示例有效载荷 |
| 505 | +#### OSMShop NGSI-v2 键值示例 |
| 506 | +这是一个OSMShop在JSON格式下的键值示例。它与NGSI-v2兼容,当使用 `options=keyValues` 时,返回个别实体的上下文数据。 |
506 | 507 | <details><summary><strong>显示/隐藏示例</strong></summary> |
507 | | -```json |
| 508 | +```json |
508 | 509 | { |
509 | 510 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
510 | 511 | "type": "OSMShop", |
@@ -537,10 +538,10 @@ OSMShop: |
537 | 538 | } |
538 | 539 | ``` |
539 | 540 | </details> |
540 | | -#### OSMShop NGSI-v2 规范化示例 |
541 | | -这是一个 OSMShop 的 JSON 格式规范化示例。当不使用选项时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 |
| 541 | +#### OSMShop NGSI-v2 规范化示例 |
| 542 | +这是一个OSMShop在JSON格式下的规范化示例。它与NGSI-v2兼容,当不使用选项时,返回个别实体的上下文数据。 |
542 | 543 | <details><summary><strong>显示/隐藏示例</strong></summary> |
543 | | -```json |
| 544 | +```json |
544 | 545 | { |
545 | 546 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
546 | 547 | "type": "OSMShop", |
@@ -612,10 +613,10 @@ OSMShop: |
612 | 613 | } |
613 | 614 | ``` |
614 | 615 | </details> |
615 | | -#### OSMShop NGSI-LD 键值对示例 |
616 | | -这是一个 OSMShop 的 JSON-LD 格式键值对示例。当使用 `options=keyValues` 时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 |
| 616 | +#### OSMShop NGSI-LD 键值示例 |
| 617 | +这是一个OSMShop在JSON-LD格式下的键值示例。它与NGSI-LD兼容,当使用 `options=keyValues` 时,返回个别实体的上下文数据。 |
617 | 618 | <details><summary><strong>显示/隐藏示例</strong></summary> |
618 | | -```json |
| 619 | +```json |
619 | 620 | { |
620 | 621 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
621 | 622 | "type": "OSMShop", |
@@ -651,10 +652,10 @@ OSMShop: |
651 | 652 | } |
652 | 653 | ``` |
653 | 654 | </details> |
654 | | -#### OSMShop NGSI-LD 规范化示例 |
655 | | -这是一个 OSMShop 的 JSON-LD 格式规范化示例。当不使用选项时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 |
| 655 | +#### OSMShop NGSI-LD 规范化示例 |
| 656 | +这是一个OSMShop在JSON-LD格式下的规范化示例。它与NGSI-LD兼容,当不使用选项时,返回个别实体的上下文数据。 |
656 | 657 | <details><summary><strong>显示/隐藏示例</strong></summary> |
657 | | -```json |
| 658 | +```json |
658 | 659 | { |
659 | 660 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
660 | 661 | "type": "OSMShop", |
@@ -731,12 +732,12 @@ OSMShop: |
731 | 732 | ] |
732 | 733 | } |
733 | 734 | ``` |
734 | | -</details><!-- /80-Examples --> |
735 | | -<!-- 90-FooterNotes --> |
736 | | -<!-- /90-FooterNotes --> |
737 | | -<!-- 95-Units --> |
738 | | -请参阅 [FAQ 10](https://smartdatamodels.org/index.php/faqs/) 以获取有关如何处理量纲单位的答案 |
739 | | -<!-- /95-Units --> |
740 | | -<!-- 97-LastFooter --> |
| 735 | +</details><!-- /80-Examples --> |
| 736 | +<!-- 90-FooterNotes --> |
| 737 | +<!-- /90-FooterNotes --> |
| 738 | +<!-- 95-Units --> |
| 739 | +请参阅 [FAQ 10](https://smartdatamodels.org/index.php/faqs/) 以获取有关如何处理数量级单位的答案 |
| 740 | +<!-- /95-Units --> |
| 741 | +<!-- 97-LastFooter --> |
741 | 742 | --- |
742 | | -[Smart Data Models](https://smartdatamodels.org) +++ [Contribution Manual](https://bit.ly/contribution_manual) +++ [About](https://bit.ly/Introduction_SDM)<!-- /97-LastFooter --> |
| 743 | +[Smart Data Models](https://smartdatamodels.org) +++ [Contribution Manual](https://bit.ly/contribution_manual) +++ [About](https://bit.ly/Introduction_SDM)<!-- /97-LastFooter --> |
|
0 commit comments