Help Wikitravel grow by contributing to an article! Learn how.

Wikitravel:RDF Expedition/Place type

From Wikitravel
Jump to: navigation, search

Wikitravel destination guides describe different kinds of places on the geographical hierarchy. Adding some machine-readable code to indicate what kind of place a guide describes can let software do different things with different levels of the hierarchy. For example: indicating which articles don't match their template in the MoS, or the Web software could include different controls or links on country pages than on city pages. Scripts could be written just for city articles, just for regions in France, etc.

Representation[edit]

The Simile basic location ontology is a good start for Wikitravel. However, to map closely to Wikitravel's hierarchy, it may make sense to use classes that strictly match it.

  • wts:Place - any kind of place, superclass for the rest of these classes
    • wts:Continent
    • wts:ContinentalSection
    • wts:Country
    • wts:Region
      • wts:State
      • wts:Province
      • wts:County
      • wts:Department
    • wts:City
      • wts:SmallCity
      • wts:BigCity
      • wts:HugeCity
    • wts:District
    • wts:Park

Examples[edit]

We use an URN format to define places.

 place:Lausanne a wts:BigCity .
 place:France a wts:Country .
 place:Montana a wts:State .
 

Templates[edit]

The following templates will include minimal code to mark a destination guide as describing a particular kind of place. Many of them can and should be included in the more specific Wikitravel:article status templates like Template:Usablecity.

Variants

Actions

Destination Docents

In other languages