<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-newton-regext-rdap-simple-contact-01" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" indexInclude="true" consensus="true">

<front>
<title abbrev="rdap-simple-contact">RDAP Simple Contact</title><seriesInfo value="draft-newton-regext-rdap-simple-contact-01" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="A." surname="Newton" fullname="Andy Newton"><organization>ICANN</organization><address><postal><street></street>
</postal><email>andy@hxr.us</email>
</address></author><author initials="T." surname="Harrison" fullname="Tom Harrison"><organization>APNIC</organization><address><postal><street></street>
</postal><email>tomh@apnic.net</email>
</address></author><date/>
<area>Applications and Real-Time Area (ART)</area>
<workgroup>Registration Protocols Extensions (regext)</workgroup>

<abstract>
<t>This document describes an extension to the Registry Data Access Protocol
for entity contact data using basic JSON values, objects, and arrays. The data
model defined by this document is purposefully limited to the data in-use by Internet
Number Registries and Domain Name Registries and does not attempt to model
the full data-set that can be expressed with other contact models such as jCard
or JSContact.</t>
</abstract>

</front>

<middle>

<section anchor="background"><name>Background</name>
<t><xref target="RFC9083"></xref> defines the contact data of an entity using jCard (<xref target="RFC7095"></xref>),
which is a JSON format for vCard (<xref target="RFC6350"></xref>). Experience has shown that jCard
is unsuitable for RDAP because its &quot;jagged&quot; array style is unlike any other
JSON in RDAP; it is more difficutl to deserialize into objects that are easy
to work with, it is error prone and difficult to debug, and it can express
far more information than is necessary for RDAP.</t>
<t>This document defines the SimpleContact extension for RDAP. This extension
intends to model JSON in the same style and manner as other RDAP structures
and is purposefully limited to the data in-use by Internet Number Registries
and Domain Name Registries.</t>
<t>The purposeful limitation of the contact data model defined in this document
is informed by <xref target="RFC5733"></xref>, the
<eref target="https://www.icann.org/en/system/files/files/rdap-response-profile-15feb19-en.pdf">ICANN gTLD RDAP Response Profile</eref>,
the <eref target="https://bitbucket.org/nroecg/nro-rdap-profile/raw/v1/nro-rdap-profile.txt">NRO RDAP Profile</eref>,
and <xref target="RFC7495"></xref>.</t>
</section>

<section anchor="simple-contact-extension-and-identifier"><name>Simple Contact Extension And Identifier</name>
<t>The RDAP extension identifier for this extension is &quot;sc&quot;. This extension
defines one JSON member named &quot;sc_data&quot; to be found in RDAP responses.
&quot;sc_data&quot; is a JSON object, and it has child members described in the following
sections. Each child member of &quot;sc_data&quot; is optional.</t>
<t>There are is one common, optional JSON member of these child members: &quot;lang&quot;.
The JSON member &quot;lang&quot; is the same as that defined by RDAP in <xref target="RFC9083" sectionFormat="bare" relative="#" section="Section 4.4"></xref>.</t>
<t>Most of the child members are arrays allowing the expression of multiple
variants of the same information. The order in which items appear in these
arrays denotes preference order for the variants.</t>

<section anchor="kind"><name>Kind</name>
<t>The &quot;kind&quot; JSON value is a string, that is either &quot;individual&quot;, &quot;role&quot; or
&quot;organization&quot;. An example:</t>

<artwork>&quot;kind&quot; : &quot;role&quot;
</artwork>
<t>There is no equivalent to the &quot;role&quot; value in either jCard or JSContact,
though role entities are common in RDAP registries.</t>
</section>

<section anchor="names"><name>Names</name>
<t>Names can be expressed for each kind of the entity, as described in the
&quot;kind&quot; string. When describing an &quot;individual&quot;, the name of the individual's
role and organization may also be expressed. When describing a &quot;role&quot;, the
name of the role's organization may also be expressed. It is NOT RECOMMENDED
to express the name of a role or individual when the kind is &quot;organization&quot;.</t>
<t>Names are expressed using the &quot;individualNames&quot;,
&quot;roleNames&quot;, and &quot;organizationNames&quot; JSON members for individuals, roles,
and organizations respectively. The value of each is an array in which
each item is an object with the following members:</t>

<ul spacing="compact">
<li>&quot;name&quot; - unstructured textual name as a string</li>
<li>&quot;lang&quot; - optional, see above</li>
</ul>
<t>The following is an example:</t>

