From 7eb3871494f13a895f405483dd9b3275f412eadd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 18 Aug 2015 13:18:40 +0200 Subject: [PATCH] Add section about enabling the configuration --- doc/book.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/doc/book.xml b/doc/book.xml index 074516f..852994c 100644 --- a/doc/book.xml +++ b/doc/book.xml @@ -138,6 +138,84 @@ + + Configuration + + If you have installed mp-sparql as a package or have executed + make install from source, sample configuration + can be found in /usr/share/mp-sparql/bibframe or + /usr/local/share/mp-sparql/bibframe. In the + the following /usr/share prefix assumed. Adjust accordingly. + The directory contains these files: + + + triplestore.xml + + + A mature PQF to SPARQL configuration illustrating a lot of the + configuration facilities that are described in the manual + page of . + + + + + config-sparql.xml + + + A full metaproxy configuration file that includes + triplestore.xml cofiguration for the + mp-sparql filter, enables SRU and CQL to PQF conversion. + + + + + filter-sparql.xml + + + A partial metaproxy configuration suitable to be enabled in + /etc/metaproxy/filters-enabled. + This includes triplestore.xml as well. + + + + + + + If you want to use the package layout and modular configuration we + suggest you use filter-sparql.xml and perform something along the lines of: + + cp /usr/share/mp-sparql/bibframe/filter-sparql.xml /etc/metaproxy/filters-available + cp /usr/share/mp-sparql/bibframe/triplestore.xml /etc/metaproxy + sudo vi /etc/metaproxy/triplestore.xml + ln -s ../filters-available/filter-sparql.xml /etc/metaproxy/filters-enabled + service metaproxy restart + + A copy of triplestore.xml is made. Adjust the + <defaults uri=.. value to the URI of your + triplestore. + + + If you want to create your own top-level configuration, you can copy + config-sparql.xml to any location you like and + run metaproxy with that. Something like this: + + mkdir /etc/myconfig + cp /usr/share/mp-sparql/bibframe/* /etc/myconfig + sudo vi /etc/myconfig/triplestore.xml + metaproxy -c /etc/myconfig/config-sparql.xml + + Again, a copy of triplestore.xml is made. Adjust the + <defaults uri=.. value to the URI of your + triplestore. + + + + Do not edit files in /usr/share/mp-sparql/bibframe. + They are only samples and will be overwritten by a package update. + Instead copy the files away from there if you need to modify them. + + + Reference -- 1.7.10.4