- From: James M Snell <jasnell@gmail.com>
- Date: Thu, 9 Oct 2014 10:02:29 -0700
- To: "public-vocabs@w3.org Vocabs" <public-vocabs@w3.org>, "public-socialweb@w3.org" <public-socialweb@w3.org>, Dan Brickley <danbri@google.com>
(fyi... cross posted to public-vocabs and public-socialwb, sorry to those who receive this twice) I'm working on use cases for expressing geo data in Activity Streams 2.0. The original thought was to leverage GeoJSON but since JSON-LD does not support GeoJSON's lists-of-lists model for coordinates, I'm looking at using the W3C Basic Geo Vocabulary (http://www.w3.org/2003/01/geo/) for simple cases and the OpenGIS GeoSparql vocabulary (WKT) for more complex cases. I noticed that I'm not the only one considering this [see: https://github.com/rvguha/schemaorg/issues/113] so I figured a quick sanity check discussion here would be worthwhile. First, the simple case: { "@context": [ "http://asjsonld.mybluemix.net" ], "@type": "as:Activity", "verb": "post", "actor": { "@type": "urn:example:types:Person", "@id": "urn:example:people:joe", "displayName": "James M Snell", "location": { "@type": "geo:Point", "geo:lat": 1.23, "geo:long": 3.45 } }, ... } This case ought to be fairly straightforward. The one thing I will note, however, is that the W3C Geolocation API [http://www.w3.org/TR/geolocation-API/#position_interface] provides significantly more detail than what the Basic Geo Vocabulary is currently able to capture. I'm curious as to whether or not it would make sense to update the Basic Geo Vocabulary to include these additional data points. Specifically adding: geo:altitude geo:accuracy geo:altitudeAccuracy geo:heading geo:speed For the more complex cases, using the WKT specification seems to make the most sense: { "@context": [ "http://asjsonld.mybluemix.net" ], "@type": "as:Activity", "verb": "post", "actor": { "@type": "urn:example:types:Person", "@id": "urn:example:people:joe", "displayName": "James M Snell", "location": { "@type": "geos:Geometry", "geos:asWKT": "Polygon((-83.6 34.1, -83.2 34.1, -83.2 34.5, -83.6 34.5, -83.6 34.1))" } }, ... } Seem like a sane approach to folks? - James
Received on Thursday, 9 October 2014 17:03:17 UTC