<artwork>&quot;individualNames&quot; : [
  {
    &quot;name&quot; : &quot;Dr. Bob Lee Aloysius Smurd, Ph.d.&quot;,
    &quot;lang&quot; : &quot;en-AU&quot;
  }
],
&quot;roleNames&quot; : [
  {
    &quot;name&quot; : &quot;Abuse Prevention, Trust and Safety&quot;,
    &quot;lang&quot; : &quot;en-AU&quot;
  }
],
&quot;organizationNames&quot; : [
  {
    &quot;name&quot; : &quot;ACME Pty&quot;,
    &quot;lang&quot; : &quot;en-AU&quot;
  }
]
</artwork>
<t>RDAP allows the expression of nested entities as the entity object class has its
own <tt>entities</tt> array. Some servers express the relationship of individuals to roles
and/or organizations by nesting entities inside other entities. SimpleContact does
not remove this capability nor prohibit it. However, nesting of entities is NOT
RECOMMENDED if the expression of a relationship between an individual and a role
or an organization can be accomplished using names alone due to the complexity
in representation of those relationships by a client. If a server is to express
an individual with a relationship to a role and/or organization and each have
differences other than names (e.g. separate postal addresses), then nesting is
RECOMMENDED.</t>
</section>

<section anchor="postal-addresses"><name>Postal Addresses</name>
<t>Postal addresses can be expressed as a series of strings, each representing a
separate line of text as it would appear on an item for delievery in a postal
system. Additionally, postal addresses may be augmented with some of the common
fields found in postal systems for the purposes of processing these addresses
in non-postal systems.</t>
<t>Postal addresses are expressed with the &quot;postalAddresses&quot; JSON member, which is an
array of objects each with the following optional members:</t>

<ul spacing="compact">
<li>&quot;address&quot; - holds the unstructured postal address as an array of strings
in which each string represents a line of a postal address.</li>
<li>&quot;cc&quot; - a string containing the ISO-3166-2 code.</li>
<li>&quot;pc&quot; - a string containing the postal code, sometimes referred to as a zip code or post code.</li>
<li>&quot;lang&quot; - see above</li>
</ul>
<t>The following is an example of a postal address:</t>

<artwork>&quot;postalAddresses&quot; : [
  {
    &quot;address&quot; : [
      &quot;Suite 300&quot;,
      &quot;123 Random Tree Name Street&quot;,
      &quot;Kalamazoo, MI 90125 US&quot;
    ]
    &quot;cc&quot; : &quot;US-MI&quot;,
    &quot;pc&quot; : &quot;90215&quot;,
    &quot;lang&quot; : &quot;en-US&quot;
  }
]
</artwork>
</section>

<section anchor="email-addresses"><name>Email Addresses</name>
<t>Email addresses can be expressed in a JSON array of objects named &quot;emails&quot;. Each
object contains the following members:</t>

<ul spacing="compact">
<li>&quot;email&quot; - a string containing the email address.</li>
<li>&quot;lang&quot; - optional, see above</li>
</ul>
<t>If the string in &quot;email&quot; begins with &quot;mailto:&quot;, the string
MUST be conformant to the mailto URI specified in <xref target="RFC6068"></xref>. Otherwise, the string
MUST be conformant to the address specification of <xref target="RFC6531" sectionFormat="bare" relative="#" section="Section 3.3"></xref>.
This JSON value is optional.</t>

<artwork>&quot;emails&quot; : [
  {
    &quot;email&quot;: &quot;山田太郎@example.net&quot;,
    &quot;lang&quot; : &quot;ja&quot;
  },
  {
    &quot;email&quot; : &quot;yamada.taro@example.net&quot;,
    &quot;lang&quot; : &quot;ja-Latn&quot;
  }
]
</artwork>
</section>

<section anchor="telephones"><name>Telephones</name>
<t>Telephones to be used for voice communication can be expressed in a JSON array of strings
named &quot;voicePhones&quot;. Telephones to be used for facsimile machine communications can be
expressed in a JSON array of strings named &quot;faxPhones&quot;.</t>
<t>If the string in the array begins with &quot;tel:&quot;, the string MUST be conformant to the tel URI specified in
<xref target="RFC3966"></xref>. Otherwise the string is considered unstructured text. If possible, the
unstructurued text SHOULD be conformant to the <xref target="ITU.E161.2001"></xref> format and the <xref target="ITU.E164.1991"></xref> numbering
plan.</t>
<t>The following are examples:</t>

