Difference between revisions of "RepresentingVCardinRDFOWL"

From W3C Wiki
Jump to: navigation, search
Line 56: Line 56:
 
=====Delivery Addressing Properties=====
 
=====Delivery Addressing Properties=====
  
* ADR: hasAddress [ a Address; streetAddress "123 Main Street"; locality "Any Town"; region "CA"; country "U.S.A." ].
+
* ADR: hasAddress [ a Address; streetAddress "123 Main Street"; locality "Any Town"; region "CA"; postalCode "91921-1234"; country "U.S.A." ].
  
 
Address is a subclass of Addressing.
 
Address is a subclass of Addressing.

Revision as of 18:40, 13 October 2012

This page is for discussion and development of an OWL Ontology for vCard.

Currently, the W3C Member Submission on Representing vCard Object in RDF covers vCard 3.0 (aka RFC2426).

The latest vCard V.4 is documented in RFC6350

Draft Ontology - 9OCT2012

OWL File

http://www.w3.org/wiki/images/2/2b/Vcard.rdf

LODE Documentation

http://www.essepuntato.it/lode/owlapi/http://www.w3.org/wiki/images/2/2b/Vcard.rdf


Mapping from RFC

The OWL file renames properties from the RFC. Here is the mapping for reference:

Property Parameters
  • LANGUAGE: language
  • VALUE: (not needed)
  • PREF: preference
  • ALTID: ?
  • PID: ?
  • TYPE is split into the context (Home, Work), phone (Cell, Fax, Text, TextPhone, Video, Voice) and related (Sibling etc) properties
  • MEDIATYPE: ?
  • CALSCALE: ?
  • SORT-AS: ?
  • GEO: geo
  • TZ: timezone
General Properties
  • BEGIN: (not needed)
  • END: (not needed)
  • SOURCE: ?
  • KIND becomes the classes Individual, Group, Organization and Location
  • XML: ?
Identification Properties
  • FN: hasFormattedName [ a FormattedName; formattedName "John Q. Public, Esq." ].
  • N: hasName [ a Name; familyName "Public"; givenName "John"; additionalName "Quinlan"; honorificPrefix "Mr."; honorificSuffix "Esq." ].
  • NICKNAME: hasNickname [ a Nickname; nickname "Jim" ].
  • PHOTO: hasPhoto [ a Photo; photo "xttp://www.example.com/pub/photos/jqpublic.gif" ].
  • BDAY: birthDate
  • ANNIVERSARY: anniversary
  • GENDER: gender (Male, Female, Other, None, Unknown)

FormattedName, Name, Nickname and Photo are subclasses of Identification.

Delivery Addressing Properties
  • ADR: hasAddress [ a Address; streetAddress "123 Main Street"; locality "Any Town"; region "CA"; postalCode "91921-1234"; country "U.S.A." ].

Address is a subclass of Addressing.

Communications Properties
  • TEL: hasTelephone [ a Telephone; telephone "tel:+1-555-555-5555;ext=5555" ].
  • EMAIL: hasEmail [ a Email; email "jqpublic@xyz.example.com" ].
  • IMPP: hasMessaging [ a Messaging; impp "xmpp:alice@example.com" ].
  • LANG becomes the language property on the Telephone, Email and Messaging classes

Telephone, Email and Messaging are subclasses of Communication.

Geographical Properties

TimeZone and Geo are subclasses of Geographical.

Organizational Properties
  • TITLE: hasTitle [ a Title; title "Research Scientist" ].
  • ROLE: hasRole [ a Role; role "Project Leader" ].
  • LOGO: hasLogo [ a Logo; logo "xttp://www.example.com/pub/logos/abccorp.jpg" ].
  • ORG: hasOrg [ a Org; org "ABC, Inc." ]
  • MEMBER: hasMember
  • RELATED: hasRelated [ a Related; related "xttp://example.com/directory/jdoe.vcf"; relation Contact ].

Title, Role, Logo, Org, Related are subclasses of Organizational.

Explanatory Properties
  • CATEGORIES: hasCategory [ a Category; category "TRAVEL AGENT" ].
  • NOTE: hasNote [ a Note; note "This fax number is operational 0800 to 1715 EST, Mon-Fri." ].
  • PRODID: ?
  • REV: ?
  • SOUND: hasSound [ a Sound; sound "CID:JOHNQPUBLIC.part8.19960229T080000.xyzMail@example.com" ].
  • UID: uid
  • CLIENTPIDMAP: ?
  • URL: hasWeb [ a Web; url "http://example.org/restaurant.french/~chezchic.html" ].
  • VERSION: ?

Category, Note, Sound and Web are subclasses of Explanatory.

Security Properties

Key is a subclass of Security.

Calendar Properties

CalendarBusy, CalendarRequest are subclasses of Calendar.

Four vCard KINDS

Individual
Organization
Group
Location