From: Heikki Levanto Date: Mon, 11 May 2015 13:48:44 +0000 (+0200) Subject: LOC-6: Add index for lccn, and update the node and ref indexes X-Git-Tag: v0.6~20 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=7b3a33402454212eb04c7d12a7c21053035c7fd9;p=mp-sparql-moved-to-github.git LOC-6: Add index for lccn, and update the node and ref indexes --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 65aa8af..ac5b492 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -163,7 +163,6 @@ %v_inst bf:instanceOf ?thing . %v_inst bf:instanceTitle %v_ti . %v_ti bf:titleValue %v FILTER(contains(%v, %s)) - } UNION { } @@ -377,6 +376,13 @@ %v_isbn bf:identifierValue %v FILTER( %v = %s ) } + + + + ?thing bf:lccn %v_lccn . + %v_lccn a bf:Identifier . + %v_lccn bf:identifierValue %v FILTER( %v = %s ) + @@ -546,11 +552,15 @@ - ?thing ?rel ?obj FILTER( str(?thing) = %s ) + + ?thing ?rel ?obj FILTER( str(?thing) = %s ) + - ?thing ?rel ?obj FILTER( str(?obj) = %s ) + + ?thing ?rel ?obj FILTER( str(?obj) = %s ) +