From: Heikki Levanto Date: Tue, 12 May 2015 09:48:53 +0000 (+0200) Subject: LOC-6: Some extra indexes X-Git-Tag: v0.6~19 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5077479b0e5f38abbde9a933b22c26a3164da895;p=mp-sparql-moved-to-github.git 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 --- 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 +