From 5077479b0e5f38abbde9a933b22c26a3164da895 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Tue, 12 May 2015 11:48:53 +0200 Subject: [PATCH] LOC-6: Some extra indexes bf.ref (for work and instance) returns what work/inst refers to %u bf.work (for instance) returns teh instance(s) of a work bf.instance (for work) returns the work this is an instance of --- bibframe/triplestore.xml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index ac5b492..415e66a 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -17,7 +17,7 @@ - ?thing rdf:type ?any FILTER( ?thing = %u ) + ?thing %v_rel %v_obj FILTER( ?thing = %u ) @@ -201,6 +201,18 @@ ?thing bf:contentCategory %u + + + %v_inst bf:instanceOf ?thing FILTER ( %v_inst = %u) + + + + + + + ?thing %v_rel %u + + @@ -376,7 +388,7 @@ %v_isbn bf:identifierValue %v FILTER( %v = %s ) } - + ?thing bf:lccn %v_lccn . @@ -384,6 +396,16 @@ %v_lccn bf:identifierValue %v FILTER( %v = %s ) + + + ?thing bf:instanceOf %u + + + + + + ?thing %v_rel %u + -- 1.7.10.4