From: Heikki Levanto Date: Thu, 23 Apr 2015 10:55:19 +0000 (+0200) Subject: LOC-5: Extra hack indexes to get to nodes and references X-Git-Tag: v0.5~10 X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=commitdiff_plain;h=4ac3a5c367f8a1ccf102cd2a053370f51b735bb6 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. --- 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