RE: vCard Ontology WD Updated

On Friday, November 01, 2013 11:43 AM, Renato Iannella wrote:
> On 31 Oct 2013, at 22:00, Markus Lanthaler wrote:
> 
> > I've created the first version of the JSON-LD context for the vCard
> > Ontology. You can find it at
> >
> > https://github.com/lanthaler/vCardOntology/blob/master/context.jsonld
> >
> > At the moment it includes also all deprecated elements. I wasn't sure
> > what to do with them... should we drop them?
> >
> > I've also created a JSON-LD serialization of the ontology itself
> > which you can find at
> >
> >  https://github.com/lanthaler/vCardOntology/blob/master/Vcard.jsonld
> 
> Thanks Markus!
> 
> Should I just add these to the spec, in a new section?

I've combined the two into a single file combined.jsonld [1]. I think it
would make most sense if you would serve that file directly from
http://www.w3.org/2006/vcard/ns Not only does that save a HTTP round-trip
for linked data clients, but also allows people to write VCards in a very
simple way without having to remember any special URL. The example in the
spec could thus be simplified to:

{
  "@context": "http://www.w3.org/2006/vcard/ns",
  "@id": "http://example.com/me/corky",
  "@type": "Individual",
  "fn": "Corky Crystal",
  "nickname": "Corks",
  "hasEmail": "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"
  }
}

Perhaps just add a sentence above or below that example saying that a
JSON-LD context has been specified and all that people need to do is to
reference it.

Let me know when you update the ontology and I'll keep the JSON-LD stuff in
sync.


--
Markus Lanthaler
@markuslanthaler

Received on Friday, 1 November 2013 11:36:35 UTC