Skip to content

Rename @literal to @value #48

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

Closed
lanthaler opened this issue Dec 13, 2011 · 1 comment
Closed

Rename @literal to @value #48

lanthaler opened this issue Dec 13, 2011 · 1 comment

Comments

@lanthaler
Copy link
Member

Originally raised on the mailing list:

@literal is used to set the value of a property when it is typed or it's language is specified. The name @literal is based on RDF. Something like @value might be easier for JSON developers to understand.

Considering that we have merged @type and @datatype (#31) I think this would make JSON-LD even simpler:

{
   "@value": "2010-05-29T14:17:39+02:00",
   "@type": "xsd:dateTime"
}

might be easier to remember and easier to understand for average developers than

{
   "@literal": "2010-05-29T14:17:39+02:00",
   "@type": "xsd:dateTime"
}
@lanthaler
Copy link
Member Author

RESOLVED: Rename the @literal keyword to @value (2012-01-10 telecon).

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