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

Distinguishing a context document from an instance document #30

Closed
lanthaler opened this issue Sep 28, 2011 · 6 comments
Closed

Distinguishing a context document from an instance document #30

lanthaler opened this issue Sep 28, 2011 · 6 comments

Comments

@lanthaler
Copy link
Member

Currently there is no way to distinguishing a context document from an instance document if it isn't know beforehand. There are a couple of options to solve this issue:

  • create a new MIME type
  • use the form MIME type parameter, i.e., form=context
  • include @context also in pure context documents

Using a MIME type (parameter) for this is problematic for client-side JavaScript implementations. Including @context also in context documents seems to be a straightforward and simple way to do it. The only issue then is to ensure that there isn't any data in a context document - but I'm not even sure if we need to do that.

Perhaps we also just say it's not important to be able to distinguish it because a client has to know what it requests!?

@lanthaler
Copy link
Member Author

The same seems to apply to frames..

@lanthaler
Copy link
Member Author

See also related issue: #36

@lanthaler
Copy link
Member Author

It has been decided that external context documents have to include the @context keyword. This eliminates the need to distinguish context from instance documents.

The situation for frame documents is not clear yet so I leave this issue open for the moment. The simplest and cleanest solution IMHO would be to serve frame documents as JSON documents instead of JSON-LD documents. After all, they are not "valid" JSON-LD documents anyway.

@msporny
Copy link
Member

msporny commented Nov 29, 2011

Breaking out framing into a separate issue #30.

@msporny
Copy link
Member

msporny commented Nov 29, 2011

The spec has been updated to reflect the decision made in the Community Group call. Closing the issue.

@msporny msporny closed this as completed Nov 29, 2011
@msporny
Copy link
Member

msporny commented Jan 22, 2012

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

2 participants