Internet-Draft | jscontact-vcard | December 2022 |
Loffredo & Stepanek | Expires 12 June 2023 | [Page] |
This document defines how to convert contact information defined in the JSContact specification from and to vCard.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 12 June 2023.¶
Copyright (c) 2022 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The JSContact data model and format [I-D.ietf-calext-jscontact] aims to be an alternative to the widely used vCard [RFC6350] standard and jCard [RFC7095].¶
While applications might prefer JSContact to exchange contact card data with other systems, they are likely to interoperate with services and clients that only support vCard or jCard. Similarly, existing contact data providers and consumers already using vCard or jCard might want to represent their contact data also in JSContact.¶
To achieve this, this document defines standard rules to convert contact data between JSContact and vCard (and consequently jCard).¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].¶
In the following of this document, the vCard features, namely properties and parameters, are written in uppercase while the Card features are written in camel case wrapped in double quotes.¶
This section contains the conversion rules from vCard to JSContact Card. Its follows the same structure as the vCard v4 RFC document [RFC6350]. Properties and parameters of vCard extension RFCs, including the vCard JSContact Extension RFC [I-D.ietf-calext-vcard-jscontact-extensions] are added to appropriate subsections.¶
uid
property
The UID property in vCard is optional, but the uid
property in JSContact is mandatory. Implementations that convert a vCard without UID property MUST generate a unique identifier as a value for the uid
property. They SHOULD generate the same identifier when repeatedly converting the same vCard, but they MAY generate different values. Consequently, a vCard without UID property MAY not convert to one exact instance of a JSContact card.¶
Multi-valued properties in JSContact typically are represented as a JSON object where the object keys are of the Id
type and the object values are the converted vCard property. In absence of the PROP-ID parameter (see Section 2.3.15), implementations are free to choose any identifier for such entries. Whatever identifier generation scheme implementations use, they SHOULD generate values of short character length. For example, this could be an incrementing number across all Id
s or only unique within one JSON object.¶
This converts to the JSContact Boolean
type.¶
The TIMESTAMP type generally converts to the UTCDateTime
. It converts to the Timestamp
type for anniversaries.¶
The DATE type converts to the PartialDate
type, which only is relevant for anniversaries. This does not apply to DATE values that only define a month or a day.¶
The TIME, DATE-TIME, DATE-AND-OR-TIME types and DATE type values that only define a month or day do not convert to any JSContact type. vCard properties or parameters having such values MAY convert as defined in Section 2.16.¶
This converts to the JSContact Int
and UnsignedInt
types.¶
This converts to the JSContact Number
type.¶
This converts to the JSContact String
type.¶
This converts to the JSContact String
type.¶
This converts to the JSContact String
type.¶
This either converts to a String
containing an IANA TimeZone Database entry name (see Section 2.9.2), or it does not convert to any JSContact type. For the latter, vCard properties or parameters having such values MAY convert to JSContact as defined in Section 2.16.¶
This does not convert to an IANA-registered property in JSContact, but several conversion rules make use of this parameter to combine multiple vCard properties into a single JSContact object instance. For an example of this see Section 2.7.1. To preserve the verbatim value of the ALTID parameter, set the JSContact extension properties props
or params
defined in Section 2.16.¶
This parameter set on a BDAY, DEATHDATE or ANNIVERSARY property converts to the calendarScale
property of the PartialDate
object type. To convert this parameter for other vCard properties, see Section 2.16.2.¶
The CREATED parameter value of a vCard NOTE property converts to the created
property of the Note object. To convert this parameter for other vCard properties, see Section 2.16.2.¶
Note: This parameter is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
If this parameter is set to true
on a vCard property, then implementations MAY choose to not convert that property. Note: This parameter is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
This parameter set on an ADR property converts to the JSContact coordinates
property of the Address
object that represents the vCard ADR. To convert this parameter for other vCard properties, see Section 2.16.2.¶
This parameter exclusively is for use in jCard (see Section 7.1 of [RFC7095]). It MUST NOT be set in a vCard. Preserving the exact group name when converting from vCard to JSContact and back to vCard is not necessary. Any group identifiers will do, as long as the resulting vCard groups its properties equally to the original vCard. Implementations that still wish to preserve the exact property group name of a vCard property MAY set the group
parameter in the JSContact extension properties props
or params
defined in Section 2.16.¶
This parameter set on the EXPERTISE, HOBBY, INTEREST and ORG-DIRECTORY properties defined in [RFC6715] converts to the JSContact listAs
property of the PersonalInfo
and DirectoryResource
objects. To convert this parameter for other vCard properties, see Section 2.16.2.¶
This converts to an entry in the localizations
property for the vCard property that this parameter is set on. The value of the LANGUAGE parameter defines the language tag key in the localizations
property.¶
This specification does not define a single standard conversion rule for how to convert the property values. Instead, building the localizations value is implementation-specific.¶
Two options to populate the localizations property are:¶
A non-localized Card SHOULD NOT provide less information than any of its localizations.¶
As a general rule, an implementation SHOULD choose those vCard properties to convert to the non-localized card, that either all have the same LANGUAGE parameter value or none at all. Figure 3 illustrates this.¶
As a special case, if one or more vCard properties of the same type do not have the LANGUAGE parameter set, then choose them to the non-localized Card. Convert any with LANGUAGE parameters to the localizations property.Figure 4 illustrates this.¶
As the least preferred option, Figure 5 illustrates how all vCard properties of the same type have the LANGUAGE parameter set, but none of their language tags match the locale of the main Card. In this case, implementations MAY choose to add the localized vCard properties only to the localizations object. Implementations SHOULD avoid this scenario as much as possible.¶
The LEVEL parameter as defined in [RFC6715] is directly converted to the level
property of the PersonalInfo
type apart from when LEVEL is used in the EXPERTISE property; in this case, the values convert as in the following:¶
To convert this parameter for other vCard properties, see Section 2.16.2.¶
This converts to the mediaType
property of the Resource
object type. To convert this parameter for other vCard properties, see Section 2.16.2.¶
This does not convert to an IANA-registered property in JSContact. To convert this parameter, see Section 2.16.2.¶
The PROP-ID parameter value of a vCard property converts to the Id
of the JSContact property to which the vCard property converts to.¶
Note: This parameter is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
The values of this parameter convert to the rank
property of the NameComponent objects inferred from the N property value. To convert this parameter for other vCard properties, see Section 2.16.2. Note: This parameter is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
This converts to the service
property of the OnlineService
object type. To convert this parameter for other vCard properties, see Section 2.16.2. Note: This parameter is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
This converts to the sortAs
properties defined for the Name
, Organization
and OrgUnit
object types. To convert this parameter for other vCard properties, see Section 2.16.2.¶
This converts to the contexts
property as well as property-specific type
property values defined in later sections.¶
This parameter set on an ADR property converts to the JSContact timeZone
property of the Address
object that represents the vCard ADR. Also see the conversion of the TZ property in Section 2.9.2. To convert this parameter for other vCard properties, see Section 2.16.2.¶
This does not convert to an IANA-registered property in JSContact. To preserve properties with experimental values, see Section 2.16.2 and Section 2.16.1.¶
These do not convert to IANA-registered properties in JSContact.¶
The KIND property converts to the kind
property (Figure 7). Allowed values are those described in Section 6.1.4 of [RFC6350] and extended with the values declared in [RFC6473] and [RFC6869].¶
A SOURCE property converts to an entry in the directories
property (Figure 8). The entry value is a DirectoryResource
object whose type
property is set to entry
and uri
property is set to the SOURCE value.¶
The PREF and MEDIATYPE parameters convert according to the rules as defined in Section 2.3.¶
The BDAY and ANNIVERSARY properties and the extensions BIRTHPLACE, DEATHDATE, DEATHPLACE described in [RFC6474] are represented as Anniversary
objects included in the anniversaries
property (Figure 9):¶
BDAY and BIRTHPLACE convert to date
and place
where type
is set to "birth";¶
DEATHDATE and DEATHPLACE convert to date
and place
where type
is set to "death";¶
date
where type
is "wedding".¶
Both birth and death places are represented as instances of the Address
object.¶
The BIRTHPLACE and DEATHPLACE properties that are represented as geo URIs convert to Address
instances including only the coordinates
property. If the URI value is not a geo URI, the place is ignored.¶
The ALTID and LANGUAGE parameters of both BIRTHPLACE and DEATHPLACE properties convert according to the rules as defined in Section 2.3.¶
This does not map to an IANA-registered property in JSContact. To convert this property, see Section 2.16.1. Note the alternative JSContact speakToAs
property which defines how to address and refer to an individual represented by the card, as do the newly defined vCard GRAMMATICAL-GENDER and PRONOUNS properties of [I-D.ietf-calext-vcard-jscontact-extensions].¶
The GRAMMATICAL-GENDER property converts to the grammaticalGender
property of the SpeakToAs
object (Figure 10).¶
The PRONOUNS property converts to an entry in the pronouns
property of the SpeakToAs
object (Figure 10).¶
All the FN instances are represented through the fullName
property (Figure 11). The presence of multiple instances is implicitly associated with the full name translation in various languages regardless of the presence of the ALTID parameter. Each translation converts according to the rules as defined in Section 2.3.¶
The N instances convert to equivalent items of the components
array of the name
property (Figure 11): the N components convert into related NameComponent
objects as presented in Table 1. Name components SHOULD be ordered such that their values joined by whitespace produce a valid full name of this entity.¶
Each comma-separated item of the SORT-AS parameter value converts to an entry of the sortAs
property where the key is the "type" value related to the sorted N component and the value is the corresponding item. Absence of a key in the sortAs
indicates that its related part in the SORT-AS parameter value MUST either the empty string followed by COMMA, or no further SORT-AS parts are defined.¶
N component | "type" value |
---|---|
Honorific Prefixes | prefix |
Given Names | given |
Family Names | surname |
Additional Names | middle |
Honorific Suffixes | suffix |
A NICKNAME property converts to an entry in the nickNames
property (Figure 11). The entry value is a NickName
object. The name
property is set to the NICKNAME value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
A PHOTO property converts to an entry in the media
property (Figure 12). The entry value is a MediaResource
object whose type
property is set to photo
and uri
property is set to the PHOTO value.¶
The PREF and MEDIATYPE parameters convert according to the rules as defined in Section 2.3.¶
An ADR property converts to an entry in the addresses
property (Figure 13). The entry value is an Address
object.¶
The ADR components convert into the Address
properties as presented in Table 2 and Table 3.¶
The "street address" and "extended address" ADR components MAY be converted into either a single StreetComponent item or a combination of StreetComponent items.¶
ADR component | Address member |
---|---|
locality | locality |
region | region |
postal code | postcode |
country name | country |
ADR component | Single StreetComponent item | Combination of StreetComponent items |
---|---|---|
post office box | postOfficeBox | |
extended address | extension | extension, building, floor, room, apartment |
street address | name | name, number, direction |
The LABEL parameter converts to the fullAddress
property.¶
The GEO parameter converts to the coordinates
property.¶
The TZ parameter converts to the timeZone
property.¶
The CC parameter as defined in [RFC8605] converts to the countryCode
property.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
The ALTID and LANGUAGE parameters convert according to the rules as defined in Section 2.3. Each possible language-dependent alternative is represented as an entry of the PatchObject map where the key references the fullAddress
property.¶
A CONTACT-CHANNEL-PREF property converts to an entry in the preferredContactChannels
property (Figure 14). The entry key set is defined in Table 4, the related entry values are arrays of ContactChannelPreference
objects.¶
CONTACT-CHANNEL-PREF value | "preferredContactChannels" key |
---|---|
ADR | addresses |
emails | |
IMPP | onlineServices |
TEL | phones |
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
If both PREF and TYPE parameters are missing, the array of ContactChannelPreference
objects MUST be empty.¶
Note: This property is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
An EMAIL property converts to an entry in the emails
property (Figure 15). The entry value is an EmailAddress
object. The address
property is set to the EMAIL value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
An IMPP property converts to an entry in the onlineServices
property (Figure 16). The type
of the OnlineService is set to impp
. The entry value is a OnlineService
object and the user
property is set to the IMPP value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
A LANG property converts to an entry in the preferredLanguages
property (Figure 17). The entry keys correspond to the language tags, the related entry values are arrays of LanguagePreference
objects.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
If both PREF and TYPE parameters are missing, the array of LanguagePreference
objects MUST be empty.¶
The LOCALE property converts to the locale
property (Figure 18).¶
Note: This property is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
A TEL property converts to an entry in the phones
property (Figure 20). The entry value is a Phone
object. The TEL-specific values of the TYPE parameter convert to the features
property keys. The number
property is set to the TEL value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
This converts to the coordinates
property of the Address
object. Also see Section 2.9.3 to determine which Address
object instance to convert to.¶
A value of type TEXT converts to the timeZone
property in the Address
object.¶
A value of type UTC-OFFSET converts to the timeZone
property in the Address
object if the offset has zero minutes and the hour offset is in the range -12 <= 14:¶
Etc/UTC
.¶
ETC/GMT
suffixed with the string representation of the reversed sign hour offset, including the sign but excluding leading zeros and minutes. For example, the UTC offset value -0500
converts to ETC/GMT+5
.¶
For such property values, also see Section 2.9.3 to determine which Address
object instance to convert to.¶
Any other value of type UTC-OFFSET or URI does not convert to an IANA-registered property in JSContact. To convert such property, see Section 2.16.1.¶
In vCard the properties ADR, GEO and TZ occur independently of each other. In JSContact, they all convert to properties of an Address
object. It is implementation-specific if these vCard properties convert to separate address instances in JSContact, or if some or all of them convert to the same address. That being said, implementations SHOULD convert the properties to the same address for the following cases:¶
A CONTACT-URI property as defined in [RFC8605] is represented as an entry of the links
property (Figure 21). The entry value is a LinkResource
object whose type
property is set to contact
and uri
property is set to the CONTACT-URI value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
A LOGO property converts to an entry in the media
property (Figure 22). The entry value is a MediaResource
object whose type
property is set to logo
and uri
property is set to the LOGO value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
The uids of the contact cards composing the group are included in the members
property (Figure 23).¶
In this case, the PREF parameter does not have a JSContact counterpart; however, the implementers MAY insert the map entries by order of preference.¶
An ORG property converts to an entry in the organizations
property (Figure 24). The entry value is an Organization
object whose name
property contains the organizational name, and the units
property is an array of OrgUnit
objects each containing the organizational unit name in the name
property.¶
Implementations MAY allow representation of organizational units without the organizational name. In this case, the first component of the ORG value MUST be an empty string (e.g. ORG:;DepartmentA).¶
The ALTID, LANGUAGE parameters convert according to the rules as defined in Section 2.3.¶
The first item of the comma-separated SORT-AS parameter value converts to the sortAs
property of the Organization
object. The subsequent items convert to the sortAs
property of the corresponding OrgUnit
object¶
The TYPE parameter converts according to the rules as defined in Section 2.3.¶
Both TITLE and ROLE properties are represented as entries of the titles
property (Figure 26). The entry value is a Title
object whose type
property is set to title
or role
for TITLE and ROLE vCard properties, respectively. The name
property is set to the vCard property value.¶
The value of the organization
property can be derived if the TITLE or ROLE property is member of a vCard property group and exactly one other ORG property also is part of that group.¶
The ALTID and LANGUAGE parameters convert according to the rules as defined in Section 2.3.¶
An EXPERTISE property as defined in [RFC6715] is represented as a PersonalInfo
object in the personalInfo
property (Figure 27). The type
property is set to "expertise".¶
The INDEX parameter converts according to the rules as defined in Section 2.3.¶
A HOBBY property as defined in [RFC6715] is represented as a PersonalInfo
object in the personalInfo
property (Figure 28). The type
property is set to "hobby".¶
The INDEX parameter converts according to the rules as defined in Section 2.3.¶
An INTEREST property as defined in [RFC6715] is represented as a PersonalInfo
object in the personalInfo
property (Figure 29). The type
property is set to "interest".¶
The INDEX parameter converts according to the rules as defined in Section 2.3.¶
An ORG-DIRECTORY property as defined in [RFC6715] is represented as an entry of the directories
property (Figure 30). The entry value is a DirectoryResource
object whose type
property is set to directory
and uri
property is set to the ORG-DIRECTORY value.¶
The INDEX, PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
A CATEGORIES property converts to a set of entries of the keywords
property (Figure 31). The keys are the comma-separated text values of the CATEGORIES property.¶
In this case, the PREF parameter does not have a JSContact counterpart; however, the implementers MAY insert the map entries by order of preference.¶
The CLIENTPIDMAP property and the PDI parameter don't have a direct match with a Card feature.¶
The CREATED property converts to the created
property (Figure 32).¶
Note: This property is defined in [I-D.ietf-calext-vcard-jscontact-extensions].¶
A NOTE property converts to a Note
object in the notes
map (Figure 33)¶
The ALTID and LANGUAGE parameters convert according to the rules as defined in Section 2.3.¶
A SOUND property converts to an entry in the media
property (Figure 36). The entry value is a MediaResource
object whose type
property is set to sound
and uri
property is set to the SOUND value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
An URL property converts to an entry in the links
property (Figure 38). The entry value is a LinkResource
object whose uri
property is set to the URL value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
This property is experimental but widely in use in existing vCard data. It converts to the label
property of a JSContact object type. The X-ABLabel property is preceded by a vCard property group name, and the label converts to the JSContact object which got converted from a vCard property having the same group.¶
The group name is not preserved, implementations are free to choose any unique group name when converting back to vCard. For an example how to preserve the group name see Section 2.3.8.¶
A CALADRURI property converts to an entry in the schedulingAddresses
property (Figure 41). The entry value is a SchedulingAddress
object whose uri
property is set to the CALADRURI value.¶
The PREF parameter converts according to the rules as defined in Section 2.3.¶
A CALURI property converts to an entry in the calendars
property (Figure 42). The entry value is a CalendarResource
object whose type
property is set to calendar
and uri
property is set to the CALURI value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
An FBURL property converts to an entry in the calendars
property (Figure 43). The entry value is a CalendarResource
object whose type
property is set to freeBusy
and uri
property is set to the FBURL value.¶
The PREF and TYPE parameters convert according to the rules as defined in Section 2.3.¶
These convert as specified in Section 2.16.¶
vCards may contain properties or parameters for which no IANA-registered JSContact property is defined. For example, a vCard may contain extended properties and parameters of which the semantics or purposes are unknown Section 6.10 of [RFC6350].¶
This section defines JSContact extension properties by which such vCard properties and parameters MAY be represented in JSContact. Implementations MAY choose to convert differently if they deem that more appropriate.¶
vCardProps
vCardProps
¶
JCardProp[]
, where JCardProp
denotes a jCard-encoded vCard property as defined in Section 3.3 of [RFC7095].¶
This illustrates how to convert a vCard extension property:¶
vCardParams
vCardParams
¶
String[String|String[]]
¶
EMAIL;X-FOO=Bar:jane_doe@example.com¶
converts to¶
"emails": { "email1": { "@type": "EmailAddress", "address": "jane_doe@example.com", "vCardParams": { "x-foo": "Bar" } } }¶
A Card
converts to vCard by applying the reverse rules of converting vCard to JSContact. Table 5 lists the relevant document sections for each JSContact object type and property. The following additional rules apply:¶
Id
of the converted value (see Section 2.3.15).¶
fullName
property in JSContact is optional, but it is mandatory in vCard. If the fullName
is not set but the name
property is, then implementations MAY derive the value of the FN property from it. In this case, they MUST set the DERIVED parameter on the FN property. Otherwise, they MUST set the FN property with an empty value.¶
JSContact Type | Property Name | Relevant Section(s) |
---|---|---|
Address | @type | not applicable |
Address | contexts | Section 2.3.19 |
Address | coordinates | Section 2.3.7, Section 2.9.1 |
Address | country | Section 2.7.1 |
Address | countryCode | Section 2.7.1 |
Address | fullAddress | Section 2.7.1 |
Address | locality | Section 2.7.1 |
Address | postcode | Section 2.7.1 |
Address | pref | Section 2.3.14 |
Address | region | Section 2.7.1 |
Address | street | Section 2.7.1 |
Address | timeZone | Section 2.3.20, Section 2.9.2 |
Anniversary | @type | not applicable |
Anniversary | date | Section 2.6.1 |
Anniversary | place | Section 2.6.1 |
Anniversary | type | Section 2.6.1 |
Author | @type | not applicable |
Author | name | Section 2.3.3 |
Author | uri | Section 2.3.2 |
CalendarResource | @type | not applicable |
CalendarResource | contexts | Section 2.3.19 |
CalendarResource | label | Section 2.12.11 |
CalendarResource | mediaType | Section 2.3.12 |
CalendarResource | pref | Section 2.3.14 |
CalendarResource | type | Section 2.14.1, Section 2.14.3 |
CalendarResource | uri | Section 2.14.1, Section 2.14.3 |
Card | @type | not applicable |
Card | @version | not applicable |
Card | addresses | Section 2.7.1 |
Card | anniversaries | Section 2.6.1 |
Card | calendars | Section 2.14.1, Section 2.14.3 |
Card | created | Section 2.12.3 |
Card | directories | Section 2.5.3, Section 2.11.4 |
Card | emails | Section 2.8.2 |
Card | fullName | Section 2.6.4 |
Card | keywords | Section 2.12.1 |
Card | kind | Section 2.5.2 |
Card | links | Section 2.10.1, Section 2.12.9 |
Card | locale | Section 2.8.5 |
Card | localizations | Section 2.3.10 |
Card | media | Section 2.6.6, Section 2.10.2, Section 2.12.7 |
Card | members | Section 2.10.3 |
Card | name | Section 2.6.5 |
Card | nickNames | Section 2.6.5 |
Card | notes | Section 2.12.4 |
Card | onlineServices | Section 2.8.3 |
Card | organizations | Section 2.10.4 |
Card | personalInfo | Section 2.11.1, Section 2.11.2, Section 2.11.3 |
Card | phones | Section 2.8.7 |
Card | preferredContactChannels | Section 2.8.1 |
Card | preferredLanguages | Section 2.8.4 |
Card | prodId | Section 2.12.5 |
Card | relatedTo | Section 2.10.5 |
Card | schedulingAddresses | Section 2.14.1 |
Card | speakToAs | Section 2.6.3 |
Card | titles | Section 2.10.6 |
Card | uid | Section 2.12.8 |
Card | updated | Section 2.12.6 |
ContactChannelPreference | @type | not applicable |
ContactChannelPreference | contexts | Section 2.3.19 |
ContactChannelPreference | pref | Section 2.3.14 |
CryptoResource | @type | not applicable |
CryptoResource | contexts | Section 2.3.19 |
CryptoResource | label | Section 2.12.11 |
CryptoResource | mediaType | Section 2.3.12 |
CryptoResource | pref | Section 2.3.14 |
CryptoResource | type | not applicable |
CryptoResource | uri | Section 2.13.1 |
DirectoryResource | @type | not applicable |
DirectoryResource | contexts | Section 2.3.19 |
DirectoryResource | label | Section 2.12.11 |
DirectoryResource | listAs | Section 2.3.9 |
DirectoryResource | mediaType | Section 2.3.12 |
DirectoryResource | pref | Section 2.3.14 |
DirectoryResource | type | Section 2.5.3, Section 2.11.4 |
DirectoryResource | uri | Section 2.5.3, Section 2.11.4 |
EmailAddress | @type | not applicable |
EmailAddress | address | Section 2.8.2 |
EmailAddress | contexts | Section 2.3.19 |
EmailAddress | label | Section 2.12.11 |
EmailAddress | pref | Section 2.3.14 |
LanguagePreference | @type | not applicable |
LanguagePreference | contexts | Section 2.3.19 |
LanguagePreference | pref | Section 2.3.14 |
LinkResource | @type | not applicable |
LinkResource | contexts | Section 2.3.19 |
LinkResource | label | Section 2.12.11 |
LinkResource | mediaType | Section 2.3.12 |
LinkResource | pref | Section 2.3.14 |
LinkResource | type | Section 2.10.1, Section 2.12.9 |
LinkResource | uri | Section 2.10.1, Section 2.12.9> |
MediaResource | @type | not applicable |
MediaResource | contexts | Section 2.3.19 |
MediaResource | label | Section 2.12.11 |
MediaResource | mediaType | Section 2.3.12 |
MediaResource | pref | Section 2.3.14 |
MediaResource | type | Section 2.6.6, Section 2.10.2, Section 2.12.7 |
MediaResource | uri | Section 2.6.6, Section 2.10.2, Section 2.12.7 |
Name | @type | not applicable |
Name | components | Section 2.6.5 |
Name | sortAs | Section 2.3.18 |
NameComponent | @type | not applicable |
NameComponent | rank | Section 2.3.16 |
NameComponent | type | Section 2.6.5 |
NameComponent | value | Section 2.6.5 |
NickName | @type | not applicable |
NickName | contexts | Section 2.3.19 |
NickName | name | Section 2.6.5 |
NickName | pref | Section 2.3.14 |
Note | @type | not applicable |
Note | author | Section 2.3.2, Section 2.3.3 |
Note | created | Section 2.3.5 |
Note | note | Section 2.12.4 |
OnlineService | @type | not applicable |
OnlineService | contexts | Section 2.3.19 |
OnlineService | label | Section 2.12.11 |
OnlineService | pref | Section 2.3.14 |
OnlineService | service | Section 2.3.17 |
OnlineService | type | Section 2.8.3, Section 2.8.6 |
OnlineService | user | Section 2.8.3, Section 2.8.6 |
OrgUnit | @type | not applicable |
OrgUnit | name | Section 2.10.4 |
OrgUnit | sortAs | Section 2.3.18 |
Organization | @type | not applicable |
Organization | contexts | Section 2.3.19 |
Organization | name | Section 2.10.4 |
Organization | sortAs | Section 2.3.18 |
Organization | units | Section 2.10.4 |
PartialDate | @type | not applicable |
PartialDate | calendarScale | Section 2.3.4 |
PartialDate | day | Section 2.2.2 |
PartialDate | month | Section 2.2.2 |
PartialDate | year | Section 2.2.2 |
PatchObject | @type | not applicable |
PersonalInfo | @type | not applicable |
PersonalInfo | listAs | Section 2.3.9 |
PersonalInfo | level | Section 2.3.11 |
PersonalInfo | type | Section 2.11.1, Section 2.11.2, Section 2.11.3 |
PersonalInfo | value | Section 2.11.1, Section 2.11.2, Section 2.11.3 |
Phone | @type | not applicable |
Phone | contexts | Section 2.3.19 |
Phone | features | Section 2.8.7 |
Phone | label | Section 2.12.11 |
Phone | number | Section 2.8.7 |
Phone | pref | Section 2.3.14 |
Pronouns | @type | not applicable |
Pronouns | contexts | Section 2.3.19 |
Pronouns | pref | Section 2.3.14 |
Pronouns | pronouns | Section 2.6.3 |
Relation | @type | not applicable |
Relation | relation | Section 2.10.5 |
Resource | @type | not applicable |
SchedulingAddress | @type | not applicable |
SchedulingAddress | contexts | Section 2.3.19 |
SchedulingAddress | label | Section 2.12.11 |
SchedulingAddress | pref | Section 2.3.14 |
SchedulingAddress | uri | Section 2.14.1 |
SpeakToAs | @type | not applicable |
SpeakToAs | grammaticalGender | Section 2.6.3 |
SpeakToAs | pronouns | Section 2.6.3 |
StreetComponent | @type | not applicable |
StreetComponent | type | Section 2.7.1 |
StreetComponent | value | Section 2.7.1 |
Timestamp | @type | not applicable |
Timestamp | utc | Section 2.2.2 |
Title | @type | not applicable |
Title | name | Section 2.10.6 |
Title | organization | Section 2.10.6 |
Title | type | Section 2.10.6 |
JSContact object types may contain properties for which no IANA-registered vCard property is defined. For example, a JSContact object may contain vendor-specific properties of which the semantics or purpose are unknown.¶
This section defines new vCard properties and parameters by which such JSContact properties MAY be represented in JSContact. Implementations MAY choose to convert differently if they deem that more appropriate.¶
JSCONTACT-PROP
This property converts a JSContact property to vCard. The vCard property value is the JSON-encoded value of the JSContact property, represented as a TEXT value. The format of the JSON value SHOULD be compact, e.g. without insignificant whitespace.¶
The value of the JSPTR parameter defines the path to that JSContact value within the Card. The last segment of the JSON pointer either defines the property name or array position of the JSContact value. The root of the JSON pointer always is the Card object that this vCard converts to, irrespective if the JSON pointer starts with the SOLIDUS (U+002F) character. If any but the last segment of the JSON pointer points to a non-existent JSContact property or array entry in the Card, then the JSCONTACT-PROP property MUST be ignored and SHOULD be discarded from the vCard.¶
This property is defined by the following notation:¶
jscontact-prop = "JSCONTACT-PROP" jscontact-prop-param ":" TEXT CRLF jscontact-prop-param = *( ; The following are MANDATORY and MUST NOT ; occur more than once ( ";" jspath-param ) / ; see next section ( ";" "VALUE" "=" "TEXT") ; ; The following is OPTIONAL, ; and MAY occur more than once. ; (";" other-param) ; )¶
This illustrates how to convert a property at the top-level in a Card object that is unknown to the implementation.¶
This illustrates how to convert a vendor-extension property at the top-level of a Card object. Note the required use of quoted string for the JSPTR value which allows the path to include the COLON (U+003A) character.¶
This illustrates how to convert a vendor-extension property at a nested level in a Card object using a path relative to the Card object. Although not recommended, the property name includes the SOLIDUS (U+002F) character which requires escaping in the JSON pointer.¶
JSPTR
This parameter has a single value that MUST be a valid JSON pointer as defined in [RFC6901]. Currently, its semantics only are defined for the JSCONTACT-PROP property (see Section 3.2.1), but it may also be used for other use cases in the future.¶
jspath-param = "JSPTR" "=" DQUOTE *QSAFE-CHAR DQUOTE ; also see param-value in RFC 6350, section 3.3¶
This illustrates a simple example. For further examples see Section 3.2.1.¶
JSCONTACT-PROP;VALUE=TEXT;JSPTR="example.com:foo":"bar"¶
This specification defines how to convert between the JSContact and vCard formats. The security considerations for parsing and formatting such data apply and are outlined in Section 5 of [I-D.ietf-calext-jscontact] and Section 9 of [RFC6350].¶
IANA is requested to add the following entries to the "vCard Properties" registry, defined in Section 10.3.1. of [RFC6350].¶
Namespace | Property | Reference |
---|---|---|
JSCONTACT-PROP | This document, Section 3.2.1 |
IANA is requested to add the following entries to the "vCard Parameters" registry, defined in Section 10.3.2. of [RFC6350].¶
Namespace | Parameter | Reference |
---|---|---|
JSPTR | This document, Section 3.2.2 |
IANA is requested to add the following entries to the "JSContact Properties" registry.¶
Property Name | Property Type | Property Context | Reference or Description | Intended Usage | Since Version | Until Version | Change Controller |
---|---|---|---|---|---|---|---|
vCardParams | String[String] | Any JSContact object type that contains the @type property. |
Section 2.16.2 | common | 1.0 | IETF | |
vCardProps | JCardProp[] | Card | Section 2.16.1 | common | 1.0 | IETF |
IANA is requested to add the following entries to the "JSContact Types" registry.¶
Type Name | Reference or Description | Intended Usage | Since Version | Until Version | Change Controller |
---|---|---|---|---|---|
JCardProp | Section 2.16.1 | common | 1.0 | IETF |
NOTE: Please remove this section and the reference to RFC 7942 prior to publication as an RFC.¶
This section records the status of known implementations of the protocol as defined in this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.¶
According to RFC 7942, "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit".¶