Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
librdf-linkeddata-perl
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Perl Group
modules
packages
librdf-linkeddata-perl
Commits
f4b25bf4
Commit
f4b25bf4
authored
10 years ago
by
Jonas Smedegaard
Browse files
Options
Downloads
Patches
Plain Diff
Improve README.Debian. Closes: bug#755954. Thanks to Kjetil Kjernsmo.
parent
9772a79c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/README.Debian
+35
-4
35 additions, 4 deletions
debian/README.Debian
with
35 additions
and
4 deletions
debian/README.Debian
+
35
−
4
View file @
f4b25bf4
Debian-specific RDF::LinkedData usage notes
===========================================
Example demo-setup usage
------------------------
It is possible to run this system with a one-liner on the command line:
PERLRDF_STORE="Memory;path/to/some/data.ttl" plackup -host localhost /usr/share/librdf-linkeddata-perl/rdf_linkeddata.psgi
where a file is loaded into a memory store on startup and the server
is started with a default config. The subjects of the triples in the
file has to start with http://localhost:5000/ for this to work. It is
recommended you use @base in the Turtle file for this, something like:
@base <http://localhost:5000/> .
</foo> a :Bar .
A more elaborate example uses the perlrdf package to load data into a
persistent SQLite store:
export PERLRDF_STORE="DBI;mymodel;DBI:SQLite:database=rdf.db"
perlrdf make_store
perlrdf store_load path/to/some/data.ttl
plackup -host localhost /usr/share/librdf-linkeddata-perl/rdf_linkeddata.psgi
Configuration file
------------------
An example configuration file can be found in the module
Plack::App::RDF::LinkedData. You may use this to start your own
configuration. Once you have found a good place to store it, you need
to set the variable RDF_LINKEDDATA_CONFIG to point at your
configuration,
Integrate with a PSGI frontend
------------------------------
...
...
@@ -8,12 +40,11 @@ Integrate with a PSGI frontend
RDF::LinkedData uses PSGI. Debian packaging currently does not
integrate with any specific PSGI implementation.
The most minimal PSGI setup is to invoke the following:
In addition to the demo usage outlined in the first section, the most
minimal PSGI setup is to invoke the following after you've created a
configuration as above:
plackup /usr/share/librdf-linkeddata-perl/rdf_linkeddata.psgi
after setting the environment variable RDF_LINKEDDATA_CONFIG to point at
your configuration, see Plack::App::RDF::LinkedData for example.
For production use there are many options either with a dedicated PSGI
server like twiggy or starman, or using bindings to CGI, FCGI or uWSGI.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment