From: Heikki Levanto Date: Tue, 21 Apr 2015 10:58:44 +0000 (+0200) Subject: LOC-5: Place search implemented X-Git-Tag: v0.5~14 X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=commitdiff_plain;h=e0cd51be4ce1876a71d5568507d7cec25367759d LOC-5: Place search implemented --- 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 )