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

Re: Prefix or term definition?

From: Ivan Herman <ivan@w3.org>
Date: Thu, 6 Oct 2011 06:02:37 +0200
Cc: Markus Lanthaler <markus.lanthaler@gmx.net>, Linked JSON <public-linked-json@w3.org>
Message-Id: <B079661B-C511-4494-B438-E8CCBF38632B@w3.org>
To: Mark Birbeck <mark.birbeck@sidewinderlabs.com>

On Oct 5, 2011, at 22:23 , Mark Birbeck wrote:

> CURIEs *are* just string concatenations. :)

True. But the specification goes out of its way to obfuscate this:-)

Ivan


> 
> On Wed, Oct 5, 2011 at 5:55 PM, Ivan Herman <ivan@w3.org> wrote:
>> That would be my understanding, too. Afaik, the prefix and the term are the same thing in json ld (and we do not even have to talk about curies, simply string concatenations)
>> 
>> I.
>> 
>> ----
>> Ivan Herman
>> Tel:+31 641044153
>> http://www.ivan-herman.net
>> 
>> 
>> 
>> On 5 Oct 2011, at 18:18, "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
>>> }
>>> 
>>> 
>>> Assuming that I interpret the spec correctly I would expect the following:
>>> 
>>> <> http://example.com/payment/http://example.com/payment/ "done"
>>> <> http://example.com/payment/amount "20.4"^^xsd:double
>>> 
>>> 
>>> 
>>> --
>>> Markus Lanthaler
>>> @markuslanthaler
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Thursday, 6 October 2011 04:01:35 GMT

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