<artwork>&quot;voicePhones&quot; : [
  &quot;tel:+1-201-555-0123&quot;,
  &quot;+447040202&quot;
],
&quot;faxPhones&quot; : [
  &quot;tel:+1-201-555-9999;ext=123&quot;
]
</artwork>
</section>

<section anchor="web-contacts"><name>Web Contacts</name>
<t>Communications with the entity using a web browser, often by submitting data via a web form,
can be expressed using a JSON array of strings called &quot;webContacts&quot;. Each string in the array
is an HTTPS URI as specified by <xref target="RFC9110" sectionFormat="bare" relative="#" section="Section 4.2.2"></xref>.</t>
<t>An example:</t>

<artwork>&quot;webContacts&quot; : [
  &quot;https://example.com/contact-me&quot;
]
</artwork>
</section>

<section anchor="geographic-locations"><name>Geographic Locations</name>
<t>Geographic locations can be expressed using the &quot;geo&quot; JSON value, which is an array
of strings. Each string MUST be conformant to the geo URI scheme as defined in <xref target="RFC5870"></xref>.</t>

<artwork>&quot;geo&quot; : [
  &quot;geo:37.786971,-122.399677&quot;
]
</artwork>
<t>&quot;geo&quot; values SHOULD NOT be used with contact data when &quot;kind&quot; is &quot;individual&quot;.</t>
</section>

<section anchor="example"><name>An Entity Example</name>
<t>The following is an example of an RDAP entity using SimpleContact:</t>

<artwork>{
  &quot;objectClassName&quot; : &quot;entity&quot;,
  &quot;handle&quot;:&quot;XXXX&quot;,
  &quot;sc_data&quot;: {
    &quot;kind&quot; : &quot;individual&quot;,
    &quot;individualNames&quot; : [
      {
        &quot;name&quot; : &quot;山田太郎&quot;,
        &quot;lang&quot; : &quot;ja&quot;
      },
      {
        &quot;name&quot; : &quot;Yomada Taro&quot;,
        &quot;lang&quot; : &quot;ja-Latn&quot;
      }
    ],
    &quot;roleNames&quot; : [
      {
        &quot;name&quot; : &quot;登録サービス ヘルプデスク&quot;,
        &quot;lang&quot; : &quot;ja&quot;
      },
      {
        &quot;name&quot; : &quot;Registration Services Help Desk&quot;,
        &quot;lang&quot; : &quot;en&quot;
      }
    ],
    &quot;organizationNames&quot; : [
      {
        &quot;name&quot; : &quot;アクメ&quot;,
        &quot;lang&quot; : &quot;ja&quot;
      },
      {
        &quot;name&quot; : &quot;ACME&quot;,
        &quot;lang&quot; : &quot;en&quot;
      }
    ],
    &quot;postalAddresses&quot; : [
      {
        &quot;address&quot; : [
          &quot;〒150-2345 東京都渋谷区本町2丁目4-7サニーマンション203&quot;,
        ]
        &quot;cc&quot; : &quot;JP-13&quot;,
        &quot;pc&quot; : &quot;150-2345&quot;,
        &quot;lang&quot; : &quot;ja&quot;
      },
      {
        &quot;address&quot; : [
          &quot;Sunny Mansion #203&quot;,
          &quot;4-7 Hommachi 2-choume&quot;,
          &quot;Shibuya-ku, TOKYO 150-2345&quot;
        ]
        &quot;cc&quot; : &quot;JP-13&quot;,
        &quot;pc&quot; : &quot;150-2345&quot;,
        &quot;lang&quot; : &quot;ja-Latn&quot;
      }
    ],
    &quot;emails&quot; : [
      {
        &quot;email&quot;: &quot;山田太郎@example.net&quot;,
        &quot;lang&quot; : &quot;ja&quot;
      },
      {
        &quot;email&quot; : &quot;yamada.taro@example.net&quot;,
        &quot;lang&quot; : &quot;ja-Latn&quot;
      }
    ],
    &quot;voicePhones&quot; : [
      &quot;+81(03) 1234-5678&quot;
    ],
    &quot;faxPhones&quot; : [
      &quot;tel:+810312345679&quot;
    ],
    &quot;webContacts&quot; : [
      &quot;https://example.net/contact-me&quot;
    ]
  },
  &quot;roles&quot;:[ &quot;registrar&quot; ],
  &quot;publicIds&quot;:[
    {
      &quot;type&quot;:&quot;IANA Registrar ID&quot;,
      &quot;identifier&quot;:&quot;1&quot;
    }
  ],
  &quot;remarks&quot;:[
    {
      &quot;description&quot;:[
        &quot;She sells sea shells down by the sea shore.&quot;,
        &quot;Originally written by Terry Sullivan.&quot;
      ]
    }
  ],
  &quot;links&quot;:[
    {
      &quot;value&quot;:&quot;https://example.com/entity/XXXX&quot;,
      &quot;rel&quot;:&quot;self&quot;,
      &quot;href&quot;:&quot;https://example.com/entity/XXXX&quot;,
      &quot;type&quot; : &quot;application/rdap+json&quot;
    },
    {
      &quot;value&quot;:&quot;https://example.com/entity/XXXX&quot;,
      &quot;rel&quot;:&quot;about&quot;,
      &quot;href&quot;:&quot;https://example.com/entity/XXXX.vcard&quot;,
      &quot;type&quot; : &quot;text/vcard&quot;
    }
  ],
  &quot;events&quot;:[
    {
      &quot;eventAction&quot;:&quot;registration&quot;,
      &quot;eventDate&quot;:&quot;1990-12-31T23:59:59Z&quot;
    }
  ],
  &quot;asEventActor&quot;:[
    {
      &quot;eventAction&quot;:&quot;last changed&quot;,
      &quot;eventDate&quot;:&quot;1991-12-31T23:59:59Z&quot;
    }
  ]
}
</artwork>
</section>
</section>

