CenterForDigitalHumanities / rerum_server

Java web service for a RERUM compliant digital object repository
http://rerum.io
Other
7 stars 2 forks source link

Support application/geo+json media type #134

Open thehabes opened 4 years ago

thehabes commented 4 years ago

https://tools.ietf.org/html/rfc7946#section-12

Applications creating GeoJSON are encouraged to use application/geo+json

Applications that use this media type: No known application scurrently use this media type. This media type is intended for GeoJSON applications currently using the "application/vnd.geo+json" or "application/json" media types, of which there are several categories: web mapping, geospatial databases, geographic data processing APIs, data analysis and storage services, and data dissemination.

I believe this means our API should also support the application/ld+geo+json media type.

thehabes commented 4 years ago

To be clear, this is more of a think about and discuss and less of a do it now.

After our initial discussion, we think a simple resolution to this is adding application/geo+json to the allowed media type list in processRequest().

We also see the possibilities around application/ld+geo+json and are considering asking for an understanding of how that hierarchically fits together in the JSON - JSON-LD - GeoJSON relationship.