RDF::Server::Semantic::Atom::Service - supports use of Atom service documents
package My::Server; interface 'REST'; protocol 'HTTP'; my $server = new My::Server handler => RDF::Server::Semantic::Atom::Service -> new( uri_prefix => '/', handlers => [ RDF::Server::Semantic::Atom::Workspace -> new ( handlers => [ RDF::Server::Semantic::Atom::Collection -> new ( ... ) ] ) ] ) ;
or (if using the Atom semantic):
my $server = new My::Server handler => [ service => { uri_prefix => '/', workspaces => [ { ..., collections => [ ... ] }, { ..., collections => [ ... ] }, ], } ] ;
Returns an app:service XML document.
Returns a Perl data structure containing information about the service's workspaces. The returned value is a hash reference with the single key workspaces that maps to an array reference listing the data structures returned by the data method on the RDF::Server::Semantic::Atom::Workspace handler objects.
workspaces
data
James Smith, <jsmith@cpan.org>
<jsmith@cpan.org>
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.
To install RDF::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Server
CPAN shell
perl -MCPAN -e shell install RDF::Server
For more information on module installation, please visit the detailed CPAN module installation guide.