w3c / csvw

Documents produced by the CSV on the Web Working Group
Other
162 stars 57 forks source link

minor omission in primer/#example-55 #874

Closed VladimirAlexiev closed 3 years ago

VladimirAlexiev commented 3 years ago

https://w3c.github.io/csvw/primer/#example-55:

"schema:name": ["Belgium", "Belgique", "Belgien"]

Shouldn't this include the lang tags as in example 56?

VladimirAlexiev commented 3 years ago

I see that the metadata (https://w3c.github.io/csvw/primer/#example-54) fixes the lang tags. But doesn't the JSONLD output above lose that info?

gkellogg commented 3 years ago

The JSON format doesn't preserve language tags, and is not actually JSON-LD. Note that you could serialize the RDF output as JSON-LD, which would preserve the language tags.

VladimirAlexiev commented 3 years ago

I see my mistake: somehow I assumed that JSON output is JSONLD