-
Notifications
You must be signed in to change notification settings - Fork 60
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
Please alias @id and @type to 'id' and 'type' #232
Comments
👍 from the Web Annotations WG. Our equivalent issue: w3c/web-annotation#88 |
👍 I also suggested it in and referenced previous discussion started by @azaroth42 in |
+1. This does not completely eliminate the |
👍 |
👍 |
IMHO this adds more confusion. We're saying that @prop and prop are the If we have to use @context for compliance reasons, why did we add another On Fri, Oct 30, 2015, 16:11 Aaron Parecki notifications@github.com wrote:
|
Limiting this to |
I would like to remind that http://www.w3.org/TR/json-ld/#aliasing-keywords
|
What about |
@context cannot be aliased given the fact that the value of @context is
|
@jasnell Oh, yeah I know. What I meant was, we use both properties for different things, don't we? |
@silverbucket good catch... Given that Additionally, I didn't find reference of this This sounds like a new issue, though...so I'll file that. 😄 |
I currently use This is the only way I could find in the ActivityStreams2 spec to not have to define my own vocabulary and keep things simple (IMO I think this is quite a basic thing that shouldn't need extra vocabulary - don't you want to know where your data is coming from or going to?). |
Ah I see now that {
...
"@type": "send",
"context": {
"platform": "irc"
}
} @jasnell do you have any suggestions? |
|
WG approved this change |
Hey, sitting here in Web Annotations breakout with @tantek, and chatting w/ Social Web WG previously - it seems like both groups are using "@id" and "@type" without legacy data issues (you don't have previous data that uses "id" and "type".
It's considered a best practice to alias all "@" keywords to those keywords without the @sign. So for example "@id" should be aliased to "id". We just convinced the Web Annotations WG to make this change. They were concerned about making this change because they wanted to use the Social Web WG that was using "@id" and "@type".
If both groups switch to just "id" and "type", it would be very positive for Web developers. Don't use @ signs if you don't have to.
The text was updated successfully, but these errors were encountered: