From e0cd51be4ce1876a71d5568507d7cec25367759d Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Tue, 21 Apr 2015 12:58:44 +0200 Subject: [PATCH] LOC-5: Place search implemented --- bibframe/triplestore.xml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index f227102..55ebfc6 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -65,7 +65,24 @@ ?instance bf:title %v FILTER(contains(%v, %s)) ?instance bf:format ?format ?instance bf:format %s - + + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
SELECT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
+ ?place a bf:Place + ?place bf:label ?label + OPTIONAL { ?place bf:identifier ?id} + OPTIONAL { ?place bf:relatedTo ?relatedTo} + OPTIONAL { ?place bf:authorizedAccessPoint ?authorizedAccessPoint} + ?place bf:label %v FILTER(contains(%v, %s)) + ?place bf:label %v FILTER(contains(%v, %s)) +
+ + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
DESCRIBE ?node
+ ?node ?rel ?obj FILTER( str(?node) = %s )
-- 1.7.10.4