Re: schema.org/Place: replace faxNumber and telephone with contactPoint

Hi Max,
A small correction on your example, property names as class names are case sensitive. Properties start lower case and classes upper case:
<div itemprop="contactPoint" itemtype="http://schema.org/ContactPoint">
   <div itemprop="contactType">Switchboard</div>
   <div itemprop="telephone">02 42 68 53 00</div>
</div>

By definition this is allowed:

<div itemprop="telephone">Switchboard: 02 42 68 53 00 </div>

as telephone is defined as text, but I suggest to keep a valid phone 
number here.

I see now the problem you face. It seems that you want to name each 
phone number. At this point schema does not allow that. If the phone 
numbers belong to different addresses then you can define them using 
address property:

<div itemprop="address" itemtype="http://schema.org/PostalAddress">
   <div itemprop="name">Switchboard</div>
   <div itemprop="telephone">02 42 68 53 00</div>
   <div itemprop="addressLocality">...</div>
   <div itemprop="addressCountry">...</div>
   <div itemprop="streetAddress>...</div>
   <div itemprop="postalCode">...</div>
</div>
<div itemprop="address" itemtype="http://schema.org/PostalAddress">
   <div itemprop="name">Administraction</div>
   <div itemprop="telephone">02 42 68 53 01</div>
   <div itemprop="addressLocality">...</div>
   <div itemprop="addressCountry">...</div>
   <div itemprop="streetAddress>...</div>
   <div itemprop="postalCode">...</div>
</div>

If they are at the same place I suggest to just markup the telephone 
numbers:

<div itemtype="http://schema.org/Courthouse">
   ...
   <h1>Contact</h1>
   <h3>Switchboard</h3>
   <div itemprop="telephone">02 42 68 53 00</div>
   <h3>Administration</h3>
   <div itemprop="telephone">02 42 68 53 01</div>
</div>

You may also take a look at: http://getschema.org for more examples. 
Maybe you find something that fits your needs.

Regards Matthias

Am 03.06.2013 16:04, schrieb Max Froumentin:
> Hi Matthias,
>
> Thanks for your response.  The fact that "telephone" and "faxNumber" are text makes contactPoint seem not so useful:
>
> writing:
> <div itemprop="ContactPoint">
> <div itemprop="contactType">Switchboard</div>
> <div itemprop="telephone">02 42 68 53 00</div>
> </div>
>
> is pretty much the same as
>
> <div itemprop="telephone">Switchboard: 02 42 68 53 00 </div>
>
> no?
>
>
> On 3 Jun 2013, at 14:29, Matthias Tylkowski <matthias@binarypark.org>
>   wrote:
>
>> Dear Max,
>> There is no cardinality restriction of schema  properties e.g., telephone and faxNumber may appear as many times as you wish.
>>
>> telephone and faxNumber properties on ContactPoint are defined the same as in Place. They are text properties therefore there is no constraint on the format. Only an external processor would derive a proper telefone number from that text representation.
>>
>> Regards Matthias
>>
>> Am 31.05.2013 18:31, schrieb Max Froumentin:
>>> Hi,
>>> Some places have more than one fax number, telephone or any contact point. For instance, a switchboard, general enquiries, etc. Place has "telephone" but you can't describe phone numbers, like you can with the contactPoint attribute, found in Organization.
>>>
>>> One could claim that a phone number belongs to an organisation and not a place, but:
>>> - the "telephone" and "faxNumber" properties are already on Place, as text.
>>> - my use-case is court houses, which I annotate as Courthouse, which descends from Place, not Organization.
>>>
>>> Max.
>>>
>>>
>>>

Received on Monday, 3 June 2013 14:56:21 UTC