+
+ <!-- Title search, probably not needed. Will need to be rewritten to the same
+ system as the work search above, with separate present query -->
+ <db path="title" schema="sparql-results">
+ <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
+ <prefix>bf: http://bibframe.org/vocab/</prefix>
+ <form>SELECT DISTINCT ?title ?titleValue
+ ?formDesignation ?partNumber ?partTitle ?subtitle
+ ?titleAttribute ?titleQualifier ?titleSource
+ ?titleType ?titleVariationDate</form>
+ <criteria>?title a bf:Title</criteria>
+ <criteria>OPTIONAL { ?title bf:titleValue ?titleValue}</criteria>
+ <criteria>OPTIONAL { ?title bf:formDesignation ?formDesignation}</criteria>
+ <criteria>OPTIONAL { ?title bf:partNumber ?partNumber}</criteria>
+ <criteria>OPTIONAL { ?title bf:partTitle ?partTitle}</criteria>
+ <criteria>OPTIONAL { ?title bf:subtitle ?subtitle}</criteria>
+ <criteria>OPTIONAL { ?title bf:titleAttribute ?titleAttribute}</criteria>
+ <criteria>OPTIONAL { ?title bf:titleQualifier ?titleQualifier}</criteria>
+ <criteria>OPTIONAL { ?title bf:titleSource ?titleSource}</criteria>
+ <criteria>OPTIONAL { ?title bf:titleType ?titleType}</criteria>
+ <criteria>OPTIONAL { ?title bf:titleVariationDate ?titleVariationDate}</criteria>
+ <index type="bf.title">?title bf:titleValue %v FILTER(contains(%v, %s))</index>
+ <index type="bf.subtitle">?title bf:subtitle %v FILTER(contains(%v, %s))</index>
+ <index type="bf.parttitle">?title bf:partTitle %v FILTER(contains(%v, %s))</index>
+ <index type="any">?title ?rel %v FILTER(contains(str(%v), %s))</index>
+ </db>
+ <!-- A hack to be able to look at any triplet in the base -->
+ <db path="node" schema="sparql-results">