The text before Example 5 gives the impression that example 5 is, in fact, in JSON-LD. Unfortunately, this is not true, because the @dir is not a valid keywords in JSON-LD 1.0 and is currently not included JSON-LD 1.1.
I have just raised an issue for JSON-LD 1.1 to include a separate @dir keyword albeit without mapping into RDF that cannot (alas!) properly represent the direction of a string literal. As W3C is considering the creation of a JSON-LD Working Group, that may eventually officialize JSON-LD 1.1, this may at least settle this problem on the JSON-LD level.
The text before Example 5 gives the impression that example 5 is, in fact, in JSON-LD. Unfortunately, this is not true, because the
@diris not a valid keywords in JSON-LD 1.0 and is currently not included JSON-LD 1.1.I have just raised an issue for JSON-LD 1.1 to include a separate
@dirkeyword albeit without mapping into RDF that cannot (alas!) properly represent the direction of a string literal. As W3C is considering the creation of a JSON-LD Working Group, that may eventually officialize JSON-LD 1.1, this may at least settle this problem on the JSON-LD level.