RDF::Server::Formatter - handles rendering an object in a particular format
package My::Format; use Moose; with 'RDF::Server::Formatter'; sub resource { } sub to_rdf { }
Formatters handle the translation of documents from the format used by the handlers, model, and resource and the client.
The RDF triple store interface modules work with RDF. If another document format is preferred, then a formatter is needed to translate between the preferred format and RDF.
This should return true if the resource rendering method expects RDF. Otherwise, the resource handler will pass in a Perl data structure. Rendering to data serialization formats such as JSON or YAML will probably prefer a data structure instead of RDF.
resource
This returns the content in the appropriate format given the RDF or data structure representing the information in the triple store.
This should return an RDF document representing the information presented in the format understood by the formatter.
This should return a document representing the items in a collection as well as any categories or domains into which resources are divided.
This should return a document representing a set of collections.
This should return a document representing a set of workspaces.
This should return a document representing a domain within a collection.
This should return a document representing a list of resources that result from a query on a collection.
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.