W3C home > Mailing lists > Public > public-hydra@w3.org > July 2014

RE: Introduction and a question about JSON-LD

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Thu, 31 Jul 2014 14:39:56 -0400
To: <public-hydra@w3.org>
Message-ID: <04b901cfacee$d4eba280$7ec2e780$@gmx.net>
On 31 Jul 2014 at 08:06, Dimitri van Hees wrote:
>> On Monday, July 28, 2014 2:11 AM, Dimitri van Hees wrote:
>>> I mean that with the context file I am able to convert homeLocation
>>> to http://schema.org/homeLocation, but "Tilburg" remains a literal
>>> of a http://schema.org/City. I am able to do that when adding @type to
>>> response but not with the context file, right?
>> Yep, that's correct. Without introducing yet another keyword, a JSON-LD
>> processor wouldn't know whether you meant it to be
>> { "@value": "Tilburg", "@type": "schema:City" }
>> or
>> { "@id": "Tilburg", "@type": "schema:City" }
>> In most cases, if you use a URL instead of a literal, you want to add
more properties
>> than just a type anyway. 
> Ok, would this response make sense then? http://pastebin.com/utYVDXt1

Yep, definitely. Please note though that some properties (such as the very
interesting "interests") would be dropped when expanding that document as
they are not mapped to a URL.

>> Btw. HTML mails (in contrast to plain text mails) and top-posting are not
>> popular on mailing lists for various reasons :-P
> I'm sorry. Is this better?

Yeah, thanks!

Markus Lanthaler
Received on Thursday, 31 July 2014 18:40:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:54:00 UTC