Top | ![]() |
![]() |
![]() |
![]() |
void | librdf_query_register_factory () |
const raptor_syntax_description * | librdf_query_language_get_description () |
int | librdf_query_languages_enumerate () |
librdf_query * | librdf_new_query () |
librdf_query * | librdf_new_query_from_query () |
librdf_query * | librdf_new_query_from_factory () |
void | librdf_free_query () |
librdf_query_results * | librdf_query_execute () |
int | librdf_query_get_limit () |
int | librdf_query_set_limit () |
int | librdf_query_get_offset () |
int | librdf_query_set_offset () |
Provides classes to create query objects and to execute them over an RDF graph (librdf_model) returning a librdf_query_results Query result limits and offsets can be set.
void librdf_query_register_factory (librdf_world *world
,const char *name
,const unsigned char *uri_string
,void (*factory) (librdf_query_factory*)
);
Register a query factory.
const raptor_syntax_description * librdf_query_language_get_description (librdf_world *world
,unsigned int counter
);
Get a query language syntax description.
int librdf_query_languages_enumerate (librdf_world *world
,const unsigned int counter
,const char **name
,const unsigned char **uri_string
);
librdf_query_languages_enumerate
is deprecated and should not be used in newly-written code.
Get information on query language syntaxes.
All returned strings are shared and must be copied if needed to be used dynamically.
deprecated
: use librdf_query_language_get_description()
to return
more information in a static structure.
librdf_query * librdf_new_query (librdf_world *world
,const char *name
,librdf_uri *uri
,const unsigned char *query_string
,librdf_uri *base_uri
);
Constructor - create a new librdf_query object.
librdf_query *
librdf_new_query_from_query (librdf_query *old_query
);
Copy constructor - create a new librdf_query object from an existing one
Should create a new query in the same context as the existing one as appropriate.
librdf_query * librdf_new_query_from_factory (librdf_world *world
,librdf_query_factory *factory
,const char *name
,librdf_uri *uri
,const unsigned char *query_string
,librdf_uri *base_uri
);
Constructor - create a new librdf_query object.
void
librdf_free_query (librdf_query *query
);
Destructor - destroy a librdf_query object.
librdf_query_results * librdf_query_execute (librdf_query *query
,librdf_model *model
);
Run the query on a model.
Runs the query against the (previously registered) model and returns a librdf_query_results for the result objects.
int
librdf_query_get_limit (librdf_query *query
);
Get the query-specified limit on results.
This is the limit given in the query on the number of results allowed.
int librdf_query_set_limit (librdf_query *query
,int limit
);
Set the query-specified limit on results.
This is the limit given in the query on the number of results allowed.
query |
librdf_query query object |
|
limit |
the limit on results, >=0 to set a limit, <0 to have no limit |
int
librdf_query_get_offset (librdf_query *query
);
Get the query-specified offset on results.
This is the offset given in the query on the number of results allowed.
int librdf_query_set_offset (librdf_query *query
,int offset
);
Set the query-specified offset on results.
This is the offset given in the query on the number of results allowed.
query |
librdf_query query object |
|
offset |
offset for results, >=0 to set an offset, <0 to have no offset |