remotestorage / remotestorage.io

[DEPRECATED] Old RS website
50 stars 30 forks source link

enable Content Negotiation for JSON-LD @context files #68

Closed elf-pavlik closed 3 years ago

elf-pavlik commented 10 years ago

i started working on @context files for JSON-LD support https://github.com/elf-pavlik/remotestorage-jsonld-contexts

we can either replace current html files with link to JSON-Schema or enable content negotiation so serve actual @context when requesting application/ld+json

one of existing URIs used as @context http://remotestorage.io/spec/modules/bookmarks/archive-bookmark/

michielbdejong commented 10 years ago

pasting

{
  "@context":
    "http://remotestorage.io/spec/modules/bookmarks/archive-bookmark",
  "id": "0a3f99e98cfc4e62a2df1d453b51bec9",
  "url": "http://jsunconf.eu",
  "title": "JSUnconf",
  "description": "JavaScript conference in Hamburg",
  "createdAt": "2014-04-13T12:19:38.969Z"
}

into http://json-ld.org/playground/ still fails, but now it is because of the lack of CORS headers on there