W3C home > Mailing lists > Public > public-linked-json@w3.org > October 2011

Re: Prefix or term definition?

From: David I. Lehn <dil@lehn.org>
Date: Wed, 5 Oct 2011 15:40:58 -0400
Message-ID: <CADcbRRMtXDWPPRXF0v-4g__3z6sC4daQgru7_O7O3DYRt-Z_xg@mail.gmail.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>
Cc: Linked JSON <public-linked-json@w3.org>
On Wed, Oct 5, 2011 at 12:18 PM, Markus Lanthaler
<markus.lanthaler@gmx.net> wrote:
> I'm not sure if this is an issue, but currently there's no way to specify if
> a mapping in the context is for a prefix or a term. So, what would be the
> result of this (admittedly silly) example.
>
> {
>  "@context": { "payment": "http://example.com/payment/" },
>  "payment:payment": "done",
>  "payment:amount": 20.4
> }
>

Don't forget that you can always use the playground to check such examples:

http://json-ld.org/playground/?json-ld=%7B%22%40context%22%3A%7B%22payment%22%3A%22http%3A%2F%2Fexample.com%2Fpayment%2F%22%7D%2C%22payment%3Apayment%22%3A%22done%22%2C%22payment%3Aamount%22%3A20.4%7D&frame=%7B%7D

-dave
Received on Wednesday, 5 October 2011 19:41:26 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:35 GMT