![]() |
![]() |
![]() |
Rasqal RDF Query Library Manual | ![]() |
---|---|---|---|---|
Top | Description |
Query Result Row.Query Result Row. — Result row in a query result set containing a set of literals that are bound to variables. |
typedef rasqal_row; rasqal_row* rasqal_new_row_for_size (rasqal_world *world
,int size
); void rasqal_free_row (rasqal_row *row
); int rasqal_row_set_value_at (rasqal_row *row
,int offset
,rasqal_literal *value
); rasqal_query_results* rasqal_new_query_results (rasqal_world *world
,rasqal_query *query
,rasqal_query_results_type type
,rasqal_variables_table *vars_table
);
An ordered row of rasqal_literal values that are each bound to rasqal_variable defined in an associated rasqal_variables table inside a rasqal_query_results query result set.
rasqal_row* rasqal_new_row_for_size (rasqal_world *world
,int size
);
Constructor - Create a new query result row of a given size
|
rasqal_world |
|
width of row |
Returns : |
a new query result row or NULL on failure |
void rasqal_free_row (rasqal_row *row
);
Destructor - Free a query result row object.
|
query result row |
int rasqal_row_set_value_at (rasqal_row *row
,int offset
,rasqal_literal *value
);
Set the value of a variable in a query result row
Any existing row value is freed and the literal value
passed in
is copied.
|
query result row |
|
offset into row (column number) |
|
literal value to set |
Returns : |
non-0 on failure |
rasqal_query_results* rasqal_new_query_results (rasqal_world *world
,rasqal_query *query
,rasqal_query_results_type type
,rasqal_variables_table *vars_table
);
Create a new query results set
The query
may be NULL for result set objects that are standalone
and not attached to any particular query
|
rasqal world object |
|
query object (or NULL) |
|
query results (expected) type |
|
variables table |
Returns : |
a new query result object or NULL on failure |