TrackerSparqlBuilder

TrackerSparqlBuilder — Creating insertion/update SPARQL queries.

Stability Level

Stable, unless otherwise indicated

Types and Values

Includes

#include <tracker-sparql.h>

Description

This object is deprecated since 2.0, use TrackerResource to build SPARQL updates.

TrackerSparqlBuilder is an object what will gather a set of subject/predicate/object triples, together with an optional WHERE clause, in order to create a query that may be issued to tracker-store.

When using TrackerSparqlBuilder, note that you may append several predicates for the same subject, and several objects for the same predicate.

Functions

Types and Values

struct TrackerSparqlBuilder

struct TrackerSparqlBuilder {
	GObject parent_instance;
	TrackerSparqlBuilderPrivate * priv;
};

The TrackerSparqlBuilder object represents an insertion/update SPARQL query.


enum TrackerSparqlBuilderState

Enumeration with the possible states of the SPARQL Builder

Members

TRACKER_SPARQL_BUILDER_STATE_UPDATE

Builder is generating an UPDATE

 

TRACKER_SPARQL_BUILDER_STATE_INSERT

Builder is generating an INSERT

 

TRACKER_SPARQL_BUILDER_STATE_DELETE

Builder is generating a DELETE

 

TRACKER_SPARQL_BUILDER_STATE_SUBJECT

Builder is generating the subject of the query

 

TRACKER_SPARQL_BUILDER_STATE_PREDICATE

Builder is generating the predicate of the query

 

TRACKER_SPARQL_BUILDER_STATE_OBJECT

Builder is generating the object of the query

 

TRACKER_SPARQL_BUILDER_STATE_BLANK

Builder is generating a blank node subject

 

TRACKER_SPARQL_BUILDER_STATE_WHERE

Builder is generating the WHERE clause contents

 

TRACKER_SPARQL_BUILDER_STATE_EMBEDDED_INSERT

Builder is generating an embedded INSERT

 

TRACKER_SPARQL_BUILDER_STATE_GRAPH

Builder is generating the GRAPH clause contents