w3c / json-ld-framing

JSON-LD 1.1 Framing Specification
https://w3c.github.io/json-ld-framing/
Other
25 stars 20 forks source link

Define media profile for frames #21

Closed gkellogg closed 5 years ago

gkellogg commented 5 years ago

At some point, the Mime type defined in IANA Considerations needs to be registered. We should update the contact and probably to @iherman.

iherman commented 5 years ago

Fine with me. We can then proceed through the usual route. But I guess it is too early to register, isn't it?

gkellogg commented 5 years ago

Probably too early, but I wanted to get an issue set so we don’t forget to do it.

azaroth42 commented 5 years ago

Why do we need a separate media type, rather than registering a profile for application/ld+json like expanded or compacted?

Frames are just JSON-LD documents that have special processing implications when applied to other JSON-LD documents.

As Framing does not have backwards compatibility requirements, I think we should consider our options. Especially with respect to https://github.com/w3c/dxwg/issues/261.

BigBlueHat commented 5 years ago

@gkellogg in as much as the direct processing model is identical to application/ld+json) and only the context (sorry) in which it's used changes it's "meaning"--i.e. makes it a "frame" vs. a data document--I'd recommend avoiding another media type and leaning on profile as done for compact, expanded, and flattended: https://www.iana.org/assignments/profile-uris/profile-uris.xhtml

That said, there could be a case made for the MIME type registration's value in association with editors and file extensions...but sadly you can't state a file extension for non-Web use in association with a profile="" registry entry (which would've been nice for Web Annotation...).

BigBlueHat commented 5 years ago

Also fixed a wee typo in that section in 120c32b

gkellogg commented 5 years ago

A frame does have some elements that a normal JSON-LD document wouldn't, such as @default and other flags. But, it is a subtle distinction. I could see using a profile instead of an independent type.

@BigBlueHat that wasn't a typo, but it is debatable if application/frame-ld+json is better (or more correct) than application/ld-frame+json.

BigBlueHat commented 5 years ago

@gkellogg it wasn't? 😕 The registration info was for application/ld-frame+json, so application/frame-ld+json seemed incorrect. Sorry if I've totally misunderstood what was being expressed there.

Regardless, I'd suggest we stick with profiles if at their core they can all be processed as application/ld+json.

gkellogg commented 5 years ago

If they're inconsistent, then we should pick one. However, I think the profile solution is likely best.

BigBlueHat commented 5 years ago

@gkellogg could you change the title here to reflect this new proposal? Or close in favor of an issue focused on the profile proposal?

I'd like to get it on the agenda for a future call.

BigBlueHat commented 5 years ago

Related to https://github.com/w3c/json-ld-syntax/issues/8

iherman commented 5 years ago

This issue was discussed in a meeting.

akuckartz commented 5 years ago

I do not understand the resolution. Was it in favor of a specific Media Type for frames or not?

iherman commented 5 years ago

@akuckartz : the idea is that the syntax document, more exactly the grammar of JSON-LD, should include the frame specific terms, too, which means that, from a media type point of view, a frame document would be a bona fide JSON-LD document. Ie, no need for a separate media type.