From 43244f63760a937bd560904da01334ce423f8657 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Wed, 29 Apr 2015 12:26:01 +0200 Subject: [PATCH] Towards LOC-7: Experiments in expanding works --- bibframe/triplestore.xml | 73 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 6518c1f..3ea4914 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -45,13 +45,82 @@ ?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 } + CONSTRUCT { ?work ?rel ?obj }
?work a bf:Work - ?work ?rel ?subj + ?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 ?obj. + ?creator ?crRel ?crObj . + ?subj ?subRel ?subObj } +
+ ?work a bf:Work + ?work ?rel ?obj + OPTIONAL { ?work bf:creator ?creator . + ?creator ?crRel ?crObj } + + OPTIONAL { ?work bf:subject ?subj . + ?subj ?subRel ?subObj } + + ?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 ?obj . + ?obj ?rel1 ?obj1 . + ?obj1 ?rel2 ?obj2 . + ?obj2 ?rel3 ?obj3 + } +
+ ?work a bf:Work + + ?work ?rel ?obj + OPTIONAL { + ?obj ?rel1 ?obj1 + MINUS { ?obj a bf:Work } + } + OPTIONAL { + ?obj1 ?rel2 ?obj2 + MINUS { ?obj1 a bf:Work } + } + OPTIONAL { + ?obj2 ?rel3 ?obj3 + MINUS { ?obj2 a bf:Work } + } + ?work ?rel ?obj FILTER( str(?work) = %s ) +
+ + + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
DESCRIBE ?work +
+ ?work a bf:Work + ?work ?rel ?obj + OPTIONAL { ?work bf:creator ?creator . + ?creator ?crRel ?crObj } + + OPTIONAL { ?work bf:subject ?subj . + ?subj ?subRel ?subObj } + ?work ?rel ?obj FILTER( str(?work) = %s )
-- 1.7.10.4