Created
March 15, 2010 19:22
-
-
Save CountCulture/333217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This is an example of the key content on a typical page containing links to election results pages, marked up appropriately to --> | |
<!-- expose the informationas 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="content" 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#"> | |
<h1> | |
Election Results | |
</h1> | |
<h3> | |
District Council Elections May 2007 | |
</h3> | |
<ul> | |
<li> | |
<!-- ####### --> | |
<!-- ####### --> | |
<!-- This is the link that tells us there's election info on the page pointed to by the hyperlink --> | |
<!-- We're saying here that the page you get to if you follow the link has information about an election, --> | |
<!-- specifically the one held on May 3, 2007 for the area with id 41UD (which is the ONS SNAC id for the council) --> | |
<a title="See the results online ..." about="http://openelectiondata.org/id/elections/41UD/2007-05-03" rel="foaf:isPrimaryTopicOf" typeof="openelection:Election" href="/site/custom_scripts/elections.php?category=1">See the results of the District Council Elections</a> | |
</li> | |
</ul> | |
<h3> | |
Parish Council Elections May 2007 | |
</h3> | |
<ul> | |
<li> | |
<!-- No Data for these results (parish elections), so just a normal linke --> | |
<a title="See the results online ..." href="/site/custom_scripts/elections.php?category=2">See the results of the Parish Council Elections</a> | |
</li> | |
</ul> | |
<h3> | |
Election Results pre 2007 | |
</h3> | |
<ul> | |
<li> | |
<a title="County Council Elections 2005" href="/site/scripts/download_info.php?downloadID=2">County Council Election Results 2005</a> | |
</li> | |
<li> | |
<a title="Parliamentary Election 2005" href="/site/scripts/download_info.php?downloadID=11">Parliamentary Election Results 2005</a> | |
</li> | |
<li> | |
<!-- ####### --> | |
<!-- ####### --> | |
<!-- We are also publishing data for these elections so we add attributes to the link to signify this. Like the one above, we're --> | |
<!-- saying that by following the link you get info about an election, specifically the one on May 1, 2003 --> | |
<a title="District Council Elections 2003" href="/site/scripts/download_info.php?downloadID=492" rel="foaf:isPrimaryTopicOf" about="http://openelectiondata.org/id/elections/41UD/2003-05-01" typeof="openelection:Election">District Council Election Results 2003</a> | |
</li> | |
<li> | |
<a title="Parish Council Election Results 2003" href="/site/scripts/download_info.php?downloadID=493">Parish Council Election Results 2003</a> | |
</li> | |
<li> | |
<a title="County Council Election Results 2001" href="/site/scripts/download_info.php?downloadID=495">County Council Election Results 2001</a> | |
</li> | |
<li> | |
<a title="Parliamentary Election Results 2001" href="/site/scripts/download_info.php?downloadID=494">Parliamentary Election Results 2001</a> | |
</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment