New Zealand Government Feed Standard (Consultation)

July 22nd, 2008 by Matthew Ross

The State Services Commission has published an updated Government feed standard based on Atom. Currently in draft for consultation until 13th August 2008, this will replace the 2003 e-GIF RDF specification for New Zealand Government feeds.

Atom 1.0 format is Recommended

The new Government recommendation is to use the Atom feed format.

  • Atom it is an official specification managed by the IETF
  • Atom uses the ISO 8601 date format
  • Atom provides a mechanism to explicitly and unambiguously label the type of content.

The new format is fully understood by all common feed readers and aggregators, something that is not the case with the previous specification which was a customisation of RSS 1.0.

In addition to the standard Atom element structure, the prefix ‘nz’ is defined as an Atom extension for New Zealand specific elements.

nz:dtend is defined as an optional custom element for publishing the closing-date for consultations and jobs.

A value list of categories/tags is defined: nznews, nzjob, nzconsult, nzevent.

Resources

Examples

We have provided a number of example feeds at http://eg.elabs.govt.nz/feeds/

Example Atom feed code

Here is a code sample showing the recommended structure.

<?xml version=”1.0″ encoding=”utf-8″?>
<feed xmlns=”http://www.w3.org/2005/Atom”>
<title>Example Atom Feed</title>
<subtitle>Example based on content from the IRD</subtitle>
<link href=”http://eg.elabs.govt.nz/feeds/atom.xml” rel=”self”/>
<updated>2008-06-03T13:30:02+12:00</updated>
<author>
<name>ICT Tech Team</name>
<uri>http://research.elabs.govt.nz/</uri>
<email>icttech@research.elabs.govt.nz</email>
</author>
<id>http://eg.elabs.govt.nz/feeds/atom.xml</id>
<entry>
<id>http://eg.elabs.govt.nz/feeds/20080603-example-budget-2008-SSCRESEARCHELABS</id>
<title>Budget 2008 (entry with content and link)</title>
<link href=”http://www.ird.govt.nz/news-updates/like-to-know-budget-2008-passed.html”/>
<author>
<name>ICT Tech Team</name>
<uri>http://research.elabs.govt.nz/</uri>
</author>
<published>2008-06-13T12:45:02+12:00</published>
<updated>2008-06-13T12:45:02+12:00</updated>
<content>Budget 2008, delivered on 22 May, announced changes to personal income tax and the Family Tax Credit which have now been passed into law.
</content>
<category term=”nznews”/>
<category term=”tax”/>
</entry>
</feed>

The example feed viewed in Internet Explorer 7

Example feed in IE 7

Consultation

The consultation period runs to 5pm, 13th August 2008.

Please post comments here or on the Government Web Community workspace.


Slashdot Digg Reddit del.icio.us Facebook Technorati Google StumbleUpon

1 Star2 Stars3 Stars4 Stars5 Stars (108 votes, average: 2.93 out of 5)

Tags: , , , ,

17 Responses to “New Zealand Government Feed Standard (Consultation)”

  1. Gavin Treadgold says:

    “A value list of categories/tags is defined: nznews, nzjob, nzconsult, nzevent.”

    Any chance of seeing this list expanded a bit? It might also be useful to have ‘nzreport’ for any reports released by government agencies, and ‘nzdata’ for any data sources published by government agencies. For example, as an administrator of gis.org.nz, I would be very interested in being able to aggregate nzdata announcements for the geospatial community - whether they come from Statistics, Health or any other Government agency.

  2. Matthew Ross says:

    Yes, this list is envisaged as something more dynamic than in the past. The two you provide are great examples of how Government information could/should be more specifically identified.

    There is also a Web Standards angle here - my view is that consideration should be given to *requiring* key reports to be notified in a feed. Currently, it is (only) required that they be published on the agency website.

    See
    http://webstandards.govt.nz/index.php/Standard:6.1_Agency_sites_provide_publicly_available_reports
    6.1 Agencies provide on their web site(s) any publicly available reports that the agency is required to produce by statute.

  3. Matthew Ross says:

    Further category/tag definitions could be:
    nzpublicnotice
    nzresourceconsent

    Looking for feedback on this from people in the local government sector.

  4. Matthew Ross says:

    Other categories for consideration:
    nzadvisory as in http://www.caa.govt.nz/rules/ACs.htm
    nzvulnerability as in http://ccip.govt.nz/

    This needs some thought on aligning the meaning of such categories across organisations and providing various alert levels.

  5. Gavin Treadgold says:

    As someone that works in emergency management, I’d support the advisory/vulnerability angle, and also add that there are similar ones used in CDEM/hazards mgt such as alert, warning, and declaration (under the CDEM Act 2002). Some research would be required to develop a suitable taxonomy to categorise all these ‘alerting’ announcements without significantly expanding the namespace used.

  6. Mike(p) says:

    “Advising” is an important function for government.

    CCIP is a security advisory.
    CAA is a regulation advisory. (Same for Transport, Maritime, etc)

    Another site that should be using ATOM is http://www.safetravel.govt.nz which does travel advisory.

    There will be other functions such as “Publicising”. Government ATOM functions should be consistent with FONZ http://www.e.govt.nz/standards/nzgls/thesauri/fonz/fonz-2-30.pdf

  7. Nathan Wall says:

    It seems to me there are two aspects to consider here:

    1) Should agencies be required to publish more information as feeds?
    2) Whats the most effective use of the categorisation feature of ATOM feeds?

    Here’s my 10 cents worth

    *****

    1) Should agencies be required to publish more information as feeds - such as reports, media releases, consultations, announcements and alerts, and other items that would be in the public interest — IMHO absolutely — I dont have time to trawl through the hundreds of government sites looking for new information — if its pushed out to me, I can filter out what I want to look at from the “background noise” — heaven forbid I could actually subscribe to some super feeds that aggregate results across agencies…..

    *****

    2) Whats the most effective use of the categorisation feature of ATOM feeds? Should agencies be using the category tag (which is not necessarily a controlled vocabulary) to indicate the type of document or service the feed relates to? Im not so clear on this one….

    Is this just the mechanism the newzealand.govt.nz portal is using to differentiate feed content?

    As a consumer of these types of feeds I personally wouldnt want to have all sorts of information jumbled up into a single feed. For example, if I want to subscribe to a collection of reports from an agency, maybe I dont want their media releases as well.

    The example of the travel alerts is another great one — I travel overseas every now and then - being able to subscribe just to the travel alerts would be worthwhile - but surely I should be subscribing to a feed not a vast dump of information where I have to hope that the agency producing the feed has been consistent in its use of category terms? The categories in this instance could probably just refer to the geographic location and status of the travel advisory?

    As I understand it, the ATOM specification does enable controlled vocabularies to be set for category terms - but given the limitations of other vocabularies like SONZ and FONZ — not sure this is a good idea. Which leads me to believe that the category tags should be treated as a folksonomy and agencies are free to choose the most appropriate terms they think describe their content.

    If the portal requires us to separate feeds into different document or service types then different feeds is probably the most flexible and scalable? We could then require agencies to produce the minimum set of feeds and publish them in a consistent location?

    *****

    Also, on looking at the RFC 4287 specification there is an element for atom:logo and atom:icon - that are apparently not widely used, but can be considered part of the branding that can be applied to any feed. Has there been any thought around using either/both of these elements to add authority to the feed - and standardising the image(s) used? I don’t have a particular opinion one way or the other on this point.

  8. Matthew Ross says:

    Nathan, thank you for your insightful comments.

    1) I totally agree. Publishing only web pages is not good enough any more. It really doesn’t count as open government information - we must be implementing the better solutions which exist now.

    This is an important message that needs to be spread. How? The NZ Web Standards probably have some role to play. There probably needs to be plenty of ‘carrot’ too… my vision is to demonstrate the power of personal aggregation and thereby encourage agencies to publish to feeds.

    Imagine a simple my.govt.nz which could take some profile details and deliver relevant information by filtering on category and source-agency… :-)

    I’m also working with the the portal newzealand.govt.nz to enhance the exposure and status of the main government feed (aggregated from all govt sources).

    I’d like to think that fuller, better tagged feeds and the agile services that can be built from them can deliver rapid transformation in opening up government information.

    2) In the proposal, the category list is not intended to be a fixed value list, but rather a set of values with a prescribed meaning that can be used in conjunctation with other ‘tags’.

    This is only partly with the portal and its specific functions in mind. It’s really just a first cut at suggesting how to tag information into usable segments. In the long term, no doubt a true folksonomy will develop.

    >As a consumer of these types of feeds I personally wouldnt want to have all sorts of information jumbled up into a single feed.

    At root government level, I disagree.

    I think the first challenge is to get _all_ of the data exposed. If this was to be through multiple feeds, then likely a feed-of-feeds would be necessary to ensure that all individual feeds were discoverable.

    As the primary goal, let’s get agencies publishing a core feed! With a core feed in place and suitably tagged, users or 3rd party tools can easily filter their own view.

    Secondarily, agencies may well then also choose to deliver ‘pre-packaged’ filtered feeds - subsets of the main feed. Something close to this is already happening at the Beehive, see
    http://www.beehive.govt.nz/feeds

  9. Nathan Wall says:

    Matthew - Ive looked at the Beehive site you mentioned - and this is what I had in mind when I commented above - I want to be able to pick and choose what I subscribe to.

    Maybe the answer is that agencies need to do both? Publish a core feed of all their content, suitably tagged and categorised, and then a minimal set of filtered feeds? If we are doing one, then the other is not that much extra to do. That serves both purposes — aggregation across government, and specific user interests.

    There is of course the issue that some agencies will face (no names mentioned)……. all of the above discussion is assuming that they actually will be able to generate the necessary output from their various CMS / publishing systems…

    I agree that the web standards have a role to play.

    Another random thought Ive just had — would be worthwhile doing some thinking about how agencies could effectively track and measure traffic generated by consumption of the feeds — be an interesting evaluation exercise to demonstrate growth in traffic simply by exposing content via a feed. :)

  10. Matt says:

    Here is a quick & dirty first cut at what the Web Standards might say about feeds.

    The agency/website should publish a core feed meeting the following requirements:

    • Machine discoverable from the home page (DNS root)
    <link rel=”alternate” type=”application/atom+xml” …

    • Human discoverable from the home page (clear labelling)

    • Atom format (see Feeds spec…)

    • Publish all new/changed items for at least the previous 7 days (to ensure continuity for aggregators/readers)

    • Publish all (website) items as far as possible. (including news, consultations, reports, alerts, media releases etc. Probably not specify categories.)

    • Publish the full content of each item (as opposed to a summary with a link). This is important for many reasons:
    – for accessibility - users can easily access item content independent of the web site
    – for offline viewing - feed readers can load the feed content for later viewing offline (for commuters, slow rural connections etc)
    – for mobile devices - mobile readers are optimised for loading and displaying feed content
    – for speed/usability - reading full content is much quicker than following a link to the source website
    – for mash-ups - full content is required to enable manipulation for unforeseen uses

    • Times should be specified in the NZ zone +1200.

  11. Cj Wells says:

    As a public sector webbie I welcome the move to the atom feed format. Of greater interest to me however is *how* to encourage agencies to publish feeds and then advising them on *what* to publish.

    The idea of incorporating them into the New Zealand Government Web Standards is a good one. Encouraging agencies to publish a core feed is an excellent way of getting people into the game.

    This kicks off a wider discussion around the general state of public sector websites.

    To quote Matthew “Publishing only web pages is not good enough anymore.” That really resonated! And yet, that’s what we continue to do. Too often, valuable information languishes on websites. The data is “dumb” and users can’t interact with it at all.

    A standard for government feeds is a good start. But really we need to be exposing government data more widely and in a number of ways. Matthew has talked about iCalendar and hCard on this blog for instance.

    Well - I would like to see more of *that* in the Web Standards. Please :-)

  12. Anthony Hawkins says:

    Hi there - completely agree about the value of feeds in supporting open govt information. One small caveat is a accessibility of some (or at least one) at the moment. This’d be a temporary problem, and doesn’t apply to most of the formats, but here’s blog on the BBC dropping hCalendar:

    “The developers over of the BBC site Programmes have supported semantically marked up data ( in the form of Microformats ) from day one. Now comes word that because of certain decisions made during the design of hCalendar and its use of the abbr, they are removing hCalendar support from the Programmes web site. Other Microformats being used will remain ( rel & hCard ). However, developer Michael Smethurst has hinted that the Programmes team might migrate over to RDFa and remove all Microformats. This is the first instance that I have heard of where a team will be moving away from Microformats and possibly embracing RDFa.”

    http://www.oreillynet.com/xml/blog/2008/06/bbc_microformats_and_rdfa.html

    The BBC itself says: “You MAY use microformats on your site where there are agreed, not draft, specifications (refer to the Microformats community wiki site for details) with the exception of those that use the title attribute of HTML’s abbr element.”

    http://www.bbc.co.uk/guidelines/newmedia/technical/semantic_markup.shtml

    On that, I’d be interested in seeing what you think of the way the Beep ’standardise’ microformat use (as per above link). And any thoughts on RDFa?

    cheers

  13. Bookmarks about W3 says:

    [...] - bookmarked by 3 members originally found by robbytherobot on 2008-08-18 New Zealand Government Feed Standard (Consultation) http://research.elabs.govt.nz/nz-govt-feed-standard/ - bookmarked by 1 members originally found by [...]

  14. Matthew Ross says:

    I will post an update on this in early December.

    Our thinking has developed on the huge benefits of some enriching of the feed formats and how to achieve that.

    However all key points and the Atom standard above will be the foundation.

  15. M says:

    I think this is all really good, but where can I get some funding to update our sites then? ;)

  16. Matt says:

    That’s a pertinent question.

    The work we’re doing now is aimed at demonstrating feed-based solutions that deliver significant cost-savings across the agency. So if new funding is required it should be available from costs saved elsewhere.

    Details coming soon.

  17. Mike (p) says:

    I dont think funding increases uptake rate of good ideas.

    It is not common practice for organisations to change a working system. If they do, then their staff have too much free time.

    Rather they wait until the system is past its use-by date, and then add new requirements, when planning the replacement system. On that basis, the change is already “budgeted” for.

Leave a Comment





Is rain wet or dry?