X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bibframe%2Ftriplestore.xml;h=3ea49142ac01274f0062eb2581bd873d69ea40a3;hb=43244f63760a937bd560904da01334ce423f8657;hp=7b107969ceca32325da6cfddfe24dc70d1ef5963;hpb=51905eb423e4a08a341ff955f819717f1ef01753;p=mp-sparql-moved-to-github.git
diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml
index 7b10796..3ea4914 100644
--- a/bibframe/triplestore.xml
+++ b/bibframe/triplestore.xml
@@ -1,11 +1,330 @@
-
-
- rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
- bf: http://bibframe.org/vocab/
- ?work ?wtitle
- ?work a bf:Work
- ?work bf:workTitle ?wt
- ?wt bf:titleValue ?wtitle
- ?wt bf:titleValue %v FILTER(contains(%v, %s))
-
-
+
+
+
+
+
+
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?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/
+
+ ?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/
+
+ ?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/
+
+ ?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/
+
+ ?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/
+
+ ?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/
+
+ ?work a bf:Work
+
+ OPTIONAL {
+ ?work bf:workTitle ?wt .
+ ?wt bf:titleValue ?wtitle }
+
+ OPTIONAL {
+ ?work bf:creator ?creator .
+ ?creator bf:label ?creatorlabel }
+
+ OPTIONAL {
+ ?work bf:subject ?subject .
+ ?subject bf:label ?subjectlabel }
+
+ ?wt bf:titleValue %v FILTER(contains(%v, %s))
+ ?creator bf:label %v FILTER(contains(%v, %s))
+ ?subject bf:label %v FILTER(contains(%v, %s))
+ {
+ ?work ?op1 ?child .
+ ?child ?op2 %v FILTER(contains(STR(%v), %s))
+ }
+
+ GROUP BY $work
+
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?work a bf:Work
+
+ ?work bf:workTitle ?wt
+ ?wt bf:titleValue ?wtitle
+ ?wt bf:titleValue %v FILTER(contains(%v, %s))
+ ?work bf:creator ?creator
+ ?creator bf:label ?creatorlabel
+ ?creator bf:label %v FILTER(contains(%v, %s))
+ ?work bf:subject ?subject
+ ?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/
+
+ ?instance a bf:Instance
+
+ ?instance bf:title ?title
+ ?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/
+
+ ?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/
+
+ ?person a bf:Person
+ ?person bf:label ?label
+ OPTIONAL { ?person bf:identifier ?id}
+ OPTIONAL { ?person bf:relatedTo ?relatedTo}
+ OPTIONAL { ?person bf:authorizedAccessPoint ?authorizedAccessPoint}
+ ?person bf:label %v FILTER(contains(%v, %s))
+ ?person bf:label %v FILTER(contains(%v, %s))
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?meeting a bf:Meeting
+ ?meeting bf:label ?label
+ OPTIONAL { ?meeting bf:identifier ?id}
+ OPTIONAL { ?meeting bf:relatedTo ?relatedTo}
+ OPTIONAL { ?meeting bf:authorizedAccessPoint ?authorizedAccessPoint}
+ ?meeting bf:label %v FILTER(contains(%v, %s))
+ ?meeting bf:label %v FILTER(contains(%v, %s))
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?agent a bf:Agent
+ ?agent bf:label ?label
+ OPTIONAL { ?agent bf:identifier ?id}
+ OPTIONAL { ?agent bf:relatedTo ?relatedTo}
+ OPTIONAL { ?agent bf:authorizedAccessPoint ?authorizedAccessPoint}
+ ?agent bf:label %v FILTER(contains(%v, %s))
+ ?agent bf:label %v FILTER(contains(%v, %s))
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?event a bf:Event
+ ?event bf:label ?label
+ OPTIONAL { ?event bf:identifier ?id}
+ OPTIONAL { ?event bf:relatedTo ?relatedTo}
+ OPTIONAL { ?event bf:authorizedAccessPoint ?authorizedAccessPoint}
+ ?event bf:label %v FILTER(contains(%v, %s))
+ ?event bf:label %v FILTER(contains(%v, %s))
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?organization a bf:Organization
+ ?organization bf:label ?label
+ OPTIONAL { ?organization bf:identifier ?id}
+ OPTIONAL { ?organization bf:relatedTo ?relatedTo}
+ OPTIONAL { ?organization bf:authorizedAccessPoint ?authorizedAccessPoint}
+ ?organization bf:label %v FILTER(contains(%v, %s))
+ ?organization bf:label %v FILTER(contains(%v, %s))
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?topic a bf:Topic
+ ?topic bf:label ?label
+ OPTIONAL { ?topic bf:identifier ?id}
+ OPTIONAL { ?topic bf:relatedTo ?relatedTo}
+ OPTIONAL { ?topic bf:authorizedAccessPoint ?authorizedAccessPoint}
+ ?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/
+
+ ?title a bf:Title
+ OPTIONAL { ?title bf:titleValue ?titleValue}
+ OPTIONAL { ?title bf:formDesignation ?formDesignation}
+ OPTIONAL { ?title bf:partNumber ?partNumber}
+ OPTIONAL { ?title bf:partTitle ?partTitle}
+ OPTIONAL { ?title bf:subtitle ?subtitle}
+ OPTIONAL { ?title bf:titleAttribute ?titleAttribute}
+ OPTIONAL { ?title bf:titleQualifier ?titleQualifier}
+ OPTIONAL { ?title bf:titleSource ?titleSource}
+ OPTIONAL { ?title bf:titleType ?titleType}
+ OPTIONAL { ?title bf:titleVariationDate ?titleVariationDate}
+ ?title bf:titleValue %v FILTER(contains(%v, %s))
+ ?title bf:subtitle %v FILTER(contains(%v, %s))
+ ?title bf:partTitle %v FILTER(contains(%v, %s))
+ ?title ?rel %v FILTER(contains(str(%v), %s))
+
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?node ?rel ?obj FILTER( str(?node) = %s )
+
+
+
+ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns
+ bf: http://bibframe.org/vocab/
+
+ ?node ?rel ?obj FILTER( str(?obj) = %s )
+
+
+
+ http
+
+
+
+ true
+
+