LOC-6: Small hacky bases "node" and "ref"
authorHeikki Levanto <heikki@indexdata.dk>
Mon, 11 May 2015 12:42:04 +0000 (14:42 +0200)
committerHeikki Levanto <heikki@indexdata.dk>
Mon, 11 May 2015 12:42:04 +0000 (14:42 +0200)
bibframe/triplestore.xml

index a278f41..65aa8af 100644 (file)
         </db>
 
         <!-- A hack to be able to look at any triplet in the base -->
-        <!-- TODO - Switch to the new system, probably using "small" -->
-        <db path="node" schema="sparql-results">
-            <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
-            <prefix>bf: http://bibframe.org/vocab/</prefix>
-            <form>SELECT ?node ?rel ?obj</form>
-            <index type="any">?node ?rel ?obj FILTER( str(?node) = %s )</index>
+        <db path="node" schema="sparql-results" include="smallbody">
+            <index type="any">?thing ?rel ?obj FILTER( str(?thing) = %s )</index>
         </db>
         <!-- A way to see which triplets refers to a given uri. -->
-        <!-- TODO - Switch to the new system, probably using "small" -->
-        <db path="ref" schema="sparql-results">
-            <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
-            <prefix>bf: http://bibframe.org/vocab/</prefix>
-            <form>SELECT ?node ?rel ?obj</form>
-            <index type="any">?node ?rel ?obj FILTER( str(?obj) = %s )</index>
+        <db path="ref" schema="sparql-results" include="smallbody">
+            <index type="any">?thing ?rel ?obj FILTER( str(?obj) = %s )</index>
         </db>
     </filter>