From 7b3a33402454212eb04c7d12a7c21053035c7fd9 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Mon, 11 May 2015 15:48:44 +0200 Subject: [PATCH] LOC-6: Add index for lccn, and update the node and ref indexes --- bibframe/triplestore.xml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 ) + -- 1.7.10.4