Skip to content

Commit

Permalink
updated model.yaml - support subproperties
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 1, 2023
1 parent 58bb395 commit f7e4c02
Showing 1 changed file with 140 additions and 33 deletions.
173 changes: 140 additions & 33 deletions ParkingAccess/model.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -289,38 +384,50 @@ 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:
- 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

0 comments on commit f7e4c02

Please sign in to comment.