RDF::LinkedData - Base class for Linked Data implementations
Version 0.04_02
From the Mojolicious::Lite example:
my $ld = RDF::LinkedData->new($config->{store}, $config->{base}); my $uri = $self->param('uri'); my $type = $self->param('type'); my $node = $ld->my_node($uri); if ($ld->count($node) > 0) { my $content = $ld->content($node, $type); $self->res->headers->header('Vary' => join(", ", qw(Accept))); $self->res->headers->content_type($content->{content_type}); $self->render_text($content->{body}); } else { $self->render_not_found; }
This module simply uses the default implementation in RDF::LinkedData::ProviderRole, and does nothing on its own.
Most of the code was written by Gregory Todd Williams <gwilliams@cpan.org> for RDF::LinkedData::Apache, but refactored into this class for use by other modules by Kjetil Kjernsmo, <kjetilk at cpan.org>
<gwilliams@cpan.org>
<kjetilk at cpan.org>
Please report any bugs or feature requests to bug-rdf-linkeddata at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RDF-LinkedData. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rdf-linkeddata at rt.cpan.org
Do not rely in the current API unless you are planning to keep track of the development of this module. It is still very much in flux, and may change without warning!
You can find documentation for this module with the perldoc command.
perldoc RDF::LinkedData
The perlrdf mailing list is the right place to seek help and discuss this module:
http://lists.perlrdf.org/listinfo/dev
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=RDF-LinkedData
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/RDF-LinkedData
CPAN Ratings
http://cpanratings.perl.org/d/RDF-LinkedData
Search CPAN
http://search.cpan.org/dist/RDF-LinkedData
Copyright 2010 Gregory Todd Williams and ABC Startsiden AS.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::LinkedData, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::LinkedData
CPAN shell
perl -MCPAN -e shell install RDF::LinkedData
For more information on module installation, please visit the detailed CPAN module installation guide.