Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON-LD #96

Open
hupili opened this issue Aug 17, 2013 · 2 comments
Open

JSON-LD #96

hupili opened this issue Aug 17, 2013 · 2 comments

Comments

@hupili
Copy link
Owner

hupili commented Aug 17, 2013

As is mentioned in #90 JSON is an important interfacing format to support. We already make the Message object JSON-serializable for interfacing with any other languages. It will be better to have general JSON support in form of a platform.

JSON-LD looks a promising direction.

@hupili
Copy link
Owner Author

hupili commented Aug 17, 2013

Related resources:

@hupili
Copy link
Owner Author

hupili commented Aug 17, 2013

Notes from the introductory video of JSON-LD: http://www.youtube.com/watch?v=vioCbTo3C-4

  • HTML (rendered): human consumption.
  • HTML + RDFa: machine readable linked data. e.g. for search engines.
  • JSON: common interfacing format. Problem is that there is no common agreement of the meaning of attributes. We find this especially true with the experience in developing SNSAPI.
  • JSON-LD: use @context to make the meaning of fields unambiguous. Other specifiers: @id, @type, ...

The idea of JSON-LD is self-descriptive. @context can be put in the JSON file or in a separate .jsonld file. Current examples extensively refers to http://schema.org/ . e.g. ReplyAction. The definition looks too detailed and overwhelming to new users. We may want to maintain a snsapi-message context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant