- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Thu, 31 Jul 2014 14:39:56 -0400
- To: <public-hydra@w3.org>
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
instead
>>> of a http://schema.org/City. I am able to do that when adding @type to
the
>>> 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
very
>> popular on mailing lists for various reasons :-P
>
> I'm sorry. Is this better?
Yeah, thanks!
--
Markus Lanthaler
@markuslanthaler
Received on Thursday, 31 July 2014 18:40:25 UTC