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
following, the prefix /usr/share
is 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 sparql(3mp).
config-sparql.xml
A full metaproxy configuration file that includes
triplestore.xml
configuration 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 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.