| RDF::LinkedData(3pm) | User Contributed Perl Documentation | RDF::LinkedData(3pm) |
RDF::LinkedData - A Linked Data server implementation
Version 1.940
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 being 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 perform content negotiation. Thus, you can concentrate on URIs for your things, and you need not be concerned about minting URLs for the pages to serve it. In addition, optional modules can provide other important functionality: 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.
Read-write support is even more experimental, and is provided by RDF::LinkedData::RWHypermedia.
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 IRC channel is the right place to seek help and discuss this module:
<irc://irc.perl.org/#perlrdf>
This module does what it is supposed to do rather well and has thus reached the 1.0 milestone. To support a wider variety of use cases, the current module isn't flexible enough, so future versions will need substantial changes, but the version number is intended to reflect that.
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, 2016, 2017, 2018 Kjetil Kjernsmo
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 2022-12-30 | perl v5.36.0 |