RDF::Server::Role::Mutable - requirements for a mutable resource
package My::Handler with 'RDF::Server::Role::Mutable'; sub create { } sub delete { } sub modify { } sub replace { } sub remove { }
RDF::Server::Role::Mutable is a sub-role of RDF::Server::Role::Renderable. In addition to the methods required for this role, you will also need to satisfy the requirements of the Renderable role.
A flag indicating whether or not the replace method should propagate to referenced resources that have attributes specified in the supplied document. If false, then replacement should switch to modification when crossing into an embedded rdf:Description element (or its equivalent) that is not a blank node.
replace
Default: false.
The following methods require definitions in classes that use this role. On success, these methods should return a true value. Throw a RDF::Server::Exception if status codes and messages are required to shed light on why a request is a failure.
If these methods return a true value, a rendering of the resource will be returned by the server.
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.