- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Sun, 29 Sep 2013 19:06:49 +0200
- To: "'Renato Iannella'" <ri@semanticidentity.com>, <semantic-web@w3.org>
On Thursday, September 26, 2013 2:45 PM, Renato Iannella wrote:
> The vCard Ontology working draft [1] has been updated and announced [2].
Great stuff! Could you please improve the JSON-LD example in the next draft.
In its current form it's very difficult to read due to the inconsistent
indentation. You could write it as follows instead:
{
"@context": {
"@vocab": "http://www.w3.org/2006/vcard/ns#"
},
"@id": "http://example.com/me/corky",
"@type": "Individual",
"fn": "Corky Crystal",
"nickname": "Corks",
"hasEmail": { "@id": "mailto:corky@example.com" },
"hasAddress": {
"@type": "Home",
"country-name": "Australia",
"locality": "WonderCity",
"postal-code": "5555",
"street-address": "111 Lake Drive"
},
"hasTelephone": {
"@type": [ "Home", "Voice" ],
"hasValue": "tel:+61755555555"
}
}
I think it would also make sense to define and host a context (maybe at
http://www.w3.org/2006/vcard/context.jsonld) so that all people would need
to do to mark up vCards in JSON-LD is to reference it. This could then also
include type-coercions to @id for hasEmail e.g. so that you don't need those
ugly @id-constructs anymore. I would volunteer to write it if you want.
Thanks a lot,
Markus
--
Markus Lanthaler
@markuslanthaler
Received on Sunday, 29 September 2013 17:07:24 UTC