RDF::Server::Formatter::JSON - Work with JSON documents
package My::Server; protocol 'HTTP'; interface 'REST'; semantic 'Atom'; format json => 'JSON';
Formats documents as JSON for easy use by JavaScript programs. This formatter is currently for read-only operations and does not support submitting JSON to the server.
All methods that return a document also return a mime type of application/json as the first element of a two-element array. The document is the second element.
Returns false. The JSON formatter works with perl data structures instead of RDF documents.
This will return the resource data encoded as JSON.
This will accept JSON and return RDF. This method is not yet implemented. This method does not return a mime type.
Returns a JSON representation of a list of resources.
Returns a JSON representation of a document following the semantics of an atom:category document.
Returns a JSON representation of a document following the semantics of an app:collection document: a list of categories.
Returns a JSON representation of a document following the semantics of an app:workspace document: a list of collections.
Returns a JSON representation of a document following the semantics of an app:service document: a list of workspaces.
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.