From 12092ad4f2464309b018c90eec997c152d47e43c Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Tue, 28 Apr 2015 11:29:08 +0200 Subject: [PATCH] Towards LOC-7: Config example and experiments --- bibframe/triplestore.xml | 63 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) 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/ -- 1.7.10.4