SLV2 0.6.6
query.h
1/* SLV2
2 * Copyright (C) 2008-2009 Dave Robillard <http://drobilla.net>
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19#ifndef __SLV2_QUERY_H__
20#define __SLV2_QUERY_H__
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
33SLV2Results
34slv2_plugin_query_sparql(SLV2Plugin plugin,
35 const char* sparql_str);
36
37
40void
41slv2_results_free(SLV2Results results);
42
43
49unsigned
50slv2_results_size(SLV2Results results);
51
52
55bool
56slv2_results_finished(SLV2Results results);
57
58
64SLV2Value
65slv2_results_get_binding_value(SLV2Results results, unsigned index);
66
67
73SLV2Value
74slv2_results_get_binding_value_by_name(SLV2Results results, const char* name);
75
76
81const char*
82slv2_results_get_binding_name(SLV2Results results, unsigned index);
83
84
87void
88slv2_results_next(SLV2Results results);
89
90
93#ifdef __cplusplus
94} /* extern "C" */
95#endif
96
97#endif /* __SLV2_QUERY_H__ */
bool slv2_results_finished(SLV2Results results)
Return true iff the end of results has been reached.
SLV2Value slv2_results_get_binding_value(SLV2Results results, unsigned index)
Return a binding in results by index.
SLV2Results slv2_plugin_query_sparql(SLV2Plugin plugin, const char *sparql_str)
Query a plugin with an arbitrary SPARQL string.
SLV2Value slv2_results_get_binding_value_by_name(SLV2Results results, const char *name)
Return a binding in results by name.
const char * slv2_results_get_binding_name(SLV2Results results, unsigned index)
Return the name of a binding in results.
void slv2_results_next(SLV2Results results)
Increment results to the next match.
unsigned slv2_results_size(SLV2Results results)
Return the number of matches in results.
void slv2_results_free(SLV2Results results)
Free query results.

Generated for SLV2 by doxygen 1.12.0