X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bibframe%2Ftriplestore.xml;h=3ea49142ac01274f0062eb2581bd873d69ea40a3;hb=43244f63760a937bd560904da01334ce423f8657;hp=47e160a1635f83c8322b449139d02b4effceadfd;hpb=950e31a6a1d4249e0f150ca62e0101fa02e2c6a9;p=mp-sparql-moved-to-github.git diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 47e160a..3ea4914 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -1,13 +1,323 @@ - + + + + + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ - ?work ?wtitle +
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 ?obj } +
+ ?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 ?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 ) +
+ + + + 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 + (sql:GROUP_DIGEST (?creatorlabel, ' ; ', 1000, 1))AS ?creator + (sql:GROUP_DIGEST (?subjectlabel, ' ; ', 1000, 1))AS ?subject +
+ ?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/ +
CONSTRUCT { + ?work bf:title ?wtitle . + ?work bf:instanceTitle ?title . + ?work bf:author ?creator . + ?work bf:subject ?subjectlabel } +
+ ?work a bf:Work + ?work bf:workTitle ?wt ?wt bf:titleValue ?wtitle - ?wt bf:titleValue %v FILTER(contains(%v, %s)) + ?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/ +
SELECT ?instance ?title ?format
+ ?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/ +
SELECT DISTINCT ?label ?id ?place ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?label ?id ?person ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?label ?id ?meeting ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?label ?id ?agent ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?label ?id ?event ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?label ?id ?organization ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?label ?id ?topic ?relatedTo ?authorizedAccessPoint
+ ?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/ +
SELECT DISTINCT ?title ?titleValue + ?formDesignation ?partNumber ?partTitle ?subtitle + ?titleAttribute ?titleQualifier ?titleSource + ?titleType ?titleVariationDate
+ ?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/ +
SELECT ?node ?rel ?obj
+ ?node ?rel ?obj FILTER( str(?node) = %s ) +
+ + + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
SELECT ?node ?rel ?obj
+ ?node ?rel ?obj FILTER( str(?obj) = %s )