RDF::Server::Formatter::RDF - Work with RDF/RSS documents


RDF-Server documentation  | view source Contained in the RDF-Server distribution.

Index


NAME

Top

RDF::Server::Formatter::RDF - Work with RDF/RSS documents

SYNOPSIS

Top

 package My::Server;

 protocol 'HTTP';
 interface 'REST';
 semantic 'Atom';

 format [qw(rdf rss)] => 'RDF';

DESCRIPTION

Top

Creates RDF/RSS documents. This is primarily a thin interface module since the internal data is managed as RDF.

Most methods that return documents also return a mime type of application/rdf+xml.

METHODS

Top

wants_rdf

This returns true. The RDF formatter works with RDF when rendering resources.

resource

Returns an RDF representation of a resource.

to_rdf

Returns the RDF representation of the given RDF document.

feed

Returns an RSS representation of a list of resources.

category

Returns an RDF document describing a category. Categories are part of the ATOM spec.

collection

Returns an RDF document describing a set of resources and categories. Collections are part of the ATOM spec.

workspace

Returns an RDF document describing a set of collections. Workspaces are part of the ATOM spec.

service

Returns an RDF document describing a set of workspaces. Services are part of the ATOM spec.

AUTHOR

Top

James Smith, <jsmith@cpan.org>

LICENSE

Top

Copyright (c) 2008 Texas A&M University.

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


RDF-Server documentation  | view source Contained in the RDF-Server distribution.