<section anchor="epp-int-loc-data"><name>EPP Int/Loc Data</name>
<t><xref target="RFC5733"></xref> defines mechanisms to indicate data is &quot;localized&quot; or &quot;internationalized&quot;
using &quot;int&quot; and &quot;loc&quot; types. The &quot;int&quot; designates data as being 7-bit ASCII. To express
contact data with the &quot;int&quot; designation in SimpleContact, it is RECOMMENDED that a language
tag with the &quot;Latn&quot; script subtag (see <xref target="RFC5646"></xref>) be used.</t>
</section>

<section anchor="links-to-other-contact-formats"><name>Links to Other Contact Formats</name>
<t>SimpleContact does not attempt to model all possible forms of contact formats or data.
Where an RDAP server can provide a more extensive form such as vCard, jCard, or JSContact,
these can be expressed in an RDAP link using the &quot;about&quot; rel type and the media type
appropriate to that form. section <xref target="example"></xref> contains an example using vCard.</t>
<t>RDAP servers MUST place the same access restrictions upon these resources as they do
on the RDAP entity from which they are referenced. It is NOT RECOMMENDED to link to
contact data provided by other servers or servers under separate authorities.</t>
</section>

<section anchor="the-no-jcard-extension-and-identifier"><name>The No jCard Extension and Identifier</name>
<t>This document also defines a second RDAP extension to signal the non-use of jCard in RDAP
responses. The identifier for this extension is &quot;noJCard&quot;. When used with the RDAP-X
media type <xref target="I-D.newton-regext-rdap-x-media-type"></xref> and the SimpleContact identifier,
a client can signal to a server that entities should substitute SimpleContact data for jCard data.
When used with queries containing large amounts of entity data, such as RDAP searches, this
can reduce the payload significantly (instead of sending both jCard and SimpleContact).</t>
<t>Use of the &quot;noJCard&quot; extension is independent of the SimpleContact extension, and may be
used for other purposes as is appropriate to server policy.</t>
</section>

</middle>

<back>
<references><name>Normative References</name>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml-ids/reference.I-D.newton-regext-rdap-x-media-type.xml"/>
<reference anchor="ITU.E161.2001" target="">
  <front>
    <title>&#xA;Arrangement of digits, letters and symbols on telephones and other devices that can be used for gaining access to a telephone network&#xA;</title>
    <author>
      <organization>International Telecommunications Union</organization>
    </author>
    <date year="2001"></date>
  </front>
  <seriesInfo name="ITU-T" value="Recommendation E.161"></seriesInfo>
</reference>
<reference anchor="ITU.E164.1991" target="">
  <front>
    <title>&#xA;The International Public Telecommunication Numbering Plan&#xA;</title>
    <author>
      <organization>International Telecommunications Union</organization>
    </author>
    <date year="1991"></date>
  </front>
  <seriesInfo name="ITU-T" value="Recommendation E.164"></seriesInfo>
</reference>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3966.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5646.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5733.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5870.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6068.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6531.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7495.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9083.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9110.xml"/>
</references>
<references><name>Informative References</name>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6350.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7095.xml"/>
</references>

</back>

</rfc>
