Service

## Service Service — Execute queries remotely via a SPARQL HTTP Protocol service. |

## Functions

rasqal_service * | rasqal_new_service ()
void | rasqal_free_service ()
rasqal_query_results * | rasqal_service_execute ()
int | rasqal_service_set_format ()
int | rasqal_service_set_www ()

## Types and Values

typedef | rasqal_service

## Description

The SPARQL Protocol defines an HTTP binding that enables remote queries to be executed over specified default and named graphs. This class allows that to be constructed and executed, returning a Rasqal query results rasqal_query_results that may be used, for example, with a formatter to generate output.

## Functions

### rasqal_new_service ()

    rasqal_service *
    rasqal_new_service (rasqal_world *world,
                        raptor_uri *service_uri,
                        const unsigned char *query_string,
                        raptor_sequence *data_graphs);

#### Returns

### rasqal_free_service ()

    void
    rasqal_free_service (rasqal_service *svc);

### rasqal_service_execute ()

    rasqal_query_results *
    rasqal_service_execute (rasqal_service *svc);

#### Returns

### rasqal_service_set_format ()

    int
    rasqal_service_set_format (rasqal_service *svc,
                               const char *format);

#### Returns

### rasqal_service_set_www ()

    int
    rasqal_service_set_www (rasqal_service *svc,
                            raptor_www *www);

#### Returns

## Types and Values

### rasqal_service

    typedef struct rasqal_service_s rasqal_service;

Rasqal SPARQL Protocol Service