solid-panes icon indicating copy to clipboard operation
solid-panes copied to clipboard

The VCARD shape for phone and email is non-intuitive

Open timbl opened this issue 7 years ago • 2 comments

See gitter chat at https://gitter.im/solid/app-development?at=5bc0696e3844923661276f51

Alfredo Torre @sentenza Oct 12 05:29 My email address shows up as a separate "node" and I dunno why this is happening:

:id1539184351555 a n:Home; n:value <mailto:[email protected]>.

Could anyone explain what does this mean, please?

[...]

Alfredo Torre @sentenza Oct 12 05:31 but here I should see something like n:hasEmail, shouldn't I?

@melvincarvalho notes:

[..]

 :Home a owl:Class ;
    rdfs:label "Home"@en ;
    rdfs:comment "This implies that the property is related to an individual's personal life"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns> ;
    rdfs:subClassOf :Type .

So in general the vcard pattern is

:me  vcard:hasEmail :foo .
    :foo  a vcard:Home; vcard:value <mailto:[email protected]>.

or with bnodes

:me  vcard:hasEmail :[ a vcard:Home; vcard:value <mailto:[email protected]>].

It is working as designed by the RDF VCARD group. The email you have is an intermediate object which has a type which is say Home or Work, and value which is the actual email. This is not the way I modeled in in my own early contacts vocab — there you had a location, which is a Home or an Office or a Vacation and that location would have directly the phone number, address, etc. I was chatting yesterday to @danbri and Vicky of Schema.org, and I think they said that in fact in Schema they did not put in the extra node, but had an approach more like the contacts

@prefix contact: http://www.w3.org/2000/10/swap/pim/contact# .

See https://www.w3.org/2000/10/swap/pim/contact.n3

A possibility would be to move solid to Schema.org in general and in this case it might make for a more intuitive structure. See for example

https://schema.org/ContactPoint

timbl avatar Oct 13 '18 13:10 timbl

[...] The email you have is an intermediate object which has a type which is say Home or Work, and value which is the actual email.

I've created my Solid profile using the Solid Community IDP (https://solid.community), but as I reported in the gitter channel I ended up with the following intermediate object:

:id1539184351987 a n:Home; n:value <mailto:[email protected]>.

Would it be possible that this unexpected behaviour has been generated by this reported issue?

sentenza avatar Oct 14 '18 17:10 sentenza

I was just using the form to enter a phone number, it only allows to set the setting of the number (i.e. home, work) but not the type (The subclasses of vcard:TelephoneType, i.e. vcard:Cell) which I needed.

The form also allows settings some deprecated types (:X400, :Dom, :ISDN, :Intl, :Internet, :Modem, :Msg, :Label, :PCS, :Parcel, and :Postal)

rescribet avatar Nov 04 '19 08:11 rescribet