From: Heikki Levanto Date: Tue, 28 Apr 2015 09:29:08 +0000 (+0200) Subject: Towards LOC-7: Config example and experiments X-Git-Tag: v0.5~9 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=12092ad4f2464309b018c90eec997c152d47e43c;p=mp-sparql-moved-to-github.git Towards LOC-7: Config example and experiments --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 3f7d34c..6518c1f 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -3,9 +3,62 @@ + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ +
SELECT DISTINCT ?work +
+ ?work a bf:Work + + ?work bf:workTitle ?wt . + ?wt bf:titleValue %v FILTER(contains(%v, %s)) + ?work bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + ?work bf:subject ?subject . + ?subject bf:label %v FILTER(contains(%v, %s)) + +
+ + + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
SELECT ?work ?rel ?subj +
+ ?work a bf:Work + ?work ?rel ?obj + ?work ?rel ?obj FILTER( str(?work) = %s ) +
+ + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
CONSTRUCT { ?work ?rel ?subj } +
+ ?work a bf:Work + ?work ?rel ?subj + ?work ?rel ?obj FILTER( str(?work) = %s ) +
+ + + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/
SELECT ?work (sql:GROUP_DIGEST (?wtitle, ' ; ', 1000, 1)) AS ?title @@ -36,7 +89,8 @@ GROUP BY $work - + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ CONSTRUCT { @@ -57,6 +111,8 @@ ?subject bf:label ?subjectlabel ?subject bf:label %v FILTER(contains(%v, %s)) + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ @@ -68,6 +124,8 @@ ?instance bf:format ?format ?instance bf:format %s + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ @@ -152,6 +210,9 @@ ?topic bf:label %v FILTER(contains(%v, %s)) ?topic bf:label %v FILTER(contains(%v, %s)) + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/