http_client to triplestore.xml
[mp-sparql-moved-to-github.git] / bibframe / config-sparql.xml
index feadbab..68fcf03 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0"?>
 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
+  <dlpath>../src</dlpath>
   <start route="start"/>
   <routes>
     <route id="start">
       <filter type="log">
         <message>log</message>
       </filter>
-      <filter type="sparql">
-        <db path="Default" uri="http://localhost:8000/sparql/">
-          <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
-          <prefix>bf: http://bibframe.org/vocab/</prefix>
-          <field>?work ?wtitle</field>
-          <criteria>?work a bf:Work</criteria>
-         <criteria>?work bf:workTitle ?wt</criteria>
-         <criteria>?wt bf:titleValue ?wtitle</criteria>
-         <index type="bf.wtitle">?wt bf:titleValue %v FILTER(contains(%v, %s))</index>
-        </db>
-      </filter>
-      <filter type="log">
-       <message>http</message>
-       <category apdu="true"/>
-      </filter>
-      <filter type="http_client">
-        <x-forwarded-for>true</x-forwarded-for>
-      </filter>
+      <include src="triplestore.xml"/>
       <filter type="bounce"/>
     </route>
   </routes>