LOC-6: Move bf.ref into "thing" so it applies everywhere
[mp-sparql-moved-to-github.git] / bibframe / triplestore.xml
index 415e66a..3950569 100644 (file)
                 ?thing  a %t
             </index>
 
+            <!-- Find all nodes that refer to the given uri -->
+            <!-- useful after finding uris in the "small" bases -->
+            <!-- direct references only -->
+            <index type="bf.ref">
+                ?thing %v_rel %u
+            </index>
+
+
             <!-- The BF-L present format is the same for everything -->
             <!-- Each db is supposed to provide a dedicated BF-V present format -->
             <present type="BF-L">
@@ -48,7 +56,7 @@
         <!-- This way, we use a different variable for each index clause, and -->
         <!-- do not get into trouble if we have an AND between two of the same kind -->
         <db path="smallindex">
-            <index type="bf.personX">
+            <index type="bf.person">
                 ?thing ?rel %vx .
                 %vx a bf:Person .
                 %vx bf:label %v FILTER(contains(%v, %s))
 
             <!-- Find the work that has a given Instance -->
             <index type="bf.instance">
-                %v_inst bf:instanceOf ?thing FILTER ( %v_inst = %u) 
-            </index>
-            
-            <!-- Find all works that refer to the given uri -->
-            <!-- useful after finding uris in the "small" bases -->
-            <!-- direct references only -->
-            <index type="bf.ref">
-                ?thing %v_rel %u
+                %v_inst bf:instanceOf ?thing FILTER ( %v_inst = %u)
             </index>
 
             <!-- Present formats -->
                 ?thing bf:instanceOf %u
             </index>
 
-            <!-- Find all instances that refer to the given uri -->
-            <!-- useful after finding uris in the "small" bases -->
-            <index type="bf.ref">
-                ?thing %v_rel %u
-            </index>
 
             <!-- Present formats. BF-L comes from "thing" -->
             <!-- Full instance, with the related work too -->
                 ?thing ?rel ?obj FILTER( str(?thing) = %s )
             </index>
         </db>
-        <!-- A way to see which triplets refers to a given uri. -->
-        <db path="ref" schema="sparql-results" include="smallbody">
-            <index type="any">
-                ?thing ?rel ?obj FILTER( str(?obj) = %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>