Enums

Details

class Tracker.DeserializeFlags(value)

Bases: GObject.GEnum

Flags affecting deserialization from a RDF data format.

NONE = 0

No flags.

class Tracker.NotifierEventType(value)

Bases: GObject.GEnum

Notifier event types.

CREATE = 0

An element was created.

DELETE = 1

An element was deleted.

UPDATE = 2

An element was updated.

class Tracker.RdfFormat(value)

Bases: GObject.GEnum

Describes a RDF format to be used in data exchange.

TURTLE = 0

Turtle format (http://www.w3.org/ns/formats/Turtle)

TRIG = 1

Trig format (http://www.w3.org/ns/formats/Trig)

JSON_LD = 2

JSON-LD format (http://www.w3.org/ns/formats/JSON-LD). This value was added in version 3.5.

LAST = 3

The total number of RDF formats

class Tracker.SerializeFlags(value)

Bases: GObject.GEnum

Flags affecting serialization into a RDF data format.

NONE = 0

No flags.

class Tracker.SparqlError(value)

Bases: GObject.GEnum

Error domain for Tracker Sparql. Errors in this domain will be from the [error`Tracker`.SparqlError] enumeration. See [struct`GLib`.Error] for more information on error domains.

classmethod quark()
Return type:

int

CONSTRAINT = 0

Subject is not in the domain of a property or trying to set multiple values for a single valued property.

INTERNAL = 1

Internal error.

UNKNOWN_PROPERTY = 10

Unknown property.

UNSUPPORTED = 11

Unsupported feature or method.

MISSING_LAST_MODIFIED_HEADER = 12

The ontology doesn’t contain nrl:lastModified header

INCOMPLETE_PROPERTY_DEFINITION = 13

The property is not completely defined.

CORRUPT = 14

A soft/hard corruption was found in the database during operation. If this error is obtained during regular operations with an existing [class`Tracker`.SparqlConnection], the corruption was newly found. This event will be persistently recorded so that the [func`Tracker`.SparqlConnection.new_async] constructor (or its synchronous variant) will perform database repair attempts. If this error is obtained during one of those constructors, the database could not be repaired automatically and data loss is unavoidable. It is left to the discretion of the API user to set up the appropriate fallbacks in this situation, to replace the database and recover from the error. See [ctor`Tracker`.SparqlConnection.new] documentation for more information on corruption handling.

LAST = 15

The total number of error codes.

NO_SPACE = 2

There was no disk space available to perform the request.

ONTOLOGY_NOT_FOUND = 3

The specified ontology wasn’t found.

OPEN_ERROR = 4

Problem encountered while opening the database.

PARSE = 5

Error parsing the SPARQL string.

QUERY_FAILED = 6

Problem while executing the query.

TYPE = 7

Type constraint failed when trying to insert data.

UNKNOWN_CLASS = 8

Unknown class.

UNKNOWN_GRAPH = 9

Unknown graph.

class Tracker.SparqlValueType(value)

Bases: GLib.Enum

Enumeration with the possible types of the cursor’s cells

UNBOUND = 0

Unbound value type

URI = 1

Uri value type, rdfs:Resource

STRING = 2

String value type, xsd:string or rdf:langString

INTEGER = 3

Integer value type, xsd:integer

DOUBLE = 4

Double value type, xsd:double

DATETIME = 5

Datetime value type, xsd:dateTime

BLANK_NODE = 6

Blank node value type

BOOLEAN = 7

Boolean value type, xsd:boolean