Include triplestore.xml from config-sparql.xml
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 5 Jan 2015 13:41:58 +0000 (14:41 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 5 Jan 2015 13:42:13 +0000 (14:42 +0100)
bibframe/config-sparql.xml
bibframe/triplestore.xml [new file with mode: 0644]

index 02f9467..d52498d 100644 (file)
       <filter type="log">
         <message>log</message>
       </filter>
-      <filter type="sparql">
-        <db path="Default" uri="http://bibframe.indexdata.com/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>
+      <include src="triplestore.xml"/>
       <filter type="log">
        <message>http</message>
        <category apdu="true"/>
diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml
new file mode 100644 (file)
index 0000000..7b10796
--- /dev/null
@@ -0,0 +1,11 @@
+<filter  xmlns="http://indexdata.com/metaproxy" type="sparql">
+  <db path="Default" uri="http://bibframe.indexdata.com/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>