rasqal_query_add_data_graph

Name

rasqal_query_add_data_graph --  Add a data graph to the query

Synopsis

int rasqal_query_add_data_graph (rasqal_query* query, raptor_uri* uri, raptor_uri* name_uri, int flags);

Arguments

query

rasqal_query query object

uri

raptor_uri source uri for retrieval

name_uri

raptor_uri name uri (or NULL)

flags

RASQAL_DATA_GRAPH_NAMED or RASQAL_DATA_GRAPH_BACKGROUND

Description

named_uri must be given if flags RASQAL_DATA_GRAPH_NAMED is set. It is the name of the graph and also used as the base URI when resolving any relative URIs for the graph in uri.

Return value

non-0 on failure