Metaproxy SPARQL module Index Data sparql 3mp Metaproxy Module sparql Metaproxy Module for accessing a triplestore DESCRIPTION This module translates Z39.50 operations init, search, present to HTTP requests that accesses a remote triplestore via HTTP Configuration consists of one or more db elements. Each db element describes how to access a specific database. The db element takes attributes name of Z39.50 database (path) and HTTP access point of triplestore (uri). Optionally, the schema for the database may be given with attribute schema. Each db element takes these elements: Configurable values: <prefix/> Section that maps prefixes and namespaces for RDF vocabularies. The format is prefix followed by colon, followed by value. <form/> SPARQL Query formulation selection. SHould start with one of the query forms: SELECT or CONSTRUCT. <criteria/> section that allows to map static graph patterns for binding variables, narrowing types, etc, or any other WHERE clause criteria static to the Z39.50/SRU database. The final query conversion logic should be able to deduce which optional criteria should be included in the generated SPARQL by analyzing variables required in the query matching and display fields. <index type="attribute"/> Section used to declare RPN use attribute strings (indexes) and map them to BIBFRAME graph patterns. Items in this section are expanded during RPN query processing and placeholders (%s, %d) are substituted with query terms. To map a given CQL index (e.g the default keyword index) into multiple entity properties, SPARQL constructs like `OPTIONAL` or `UNION` could be used. <modifier/> Optional section that allows you to add solution sequences or modifiers. SCHEMA EXAMPLES Configuration for database "Default" that allows searching works. Only the field (use attribute) "bf.wtitle" is supported. rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ SELECT ?work ?wtitle ?work a bf:Work ?work bf:workTitle ?wt ?wt bf:titleValue ?wtitle ?wt bf:titleValue %v FILTER(contains(%v, %s)) ]]> SEE ALSO metaproxy 1