Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognizing an email address with bnode #12

Open
timbl opened this issue Aug 7, 2015 · 1 comment
Open

Recognizing an email address with bnode #12

timbl opened this issue Aug 7, 2015 · 1 comment
Labels

Comments

@timbl
Copy link
Member

timbl commented Aug 7, 2015

My index file people.ttl (from https://github.com/linkeddata/swap/blob/master/pim/readMacAddressBook.py ) has

<Person/DEC7671A6C5E.ttl#this> vcard:inAddressBook <book.ttl#this>;
a vcard:Individual; vcard:fn "Yosi Scharf";
vcard:hasEmail [ a vcard:Work; vcard:value mailto:[email protected]].

The contacts app, when pointed at that file, lists contacts but gives his email as the internal ID of the bode, bnode not the email:

https://timbl.com/timbl/Automation/addressBook/Person/DEC7671A6C5E.ttl#this
Full name: Yosi Scharf
Email: https://timbl.com/timbl/Automation/addressBook/people.ttl*#_g_L14214C503909

Clearly the app is expecting the hasEmail property to have an email address as it object.
The method of using rdf:type to label the email as a work or home is terrible.

What to do? use vcard:hasEmail_work ? or use as in the contacts ontology

<#yosi> work [ email mailto:[email protected]] ]

which is cleaner but more of a diversion from the spec
http://www.w3.org/TR/vcard-rdf/
Note that spec allows both the bnode form AND the direct form.
So this app should probably accept both, and preserve them.

@timbl timbl added the bug label Aug 7, 2015
@deiu
Copy link

deiu commented Aug 7, 2015

I think the app should be more flexible in allowing both direct values as well as bnode references. Actually, having looked again at the vcard ontology it seems that hasEmail has rdfs:range :Email, so it can't be a direct property of a VCard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants