From 4ac3a5c367f8a1ccf102cd2a053370f51b735bb6 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Thu, 23 Apr 2015 12:55:19 +0200 Subject: [PATCH] LOC-5: Extra hack indexes to get to nodes and references Will come in handy when you search for a person, and get the name and uri. With the ref search you can see which object refers to the person. --- bibframe/triplestore.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index fd2a751..3f7d34c 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -175,12 +175,20 @@ ?title bf:partTitle %v FILTER(contains(%v, %s)) ?title ?rel %v FILTER(contains(str(%v), %s)) - + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ -
DESCRIBE ?node
+
SELECT ?node ?rel ?obj
?node ?rel ?obj FILTER( str(?node) = %s )
+ + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
SELECT ?node ?rel ?obj
+ ?node ?rel ?obj FILTER( str(?obj) = %s ) +
http -- 1.7.10.4