WebThingsIO / schemas

A Web of Things schema repository
https://webthings.io/schemas/
5 stars 8 forks source link

GeolocationProperty #76

Open jaller94 opened 2 years ago

jaller94 commented 2 years ago

Use cases:

All my use cases point towards a read-only property.

Sub properties

I'm unsure in which unit the accuracy is commonly exchanged – maybe meters.

Another option is to define all these proposed "sub" properties as properties and define a Geolocation capability.

benfrancis commented 2 years ago

This is definitely needed, but note that schema.org already provides a GeoCoordinates schema for this.

Example 45 in the latest draft of the WoT Thing Description 1.1 specification demonstrates how the existing schema.org schemas can be used and includes longitude, latitude and elevation. There are also other alternative ontologies though.

My expectation is that the Core Profile may mandate a particular ontology for geolocation, and if it does then I think that's what we should implement support for in WebThings.

In general it would be great to support existing schema.org (and iotschema.org) schemas in WebThings rather than re-inventing the wheel where possible, but iotschema.org is still not very mature.