RDF::LinkedData
A Linked Data server implementation
- Provided by: librdf-linkeddata-perl (Version: 0.74-1)
- Report a bug
A Linked Data server implementation
Version 0.74
For just setting this up and get it to run, you would just use the "linked_data.psgi" script in this distribution. The usage of that is documented in Plack::App::RDF::LinkedData, with the README is a quick start guide. If you want to try and use this directly, you'd do stuff like:
my $ld = RDF::LinkedData->new(store => $config->{store},
endpoint_config => $config->{endpoint},
base_uri => $config->{base_uri}
);
$ld->namespaces($config->{namespaces}) if ($config->{namespaces});
$ld->request($req);
return $ld->response($uri)->finalize;
See Plack::App::RDF::LinkedData for a complete example.
This module is used to create a Linked Data server that can serve RDF data out of an RDF::Trine::Model. It will look up URIs in the model and do the right thing (known as the 303 dance) and mint URLs for that, as well as content negotiation. Thus, you can concentrate on URIs for your things, you need not be concerned about minting URLs for the pages to serve it. In addition, optional modules can provide other important functionalities: Cross-origin resource sharing, VoID description, cache headers, SPARQL Endpoint, Triple Pattern Fragments, etc. As such, it encompasses a fair share of Semantic Web best practices, but possibly not in a very flexible Big Data manner.
This module can also provide additional triples to turn the response into a hypermedia type. If you don't want this, set the "hypermedia" argument to false. Currently this entails setting the SPARQL endpoint and vocabularies used using the VoID vocabulary <http://vocab.deri.ie/void>.
Finally, it can provide experimental Triple Pattern Fragments <http://www.hydra-cg.com/spec/latest/triple-pattern-fragments/> support.
Kjetil Kjernsmo, "<kjetilk@cpan.org>"
Toby Inkster
Please report any bugs using github <https://github.com/kjetilk/RDF-LinkedData/issues>
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>
This module was started by Gregory Todd Williams "<gwilliams@cpan.org>" for RDF::LinkedData::Apache, but has been almost totally rewritten.
Copyright 2010 Gregory Todd Williams
Copyright 2010 ABC Startsiden AS
Copyright 2010, 2011, 2012, 2013, 2014, 2015 Kjetil Kjernsmo
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.