RDF::Endpoint(3pm) | User Contributed Perl Documentation | RDF::Endpoint(3pm) |
RDF::Endpoint - A SPARQL Protocol Endpoint implementation
This document describes RDF::Endpoint version 0.10.
plackup /usr/local/bin/endpoint.psgi
This modules implements the SPARQL Protocol for RDF using the PSGI interface provided by Plack. It may be run with any Plack handler. See Plack::Handler for more details.
When this module is used to create a SPARQL endpoint, configuration variables are loaded using Config::ZOMG. An example configuration file rdf_endpoint.json is included with this package. Valid top-level configuration keys include:
Using Plack::Handler::Apache2, mod_perl2 can be configured to serve and endpoint using the following configuration:
<Location /sparql> SetHandler perl-script PerlResponseHandler Plack::Handler::Apache2 PerlSetVar psgi_app /path/to/endpoint.psgi PerlSetEnv RDF_ENDPOINT_CONFIG /path/to/rdf_endpoint.json </Location>
To get syntax highlighting and other pretty features, in the VirtualHost section of your server, add three aliases:
Alias /js/ /path/to/share/www/js/ Alias /favicon.ico /path/to/share/www/favicon.ico Alias /css/ /path/to/share/www/css/
The exact location can be determined by finding where the file "sparql_form.js".
Gregory Todd Williams <gwilliams@cpan.org>
Copyright (c) 2010-2014 Gregory Todd Williams.
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you
must
not claim that you wrote the original software. If you use this
software in a product, an acknowledgment in the product
documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and
must
not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
With the exception of the CodeMirror files, the files in this package may also be redistributed and/or modified under the same terms as Perl itself.
The CodeMirror (Javascript and CSS) files contained in this package are copyright (c) 2007-2010 Marijn Haverbeke, and licensed under the terms of the same zlib license as this code.
2018-11-03 | perl v5.28.0 |