全球描述:并非所有人都需要或可以使用所有公共服务。例如,欧洲国家提供的签证服务并不是欧洲公民所需要的,但一些其他国家的公民却需要;提供失业救济金和补助金的公共服务也是针对特定社会群体的。CPSV 在这一类别中重复使用了核心标准和核心证据词汇表 (CCCEV - https://joinup.ec.europa.eu/release/core-criterion-and-core-evidence-vocabulary-v100)。CCCEV 提供了更多细节,但标准要求类有三个强制性属性。
版本: 0.0.1
[*] 如果属性中没有类型,是因为它可能有多个类型或不同的格式/模式。
address[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/TextcriterionReqType[array]
: 该属性表示受控词汇表(TBC)中描述的标准要求类型 . Model: dct:typedataProvider[string]
: 标识统一数据实体提供者的字符序列dateCreated[date-time]
: 实体创建时间戳。通常由存储平台分配dateModified[date-time]
: 实体最后一次修改的时间戳。通常由存储平台分配description[string]
: 项目描述id[*]
: 实体的唯一标识符identifier[string]
: 该属性表示标准要求的标识符 . Model: dct:identifierlocation[*]
: 项目的 Geojson 引用。它可以是点、线条字符串、多边形、多点、多线条字符串或多多边形name[string]
: 该项目的名称owner[array]
: 包含一个 JSON 编码字符序列的列表,其中引用了所有者的唯一 IdsseeAlso[*]
: 指向有关该项目的其他资源的 uri 列表source[string]
: 以 URL 形式给出实体数据原始来源的字符串。建议使用源提供者的完全合格域名或源对象的 URLtype[string]
: 必须是标准要求 . Model: https://schema.org/Text
所需属性
criterionReqType
id
identifier
name
type
按字母顺序排列(点击查看详情)
full yaml details
CriterionRequirement:
description: 'Not all public services are needed or usable by everyone. For example, the visa service operated by European countries is not needed by European citizens but is needed by some citizens from elsewhere, or public services offering unemployment benefits and grants are targeting specific societal groups. The CPSV reuses the Core Criterion and Core Evidence Vocabulary (CCCEV - https://joinup.ec.europa.eu/release/core-criterion-and-core-evidence-vocabulary-v100) for this class. The CCCEV provides more details but the Criterion Requirement class has three mandatory properties.'
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
criterionReqType:
description: This property represents the type of Criterion Requirement as described in a controlled vocabulary (TBC)
items:
type: string
type: array
x-ngsi:
model: dct:type
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
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
identifier:
description: This property represents an Identifier for the Criterion Requirement
type: string
x-ngsi:
model: dct:identifier
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
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
type:
description: It has to be CriterionRequirement
enum:
- CriterionRequirement
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
required:
- id
- type
- identifier
- name
- criterionReqType
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.CPSV-AP/blob/master/CriterionRequirement/LICENSE.md
x-model-schema: https://smart-data-models.github.io/dataModel.CPSV-AP/CriterionRequirement/schema.json
x-model-tags: CEFAT4CITIES
x-version: 0.0.1
下面是一个以 JSON-LD 格式作为键值的 CriterionRequirement 示例。当使用 options=keyValues
时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "urn:ngsi-ld:CPSV-AP:CriterionRequirement:d70d5a06-bbf3-438f-ba65-10f93544a200",
"type": "CriterionRequirement",
"identifier": "CriterionRequirementd70d5a06bbf3438fba6510f93544a200",
"name": "DEFAULT NAME",
"criterionReqType": [
"Holding a ticket",
"Being older than eighteen"
]
}
下面是一个规范化 JSON-LD 格式的 CriterionRequirement 示例。当不使用选项时,它与 NGSI-v2 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "urn:ngsi-ld:CPSV-AP:CriterionRequirement:d70d5a06-bbf3-438f-ba65-10f93544a200",
"type": "CriterionRequirement",
"identifier": {
"type": "Text",
"value": "CriterionRequirementd70d5a06bbf3438fba6510f93544a200"
},
"name": {
"type": "Text",
"value": "DEFAULT NAME"
},
"criterionReqType": {
"type": "StructuredValue",
"value": [
"Holding a ticket",
"Being older than eighteen"
]
}
}
下面是一个以 JSON-LD 格式作为键值的 CriterionRequirement 示例。当使用 options=keyValues
时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "urn:ngsi-ld:CPSV-AP:CriterionRequirement:d70d5a06-bbf3-438f-ba65-10f93544a200",
"type": "CriterionRequirement",
"identifier": "CriterionRequirementd70d5a06bbf3438fba6510f93544a200",
"name": "DEFAULT NAME",
"criterionReqType": [
"Holding a ticket",
"Being older than eighteen"
],
"@context": [
"https://smart-data-models.github.io/dataModel.CPSV-AP/context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.CPSV-AP/master/context.jsonld"
]
}
下面是一个规范化 JSON-LD 格式的 CriterionRequirement 示例。当不使用选项时,它与 NGSI-LD 兼容,并返回单个实体的上下文数据。
show/hide example
{
"id": "urn:ngsi-ld:CPSV-AP:CriterionRequirement:d70d5a06-bbf3-438f-ba65-10f93544a200",
"type": "CriterionRequirement",
"identifier": {
"type": "Property",
"value": "CriterionRequirementd70d5a06bbf3438fba6510f93544a200"
},
"name": {
"type": "Property",
"value": "DEFAULT NAME"
},
"criterionReqType": {
"type": "Property",
"value": [
"Holding a ticket",
"Being older than eighteen"
]
},
"@context": [
"https://smart-data-models.github.io/dataModel.CPSV-AP/context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.CPSV-AP/master/context.jsonld"
]
}
请参阅 FAQ 10,获取如何处理幅度单位的答案。