Skip to content

Instantly share code, notes, and snippets.

@CountCulture
Created March 15, 2010 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CountCulture/333272 to your computer and use it in GitHub Desktop.
Save CountCulture/333272 to your computer and use it in GitHub Desktop.
<!-- This is an example of the key content on a typical page containing links to ward results pages, marked up appropriately to -->
<!-- expose the information as data rather than just text -->
<!-- ####### -->
<!-- ####### -->
<!-- ####### -->
<!-- We are using the <div> which wraps the content to declare the 'namespaces' for various attributes we use to give the links meaning -->
<!-- e.g. we say that when we're talking about foaf things (e.g. foaf:isPrimaryTopicOf) we mean things defined at "http://xmlns.com/foaf/0.1/" -->
<div id="mainContent" xmlns:openelection="http://openelectiondata.org/0.1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<!-- We are saying here that the <div> content wraps info about the election for area with code 41UD on May 3, 2007 -->
<div id="content" about="http://openelectiondata.org/id/elections/41UD/2007-05-03">
<h1>Election Results - District</h1>
<p>Please click on the ward's name for detailed information on results for that ward. </p>
<!-- ####### -->
<!-- ####### -->
<!-- This is the important part of the page, as it is the part containing the links to the ward election results -->
<!-- For each of these links we're saying here that the page you get to if you follow the link has information about a poll, -->
<!-- ####### -->
<!-- This first one, for example, says that the target will have information about the poll held for the May 3, 2007 election for the area with id 41UDGE (which is the ONS SNAC id for the ward) -->
<ul>
<li><a about="http://openelectiondata.org/id/polls/41UDGE/2007-05-03" typeof="openelection:Poll" rel="foaf:isPrimaryTopicOf" href="http://www.lichfielddc.gov.uk/site/custom_scripts/electiondetail.php?ward=5&category=1" title="More detailed information on election results for All Saints">All Saints</a></li>
<li><a about="http://openelectiondata.org/id/polls/41UDGF/2007-05-03" typeof="openelection:Poll" rel="foaf:isPrimaryTopicOf" href="http://www.lichfielddc.gov.uk/site/custom_scripts/electiondetail.php?ward=2&category=1" title="More detailed information on election results for Alrewas and Fradley">Alrewas and Fradley</a></li>
<li><a about="http://openelectiondata.org/id/polls/41UDGG/2007-05-03" typeof="openelection:Poll" rel="foaf:isPrimaryTopicOf" href="http://www.lichfielddc.gov.uk/site/custom_scripts/electiondetail.php?ward=3&category=1" title="More detailed information on election results for Armitage with Handsacre">Armitage with Handsacre</a></li>
<li><a about="http://openelectiondata.org/id/polls/41UDGH/2007-05-03" typeof="openelection:Poll" rel="foaf:isPrimaryTopicOf" href="http://www.lichfielddc.gov.uk/site/custom_scripts/electiondetail.php?ward=16&category=1" title="More detailed information on election results for Boley Park">Boley Park</a></li>
<!-- ....... -->
<!-- Some entries omitted for conciseness -->
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment