Difference between revisions of "Address and Phone"

From OpenOrg
Jump to: navigation, search
(finishing address example.)
Line 23: Line 23:
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
<rdf:RDF …>
 
<rdf:RDF …>
   <aiiso:Institution rdf:about="http://id.example.ac.uk/units/physics-department">
+
   <aiiso:Department rdf:about="http://id.example.ac.uk/units/physics-department">
     <rdfs:label>
+
     <rdfs:label>Physics Department</rdfs:label>
 +
 
 +
    <v:adr>
 +
      <v:Address>
 +
        <v:extended-address>The Example Building</v:extended-address>
 +
        <v:street-address>Old Kent Road</v:street-address>
 +
        <v:locality>London</v:locality>
 +
        <v:postal-code>EX1 1EX</v:postal-code>
 +
        <v:country-name>United Kingdom</v:country-name>
 +
      </v:Address>
 +
    </v:adr>
 +
  </aiiso:Department>
 +
</rdf:RDF>

Revision as of 13:44, 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.

Addresses

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:adr>
     <v:Address>
       <v:extended-address>The Example Building</v:extended-address>
       <v:street-address>Old Kent Road</v:street-address>
       <v:locality>London</v:locality>
       <v:postal-code>EX1 1EX</v:postal-code>
       <v:country-name>United Kingdom</v:country-name>
     </v:Address>
   </v:adr>
 </aiiso:Department>

</rdf:RDF>