1 #ifndef SPARQL_H_INCLUDED
2 #define SPARQL_H_INCLUDED
5 #include <yaz/z-core.h>
10 typedef struct yaz_sparql_s *yaz_sparql_t;
13 yaz_sparql_t yaz_sparql_create(void);
16 void yaz_sparql_destroy(yaz_sparql_t s);
19 int yaz_sparql_add_pattern(yaz_sparql_t s, const char *pattern,
23 int yaz_sparql_from_rpn_stream(yaz_sparql_t s,
25 void (*pr)(const char *buf,
31 int yaz_sparql_from_rpn_wrbuf(yaz_sparql_t s, WRBUF addinfo, WRBUF w,
36 int yaz_sparql_from_uri_stream(yaz_sparql_t s,
38 void (*pr)(const char *buf, void *client_data),
40 const char *uri, const char *schema);
43 int yaz_sparql_from_uri_wrbuf(yaz_sparql_t s, WRBUF addinfo, WRBUF w,
44 const char *uri, const char *schema);
47 int yaz_sparql_lookup_schema(yaz_sparql_t s, const char *schema);
50 void yaz_sparql_include(yaz_sparql_t s, yaz_sparql_t u);
59 * c-file-style: "Stroustrup"
60 * indent-tabs-mode: nil
62 * vim: shiftwidth=4 tabstop=8 expandtab