Difference between revisions of "Address and Phone"

From OpenOrg
Jump to: navigation, search
(finishing address example.)
(No difference)

Revision as of 13:23, 11 January 2011

Addresses, phone numbers and so forth

TODO: Does this need changing in light of this public-lod thread?

The vCard namespace (usually shortened to the prefix 'v:') provides a general way to describe contact details, which can be applied to both organisations and places.


Note that an organisation's address is where to direct post, whereas that of a place refers to its physical location. Thus, a unit and its primary site may quite legitimately have different addresses.

An address is composed of the following parts to be reconstructed in the given order:

  • v:extended-address (e.g. *The Example Building**)
  • v:street-address (e.g. **Old Kent Road**)
  • v:locality (e.g. **London**)
  • v:postal-code (e.g. **EX1 1EX**)
  • v:country-name (e.g. **United Kingdom**)

You can omit unwanted parts as necessary.

Adddress have the type v:Address and are related to their subject by the v:adr property:

<syntaxhighlight lang="xml"> <rdf:RDF …>

 <aiiso:Department rdf:about="http://id.example.ac.uk/units/physics-department">
   <rdfs:label>Physics Department</rdfs:label>
       <v:extended-address>The Example Building</v:extended-address>
       <v:street-address>Old Kent Road</v:street-address>
       <v:postal-code>EX1 1EX</v:postal-code>
       <v:country-name>United Kingdom</v:country-name>