| RDF-Server documentation | view source | Contained in the RDF-Server distribution. |
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.
James Smith, <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.
| RDF-Server documentation | view source | Contained in the RDF-Server distribution. |