From: Heikki Levanto Date: Wed, 29 Apr 2015 13:58:29 +0000 (+0200) Subject: Towards LOC-7: Schematized a simple database X-Git-Tag: v0.6~48 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=16b2af13f40e21e9b63192487e9ea2d247ad32c2;p=mp-sparql-moved-to-github.git Towards LOC-7: Schematized a simple database --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index e982768..27220ea 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -59,7 +59,6 @@ bf: http://bibframe.org/vocab/
SELECT ?instance ?title ?format
?instance a bf:Instance - ?instance bf:title ?title ?instance bf:title %v FILTER(contains(%v, %s)) ?instance bf:format ?format @@ -70,6 +69,43 @@ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ +
SELECT DISTINCT ?place
+ ?place a bf:Place + ?place ?rel ?obj + ?place bf:label %v FILTER(contains(%v, %s)) + ?place bf:label %v FILTER(contains(%v, %s)) + ?place bf:label %v FILTER(contains(%v, %s)) + + CONSTRUCT { %u ?rel ?obj } + WHERE { + %u ?rel ?obj . + } + + + + + CONSTRUCT { %u ?rel ?obj . + ?obj ?rel1 ?obj1 . + + } + WHERE { + %u ?rel ?obj . + OPTIONAL { ?obj ?rel1 ?obj1 } + + } + +
+ + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/
SELECT DISTINCT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
?place a bf:Place ?place bf:label ?label