geojson / geojson-ld

GeoJSON in JSON-LD contexts
Other
130 stars 13 forks source link

Write a GeoJSON-LD howto #6

Closed sgillies closed 7 years ago

sgillies commented 10 years ago

Things to cover:

sthagen commented 10 years ago

I like this list and it helps me a lot in trying to follow this endeavor, but could you be so kind as to expand a bit on the relation of the second and the last list item? What does e.g.. overriding the base context mean, when the base context is the union set of required and recommended terms. Does this mean values are changed, where the keys are in the aforementioned set? … are we trying to give rules, what is allowed to override and what not? Thanks a lot in advance and sorry, if my question is unreadable. All the best, Stefan.

sgillies commented 10 years ago

Overriding example: a user might want "type" within a properties object to have a different sense from "http://geojson.org/vocab#type" and will have to add a local context to the properties object. See the second context in

http://json-ld.org/playground/#startTab=tab-expanded&json-ld=%7B%22%40context%22%3A%7B%22type%22%3A%22http%3A%2F%2Fgeojson.org%2Fvocab%23type%22%2C%22properties%22%3A%22http%3A%2F%2Fgeojson.org%2Fvocab%23properties%22%7D%2C%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%22%40context%22%3A%7B%22type%22%3A%22http%3A%2F%2Fexample.com%2Fothervocab%23type%22%7D%2C%22type%22%3A%22Foo%22%7D%7D&context=%7B%7D

and notice what happens when you remove it. The JSON-LD is pretty cool!

sgillies commented 10 years ago

Next action: expand the README with a "how to" section.

sgillies commented 7 years ago

See #42.