The data representation that I will try to use for the RESTful API, JSON-LD , and the dictionary that I intend to use are the words schema.org .
The vocabulary of schema.org/GeoShape says that polygons should be in text format, but they donβt say exactly which text format. It was also not indicated that it should use the WKT Polygon format.
WKT polygon format (well-known text)
POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))
However, since I will be presenting data using JSON-LD, it might also be wise to use something similar with GeoJson polygons or a native JSON array.
GeoJson Polygon Format
{ "type": "Polygon", "coordinates": [ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ] ] }
Built-in 2D JSON Array
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
With that in mind, what is the representation of the correct schema.org/polygon value when used in JSON-LD?
Abel Melquiades Callejo Aug 11 '14 at 3:31 on 2014-08-11 03:31
source share