@girs/tracker-3.0 3.6.0-3.2.6 → 3.6.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +5 -5
- package/tracker-3.0.d.cts +83 -83
- package/tracker-3.0.d.ts +83 -83
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Tracker-3.0, generated from library version 3.6.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Tracker-3.0, generated from library version 3.6.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/tracker-3.0",
|
|
3
|
-
"version": "3.6.0-3.2.
|
|
3
|
+
"version": "3.6.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Tracker-3.0, generated from library version 3.6.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "tracker-3.0.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit tracker-3.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "*"
|
package/tracker-3.0.d.cts
CHANGED
|
@@ -242,59 +242,59 @@ export const MINOR_VERSION: number
|
|
|
242
242
|
/**
|
|
243
243
|
* The Prefix of the DC (Dublin Core) namespace
|
|
244
244
|
*/
|
|
245
|
-
export const PREFIX_DC: string
|
|
245
|
+
export const PREFIX_DC: string
|
|
246
246
|
/**
|
|
247
247
|
* The Prefix of the MFO namespace
|
|
248
248
|
*/
|
|
249
|
-
export const PREFIX_MFO: string
|
|
249
|
+
export const PREFIX_MFO: string
|
|
250
250
|
/**
|
|
251
251
|
* The Prefix of the NAO namespace
|
|
252
252
|
*/
|
|
253
|
-
export const PREFIX_NAO: string
|
|
253
|
+
export const PREFIX_NAO: string
|
|
254
254
|
/**
|
|
255
255
|
* The Prefix of the NCO namespace
|
|
256
256
|
*/
|
|
257
|
-
export const PREFIX_NCO: string
|
|
257
|
+
export const PREFIX_NCO: string
|
|
258
258
|
/**
|
|
259
259
|
* The Prefix of the NFO namespace
|
|
260
260
|
*/
|
|
261
|
-
export const PREFIX_NFO: string
|
|
261
|
+
export const PREFIX_NFO: string
|
|
262
262
|
/**
|
|
263
263
|
* The Prefix of the NIE namespace
|
|
264
264
|
*/
|
|
265
|
-
export const PREFIX_NIE: string
|
|
265
|
+
export const PREFIX_NIE: string
|
|
266
266
|
/**
|
|
267
267
|
* The Prefix of the RDF namespace
|
|
268
268
|
*/
|
|
269
|
-
export const PREFIX_NMM: string
|
|
269
|
+
export const PREFIX_NMM: string
|
|
270
270
|
/**
|
|
271
271
|
* The Prefix of the NRL namespace
|
|
272
272
|
*/
|
|
273
|
-
export const PREFIX_NRL: string
|
|
273
|
+
export const PREFIX_NRL: string
|
|
274
274
|
/**
|
|
275
275
|
* The Prefix of the Osinfo namespace
|
|
276
276
|
*/
|
|
277
|
-
export const PREFIX_OSINFO: string
|
|
277
|
+
export const PREFIX_OSINFO: string
|
|
278
278
|
/**
|
|
279
279
|
* The Prefix of the RDF namespace
|
|
280
280
|
*/
|
|
281
|
-
export const PREFIX_RDF: string
|
|
281
|
+
export const PREFIX_RDF: string
|
|
282
282
|
/**
|
|
283
283
|
* The Prefix of the RDFS namespace
|
|
284
284
|
*/
|
|
285
|
-
export const PREFIX_RDFS: string
|
|
285
|
+
export const PREFIX_RDFS: string
|
|
286
286
|
/**
|
|
287
287
|
* The Prefix of the SLO namespace
|
|
288
288
|
*/
|
|
289
|
-
export const PREFIX_SLO: string
|
|
289
|
+
export const PREFIX_SLO: string
|
|
290
290
|
/**
|
|
291
291
|
* The Prefix of the Tracker namespace
|
|
292
292
|
*/
|
|
293
|
-
export const PREFIX_TRACKER: string
|
|
293
|
+
export const PREFIX_TRACKER: string
|
|
294
294
|
/**
|
|
295
295
|
* The Prefix of the XSD namespace
|
|
296
296
|
*/
|
|
297
|
-
export const PREFIX_XSD: string
|
|
297
|
+
export const PREFIX_XSD: string
|
|
298
298
|
/**
|
|
299
299
|
* Checks that the Tracker library in use is compatible with the given version.
|
|
300
300
|
*
|
|
@@ -316,7 +316,7 @@ export const PREFIX_XSD: string | null
|
|
|
316
316
|
* @param required_micro the required micro version.
|
|
317
317
|
* @returns %NULL if the Tracker library is compatible with the given version, or a string describing the version mismatch.
|
|
318
318
|
*/
|
|
319
|
-
export function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
319
|
+
export function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
320
320
|
export function sparql_error_quark(): GLib.Quark
|
|
321
321
|
/**
|
|
322
322
|
* Escapes `literal` so it is suitable for insertion in
|
|
@@ -328,13 +328,13 @@ export function sparql_error_quark(): GLib.Quark
|
|
|
328
328
|
* @param literal a string to escape
|
|
329
329
|
* @returns the escaped string
|
|
330
330
|
*/
|
|
331
|
-
export function sparql_escape_string(literal: string
|
|
331
|
+
export function sparql_escape_string(literal: string): string | null
|
|
332
332
|
/**
|
|
333
333
|
* Escapes a string for use as a URI.
|
|
334
334
|
* @param uri a string to be escaped, following the tracker sparql rules
|
|
335
335
|
* @returns a newly-allocated string holding the result.
|
|
336
336
|
*/
|
|
337
|
-
export function sparql_escape_uri(uri: string
|
|
337
|
+
export function sparql_escape_uri(uri: string): string | null
|
|
338
338
|
/**
|
|
339
339
|
* Returns a path to the built-in Nepomuk ontologies.
|
|
340
340
|
* @returns a #GFile instance.
|
|
@@ -391,7 +391,7 @@ export interface Batch {
|
|
|
391
391
|
* @param default_graph Default graph that will receive the RDF data
|
|
392
392
|
* @param stream Input stream with RDF data
|
|
393
393
|
*/
|
|
394
|
-
add_rdf(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
394
|
+
add_rdf(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream): void
|
|
395
395
|
/**
|
|
396
396
|
* Adds the RDF represented by `resource` to `batch`.
|
|
397
397
|
* @param graph RDF graph to insert the resource to
|
|
@@ -402,7 +402,7 @@ export interface Batch {
|
|
|
402
402
|
* Adds an SPARQL update string to `batch`.
|
|
403
403
|
* @param sparql A SPARQL update string
|
|
404
404
|
*/
|
|
405
|
-
add_sparql(sparql: string
|
|
405
|
+
add_sparql(sparql: string): void
|
|
406
406
|
/**
|
|
407
407
|
* Adds a [class`Tracker`.SparqlStatement] containing an SPARQL update. The statement will
|
|
408
408
|
* be executed once in the batch, with the values bound as specified by `variable_names`
|
|
@@ -932,7 +932,7 @@ export interface NamespaceManager {
|
|
|
932
932
|
* @param prefix a short, unique prefix to identify `namespace`
|
|
933
933
|
* @param ns the URL of the given namespace
|
|
934
934
|
*/
|
|
935
|
-
add_prefix(prefix: string
|
|
935
|
+
add_prefix(prefix: string, ns: string): void
|
|
936
936
|
/**
|
|
937
937
|
* If `uri` begins with one of the namespaces known to this
|
|
938
938
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -940,7 +940,7 @@ export interface NamespaceManager {
|
|
|
940
940
|
* @param uri a URI or compact URI
|
|
941
941
|
* @returns (nullable): the compressed URI
|
|
942
942
|
*/
|
|
943
|
-
compress_uri(uri: string
|
|
943
|
+
compress_uri(uri: string): string | null
|
|
944
944
|
/**
|
|
945
945
|
* If `compact_uri` begins with one of the prefixes known to this
|
|
946
946
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -948,7 +948,7 @@ export interface NamespaceManager {
|
|
|
948
948
|
* @param compact_uri a URI or compact URI
|
|
949
949
|
* @returns The possibly expanded URI in a newly-allocated string.
|
|
950
950
|
*/
|
|
951
|
-
expand_uri(compact_uri: string
|
|
951
|
+
expand_uri(compact_uri: string): string | null
|
|
952
952
|
/**
|
|
953
953
|
* Calls `func` for each known prefix / URI pair.
|
|
954
954
|
* @param func the function to call for each prefix / URI pair
|
|
@@ -959,14 +959,14 @@ export interface NamespaceManager {
|
|
|
959
959
|
* @param prefix a string
|
|
960
960
|
* @returns %TRUE if the `TrackerNamespaceManager` knows about @prefix, %FALSE otherwise
|
|
961
961
|
*/
|
|
962
|
-
has_prefix(prefix: string
|
|
962
|
+
has_prefix(prefix: string): boolean
|
|
963
963
|
/**
|
|
964
964
|
* Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
|
|
965
965
|
* is not known.
|
|
966
966
|
* @param prefix a string
|
|
967
967
|
* @returns a string owned by the `TrackerNamespaceManager`, or %NULL
|
|
968
968
|
*/
|
|
969
|
-
lookup_prefix(prefix: string
|
|
969
|
+
lookup_prefix(prefix: string): string | null
|
|
970
970
|
/**
|
|
971
971
|
* Writes out all namespaces as ``prefix`` statements in
|
|
972
972
|
* the [Turtle](https://www.w3.org/TR/turtle/) RDF format.
|
|
@@ -1091,7 +1091,7 @@ export interface Notifier {
|
|
|
1091
1091
|
* @param graph Graph to listen events for, or %NULL
|
|
1092
1092
|
* @returns An ID for this subscription
|
|
1093
1093
|
*/
|
|
1094
|
-
signal_subscribe(connection: Gio.DBusConnection, service: string
|
|
1094
|
+
signal_subscribe(connection: Gio.DBusConnection, service: string, object_path: string | null, graph: string | null): number
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Undoes a signal subscription done through [method`Tracker`.Notifier.signal_subscribe].
|
|
1097
1097
|
*
|
|
@@ -1207,7 +1207,7 @@ export interface Resource {
|
|
|
1207
1207
|
* @param property_uri A string identifying the property to modify
|
|
1208
1208
|
* @param value The property boolean value
|
|
1209
1209
|
*/
|
|
1210
|
-
add_boolean(property_uri: string
|
|
1210
|
+
add_boolean(property_uri: string, value: boolean): void
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Adds a date property as a [type`GLib`.DateTime]. Previous values for the
|
|
1213
1213
|
* same property are kept.
|
|
@@ -1220,7 +1220,7 @@ export interface Resource {
|
|
|
1220
1220
|
* @param property_uri a string identifying the property to modify
|
|
1221
1221
|
* @param value the property object
|
|
1222
1222
|
*/
|
|
1223
|
-
add_datetime(property_uri: string
|
|
1223
|
+
add_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Adds a numeric property with double precision. Previous values for the same property are kept.
|
|
1226
1226
|
*
|
|
@@ -1231,7 +1231,7 @@ export interface Resource {
|
|
|
1231
1231
|
* @param property_uri a string identifying the property to modify
|
|
1232
1232
|
* @param value the property object
|
|
1233
1233
|
*/
|
|
1234
|
-
add_double(property_uri: string
|
|
1234
|
+
add_double(property_uri: string, value: number): void
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Add `value` to the list of values for given property.
|
|
1237
1237
|
*
|
|
@@ -1241,7 +1241,7 @@ export interface Resource {
|
|
|
1241
1241
|
* @param property_uri a string identifying the property to set
|
|
1242
1242
|
* @param value an initialised [struct`GObject`.Value]
|
|
1243
1243
|
*/
|
|
1244
|
-
add_gvalue(property_uri: string
|
|
1244
|
+
add_gvalue(property_uri: string, value: any): void
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Adds a numeric property with integer precision. Previous values for the same property are kept.
|
|
1247
1247
|
*
|
|
@@ -1252,7 +1252,7 @@ export interface Resource {
|
|
|
1252
1252
|
* @param property_uri a string identifying the property to modify
|
|
1253
1253
|
* @param value the property object
|
|
1254
1254
|
*/
|
|
1255
|
-
add_int(property_uri: string
|
|
1255
|
+
add_int(property_uri: string, value: number): void
|
|
1256
1256
|
/**
|
|
1257
1257
|
* Adds a numeric property with 64-bit integer precision. Previous values for the same property are kept.
|
|
1258
1258
|
*
|
|
@@ -1263,7 +1263,7 @@ export interface Resource {
|
|
|
1263
1263
|
* @param property_uri a string identifying the property to modify
|
|
1264
1264
|
* @param value the property object
|
|
1265
1265
|
*/
|
|
1266
|
-
add_int64(property_uri: string
|
|
1266
|
+
add_int64(property_uri: string, value: number): void
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1269
1269
|
*
|
|
@@ -1280,7 +1280,7 @@ export interface Resource {
|
|
|
1280
1280
|
* @param property_uri a string identifying the property to modify
|
|
1281
1281
|
* @param resource the property object
|
|
1282
1282
|
*/
|
|
1283
|
-
add_relation(property_uri: string
|
|
1283
|
+
add_relation(property_uri: string, resource: Resource): void
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Adds a string property. Previous values for the same property are kept.
|
|
1286
1286
|
*
|
|
@@ -1291,7 +1291,7 @@ export interface Resource {
|
|
|
1291
1291
|
* @param property_uri a string identifying the property to modify
|
|
1292
1292
|
* @param value the property object
|
|
1293
1293
|
*/
|
|
1294
|
-
add_string(property_uri: string
|
|
1294
|
+
add_string(property_uri: string, value: string): void
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1297
1297
|
* Takes ownership on the given `resource`.
|
|
@@ -1309,7 +1309,7 @@ export interface Resource {
|
|
|
1309
1309
|
* @param property_uri a string identifying the property to modify
|
|
1310
1310
|
* @param resource the property object
|
|
1311
1311
|
*/
|
|
1312
|
-
add_take_relation(property_uri: string
|
|
1312
|
+
add_take_relation(property_uri: string, resource: Resource): void
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Adds a resource property as an URI string. Previous values for the same property are kept.
|
|
1315
1315
|
*
|
|
@@ -1325,55 +1325,55 @@ export interface Resource {
|
|
|
1325
1325
|
* @param property_uri a string identifying the property to modify
|
|
1326
1326
|
* @param value the property object
|
|
1327
1327
|
*/
|
|
1328
|
-
add_uri(property_uri: string
|
|
1328
|
+
add_uri(property_uri: string, value: string): void
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Returns the first boolean object previously assigned to a property.
|
|
1331
1331
|
* @param property_uri a string identifying the property to look up
|
|
1332
1332
|
* @returns the first boolean object
|
|
1333
1333
|
*/
|
|
1334
|
-
get_first_boolean(property_uri: string
|
|
1334
|
+
get_first_boolean(property_uri: string): boolean
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Returns the first [type`GLib`.DateTime] previously assigned to a property.
|
|
1337
1337
|
* @param property_uri a string identifying the property to look up
|
|
1338
1338
|
* @returns the first GDateTime object
|
|
1339
1339
|
*/
|
|
1340
|
-
get_first_datetime(property_uri: string
|
|
1340
|
+
get_first_datetime(property_uri: string): GLib.DateTime | null
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Returns the first double object previously assigned to a property.
|
|
1343
1343
|
* @param property_uri a string identifying the property to look up
|
|
1344
1344
|
* @returns the first double object
|
|
1345
1345
|
*/
|
|
1346
|
-
get_first_double(property_uri: string
|
|
1346
|
+
get_first_double(property_uri: string): number
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Returns the first integer object previously assigned to a property.
|
|
1349
1349
|
* @param property_uri a string identifying the property to look up
|
|
1350
1350
|
* @returns the first integer object
|
|
1351
1351
|
*/
|
|
1352
|
-
get_first_int(property_uri: string
|
|
1352
|
+
get_first_int(property_uri: string): number
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Returns the first integer object previously assigned to a property.
|
|
1355
1355
|
* @param property_uri a string identifying the property to look up
|
|
1356
1356
|
* @returns the first integer object
|
|
1357
1357
|
*/
|
|
1358
|
-
get_first_int64(property_uri: string
|
|
1358
|
+
get_first_int64(property_uri: string): number
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Returns the first resource object previously assigned to a property.
|
|
1361
1361
|
* @param property_uri a string identifying the property to look up
|
|
1362
1362
|
* @returns the first resource object
|
|
1363
1363
|
*/
|
|
1364
|
-
get_first_relation(property_uri: string
|
|
1364
|
+
get_first_relation(property_uri: string): Resource | null
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Returns the first string object previously assigned to a property.
|
|
1367
1367
|
* @param property_uri a string identifying the property to look up
|
|
1368
1368
|
* @returns the first string object
|
|
1369
1369
|
*/
|
|
1370
|
-
get_first_string(property_uri: string
|
|
1370
|
+
get_first_string(property_uri: string): string | null
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Returns the first resource object previously assigned to a property.
|
|
1373
1373
|
* @param property_uri a string identifying the property to look up
|
|
1374
1374
|
* @returns the first resource object as an URI.
|
|
1375
1375
|
*/
|
|
1376
|
-
get_first_uri(property_uri: string
|
|
1376
|
+
get_first_uri(property_uri: string): string | null
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Returns the identifier of a resource.
|
|
1379
1379
|
*
|
|
@@ -1393,20 +1393,20 @@ export interface Resource {
|
|
|
1393
1393
|
* @param property_uri a string identifying the property to query
|
|
1394
1394
|
* @returns #TRUE if the property would be overwritten
|
|
1395
1395
|
*/
|
|
1396
|
-
get_property_overwrite(property_uri: string
|
|
1396
|
+
get_property_overwrite(property_uri: string): boolean
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Returns the list of all known values of the given property.
|
|
1399
1399
|
* @param property_uri a string identifying the property to look up
|
|
1400
1400
|
* @returns a [struct@GLib.List] of [struct@GObject.Value] instances. The list should be freed with [func@GLib.List.free]
|
|
1401
1401
|
*/
|
|
1402
|
-
get_values(property_uri: string
|
|
1402
|
+
get_values(property_uri: string): any[] | null
|
|
1403
1403
|
/**
|
|
1404
1404
|
* A helper function that compares a `TrackerResource` by its identifier
|
|
1405
1405
|
* string.
|
|
1406
1406
|
* @param identifier a string identifying the resource
|
|
1407
1407
|
* @returns an integer less than, equal to, or greater than zero, if the resource identifier is <, == or > than @identifier
|
|
1408
1408
|
*/
|
|
1409
|
-
identifier_compare_func(identifier: string
|
|
1409
|
+
identifier_compare_func(identifier: string): number
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Serialize all the information in `resource` as a JSON-LD document.
|
|
1412
1412
|
*
|
|
@@ -1471,7 +1471,7 @@ export interface Resource {
|
|
|
1471
1471
|
* @param property_uri A string identifying the property to modify
|
|
1472
1472
|
* @param value The property boolean value
|
|
1473
1473
|
*/
|
|
1474
|
-
set_boolean(property_uri: string
|
|
1474
|
+
set_boolean(property_uri: string, value: boolean): void
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Sets a date property as a [type`GLib`.DateTime]. Replaces any previous value.
|
|
1477
1477
|
*
|
|
@@ -1480,7 +1480,7 @@ export interface Resource {
|
|
|
1480
1480
|
* @param property_uri a string identifying the property to modify
|
|
1481
1481
|
* @param value the property object
|
|
1482
1482
|
*/
|
|
1483
|
-
set_datetime(property_uri: string
|
|
1483
|
+
set_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1484
1484
|
/**
|
|
1485
1485
|
* Sets a numeric property with double precision. Replaces any previous value.
|
|
1486
1486
|
*
|
|
@@ -1488,7 +1488,7 @@ export interface Resource {
|
|
|
1488
1488
|
* @param property_uri A string identifying the property to modify
|
|
1489
1489
|
* @param value The property object
|
|
1490
1490
|
*/
|
|
1491
|
-
set_double(property_uri: string
|
|
1491
|
+
set_double(property_uri: string, value: number): void
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Replace any previously existing value for `property_uri` with `value`.
|
|
1494
1494
|
*
|
|
@@ -1502,7 +1502,7 @@ export interface Resource {
|
|
|
1502
1502
|
* @param property_uri a string identifying the property to set
|
|
1503
1503
|
* @param value an initialised [struct`GObject`.Value]
|
|
1504
1504
|
*/
|
|
1505
|
-
set_gvalue(property_uri: string
|
|
1505
|
+
set_gvalue(property_uri: string, value: any): void
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Changes the identifier of a `TrackerResource`. The identifier should be a
|
|
1508
1508
|
* URI or compact URI, but this is not necessarily enforced. Invalid
|
|
@@ -1521,7 +1521,7 @@ export interface Resource {
|
|
|
1521
1521
|
* @param property_uri A string identifying the property to modify
|
|
1522
1522
|
* @param value The property object
|
|
1523
1523
|
*/
|
|
1524
|
-
set_int(property_uri: string
|
|
1524
|
+
set_int(property_uri: string, value: number): void
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Sets a numeric property with 64-bit integer precision. Replaces any previous value.
|
|
1527
1527
|
*
|
|
@@ -1529,7 +1529,7 @@ export interface Resource {
|
|
|
1529
1529
|
* @param property_uri a string identifying the property to modify
|
|
1530
1530
|
* @param value the property object
|
|
1531
1531
|
*/
|
|
1532
|
-
set_int64(property_uri: string
|
|
1532
|
+
set_int64(property_uri: string, value: number): void
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1535
1535
|
*
|
|
@@ -1543,7 +1543,7 @@ export interface Resource {
|
|
|
1543
1543
|
* @param property_uri a string identifying the property to modify
|
|
1544
1544
|
* @param resource the property object
|
|
1545
1545
|
*/
|
|
1546
|
-
set_relation(property_uri: string
|
|
1546
|
+
set_relation(property_uri: string, resource: Resource): void
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Sets a string property. Replaces any previous value.
|
|
1549
1549
|
*
|
|
@@ -1551,7 +1551,7 @@ export interface Resource {
|
|
|
1551
1551
|
* @param property_uri a string identifying the property to modify
|
|
1552
1552
|
* @param value the property object
|
|
1553
1553
|
*/
|
|
1554
|
-
set_string(property_uri: string
|
|
1554
|
+
set_string(property_uri: string, value: string): void
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1557
1557
|
* Takes ownership on the given `resource`.
|
|
@@ -1566,7 +1566,7 @@ export interface Resource {
|
|
|
1566
1566
|
* @param property_uri a string identifying the property to modify
|
|
1567
1567
|
* @param resource the property object
|
|
1568
1568
|
*/
|
|
1569
|
-
set_take_relation(property_uri: string
|
|
1569
|
+
set_take_relation(property_uri: string, resource: Resource): void
|
|
1570
1570
|
/**
|
|
1571
1571
|
* Sets a resource property as an URI string. Replaces any previous value.
|
|
1572
1572
|
*
|
|
@@ -1579,7 +1579,7 @@ export interface Resource {
|
|
|
1579
1579
|
* @param property_uri a string identifying the property to modify
|
|
1580
1580
|
* @param value the property object
|
|
1581
1581
|
*/
|
|
1582
|
-
set_uri(property_uri: string
|
|
1582
|
+
set_uri(property_uri: string, value: string): void
|
|
1583
1583
|
|
|
1584
1584
|
// Class property signals of Tracker-3.0.Tracker.Resource
|
|
1585
1585
|
|
|
@@ -1750,7 +1750,7 @@ export interface SparqlConnection {
|
|
|
1750
1750
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1751
1751
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1752
1752
|
*/
|
|
1753
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1753
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1754
1754
|
|
|
1755
1755
|
// Overloads of deserialize_async
|
|
1756
1756
|
|
|
@@ -1776,7 +1776,7 @@ export interface SparqlConnection {
|
|
|
1776
1776
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1777
1777
|
* @returns A Promise of: %TRUE if all data was inserted successfully.
|
|
1778
1778
|
*/
|
|
1779
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1779
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.deserialize_async].
|
|
1782
1782
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1800,7 +1800,7 @@ export interface SparqlConnection {
|
|
|
1800
1800
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1801
1801
|
* @returns A prepared statement
|
|
1802
1802
|
*/
|
|
1803
|
-
load_statement_from_gresource(resource_path: string
|
|
1803
|
+
load_statement_from_gresource(resource_path: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Maps a `TrackerSparqlConnection` onto another through a `private:`handle_name`` URI.
|
|
1806
1806
|
*
|
|
@@ -1830,7 +1830,7 @@ export interface SparqlConnection {
|
|
|
1830
1830
|
* @param handle_name Handle name for `service_connection`
|
|
1831
1831
|
* @param service_connection a `TrackerSparqlConnection` to use from `connection`
|
|
1832
1832
|
*/
|
|
1833
|
-
map_connection(handle_name: string
|
|
1833
|
+
map_connection(handle_name: string, service_connection: SparqlConnection): void
|
|
1834
1834
|
/**
|
|
1835
1835
|
* Executes a SPARQL query on `connection`.
|
|
1836
1836
|
*
|
|
@@ -1848,7 +1848,7 @@ export interface SparqlConnection {
|
|
|
1848
1848
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1849
1849
|
* @returns a [class@Tracker.SparqlCursor] with the results.
|
|
1850
1850
|
*/
|
|
1851
|
-
query(sparql: string
|
|
1851
|
+
query(sparql: string, cancellable: Gio.Cancellable | null): SparqlCursor
|
|
1852
1852
|
/**
|
|
1853
1853
|
* Executes asynchronously a SPARQL query on `connection`
|
|
1854
1854
|
*
|
|
@@ -1862,7 +1862,7 @@ export interface SparqlConnection {
|
|
|
1862
1862
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1863
1863
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1864
1864
|
*/
|
|
1865
|
-
query_async(sparql: string
|
|
1865
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1866
1866
|
|
|
1867
1867
|
// Overloads of query_async
|
|
1868
1868
|
|
|
@@ -1881,7 +1881,7 @@ export interface SparqlConnection {
|
|
|
1881
1881
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1882
1882
|
* @returns A Promise of: a [class@Tracker.SparqlCursor] with the results.
|
|
1883
1883
|
*/
|
|
1884
|
-
query_async(sparql: string
|
|
1884
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<SparqlCursor>
|
|
1885
1885
|
/**
|
|
1886
1886
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.query_async].
|
|
1887
1887
|
* @param res A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1898,7 +1898,7 @@ export interface SparqlConnection {
|
|
|
1898
1898
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1899
1899
|
* @returns A prepared statement
|
|
1900
1900
|
*/
|
|
1901
|
-
query_statement(sparql: string
|
|
1901
|
+
query_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the specified RDF format.
|
|
1904
1904
|
*
|
|
@@ -1916,7 +1916,7 @@ export interface SparqlConnection {
|
|
|
1916
1916
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1917
1917
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1918
1918
|
*/
|
|
1919
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1919
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1920
1920
|
|
|
1921
1921
|
// Overloads of serialize_async
|
|
1922
1922
|
|
|
@@ -1939,7 +1939,7 @@ export interface SparqlConnection {
|
|
|
1939
1939
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1940
1940
|
* @returns A Promise of: A [class@Gio.InputStream] to read RDF content.
|
|
1941
1941
|
*/
|
|
1942
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1942
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
|
|
1943
1943
|
/**
|
|
1944
1944
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.serialize_async].
|
|
1945
1945
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1967,7 +1967,7 @@ export interface SparqlConnection {
|
|
|
1967
1967
|
* @param sparql String containing the SPARQL update query
|
|
1968
1968
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1969
1969
|
*/
|
|
1970
|
-
update(sparql: string
|
|
1970
|
+
update(sparql: string, cancellable: Gio.Cancellable | null): void
|
|
1971
1971
|
/**
|
|
1972
1972
|
* Executes asynchronously an array of SPARQL updates. All updates in the
|
|
1973
1973
|
* array are handled within a single transaction.
|
|
@@ -2031,7 +2031,7 @@ export interface SparqlConnection {
|
|
|
2031
2031
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2032
2032
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2033
2033
|
*/
|
|
2034
|
-
update_async(sparql: string
|
|
2034
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2035
2035
|
|
|
2036
2036
|
// Overloads of update_async
|
|
2037
2037
|
|
|
@@ -2055,7 +2055,7 @@ export interface SparqlConnection {
|
|
|
2055
2055
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2056
2056
|
* @returns A Promise of the result of {@link update_async}
|
|
2057
2057
|
*/
|
|
2058
|
-
update_async(sparql: string
|
|
2058
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<void>
|
|
2059
2059
|
/**
|
|
2060
2060
|
* Executes a SPARQL update and returns the names of the generated blank nodes.
|
|
2061
2061
|
*
|
|
@@ -2077,7 +2077,7 @@ export interface SparqlConnection {
|
|
|
2077
2077
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2078
2078
|
* @returns a [type@GLib.Variant] with the generated URNs.
|
|
2079
2079
|
*/
|
|
2080
|
-
update_blank(sparql: string
|
|
2080
|
+
update_blank(sparql: string, cancellable: Gio.Cancellable | null): GLib.Variant
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Executes asynchronously a SPARQL update and returns the names of the generated blank nodes.
|
|
2083
2083
|
*
|
|
@@ -2087,7 +2087,7 @@ export interface SparqlConnection {
|
|
|
2087
2087
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2088
2088
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2089
2089
|
*/
|
|
2090
|
-
update_blank_async(sparql: string
|
|
2090
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2091
2091
|
|
|
2092
2092
|
// Overloads of update_blank_async
|
|
2093
2093
|
|
|
@@ -2102,7 +2102,7 @@ export interface SparqlConnection {
|
|
|
2102
2102
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2103
2103
|
* @returns A Promise of: a [type@GLib.Variant] with the generated URNs.
|
|
2104
2104
|
*/
|
|
2105
|
-
update_blank_async(sparql: string
|
|
2105
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Variant>
|
|
2106
2106
|
/**
|
|
2107
2107
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.update_blank_async].
|
|
2108
2108
|
*
|
|
@@ -2178,7 +2178,7 @@ export interface SparqlConnection {
|
|
|
2178
2178
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2179
2179
|
* @returns A prepared statement
|
|
2180
2180
|
*/
|
|
2181
|
-
update_statement(sparql: string
|
|
2181
|
+
update_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
2182
2182
|
|
|
2183
2183
|
// Class property signals of Tracker-3.0.Tracker.SparqlConnection
|
|
2184
2184
|
|
|
@@ -2269,7 +2269,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
2269
2269
|
* @param dbus_connection The [type`Gio`.DBusConnection] to use, or %NULL to use the session bus
|
|
2270
2270
|
* @returns a new `TrackerSparqlConnection`.
|
|
2271
2271
|
*/
|
|
2272
|
-
static bus_new(service_name: string
|
|
2272
|
+
static bus_new(service_name: string, object_path: string | null, dbus_connection: Gio.DBusConnection | null): SparqlConnection
|
|
2273
2273
|
/**
|
|
2274
2274
|
* Finishes the operation started with [func`Tracker`.SparqlConnection.bus_new_async].
|
|
2275
2275
|
* @constructor
|
|
@@ -2376,7 +2376,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
2376
2376
|
* @param uri_base Base URI of the remote connection
|
|
2377
2377
|
* @returns a new remote `TrackerSparqlConnection`.
|
|
2378
2378
|
*/
|
|
2379
|
-
static remote_new(uri_base: string
|
|
2379
|
+
static remote_new(uri_base: string): SparqlConnection
|
|
2380
2380
|
_init(config?: SparqlConnection.ConstructorProperties): void
|
|
2381
2381
|
/**
|
|
2382
2382
|
* Creates or opens a process-local database asynchronously.
|
|
@@ -2398,7 +2398,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
2398
2398
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2399
2399
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2400
2400
|
*/
|
|
2401
|
-
static bus_new_async(service_name: string
|
|
2401
|
+
static bus_new_async(service_name: string, object_path: string | null, dbus_connection: Gio.DBusConnection | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
2402
2402
|
}
|
|
2403
2403
|
|
|
2404
2404
|
export module SparqlCursor {
|
|
@@ -2691,31 +2691,31 @@ export interface SparqlStatement {
|
|
|
2691
2691
|
* @param name variable name
|
|
2692
2692
|
* @param value value
|
|
2693
2693
|
*/
|
|
2694
|
-
bind_boolean(name: string
|
|
2694
|
+
bind_boolean(name: string, value: boolean): void
|
|
2695
2695
|
/**
|
|
2696
2696
|
* Binds the [type`GLib`.DateTime] `value` to the parameterized variable given by `name`.
|
|
2697
2697
|
* @param name variable name
|
|
2698
2698
|
* @param value value
|
|
2699
2699
|
*/
|
|
2700
|
-
bind_datetime(name: string
|
|
2700
|
+
bind_datetime(name: string, value: GLib.DateTime): void
|
|
2701
2701
|
/**
|
|
2702
2702
|
* Binds the double `value` to the parameterized variable given by `name`.
|
|
2703
2703
|
* @param name variable name
|
|
2704
2704
|
* @param value value
|
|
2705
2705
|
*/
|
|
2706
|
-
bind_double(name: string
|
|
2706
|
+
bind_double(name: string, value: number): void
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Binds the integer `value` to the parameterized variable given by `name`.
|
|
2709
2709
|
* @param name variable name
|
|
2710
2710
|
* @param value value
|
|
2711
2711
|
*/
|
|
2712
|
-
bind_int(name: string
|
|
2712
|
+
bind_int(name: string, value: number): void
|
|
2713
2713
|
/**
|
|
2714
2714
|
* Binds the string `value` to the parameterized variable given by `name`.
|
|
2715
2715
|
* @param name variable name
|
|
2716
2716
|
* @param value value
|
|
2717
2717
|
*/
|
|
2718
|
-
bind_string(name: string
|
|
2718
|
+
bind_string(name: string, value: string): void
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Clears all bindings.
|
|
2721
2721
|
*/
|
|
@@ -2792,7 +2792,7 @@ export interface SparqlStatement {
|
|
|
2792
2792
|
* Returns the SPARQL string that this prepared statement holds.
|
|
2793
2793
|
* @returns The contained SPARQL query
|
|
2794
2794
|
*/
|
|
2795
|
-
get_sparql(): string
|
|
2795
|
+
get_sparql(): string
|
|
2796
2796
|
/**
|
|
2797
2797
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the given RDF `format`.
|
|
2798
2798
|
*
|
|
@@ -3024,7 +3024,7 @@ export interface NotifierEvent {
|
|
|
3024
3024
|
* notified upon, typically of the form `urn:uuid:...`.
|
|
3025
3025
|
* @returns The element URN
|
|
3026
3026
|
*/
|
|
3027
|
-
get_urn(): string
|
|
3027
|
+
get_urn(): string
|
|
3028
3028
|
}
|
|
3029
3029
|
|
|
3030
3030
|
/**
|
package/tracker-3.0.d.ts
CHANGED
|
@@ -244,59 +244,59 @@ const MINOR_VERSION: number
|
|
|
244
244
|
/**
|
|
245
245
|
* The Prefix of the DC (Dublin Core) namespace
|
|
246
246
|
*/
|
|
247
|
-
const PREFIX_DC: string
|
|
247
|
+
const PREFIX_DC: string
|
|
248
248
|
/**
|
|
249
249
|
* The Prefix of the MFO namespace
|
|
250
250
|
*/
|
|
251
|
-
const PREFIX_MFO: string
|
|
251
|
+
const PREFIX_MFO: string
|
|
252
252
|
/**
|
|
253
253
|
* The Prefix of the NAO namespace
|
|
254
254
|
*/
|
|
255
|
-
const PREFIX_NAO: string
|
|
255
|
+
const PREFIX_NAO: string
|
|
256
256
|
/**
|
|
257
257
|
* The Prefix of the NCO namespace
|
|
258
258
|
*/
|
|
259
|
-
const PREFIX_NCO: string
|
|
259
|
+
const PREFIX_NCO: string
|
|
260
260
|
/**
|
|
261
261
|
* The Prefix of the NFO namespace
|
|
262
262
|
*/
|
|
263
|
-
const PREFIX_NFO: string
|
|
263
|
+
const PREFIX_NFO: string
|
|
264
264
|
/**
|
|
265
265
|
* The Prefix of the NIE namespace
|
|
266
266
|
*/
|
|
267
|
-
const PREFIX_NIE: string
|
|
267
|
+
const PREFIX_NIE: string
|
|
268
268
|
/**
|
|
269
269
|
* The Prefix of the RDF namespace
|
|
270
270
|
*/
|
|
271
|
-
const PREFIX_NMM: string
|
|
271
|
+
const PREFIX_NMM: string
|
|
272
272
|
/**
|
|
273
273
|
* The Prefix of the NRL namespace
|
|
274
274
|
*/
|
|
275
|
-
const PREFIX_NRL: string
|
|
275
|
+
const PREFIX_NRL: string
|
|
276
276
|
/**
|
|
277
277
|
* The Prefix of the Osinfo namespace
|
|
278
278
|
*/
|
|
279
|
-
const PREFIX_OSINFO: string
|
|
279
|
+
const PREFIX_OSINFO: string
|
|
280
280
|
/**
|
|
281
281
|
* The Prefix of the RDF namespace
|
|
282
282
|
*/
|
|
283
|
-
const PREFIX_RDF: string
|
|
283
|
+
const PREFIX_RDF: string
|
|
284
284
|
/**
|
|
285
285
|
* The Prefix of the RDFS namespace
|
|
286
286
|
*/
|
|
287
|
-
const PREFIX_RDFS: string
|
|
287
|
+
const PREFIX_RDFS: string
|
|
288
288
|
/**
|
|
289
289
|
* The Prefix of the SLO namespace
|
|
290
290
|
*/
|
|
291
|
-
const PREFIX_SLO: string
|
|
291
|
+
const PREFIX_SLO: string
|
|
292
292
|
/**
|
|
293
293
|
* The Prefix of the Tracker namespace
|
|
294
294
|
*/
|
|
295
|
-
const PREFIX_TRACKER: string
|
|
295
|
+
const PREFIX_TRACKER: string
|
|
296
296
|
/**
|
|
297
297
|
* The Prefix of the XSD namespace
|
|
298
298
|
*/
|
|
299
|
-
const PREFIX_XSD: string
|
|
299
|
+
const PREFIX_XSD: string
|
|
300
300
|
/**
|
|
301
301
|
* Checks that the Tracker library in use is compatible with the given version.
|
|
302
302
|
*
|
|
@@ -318,7 +318,7 @@ const PREFIX_XSD: string | null
|
|
|
318
318
|
* @param required_micro the required micro version.
|
|
319
319
|
* @returns %NULL if the Tracker library is compatible with the given version, or a string describing the version mismatch.
|
|
320
320
|
*/
|
|
321
|
-
function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
321
|
+
function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
322
322
|
function sparql_error_quark(): GLib.Quark
|
|
323
323
|
/**
|
|
324
324
|
* Escapes `literal` so it is suitable for insertion in
|
|
@@ -330,13 +330,13 @@ function sparql_error_quark(): GLib.Quark
|
|
|
330
330
|
* @param literal a string to escape
|
|
331
331
|
* @returns the escaped string
|
|
332
332
|
*/
|
|
333
|
-
function sparql_escape_string(literal: string
|
|
333
|
+
function sparql_escape_string(literal: string): string | null
|
|
334
334
|
/**
|
|
335
335
|
* Escapes a string for use as a URI.
|
|
336
336
|
* @param uri a string to be escaped, following the tracker sparql rules
|
|
337
337
|
* @returns a newly-allocated string holding the result.
|
|
338
338
|
*/
|
|
339
|
-
function sparql_escape_uri(uri: string
|
|
339
|
+
function sparql_escape_uri(uri: string): string | null
|
|
340
340
|
/**
|
|
341
341
|
* Returns a path to the built-in Nepomuk ontologies.
|
|
342
342
|
* @returns a #GFile instance.
|
|
@@ -393,7 +393,7 @@ interface Batch {
|
|
|
393
393
|
* @param default_graph Default graph that will receive the RDF data
|
|
394
394
|
* @param stream Input stream with RDF data
|
|
395
395
|
*/
|
|
396
|
-
add_rdf(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
396
|
+
add_rdf(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream): void
|
|
397
397
|
/**
|
|
398
398
|
* Adds the RDF represented by `resource` to `batch`.
|
|
399
399
|
* @param graph RDF graph to insert the resource to
|
|
@@ -404,7 +404,7 @@ interface Batch {
|
|
|
404
404
|
* Adds an SPARQL update string to `batch`.
|
|
405
405
|
* @param sparql A SPARQL update string
|
|
406
406
|
*/
|
|
407
|
-
add_sparql(sparql: string
|
|
407
|
+
add_sparql(sparql: string): void
|
|
408
408
|
/**
|
|
409
409
|
* Adds a [class`Tracker`.SparqlStatement] containing an SPARQL update. The statement will
|
|
410
410
|
* be executed once in the batch, with the values bound as specified by `variable_names`
|
|
@@ -934,7 +934,7 @@ interface NamespaceManager {
|
|
|
934
934
|
* @param prefix a short, unique prefix to identify `namespace`
|
|
935
935
|
* @param ns the URL of the given namespace
|
|
936
936
|
*/
|
|
937
|
-
add_prefix(prefix: string
|
|
937
|
+
add_prefix(prefix: string, ns: string): void
|
|
938
938
|
/**
|
|
939
939
|
* If `uri` begins with one of the namespaces known to this
|
|
940
940
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -942,7 +942,7 @@ interface NamespaceManager {
|
|
|
942
942
|
* @param uri a URI or compact URI
|
|
943
943
|
* @returns (nullable): the compressed URI
|
|
944
944
|
*/
|
|
945
|
-
compress_uri(uri: string
|
|
945
|
+
compress_uri(uri: string): string | null
|
|
946
946
|
/**
|
|
947
947
|
* If `compact_uri` begins with one of the prefixes known to this
|
|
948
948
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -950,7 +950,7 @@ interface NamespaceManager {
|
|
|
950
950
|
* @param compact_uri a URI or compact URI
|
|
951
951
|
* @returns The possibly expanded URI in a newly-allocated string.
|
|
952
952
|
*/
|
|
953
|
-
expand_uri(compact_uri: string
|
|
953
|
+
expand_uri(compact_uri: string): string | null
|
|
954
954
|
/**
|
|
955
955
|
* Calls `func` for each known prefix / URI pair.
|
|
956
956
|
* @param func the function to call for each prefix / URI pair
|
|
@@ -961,14 +961,14 @@ interface NamespaceManager {
|
|
|
961
961
|
* @param prefix a string
|
|
962
962
|
* @returns %TRUE if the `TrackerNamespaceManager` knows about @prefix, %FALSE otherwise
|
|
963
963
|
*/
|
|
964
|
-
has_prefix(prefix: string
|
|
964
|
+
has_prefix(prefix: string): boolean
|
|
965
965
|
/**
|
|
966
966
|
* Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
|
|
967
967
|
* is not known.
|
|
968
968
|
* @param prefix a string
|
|
969
969
|
* @returns a string owned by the `TrackerNamespaceManager`, or %NULL
|
|
970
970
|
*/
|
|
971
|
-
lookup_prefix(prefix: string
|
|
971
|
+
lookup_prefix(prefix: string): string | null
|
|
972
972
|
/**
|
|
973
973
|
* Writes out all namespaces as ``prefix`` statements in
|
|
974
974
|
* the [Turtle](https://www.w3.org/TR/turtle/) RDF format.
|
|
@@ -1093,7 +1093,7 @@ interface Notifier {
|
|
|
1093
1093
|
* @param graph Graph to listen events for, or %NULL
|
|
1094
1094
|
* @returns An ID for this subscription
|
|
1095
1095
|
*/
|
|
1096
|
-
signal_subscribe(connection: Gio.DBusConnection, service: string
|
|
1096
|
+
signal_subscribe(connection: Gio.DBusConnection, service: string, object_path: string | null, graph: string | null): number
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Undoes a signal subscription done through [method`Tracker`.Notifier.signal_subscribe].
|
|
1099
1099
|
*
|
|
@@ -1209,7 +1209,7 @@ interface Resource {
|
|
|
1209
1209
|
* @param property_uri A string identifying the property to modify
|
|
1210
1210
|
* @param value The property boolean value
|
|
1211
1211
|
*/
|
|
1212
|
-
add_boolean(property_uri: string
|
|
1212
|
+
add_boolean(property_uri: string, value: boolean): void
|
|
1213
1213
|
/**
|
|
1214
1214
|
* Adds a date property as a [type`GLib`.DateTime]. Previous values for the
|
|
1215
1215
|
* same property are kept.
|
|
@@ -1222,7 +1222,7 @@ interface Resource {
|
|
|
1222
1222
|
* @param property_uri a string identifying the property to modify
|
|
1223
1223
|
* @param value the property object
|
|
1224
1224
|
*/
|
|
1225
|
-
add_datetime(property_uri: string
|
|
1225
|
+
add_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Adds a numeric property with double precision. Previous values for the same property are kept.
|
|
1228
1228
|
*
|
|
@@ -1233,7 +1233,7 @@ interface Resource {
|
|
|
1233
1233
|
* @param property_uri a string identifying the property to modify
|
|
1234
1234
|
* @param value the property object
|
|
1235
1235
|
*/
|
|
1236
|
-
add_double(property_uri: string
|
|
1236
|
+
add_double(property_uri: string, value: number): void
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Add `value` to the list of values for given property.
|
|
1239
1239
|
*
|
|
@@ -1243,7 +1243,7 @@ interface Resource {
|
|
|
1243
1243
|
* @param property_uri a string identifying the property to set
|
|
1244
1244
|
* @param value an initialised [struct`GObject`.Value]
|
|
1245
1245
|
*/
|
|
1246
|
-
add_gvalue(property_uri: string
|
|
1246
|
+
add_gvalue(property_uri: string, value: any): void
|
|
1247
1247
|
/**
|
|
1248
1248
|
* Adds a numeric property with integer precision. Previous values for the same property are kept.
|
|
1249
1249
|
*
|
|
@@ -1254,7 +1254,7 @@ interface Resource {
|
|
|
1254
1254
|
* @param property_uri a string identifying the property to modify
|
|
1255
1255
|
* @param value the property object
|
|
1256
1256
|
*/
|
|
1257
|
-
add_int(property_uri: string
|
|
1257
|
+
add_int(property_uri: string, value: number): void
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Adds a numeric property with 64-bit integer precision. Previous values for the same property are kept.
|
|
1260
1260
|
*
|
|
@@ -1265,7 +1265,7 @@ interface Resource {
|
|
|
1265
1265
|
* @param property_uri a string identifying the property to modify
|
|
1266
1266
|
* @param value the property object
|
|
1267
1267
|
*/
|
|
1268
|
-
add_int64(property_uri: string
|
|
1268
|
+
add_int64(property_uri: string, value: number): void
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1271
1271
|
*
|
|
@@ -1282,7 +1282,7 @@ interface Resource {
|
|
|
1282
1282
|
* @param property_uri a string identifying the property to modify
|
|
1283
1283
|
* @param resource the property object
|
|
1284
1284
|
*/
|
|
1285
|
-
add_relation(property_uri: string
|
|
1285
|
+
add_relation(property_uri: string, resource: Resource): void
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Adds a string property. Previous values for the same property are kept.
|
|
1288
1288
|
*
|
|
@@ -1293,7 +1293,7 @@ interface Resource {
|
|
|
1293
1293
|
* @param property_uri a string identifying the property to modify
|
|
1294
1294
|
* @param value the property object
|
|
1295
1295
|
*/
|
|
1296
|
-
add_string(property_uri: string
|
|
1296
|
+
add_string(property_uri: string, value: string): void
|
|
1297
1297
|
/**
|
|
1298
1298
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1299
1299
|
* Takes ownership on the given `resource`.
|
|
@@ -1311,7 +1311,7 @@ interface Resource {
|
|
|
1311
1311
|
* @param property_uri a string identifying the property to modify
|
|
1312
1312
|
* @param resource the property object
|
|
1313
1313
|
*/
|
|
1314
|
-
add_take_relation(property_uri: string
|
|
1314
|
+
add_take_relation(property_uri: string, resource: Resource): void
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Adds a resource property as an URI string. Previous values for the same property are kept.
|
|
1317
1317
|
*
|
|
@@ -1327,55 +1327,55 @@ interface Resource {
|
|
|
1327
1327
|
* @param property_uri a string identifying the property to modify
|
|
1328
1328
|
* @param value the property object
|
|
1329
1329
|
*/
|
|
1330
|
-
add_uri(property_uri: string
|
|
1330
|
+
add_uri(property_uri: string, value: string): void
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Returns the first boolean object previously assigned to a property.
|
|
1333
1333
|
* @param property_uri a string identifying the property to look up
|
|
1334
1334
|
* @returns the first boolean object
|
|
1335
1335
|
*/
|
|
1336
|
-
get_first_boolean(property_uri: string
|
|
1336
|
+
get_first_boolean(property_uri: string): boolean
|
|
1337
1337
|
/**
|
|
1338
1338
|
* Returns the first [type`GLib`.DateTime] previously assigned to a property.
|
|
1339
1339
|
* @param property_uri a string identifying the property to look up
|
|
1340
1340
|
* @returns the first GDateTime object
|
|
1341
1341
|
*/
|
|
1342
|
-
get_first_datetime(property_uri: string
|
|
1342
|
+
get_first_datetime(property_uri: string): GLib.DateTime | null
|
|
1343
1343
|
/**
|
|
1344
1344
|
* Returns the first double object previously assigned to a property.
|
|
1345
1345
|
* @param property_uri a string identifying the property to look up
|
|
1346
1346
|
* @returns the first double object
|
|
1347
1347
|
*/
|
|
1348
|
-
get_first_double(property_uri: string
|
|
1348
|
+
get_first_double(property_uri: string): number
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Returns the first integer object previously assigned to a property.
|
|
1351
1351
|
* @param property_uri a string identifying the property to look up
|
|
1352
1352
|
* @returns the first integer object
|
|
1353
1353
|
*/
|
|
1354
|
-
get_first_int(property_uri: string
|
|
1354
|
+
get_first_int(property_uri: string): number
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Returns the first integer object previously assigned to a property.
|
|
1357
1357
|
* @param property_uri a string identifying the property to look up
|
|
1358
1358
|
* @returns the first integer object
|
|
1359
1359
|
*/
|
|
1360
|
-
get_first_int64(property_uri: string
|
|
1360
|
+
get_first_int64(property_uri: string): number
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Returns the first resource object previously assigned to a property.
|
|
1363
1363
|
* @param property_uri a string identifying the property to look up
|
|
1364
1364
|
* @returns the first resource object
|
|
1365
1365
|
*/
|
|
1366
|
-
get_first_relation(property_uri: string
|
|
1366
|
+
get_first_relation(property_uri: string): Resource | null
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Returns the first string object previously assigned to a property.
|
|
1369
1369
|
* @param property_uri a string identifying the property to look up
|
|
1370
1370
|
* @returns the first string object
|
|
1371
1371
|
*/
|
|
1372
|
-
get_first_string(property_uri: string
|
|
1372
|
+
get_first_string(property_uri: string): string | null
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Returns the first resource object previously assigned to a property.
|
|
1375
1375
|
* @param property_uri a string identifying the property to look up
|
|
1376
1376
|
* @returns the first resource object as an URI.
|
|
1377
1377
|
*/
|
|
1378
|
-
get_first_uri(property_uri: string
|
|
1378
|
+
get_first_uri(property_uri: string): string | null
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Returns the identifier of a resource.
|
|
1381
1381
|
*
|
|
@@ -1395,20 +1395,20 @@ interface Resource {
|
|
|
1395
1395
|
* @param property_uri a string identifying the property to query
|
|
1396
1396
|
* @returns #TRUE if the property would be overwritten
|
|
1397
1397
|
*/
|
|
1398
|
-
get_property_overwrite(property_uri: string
|
|
1398
|
+
get_property_overwrite(property_uri: string): boolean
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Returns the list of all known values of the given property.
|
|
1401
1401
|
* @param property_uri a string identifying the property to look up
|
|
1402
1402
|
* @returns a [struct@GLib.List] of [struct@GObject.Value] instances. The list should be freed with [func@GLib.List.free]
|
|
1403
1403
|
*/
|
|
1404
|
-
get_values(property_uri: string
|
|
1404
|
+
get_values(property_uri: string): any[] | null
|
|
1405
1405
|
/**
|
|
1406
1406
|
* A helper function that compares a `TrackerResource` by its identifier
|
|
1407
1407
|
* string.
|
|
1408
1408
|
* @param identifier a string identifying the resource
|
|
1409
1409
|
* @returns an integer less than, equal to, or greater than zero, if the resource identifier is <, == or > than @identifier
|
|
1410
1410
|
*/
|
|
1411
|
-
identifier_compare_func(identifier: string
|
|
1411
|
+
identifier_compare_func(identifier: string): number
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Serialize all the information in `resource` as a JSON-LD document.
|
|
1414
1414
|
*
|
|
@@ -1473,7 +1473,7 @@ interface Resource {
|
|
|
1473
1473
|
* @param property_uri A string identifying the property to modify
|
|
1474
1474
|
* @param value The property boolean value
|
|
1475
1475
|
*/
|
|
1476
|
-
set_boolean(property_uri: string
|
|
1476
|
+
set_boolean(property_uri: string, value: boolean): void
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Sets a date property as a [type`GLib`.DateTime]. Replaces any previous value.
|
|
1479
1479
|
*
|
|
@@ -1482,7 +1482,7 @@ interface Resource {
|
|
|
1482
1482
|
* @param property_uri a string identifying the property to modify
|
|
1483
1483
|
* @param value the property object
|
|
1484
1484
|
*/
|
|
1485
|
-
set_datetime(property_uri: string
|
|
1485
|
+
set_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Sets a numeric property with double precision. Replaces any previous value.
|
|
1488
1488
|
*
|
|
@@ -1490,7 +1490,7 @@ interface Resource {
|
|
|
1490
1490
|
* @param property_uri A string identifying the property to modify
|
|
1491
1491
|
* @param value The property object
|
|
1492
1492
|
*/
|
|
1493
|
-
set_double(property_uri: string
|
|
1493
|
+
set_double(property_uri: string, value: number): void
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Replace any previously existing value for `property_uri` with `value`.
|
|
1496
1496
|
*
|
|
@@ -1504,7 +1504,7 @@ interface Resource {
|
|
|
1504
1504
|
* @param property_uri a string identifying the property to set
|
|
1505
1505
|
* @param value an initialised [struct`GObject`.Value]
|
|
1506
1506
|
*/
|
|
1507
|
-
set_gvalue(property_uri: string
|
|
1507
|
+
set_gvalue(property_uri: string, value: any): void
|
|
1508
1508
|
/**
|
|
1509
1509
|
* Changes the identifier of a `TrackerResource`. The identifier should be a
|
|
1510
1510
|
* URI or compact URI, but this is not necessarily enforced. Invalid
|
|
@@ -1523,7 +1523,7 @@ interface Resource {
|
|
|
1523
1523
|
* @param property_uri A string identifying the property to modify
|
|
1524
1524
|
* @param value The property object
|
|
1525
1525
|
*/
|
|
1526
|
-
set_int(property_uri: string
|
|
1526
|
+
set_int(property_uri: string, value: number): void
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Sets a numeric property with 64-bit integer precision. Replaces any previous value.
|
|
1529
1529
|
*
|
|
@@ -1531,7 +1531,7 @@ interface Resource {
|
|
|
1531
1531
|
* @param property_uri a string identifying the property to modify
|
|
1532
1532
|
* @param value the property object
|
|
1533
1533
|
*/
|
|
1534
|
-
set_int64(property_uri: string
|
|
1534
|
+
set_int64(property_uri: string, value: number): void
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1537
1537
|
*
|
|
@@ -1545,7 +1545,7 @@ interface Resource {
|
|
|
1545
1545
|
* @param property_uri a string identifying the property to modify
|
|
1546
1546
|
* @param resource the property object
|
|
1547
1547
|
*/
|
|
1548
|
-
set_relation(property_uri: string
|
|
1548
|
+
set_relation(property_uri: string, resource: Resource): void
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Sets a string property. Replaces any previous value.
|
|
1551
1551
|
*
|
|
@@ -1553,7 +1553,7 @@ interface Resource {
|
|
|
1553
1553
|
* @param property_uri a string identifying the property to modify
|
|
1554
1554
|
* @param value the property object
|
|
1555
1555
|
*/
|
|
1556
|
-
set_string(property_uri: string
|
|
1556
|
+
set_string(property_uri: string, value: string): void
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1559
1559
|
* Takes ownership on the given `resource`.
|
|
@@ -1568,7 +1568,7 @@ interface Resource {
|
|
|
1568
1568
|
* @param property_uri a string identifying the property to modify
|
|
1569
1569
|
* @param resource the property object
|
|
1570
1570
|
*/
|
|
1571
|
-
set_take_relation(property_uri: string
|
|
1571
|
+
set_take_relation(property_uri: string, resource: Resource): void
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Sets a resource property as an URI string. Replaces any previous value.
|
|
1574
1574
|
*
|
|
@@ -1581,7 +1581,7 @@ interface Resource {
|
|
|
1581
1581
|
* @param property_uri a string identifying the property to modify
|
|
1582
1582
|
* @param value the property object
|
|
1583
1583
|
*/
|
|
1584
|
-
set_uri(property_uri: string
|
|
1584
|
+
set_uri(property_uri: string, value: string): void
|
|
1585
1585
|
|
|
1586
1586
|
// Class property signals of Tracker-3.0.Tracker.Resource
|
|
1587
1587
|
|
|
@@ -1752,7 +1752,7 @@ interface SparqlConnection {
|
|
|
1752
1752
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1753
1753
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1754
1754
|
*/
|
|
1755
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1755
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1756
1756
|
|
|
1757
1757
|
// Overloads of deserialize_async
|
|
1758
1758
|
|
|
@@ -1778,7 +1778,7 @@ interface SparqlConnection {
|
|
|
1778
1778
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1779
1779
|
* @returns A Promise of: %TRUE if all data was inserted successfully.
|
|
1780
1780
|
*/
|
|
1781
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1781
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1782
1782
|
/**
|
|
1783
1783
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.deserialize_async].
|
|
1784
1784
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1802,7 +1802,7 @@ interface SparqlConnection {
|
|
|
1802
1802
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1803
1803
|
* @returns A prepared statement
|
|
1804
1804
|
*/
|
|
1805
|
-
load_statement_from_gresource(resource_path: string
|
|
1805
|
+
load_statement_from_gresource(resource_path: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Maps a `TrackerSparqlConnection` onto another through a `private:`handle_name`` URI.
|
|
1808
1808
|
*
|
|
@@ -1832,7 +1832,7 @@ interface SparqlConnection {
|
|
|
1832
1832
|
* @param handle_name Handle name for `service_connection`
|
|
1833
1833
|
* @param service_connection a `TrackerSparqlConnection` to use from `connection`
|
|
1834
1834
|
*/
|
|
1835
|
-
map_connection(handle_name: string
|
|
1835
|
+
map_connection(handle_name: string, service_connection: SparqlConnection): void
|
|
1836
1836
|
/**
|
|
1837
1837
|
* Executes a SPARQL query on `connection`.
|
|
1838
1838
|
*
|
|
@@ -1850,7 +1850,7 @@ interface SparqlConnection {
|
|
|
1850
1850
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1851
1851
|
* @returns a [class@Tracker.SparqlCursor] with the results.
|
|
1852
1852
|
*/
|
|
1853
|
-
query(sparql: string
|
|
1853
|
+
query(sparql: string, cancellable: Gio.Cancellable | null): SparqlCursor
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Executes asynchronously a SPARQL query on `connection`
|
|
1856
1856
|
*
|
|
@@ -1864,7 +1864,7 @@ interface SparqlConnection {
|
|
|
1864
1864
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1865
1865
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1866
1866
|
*/
|
|
1867
|
-
query_async(sparql: string
|
|
1867
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1868
1868
|
|
|
1869
1869
|
// Overloads of query_async
|
|
1870
1870
|
|
|
@@ -1883,7 +1883,7 @@ interface SparqlConnection {
|
|
|
1883
1883
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1884
1884
|
* @returns A Promise of: a [class@Tracker.SparqlCursor] with the results.
|
|
1885
1885
|
*/
|
|
1886
|
-
query_async(sparql: string
|
|
1886
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<SparqlCursor>
|
|
1887
1887
|
/**
|
|
1888
1888
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.query_async].
|
|
1889
1889
|
* @param res A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1900,7 +1900,7 @@ interface SparqlConnection {
|
|
|
1900
1900
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1901
1901
|
* @returns A prepared statement
|
|
1902
1902
|
*/
|
|
1903
|
-
query_statement(sparql: string
|
|
1903
|
+
query_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the specified RDF format.
|
|
1906
1906
|
*
|
|
@@ -1918,7 +1918,7 @@ interface SparqlConnection {
|
|
|
1918
1918
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1919
1919
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1920
1920
|
*/
|
|
1921
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1921
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1922
1922
|
|
|
1923
1923
|
// Overloads of serialize_async
|
|
1924
1924
|
|
|
@@ -1941,7 +1941,7 @@ interface SparqlConnection {
|
|
|
1941
1941
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1942
1942
|
* @returns A Promise of: A [class@Gio.InputStream] to read RDF content.
|
|
1943
1943
|
*/
|
|
1944
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1944
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
|
|
1945
1945
|
/**
|
|
1946
1946
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.serialize_async].
|
|
1947
1947
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1969,7 +1969,7 @@ interface SparqlConnection {
|
|
|
1969
1969
|
* @param sparql String containing the SPARQL update query
|
|
1970
1970
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1971
1971
|
*/
|
|
1972
|
-
update(sparql: string
|
|
1972
|
+
update(sparql: string, cancellable: Gio.Cancellable | null): void
|
|
1973
1973
|
/**
|
|
1974
1974
|
* Executes asynchronously an array of SPARQL updates. All updates in the
|
|
1975
1975
|
* array are handled within a single transaction.
|
|
@@ -2033,7 +2033,7 @@ interface SparqlConnection {
|
|
|
2033
2033
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2034
2034
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2035
2035
|
*/
|
|
2036
|
-
update_async(sparql: string
|
|
2036
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2037
2037
|
|
|
2038
2038
|
// Overloads of update_async
|
|
2039
2039
|
|
|
@@ -2057,7 +2057,7 @@ interface SparqlConnection {
|
|
|
2057
2057
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2058
2058
|
* @returns A Promise of the result of {@link update_async}
|
|
2059
2059
|
*/
|
|
2060
|
-
update_async(sparql: string
|
|
2060
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<void>
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Executes a SPARQL update and returns the names of the generated blank nodes.
|
|
2063
2063
|
*
|
|
@@ -2079,7 +2079,7 @@ interface SparqlConnection {
|
|
|
2079
2079
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2080
2080
|
* @returns a [type@GLib.Variant] with the generated URNs.
|
|
2081
2081
|
*/
|
|
2082
|
-
update_blank(sparql: string
|
|
2082
|
+
update_blank(sparql: string, cancellable: Gio.Cancellable | null): GLib.Variant
|
|
2083
2083
|
/**
|
|
2084
2084
|
* Executes asynchronously a SPARQL update and returns the names of the generated blank nodes.
|
|
2085
2085
|
*
|
|
@@ -2089,7 +2089,7 @@ interface SparqlConnection {
|
|
|
2089
2089
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2090
2090
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2091
2091
|
*/
|
|
2092
|
-
update_blank_async(sparql: string
|
|
2092
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2093
2093
|
|
|
2094
2094
|
// Overloads of update_blank_async
|
|
2095
2095
|
|
|
@@ -2104,7 +2104,7 @@ interface SparqlConnection {
|
|
|
2104
2104
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2105
2105
|
* @returns A Promise of: a [type@GLib.Variant] with the generated URNs.
|
|
2106
2106
|
*/
|
|
2107
|
-
update_blank_async(sparql: string
|
|
2107
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Variant>
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.update_blank_async].
|
|
2110
2110
|
*
|
|
@@ -2180,7 +2180,7 @@ interface SparqlConnection {
|
|
|
2180
2180
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2181
2181
|
* @returns A prepared statement
|
|
2182
2182
|
*/
|
|
2183
|
-
update_statement(sparql: string
|
|
2183
|
+
update_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
2184
2184
|
|
|
2185
2185
|
// Class property signals of Tracker-3.0.Tracker.SparqlConnection
|
|
2186
2186
|
|
|
@@ -2271,7 +2271,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
2271
2271
|
* @param dbus_connection The [type`Gio`.DBusConnection] to use, or %NULL to use the session bus
|
|
2272
2272
|
* @returns a new `TrackerSparqlConnection`.
|
|
2273
2273
|
*/
|
|
2274
|
-
static bus_new(service_name: string
|
|
2274
|
+
static bus_new(service_name: string, object_path: string | null, dbus_connection: Gio.DBusConnection | null): SparqlConnection
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Finishes the operation started with [func`Tracker`.SparqlConnection.bus_new_async].
|
|
2277
2277
|
* @constructor
|
|
@@ -2378,7 +2378,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
2378
2378
|
* @param uri_base Base URI of the remote connection
|
|
2379
2379
|
* @returns a new remote `TrackerSparqlConnection`.
|
|
2380
2380
|
*/
|
|
2381
|
-
static remote_new(uri_base: string
|
|
2381
|
+
static remote_new(uri_base: string): SparqlConnection
|
|
2382
2382
|
_init(config?: SparqlConnection.ConstructorProperties): void
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Creates or opens a process-local database asynchronously.
|
|
@@ -2400,7 +2400,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
2400
2400
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2401
2401
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2402
2402
|
*/
|
|
2403
|
-
static bus_new_async(service_name: string
|
|
2403
|
+
static bus_new_async(service_name: string, object_path: string | null, dbus_connection: Gio.DBusConnection | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
2404
2404
|
}
|
|
2405
2405
|
|
|
2406
2406
|
module SparqlCursor {
|
|
@@ -2693,31 +2693,31 @@ interface SparqlStatement {
|
|
|
2693
2693
|
* @param name variable name
|
|
2694
2694
|
* @param value value
|
|
2695
2695
|
*/
|
|
2696
|
-
bind_boolean(name: string
|
|
2696
|
+
bind_boolean(name: string, value: boolean): void
|
|
2697
2697
|
/**
|
|
2698
2698
|
* Binds the [type`GLib`.DateTime] `value` to the parameterized variable given by `name`.
|
|
2699
2699
|
* @param name variable name
|
|
2700
2700
|
* @param value value
|
|
2701
2701
|
*/
|
|
2702
|
-
bind_datetime(name: string
|
|
2702
|
+
bind_datetime(name: string, value: GLib.DateTime): void
|
|
2703
2703
|
/**
|
|
2704
2704
|
* Binds the double `value` to the parameterized variable given by `name`.
|
|
2705
2705
|
* @param name variable name
|
|
2706
2706
|
* @param value value
|
|
2707
2707
|
*/
|
|
2708
|
-
bind_double(name: string
|
|
2708
|
+
bind_double(name: string, value: number): void
|
|
2709
2709
|
/**
|
|
2710
2710
|
* Binds the integer `value` to the parameterized variable given by `name`.
|
|
2711
2711
|
* @param name variable name
|
|
2712
2712
|
* @param value value
|
|
2713
2713
|
*/
|
|
2714
|
-
bind_int(name: string
|
|
2714
|
+
bind_int(name: string, value: number): void
|
|
2715
2715
|
/**
|
|
2716
2716
|
* Binds the string `value` to the parameterized variable given by `name`.
|
|
2717
2717
|
* @param name variable name
|
|
2718
2718
|
* @param value value
|
|
2719
2719
|
*/
|
|
2720
|
-
bind_string(name: string
|
|
2720
|
+
bind_string(name: string, value: string): void
|
|
2721
2721
|
/**
|
|
2722
2722
|
* Clears all bindings.
|
|
2723
2723
|
*/
|
|
@@ -2794,7 +2794,7 @@ interface SparqlStatement {
|
|
|
2794
2794
|
* Returns the SPARQL string that this prepared statement holds.
|
|
2795
2795
|
* @returns The contained SPARQL query
|
|
2796
2796
|
*/
|
|
2797
|
-
get_sparql(): string
|
|
2797
|
+
get_sparql(): string
|
|
2798
2798
|
/**
|
|
2799
2799
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the given RDF `format`.
|
|
2800
2800
|
*
|
|
@@ -3026,7 +3026,7 @@ interface NotifierEvent {
|
|
|
3026
3026
|
* notified upon, typically of the form `urn:uuid:...`.
|
|
3027
3027
|
* @returns The element URN
|
|
3028
3028
|
*/
|
|
3029
|
-
get_urn(): string
|
|
3029
|
+
get_urn(): string
|
|
3030
3030
|
}
|
|
3031
3031
|
|
|
3032
3032
|
/**
|