|
1 | | -<!-- 10-Header --> |
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 --> |
| 1 | +<!-- 10-Header --> |
| 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 --> |
14 | 14 |
|
15 | | -## 属性列表 |
| 15 | +## 属性列表 |
16 | 16 |
|
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]`:该项目的备用名称 |
25 | | -- `areaServed[string]`:提供服务或商品的地理区域。模型:[https://schema.org/Text](https://schema.org/Text) |
26 | | -- `brand[string]`:如果商店是连锁店或特许经营店,则为品牌名称。模型:[https://wiki.openstreetmap.org/wiki/Key:brand](https://wiki.openstreetmap.org/wiki/Key:brand) |
27 | | -- `dataProvider[string]`:标识统一数据实体的字符序列 |
28 | | -- `dateCreated[date-time]`:实体创建时间戳。这通常由存储平台分配 |
29 | | -- `dateModified[date-time]`:实体最后修改时间戳。这通常由存储平台分配 |
30 | | -- `description[string]`:对该项目的描述 |
31 | | -- `id[*]`:实体的唯一标识符 |
32 | | -- `location[*]`:项目的Geojson引用。它可以是Point、LineString、Polygon、MultiPoint、MultiLineString或MultiPolygon |
33 | | -- `name[string]`:项目的名称 |
34 | | -- `openingHours[string]`:商店的营业时间,采用OSM格式。模型:[https://wiki.openstreetmap.org/wiki/Key:opening_hours](https://wiki.openstreetmap.org/wiki/Key:opening_hours) |
35 | | -- `operator[string]`:经营商店的实体名称。模型:[https://wiki.openstreetmap.org/wiki/Key:operator](https://wiki.openstreetmap.org/wiki/Key:operator) |
36 | | -- `organic[string]`:指示商店是否销售有机产品。模型:[https://wiki.openstreetmap.org/wiki/Key:organic](https://wiki.openstreetmap.org/wiki/Key:organic) |
37 | | -- `osmId[number]`:原始OpenStreetMap元素的整数标识符 |
38 | | -- `osmLastModified[date-time]`:最后修改时间戳 |
39 | | -- `osmType[string]`:原始OSM元素的类型 |
40 | | -- `owner[array]`:一个列表,包含一个JSON编码的字符序列,引用所有者(们)的唯一ID |
41 | | -- `phone[string]`:商店的电话号码 |
42 | | -- `seeAlso[*]`:指向附加资源的URI列表 |
43 | | -- `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) |
44 | | -- `source[string]`:一个字符序列,给出实体数据的原始来源URL。建议使用源提供商的完全限定域名,或指向源对象的URL |
45 | | -- `type[string]`:NGSI实体类型。它必须是OSMShop |
46 | | -- `website[uri]`:官方网站URL |
47 | | -- `wheelchair[string]`:轮椅可达性。模型:[https://wiki.openstreetmap.org/wiki/Key:wheelchair](https://wiki.openstreetmap.org/wiki/Key:wheelchair)<!-- /30-PropertiesList --> |
48 | | -<!-- 35-RequiredProperties --> |
49 | | -必需属性 |
50 | | -- `id` |
51 | | -- `location` |
52 | | -- `osmId` |
53 | | -- `osmType` |
54 | | -- `shopType` |
55 | | -- `type` |
56 | | -<!-- /35-RequiredProperties --> |
57 | | -<!-- 40-NotesYaml --> |
58 | | -<!-- /40-NotesYaml --> |
59 | | -<!-- 50-DataModelHeader --> |
60 | | -## 属性的数据模型描述 |
61 | | -按字母顺序排序(点击查看详情) |
62 | | -<!-- /50-DataModelHeader --> |
63 | | -<!-- 60-ModelYaml --> |
64 | | -<details><summary><strong>完整的yaml详情</strong></summary> |
| 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> |
65 | 35 | ```yaml |
66 | 36 | OSMShop: |
67 | 37 | description: A shop or retail store from OpenStreetMap tagged with shop=*. Represents establishments selling retail products directly to end customers |
@@ -524,16 +494,16 @@ OSMShop: |
524 | 494 | x-model-schema: https://smart-data-models.github.io/dataModel.OpenStreetMap/OSMShop/schema.json |
525 | 495 | x-model-tags: OSM OpenStreetMap POI Shop |
526 | 496 | x-version: 0.0.1 |
527 | | -``` |
528 | | -</details> |
529 | | -<!-- /60-ModelYaml --> |
530 | | -<!-- 70-MiddleNotes --> |
531 | | -<!-- /70-MiddleNotes --> |
532 | | -<!-- 80-Examples --> |
533 | | -## 示例负载 |
534 | | -#### OSMShop NGSI-v2 键值示例 |
535 | | -这是OSMShop的JSON格式键值示例。在使用`options=keyValues`时,它与NGSI-v2兼容,并返回单个实体的上下文数据。 |
536 | | -<details><summary><strong>显示/隐藏示例</strong></summary> |
| 497 | +``` |
| 498 | +</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 兼容,并返回单个实体的上下文数据。 |
| 506 | +<details><summary><strong>显示/隐藏示例</strong></summary> |
537 | 507 | ```json |
538 | 508 | { |
539 | 509 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
@@ -565,11 +535,11 @@ OSMShop: |
565 | 535 | "https://www.openstreetmap.org/node/9876543210" |
566 | 536 | ] |
567 | 537 | } |
568 | | -``` |
569 | | -</details> |
570 | | -#### OSMShop NGSI-v2 规范化示例 |
571 | | -这是OSMShop的JSON格式规范化示例。在不使用选项时,它与NGSI-v2兼容,并返回单个实体的上下文数据。 |
572 | | -<details><summary><strong>显示/隐藏示例</strong></summary> |
| 538 | +``` |
| 539 | +</details> |
| 540 | +#### OSMShop NGSI-v2 规范化示例 |
| 541 | +这是一个 OSMShop 的 JSON 格式规范化示例。当不使用选项时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。 |
| 542 | +<details><summary><strong>显示/隐藏示例</strong></summary> |
573 | 543 | ```json |
574 | 544 | { |
575 | 545 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
@@ -640,11 +610,11 @@ OSMShop: |
640 | 610 | ] |
641 | 611 | } |
642 | 612 | } |
643 | | -``` |
644 | | -</details> |
645 | | -#### OSMShop NGSI-LD 键值示例 |
646 | | -这是OSMShop的JSON-LD格式键值示例。在使用`options=keyValues`时,它与NGSI-LD兼容,并返回单个实体的上下文数据。 |
647 | | -<details><summary><strong>显示/隐藏示例</strong></summary> |
| 613 | +``` |
| 614 | +</details> |
| 615 | +#### OSMShop NGSI-LD 键值对示例 |
| 616 | +这是一个 OSMShop 的 JSON-LD 格式键值对示例。当使用 `options=keyValues` 时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 |
| 617 | +<details><summary><strong>显示/隐藏示例</strong></summary> |
648 | 618 | ```json |
649 | 619 | { |
650 | 620 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
@@ -679,11 +649,11 @@ OSMShop: |
679 | 649 | "https://raw.githubusercontent.com/smart-data-models/dataModel.OpenStreetMap/refs/heads/master/context.jsonld" |
680 | 650 | ] |
681 | 651 | } |
682 | | -``` |
683 | | -</details> |
684 | | -#### OSMShop NGSI-LD 规范化示例 |
685 | | -这是OSMShop的JSON-LD格式规范化示例。在不使用选项时,它与NGSI-LD兼容,并返回单个实体的上下文数据。 |
686 | | -<details><summary><strong>显示/隐藏示例</strong></summary> |
| 652 | +``` |
| 653 | +</details> |
| 654 | +#### OSMShop NGSI-LD 规范化示例 |
| 655 | +这是一个 OSMShop 的 JSON-LD 格式规范化示例。当不使用选项时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。 |
| 656 | +<details><summary><strong>显示/隐藏示例</strong></summary> |
687 | 657 | ```json |
688 | 658 | { |
689 | 659 | "id": "urn:ngsi-ld:OSMShop:node:9876543210", |
@@ -760,13 +730,13 @@ OSMShop: |
760 | 730 | "https://raw.githubusercontent.com/smart-data-models/dataModel.OpenStreetMap/refs/heads/master/context.jsonld" |
761 | 731 | ] |
762 | 732 | } |
763 | | -``` |
764 | | -</details><!-- /80-Examples --> |
765 | | -<!-- 90-FooterNotes --> |
766 | | -<!-- /90-FooterNotes --> |
767 | | -<!-- 95-Units --> |
768 | | -请参阅[FAQ 10](https://smartdatamodels.org/index.php/faqs/)以获取有关如何处理量纲单位的答案 |
769 | | -<!-- /95-Units --> |
770 | | -<!-- 97-LastFooter --> |
771 | | ---- |
| 733 | +``` |
| 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 --> |
| 741 | +--- |
772 | 742 | [Smart Data Models](https://smartdatamodels.org) +++ [Contribution Manual](https://bit.ly/contribution_manual) +++ [About](https://bit.ly/Introduction_SDM)<!-- /97-LastFooter --> |
|
0 commit comments