diff --git a/ParkingAccess/model.yaml b/ParkingAccess/model.yaml index 7f99799..908e2a8 100644 --- a/ParkingAccess/model.yaml +++ b/ParkingAccess/model.yaml @@ -1,107 +1,162 @@ ParkingAccess: + description: 'Parking Access - TODO: Provide a complete Schema' + properties: + address: + description: The mailing address + properties: + addressCountry: - description: 'Property. The country. For example, Spain. Model:''https://schema.org/addressCountry''' + description: The country. For example, Spain type: string + x-ngsi: + model: https://schema.org/addressCountry + type: Property + addressLocality: - description: 'Property. The locality in which the street address is, and which is in the region. Model:''https://schema.org/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: 'Property. The region in which the locality is, and which is in the country. Model:''https://schema.org/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.' + 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: 'Property. The post office box number for PO box addresses. For example, 03578. Model:''https://schema.org/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: 'Property. The postal code. For example, 24004. Model:''https://schema.org/https://schema.org/postalCode''' + description: The postal code. For example, 24004 type: string + x-ngsi: + model: https://schema.org/https://schema.org/postalCode + type: Property + streetAddress: - description: 'Property. The street address. Model:''https://schema.org/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. + 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.' + 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. + 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. + 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. + 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. + 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: &parkingaccess_-_properties_-_owner_-_items_-_anyof - - description: Property. Identifier format of any NGSI entity + anyOf: + - description: Identifier format of any NGSI entity maxLength: 256 minLength: 1 pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$ type: string - - description: Property. Identifier format of any NGSI entity + 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' + + description: Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon + oneOf: - - description: GeoProperty. Geojson reference to the item. Point + + - description: Geojson reference to the item. Point properties: bbox: items: @@ -122,7 +177,10 @@ ParkingAccess: - coordinates title: GeoJSON Point type: object - - description: GeoProperty. Geojson reference to the item. LineString + x-ngsi: + type: GeoProperty + + - description: Geojson reference to the item. LineString properties: bbox: items: @@ -146,7 +204,10 @@ ParkingAccess: - coordinates title: GeoJSON LineString type: object - - description: GeoProperty. Geojson reference to the item. Polygon + x-ngsi: + type: GeoProperty + + - description: Geojson reference to the item. Polygon properties: bbox: items: @@ -172,7 +233,10 @@ ParkingAccess: - coordinates title: GeoJSON Polygon type: object - - description: GeoProperty. Geojson reference to the item. MultiPoint + x-ngsi: + type: GeoProperty + + - description: Geojson reference to the item. MultiPoint properties: bbox: items: @@ -195,7 +259,10 @@ ParkingAccess: - coordinates title: GeoJSON MultiPoint type: object - - description: GeoProperty. Geojson reference to the item. MultiLineString + x-ngsi: + type: GeoProperty + + - description: Geojson reference to the item. MultiLineString properties: bbox: items: @@ -221,7 +288,10 @@ ParkingAccess: - coordinates title: GeoJSON MultiLineString type: object - - description: GeoProperty. Geojson reference to the item. MultiLineString + x-ngsi: + type: GeoProperty + + - description: Geojson reference to the item. MultiLineString properties: bbox: items: @@ -249,34 +319,59 @@ ParkingAccess: - coordinates title: GeoJSON MultiPolygon type: object + x-ngsi: + type: GeoProperty + x-ngsi: type: GeoProperty + name: - description: The name of this item. + 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: *parkingaccess_-_properties_-_owner_-_items_-_anyof - description: Property. Unique identifier of the entity + 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: Property. Identifier format of any NGSI entity + - description: Identifier format of any NGSI entity maxLength: 256 minLength: 1 pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$ type: string - - description: Property. Identifier format of any NGSI entity + x-ngsi: + type: Property + - description: Identifier format of any NGSI entity format: uri type: string - description: The offstreet parking site this access point gives access to. + 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: @@ -289,17 +384,20 @@ ParkingAccess: 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.' + 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: @@ -307,20 +405,29 @@ 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-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-model-tags: '' + x-version: 0.0.1