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

Enable json-ld for linked data with LD option for CSON CLI #61

Closed
jmatsushita opened this issue May 27, 2015 · 1 comment
Closed

Enable json-ld for linked data with LD option for CSON CLI #61

jmatsushita opened this issue May 27, 2015 · 1 comment

Comments

@jmatsushita
Copy link

With JSON-LD the use of keys prefixed with the @ character is idiomatic. This means that the home page example:

{
  "@context": "http://json-ld.org/contexts/person.jsonld",
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}

Is converted with the @keys quoted.

"@context": "http://json-ld.org/contexts/person.jsonld"
"@id": "http://dbpedia.org/resource/John_Lennon"
name: "John Lennon"
born: "1940-10-09"
spouse: "http://dbpedia.org/resource/Cynthia_Lennon"

Would it be possible to add an option (--ld ?) to allow @keys not to be quoted for better readability, as in:

@context: "http://json-ld.org/contexts/person.jsonld"
@id: "http://dbpedia.org/resource/John_Lennon"
name: "John Lennon"
born: "1940-10-09"
spouse: "http://dbpedia.org/resource/Cynthia_Lennon"
@balupton
Copy link
Member

balupton commented Apr 9, 2017

Will be an issue for https://www.npmjs.com/package/cson-parser

@balupton balupton closed this as completed Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants