XML::Generator::RSS10::egms

Support for the UK e-Government Metadata Standard (egms) RSS 1.0 specfication
Download

XML::Generator::RSS10::egms Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Green
  • Publisher web site:
  • http://search.cpan.org/~article/

XML::Generator::RSS10::egms Tags


XML::Generator::RSS10::egms Description

Support for the UK e-Government Metadata Standard (egms) RSS 1.0 specfication XML::Generator::RSS10::egms is a Perl module that extends Dave Rolsky's XML::Generator::RSS10 to provide support for the UK e-Government Metadata Standard (egms) RSS 1.0 specfication.For UK government RSS feeds, much of the mandatory eGMS metadata is provided through the standard Dublin Core module. However, the subject category metadata is mandatory, and uses rather more complicated RDF XML notation than regular Dublin Core, principally because you're encouraged to pass more than one category for each item.I've taken the specification for using eGMS metadata in RSS feeds from the LAWS Syndication Guidelines, at http://www.esd-toolkit.org/laws/.eGMS category metadata is mandated at both the item and channel levels.For the SubjectCategory element, this module expects to receive an array of categories, where each category is itself an array comprising the name of the controlled list from which the category was taken, and then the category value.You may pass as many categories as you wish. For each, the module will assess whether the category is taken from the GCL or LGCL lists and build the RSS code appropriately. If your category is taken from a different list, such as the APLAWS list, the module will treat the category in a generic way, as per the guidelines. $rss->item( # title, link, description, dc, etc... egms => { SubjectCategory => ] } ); $rss->item( # title, link, description, dc, etc... egms => { SubjectCategory => ] } );Alternatively, you may choose to pass a scalar SubjectCategory, which will be handled as a single, generic category. $rss->item( # title, link, description, dc, etc... egms => { SubjectCategory => 'news' } );SYNOPSIS use XML::Generator::RSS10; my $rss = XML::Generator::RSS10->new( Handler => $sax_handler, modules => ); $rss->item( title => '2006 Council By-Election Results', link => 'http://www.example.gov.uk/news/elections.html', description => 'Results for the 2004 Council by-elections', dc => { date => '2006-05-04', creator => 'J. Random Reporter, Example Borough Council, j.r.reporter@example.gov.uk', }, egms => { SubjectCategory => , , , ] } ); $rss->channel( title => 'Example Borough Council News', link => 'http://www.example.gov.uk/news/', description => 'News releases from Example Borough Council', dc => { date => '2006-05-04', creator => 'J. Random Administrator, Example Borough Council, j.r.administrator@example.gov.uk', publisher => 'Example Borough Council', rights => 'Copyright (c) Example Borough Council', language => 'en', coverage => 'Example, County, UK' }, egms => { SubjectCategory => , , ] } ); Requirements: · Perl


XML::Generator::RSS10::egms Related Software