@girs/tracker-3.0 3.6.0-3.2.6 → 3.6.0-3.2.8
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 +14 -8
- package/tracker-3.0-ambient.js +2 -0
- package/tracker-3.0-import.js +3 -0
- package/tracker-3.0.d.cts +83 -127
- package/tracker-3.0.d.ts +83 -127
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`
|
|
@@ -530,10 +530,6 @@ export module Endpoint {
|
|
|
530
530
|
|
|
531
531
|
// Own constructor properties of Tracker-3.0.Tracker.Endpoint
|
|
532
532
|
|
|
533
|
-
/**
|
|
534
|
-
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
535
|
-
*/
|
|
536
|
-
sparql_connection?: SparqlConnection | null
|
|
537
533
|
/**
|
|
538
534
|
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
539
535
|
*/
|
|
@@ -546,10 +542,6 @@ export interface Endpoint {
|
|
|
546
542
|
|
|
547
543
|
// Own properties of Tracker-3.0.Tracker.Endpoint
|
|
548
544
|
|
|
549
|
-
/**
|
|
550
|
-
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
551
|
-
*/
|
|
552
|
-
readonly sparql_connection: SparqlConnection
|
|
553
545
|
/**
|
|
554
546
|
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
555
547
|
*/
|
|
@@ -616,14 +608,6 @@ export module EndpointDBus {
|
|
|
616
608
|
|
|
617
609
|
// Own constructor properties of Tracker-3.0.Tracker.EndpointDBus
|
|
618
610
|
|
|
619
|
-
/**
|
|
620
|
-
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
621
|
-
*/
|
|
622
|
-
dbus_connection?: Gio.DBusConnection | null
|
|
623
|
-
/**
|
|
624
|
-
* The DBus object path that this endpoint manages.
|
|
625
|
-
*/
|
|
626
|
-
object_path?: string | null
|
|
627
611
|
/**
|
|
628
612
|
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
629
613
|
*/
|
|
@@ -640,18 +624,10 @@ export interface EndpointDBus extends Gio.Initable {
|
|
|
640
624
|
|
|
641
625
|
// Own properties of Tracker-3.0.Tracker.EndpointDBus
|
|
642
626
|
|
|
643
|
-
/**
|
|
644
|
-
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
645
|
-
*/
|
|
646
|
-
readonly dbus_connection: Gio.DBusConnection
|
|
647
627
|
/**
|
|
648
628
|
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
649
629
|
*/
|
|
650
630
|
readonly dbusConnection: Gio.DBusConnection
|
|
651
|
-
/**
|
|
652
|
-
* The DBus object path that this endpoint manages.
|
|
653
|
-
*/
|
|
654
|
-
readonly object_path: string | null
|
|
655
631
|
/**
|
|
656
632
|
* The DBus object path that this endpoint manages.
|
|
657
633
|
*/
|
|
@@ -764,14 +740,6 @@ export module EndpointHttp {
|
|
|
764
740
|
|
|
765
741
|
// Own constructor properties of Tracker-3.0.Tracker.EndpointHttp
|
|
766
742
|
|
|
767
|
-
/**
|
|
768
|
-
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
769
|
-
*/
|
|
770
|
-
http_certificate?: Gio.TlsCertificate | null
|
|
771
|
-
/**
|
|
772
|
-
* HTTP port used to listen requests.
|
|
773
|
-
*/
|
|
774
|
-
http_port?: number | null
|
|
775
743
|
/**
|
|
776
744
|
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
777
745
|
*/
|
|
@@ -788,18 +756,10 @@ export interface EndpointHttp extends Gio.Initable {
|
|
|
788
756
|
|
|
789
757
|
// Own properties of Tracker-3.0.Tracker.EndpointHttp
|
|
790
758
|
|
|
791
|
-
/**
|
|
792
|
-
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
793
|
-
*/
|
|
794
|
-
readonly http_certificate: Gio.TlsCertificate
|
|
795
759
|
/**
|
|
796
760
|
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
797
761
|
*/
|
|
798
762
|
readonly httpCertificate: Gio.TlsCertificate
|
|
799
|
-
/**
|
|
800
|
-
* HTTP port used to listen requests.
|
|
801
|
-
*/
|
|
802
|
-
readonly http_port: number
|
|
803
763
|
/**
|
|
804
764
|
* HTTP port used to listen requests.
|
|
805
765
|
*/
|
|
@@ -932,7 +892,7 @@ export interface NamespaceManager {
|
|
|
932
892
|
* @param prefix a short, unique prefix to identify `namespace`
|
|
933
893
|
* @param ns the URL of the given namespace
|
|
934
894
|
*/
|
|
935
|
-
add_prefix(prefix: string
|
|
895
|
+
add_prefix(prefix: string, ns: string): void
|
|
936
896
|
/**
|
|
937
897
|
* If `uri` begins with one of the namespaces known to this
|
|
938
898
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -940,7 +900,7 @@ export interface NamespaceManager {
|
|
|
940
900
|
* @param uri a URI or compact URI
|
|
941
901
|
* @returns (nullable): the compressed URI
|
|
942
902
|
*/
|
|
943
|
-
compress_uri(uri: string
|
|
903
|
+
compress_uri(uri: string): string | null
|
|
944
904
|
/**
|
|
945
905
|
* If `compact_uri` begins with one of the prefixes known to this
|
|
946
906
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -948,7 +908,7 @@ export interface NamespaceManager {
|
|
|
948
908
|
* @param compact_uri a URI or compact URI
|
|
949
909
|
* @returns The possibly expanded URI in a newly-allocated string.
|
|
950
910
|
*/
|
|
951
|
-
expand_uri(compact_uri: string
|
|
911
|
+
expand_uri(compact_uri: string): string | null
|
|
952
912
|
/**
|
|
953
913
|
* Calls `func` for each known prefix / URI pair.
|
|
954
914
|
* @param func the function to call for each prefix / URI pair
|
|
@@ -959,14 +919,14 @@ export interface NamespaceManager {
|
|
|
959
919
|
* @param prefix a string
|
|
960
920
|
* @returns %TRUE if the `TrackerNamespaceManager` knows about @prefix, %FALSE otherwise
|
|
961
921
|
*/
|
|
962
|
-
has_prefix(prefix: string
|
|
922
|
+
has_prefix(prefix: string): boolean
|
|
963
923
|
/**
|
|
964
924
|
* Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
|
|
965
925
|
* is not known.
|
|
966
926
|
* @param prefix a string
|
|
967
927
|
* @returns a string owned by the `TrackerNamespaceManager`, or %NULL
|
|
968
928
|
*/
|
|
969
|
-
lookup_prefix(prefix: string
|
|
929
|
+
lookup_prefix(prefix: string): string | null
|
|
970
930
|
/**
|
|
971
931
|
* Writes out all namespaces as ``prefix`` statements in
|
|
972
932
|
* the [Turtle](https://www.w3.org/TR/turtle/) RDF format.
|
|
@@ -1091,7 +1051,7 @@ export interface Notifier {
|
|
|
1091
1051
|
* @param graph Graph to listen events for, or %NULL
|
|
1092
1052
|
* @returns An ID for this subscription
|
|
1093
1053
|
*/
|
|
1094
|
-
signal_subscribe(connection: Gio.DBusConnection, service: string
|
|
1054
|
+
signal_subscribe(connection: Gio.DBusConnection, service: string, object_path: string | null, graph: string | null): number
|
|
1095
1055
|
/**
|
|
1096
1056
|
* Undoes a signal subscription done through [method`Tracker`.Notifier.signal_subscribe].
|
|
1097
1057
|
*
|
|
@@ -1207,7 +1167,7 @@ export interface Resource {
|
|
|
1207
1167
|
* @param property_uri A string identifying the property to modify
|
|
1208
1168
|
* @param value The property boolean value
|
|
1209
1169
|
*/
|
|
1210
|
-
add_boolean(property_uri: string
|
|
1170
|
+
add_boolean(property_uri: string, value: boolean): void
|
|
1211
1171
|
/**
|
|
1212
1172
|
* Adds a date property as a [type`GLib`.DateTime]. Previous values for the
|
|
1213
1173
|
* same property are kept.
|
|
@@ -1220,7 +1180,7 @@ export interface Resource {
|
|
|
1220
1180
|
* @param property_uri a string identifying the property to modify
|
|
1221
1181
|
* @param value the property object
|
|
1222
1182
|
*/
|
|
1223
|
-
add_datetime(property_uri: string
|
|
1183
|
+
add_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1224
1184
|
/**
|
|
1225
1185
|
* Adds a numeric property with double precision. Previous values for the same property are kept.
|
|
1226
1186
|
*
|
|
@@ -1231,7 +1191,7 @@ export interface Resource {
|
|
|
1231
1191
|
* @param property_uri a string identifying the property to modify
|
|
1232
1192
|
* @param value the property object
|
|
1233
1193
|
*/
|
|
1234
|
-
add_double(property_uri: string
|
|
1194
|
+
add_double(property_uri: string, value: number): void
|
|
1235
1195
|
/**
|
|
1236
1196
|
* Add `value` to the list of values for given property.
|
|
1237
1197
|
*
|
|
@@ -1241,7 +1201,7 @@ export interface Resource {
|
|
|
1241
1201
|
* @param property_uri a string identifying the property to set
|
|
1242
1202
|
* @param value an initialised [struct`GObject`.Value]
|
|
1243
1203
|
*/
|
|
1244
|
-
add_gvalue(property_uri: string
|
|
1204
|
+
add_gvalue(property_uri: string, value: any): void
|
|
1245
1205
|
/**
|
|
1246
1206
|
* Adds a numeric property with integer precision. Previous values for the same property are kept.
|
|
1247
1207
|
*
|
|
@@ -1252,7 +1212,7 @@ export interface Resource {
|
|
|
1252
1212
|
* @param property_uri a string identifying the property to modify
|
|
1253
1213
|
* @param value the property object
|
|
1254
1214
|
*/
|
|
1255
|
-
add_int(property_uri: string
|
|
1215
|
+
add_int(property_uri: string, value: number): void
|
|
1256
1216
|
/**
|
|
1257
1217
|
* Adds a numeric property with 64-bit integer precision. Previous values for the same property are kept.
|
|
1258
1218
|
*
|
|
@@ -1263,7 +1223,7 @@ export interface Resource {
|
|
|
1263
1223
|
* @param property_uri a string identifying the property to modify
|
|
1264
1224
|
* @param value the property object
|
|
1265
1225
|
*/
|
|
1266
|
-
add_int64(property_uri: string
|
|
1226
|
+
add_int64(property_uri: string, value: number): void
|
|
1267
1227
|
/**
|
|
1268
1228
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1269
1229
|
*
|
|
@@ -1280,7 +1240,7 @@ export interface Resource {
|
|
|
1280
1240
|
* @param property_uri a string identifying the property to modify
|
|
1281
1241
|
* @param resource the property object
|
|
1282
1242
|
*/
|
|
1283
|
-
add_relation(property_uri: string
|
|
1243
|
+
add_relation(property_uri: string, resource: Resource): void
|
|
1284
1244
|
/**
|
|
1285
1245
|
* Adds a string property. Previous values for the same property are kept.
|
|
1286
1246
|
*
|
|
@@ -1291,7 +1251,7 @@ export interface Resource {
|
|
|
1291
1251
|
* @param property_uri a string identifying the property to modify
|
|
1292
1252
|
* @param value the property object
|
|
1293
1253
|
*/
|
|
1294
|
-
add_string(property_uri: string
|
|
1254
|
+
add_string(property_uri: string, value: string): void
|
|
1295
1255
|
/**
|
|
1296
1256
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1297
1257
|
* Takes ownership on the given `resource`.
|
|
@@ -1309,7 +1269,7 @@ export interface Resource {
|
|
|
1309
1269
|
* @param property_uri a string identifying the property to modify
|
|
1310
1270
|
* @param resource the property object
|
|
1311
1271
|
*/
|
|
1312
|
-
add_take_relation(property_uri: string
|
|
1272
|
+
add_take_relation(property_uri: string, resource: Resource): void
|
|
1313
1273
|
/**
|
|
1314
1274
|
* Adds a resource property as an URI string. Previous values for the same property are kept.
|
|
1315
1275
|
*
|
|
@@ -1325,55 +1285,55 @@ export interface Resource {
|
|
|
1325
1285
|
* @param property_uri a string identifying the property to modify
|
|
1326
1286
|
* @param value the property object
|
|
1327
1287
|
*/
|
|
1328
|
-
add_uri(property_uri: string
|
|
1288
|
+
add_uri(property_uri: string, value: string): void
|
|
1329
1289
|
/**
|
|
1330
1290
|
* Returns the first boolean object previously assigned to a property.
|
|
1331
1291
|
* @param property_uri a string identifying the property to look up
|
|
1332
1292
|
* @returns the first boolean object
|
|
1333
1293
|
*/
|
|
1334
|
-
get_first_boolean(property_uri: string
|
|
1294
|
+
get_first_boolean(property_uri: string): boolean
|
|
1335
1295
|
/**
|
|
1336
1296
|
* Returns the first [type`GLib`.DateTime] previously assigned to a property.
|
|
1337
1297
|
* @param property_uri a string identifying the property to look up
|
|
1338
1298
|
* @returns the first GDateTime object
|
|
1339
1299
|
*/
|
|
1340
|
-
get_first_datetime(property_uri: string
|
|
1300
|
+
get_first_datetime(property_uri: string): GLib.DateTime | null
|
|
1341
1301
|
/**
|
|
1342
1302
|
* Returns the first double object previously assigned to a property.
|
|
1343
1303
|
* @param property_uri a string identifying the property to look up
|
|
1344
1304
|
* @returns the first double object
|
|
1345
1305
|
*/
|
|
1346
|
-
get_first_double(property_uri: string
|
|
1306
|
+
get_first_double(property_uri: string): number
|
|
1347
1307
|
/**
|
|
1348
1308
|
* Returns the first integer object previously assigned to a property.
|
|
1349
1309
|
* @param property_uri a string identifying the property to look up
|
|
1350
1310
|
* @returns the first integer object
|
|
1351
1311
|
*/
|
|
1352
|
-
get_first_int(property_uri: string
|
|
1312
|
+
get_first_int(property_uri: string): number
|
|
1353
1313
|
/**
|
|
1354
1314
|
* Returns the first integer object previously assigned to a property.
|
|
1355
1315
|
* @param property_uri a string identifying the property to look up
|
|
1356
1316
|
* @returns the first integer object
|
|
1357
1317
|
*/
|
|
1358
|
-
get_first_int64(property_uri: string
|
|
1318
|
+
get_first_int64(property_uri: string): number
|
|
1359
1319
|
/**
|
|
1360
1320
|
* Returns the first resource object previously assigned to a property.
|
|
1361
1321
|
* @param property_uri a string identifying the property to look up
|
|
1362
1322
|
* @returns the first resource object
|
|
1363
1323
|
*/
|
|
1364
|
-
get_first_relation(property_uri: string
|
|
1324
|
+
get_first_relation(property_uri: string): Resource | null
|
|
1365
1325
|
/**
|
|
1366
1326
|
* Returns the first string object previously assigned to a property.
|
|
1367
1327
|
* @param property_uri a string identifying the property to look up
|
|
1368
1328
|
* @returns the first string object
|
|
1369
1329
|
*/
|
|
1370
|
-
get_first_string(property_uri: string
|
|
1330
|
+
get_first_string(property_uri: string): string | null
|
|
1371
1331
|
/**
|
|
1372
1332
|
* Returns the first resource object previously assigned to a property.
|
|
1373
1333
|
* @param property_uri a string identifying the property to look up
|
|
1374
1334
|
* @returns the first resource object as an URI.
|
|
1375
1335
|
*/
|
|
1376
|
-
get_first_uri(property_uri: string
|
|
1336
|
+
get_first_uri(property_uri: string): string | null
|
|
1377
1337
|
/**
|
|
1378
1338
|
* Returns the identifier of a resource.
|
|
1379
1339
|
*
|
|
@@ -1393,20 +1353,20 @@ export interface Resource {
|
|
|
1393
1353
|
* @param property_uri a string identifying the property to query
|
|
1394
1354
|
* @returns #TRUE if the property would be overwritten
|
|
1395
1355
|
*/
|
|
1396
|
-
get_property_overwrite(property_uri: string
|
|
1356
|
+
get_property_overwrite(property_uri: string): boolean
|
|
1397
1357
|
/**
|
|
1398
1358
|
* Returns the list of all known values of the given property.
|
|
1399
1359
|
* @param property_uri a string identifying the property to look up
|
|
1400
1360
|
* @returns a [struct@GLib.List] of [struct@GObject.Value] instances. The list should be freed with [func@GLib.List.free]
|
|
1401
1361
|
*/
|
|
1402
|
-
get_values(property_uri: string
|
|
1362
|
+
get_values(property_uri: string): any[] | null
|
|
1403
1363
|
/**
|
|
1404
1364
|
* A helper function that compares a `TrackerResource` by its identifier
|
|
1405
1365
|
* string.
|
|
1406
1366
|
* @param identifier a string identifying the resource
|
|
1407
1367
|
* @returns an integer less than, equal to, or greater than zero, if the resource identifier is <, == or > than @identifier
|
|
1408
1368
|
*/
|
|
1409
|
-
identifier_compare_func(identifier: string
|
|
1369
|
+
identifier_compare_func(identifier: string): number
|
|
1410
1370
|
/**
|
|
1411
1371
|
* Serialize all the information in `resource` as a JSON-LD document.
|
|
1412
1372
|
*
|
|
@@ -1471,7 +1431,7 @@ export interface Resource {
|
|
|
1471
1431
|
* @param property_uri A string identifying the property to modify
|
|
1472
1432
|
* @param value The property boolean value
|
|
1473
1433
|
*/
|
|
1474
|
-
set_boolean(property_uri: string
|
|
1434
|
+
set_boolean(property_uri: string, value: boolean): void
|
|
1475
1435
|
/**
|
|
1476
1436
|
* Sets a date property as a [type`GLib`.DateTime]. Replaces any previous value.
|
|
1477
1437
|
*
|
|
@@ -1480,7 +1440,7 @@ export interface Resource {
|
|
|
1480
1440
|
* @param property_uri a string identifying the property to modify
|
|
1481
1441
|
* @param value the property object
|
|
1482
1442
|
*/
|
|
1483
|
-
set_datetime(property_uri: string
|
|
1443
|
+
set_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1484
1444
|
/**
|
|
1485
1445
|
* Sets a numeric property with double precision. Replaces any previous value.
|
|
1486
1446
|
*
|
|
@@ -1488,7 +1448,7 @@ export interface Resource {
|
|
|
1488
1448
|
* @param property_uri A string identifying the property to modify
|
|
1489
1449
|
* @param value The property object
|
|
1490
1450
|
*/
|
|
1491
|
-
set_double(property_uri: string
|
|
1451
|
+
set_double(property_uri: string, value: number): void
|
|
1492
1452
|
/**
|
|
1493
1453
|
* Replace any previously existing value for `property_uri` with `value`.
|
|
1494
1454
|
*
|
|
@@ -1502,7 +1462,7 @@ export interface Resource {
|
|
|
1502
1462
|
* @param property_uri a string identifying the property to set
|
|
1503
1463
|
* @param value an initialised [struct`GObject`.Value]
|
|
1504
1464
|
*/
|
|
1505
|
-
set_gvalue(property_uri: string
|
|
1465
|
+
set_gvalue(property_uri: string, value: any): void
|
|
1506
1466
|
/**
|
|
1507
1467
|
* Changes the identifier of a `TrackerResource`. The identifier should be a
|
|
1508
1468
|
* URI or compact URI, but this is not necessarily enforced. Invalid
|
|
@@ -1521,7 +1481,7 @@ export interface Resource {
|
|
|
1521
1481
|
* @param property_uri A string identifying the property to modify
|
|
1522
1482
|
* @param value The property object
|
|
1523
1483
|
*/
|
|
1524
|
-
set_int(property_uri: string
|
|
1484
|
+
set_int(property_uri: string, value: number): void
|
|
1525
1485
|
/**
|
|
1526
1486
|
* Sets a numeric property with 64-bit integer precision. Replaces any previous value.
|
|
1527
1487
|
*
|
|
@@ -1529,7 +1489,7 @@ export interface Resource {
|
|
|
1529
1489
|
* @param property_uri a string identifying the property to modify
|
|
1530
1490
|
* @param value the property object
|
|
1531
1491
|
*/
|
|
1532
|
-
set_int64(property_uri: string
|
|
1492
|
+
set_int64(property_uri: string, value: number): void
|
|
1533
1493
|
/**
|
|
1534
1494
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1535
1495
|
*
|
|
@@ -1543,7 +1503,7 @@ export interface Resource {
|
|
|
1543
1503
|
* @param property_uri a string identifying the property to modify
|
|
1544
1504
|
* @param resource the property object
|
|
1545
1505
|
*/
|
|
1546
|
-
set_relation(property_uri: string
|
|
1506
|
+
set_relation(property_uri: string, resource: Resource): void
|
|
1547
1507
|
/**
|
|
1548
1508
|
* Sets a string property. Replaces any previous value.
|
|
1549
1509
|
*
|
|
@@ -1551,7 +1511,7 @@ export interface Resource {
|
|
|
1551
1511
|
* @param property_uri a string identifying the property to modify
|
|
1552
1512
|
* @param value the property object
|
|
1553
1513
|
*/
|
|
1554
|
-
set_string(property_uri: string
|
|
1514
|
+
set_string(property_uri: string, value: string): void
|
|
1555
1515
|
/**
|
|
1556
1516
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1557
1517
|
* Takes ownership on the given `resource`.
|
|
@@ -1566,7 +1526,7 @@ export interface Resource {
|
|
|
1566
1526
|
* @param property_uri a string identifying the property to modify
|
|
1567
1527
|
* @param resource the property object
|
|
1568
1528
|
*/
|
|
1569
|
-
set_take_relation(property_uri: string
|
|
1529
|
+
set_take_relation(property_uri: string, resource: Resource): void
|
|
1570
1530
|
/**
|
|
1571
1531
|
* Sets a resource property as an URI string. Replaces any previous value.
|
|
1572
1532
|
*
|
|
@@ -1579,7 +1539,7 @@ export interface Resource {
|
|
|
1579
1539
|
* @param property_uri a string identifying the property to modify
|
|
1580
1540
|
* @param value the property object
|
|
1581
1541
|
*/
|
|
1582
|
-
set_uri(property_uri: string
|
|
1542
|
+
set_uri(property_uri: string, value: string): void
|
|
1583
1543
|
|
|
1584
1544
|
// Class property signals of Tracker-3.0.Tracker.Resource
|
|
1585
1545
|
|
|
@@ -1750,7 +1710,7 @@ export interface SparqlConnection {
|
|
|
1750
1710
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1751
1711
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1752
1712
|
*/
|
|
1753
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1713
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1754
1714
|
|
|
1755
1715
|
// Overloads of deserialize_async
|
|
1756
1716
|
|
|
@@ -1776,7 +1736,7 @@ export interface SparqlConnection {
|
|
|
1776
1736
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1777
1737
|
* @returns A Promise of: %TRUE if all data was inserted successfully.
|
|
1778
1738
|
*/
|
|
1779
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1739
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1780
1740
|
/**
|
|
1781
1741
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.deserialize_async].
|
|
1782
1742
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1800,7 +1760,7 @@ export interface SparqlConnection {
|
|
|
1800
1760
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1801
1761
|
* @returns A prepared statement
|
|
1802
1762
|
*/
|
|
1803
|
-
load_statement_from_gresource(resource_path: string
|
|
1763
|
+
load_statement_from_gresource(resource_path: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1804
1764
|
/**
|
|
1805
1765
|
* Maps a `TrackerSparqlConnection` onto another through a `private:`handle_name`` URI.
|
|
1806
1766
|
*
|
|
@@ -1830,7 +1790,7 @@ export interface SparqlConnection {
|
|
|
1830
1790
|
* @param handle_name Handle name for `service_connection`
|
|
1831
1791
|
* @param service_connection a `TrackerSparqlConnection` to use from `connection`
|
|
1832
1792
|
*/
|
|
1833
|
-
map_connection(handle_name: string
|
|
1793
|
+
map_connection(handle_name: string, service_connection: SparqlConnection): void
|
|
1834
1794
|
/**
|
|
1835
1795
|
* Executes a SPARQL query on `connection`.
|
|
1836
1796
|
*
|
|
@@ -1848,7 +1808,7 @@ export interface SparqlConnection {
|
|
|
1848
1808
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1849
1809
|
* @returns a [class@Tracker.SparqlCursor] with the results.
|
|
1850
1810
|
*/
|
|
1851
|
-
query(sparql: string
|
|
1811
|
+
query(sparql: string, cancellable: Gio.Cancellable | null): SparqlCursor
|
|
1852
1812
|
/**
|
|
1853
1813
|
* Executes asynchronously a SPARQL query on `connection`
|
|
1854
1814
|
*
|
|
@@ -1862,7 +1822,7 @@ export interface SparqlConnection {
|
|
|
1862
1822
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1863
1823
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1864
1824
|
*/
|
|
1865
|
-
query_async(sparql: string
|
|
1825
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1866
1826
|
|
|
1867
1827
|
// Overloads of query_async
|
|
1868
1828
|
|
|
@@ -1881,7 +1841,7 @@ export interface SparqlConnection {
|
|
|
1881
1841
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1882
1842
|
* @returns A Promise of: a [class@Tracker.SparqlCursor] with the results.
|
|
1883
1843
|
*/
|
|
1884
|
-
query_async(sparql: string
|
|
1844
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<SparqlCursor>
|
|
1885
1845
|
/**
|
|
1886
1846
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.query_async].
|
|
1887
1847
|
* @param res A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1898,7 +1858,7 @@ export interface SparqlConnection {
|
|
|
1898
1858
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1899
1859
|
* @returns A prepared statement
|
|
1900
1860
|
*/
|
|
1901
|
-
query_statement(sparql: string
|
|
1861
|
+
query_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1902
1862
|
/**
|
|
1903
1863
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the specified RDF format.
|
|
1904
1864
|
*
|
|
@@ -1916,7 +1876,7 @@ export interface SparqlConnection {
|
|
|
1916
1876
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1917
1877
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1918
1878
|
*/
|
|
1919
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1879
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1920
1880
|
|
|
1921
1881
|
// Overloads of serialize_async
|
|
1922
1882
|
|
|
@@ -1939,7 +1899,7 @@ export interface SparqlConnection {
|
|
|
1939
1899
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1940
1900
|
* @returns A Promise of: A [class@Gio.InputStream] to read RDF content.
|
|
1941
1901
|
*/
|
|
1942
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1902
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
|
|
1943
1903
|
/**
|
|
1944
1904
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.serialize_async].
|
|
1945
1905
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1967,7 +1927,7 @@ export interface SparqlConnection {
|
|
|
1967
1927
|
* @param sparql String containing the SPARQL update query
|
|
1968
1928
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1969
1929
|
*/
|
|
1970
|
-
update(sparql: string
|
|
1930
|
+
update(sparql: string, cancellable: Gio.Cancellable | null): void
|
|
1971
1931
|
/**
|
|
1972
1932
|
* Executes asynchronously an array of SPARQL updates. All updates in the
|
|
1973
1933
|
* array are handled within a single transaction.
|
|
@@ -2031,7 +1991,7 @@ export interface SparqlConnection {
|
|
|
2031
1991
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2032
1992
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2033
1993
|
*/
|
|
2034
|
-
update_async(sparql: string
|
|
1994
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2035
1995
|
|
|
2036
1996
|
// Overloads of update_async
|
|
2037
1997
|
|
|
@@ -2055,7 +2015,7 @@ export interface SparqlConnection {
|
|
|
2055
2015
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2056
2016
|
* @returns A Promise of the result of {@link update_async}
|
|
2057
2017
|
*/
|
|
2058
|
-
update_async(sparql: string
|
|
2018
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<void>
|
|
2059
2019
|
/**
|
|
2060
2020
|
* Executes a SPARQL update and returns the names of the generated blank nodes.
|
|
2061
2021
|
*
|
|
@@ -2077,7 +2037,7 @@ export interface SparqlConnection {
|
|
|
2077
2037
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2078
2038
|
* @returns a [type@GLib.Variant] with the generated URNs.
|
|
2079
2039
|
*/
|
|
2080
|
-
update_blank(sparql: string
|
|
2040
|
+
update_blank(sparql: string, cancellable: Gio.Cancellable | null): GLib.Variant
|
|
2081
2041
|
/**
|
|
2082
2042
|
* Executes asynchronously a SPARQL update and returns the names of the generated blank nodes.
|
|
2083
2043
|
*
|
|
@@ -2087,7 +2047,7 @@ export interface SparqlConnection {
|
|
|
2087
2047
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2088
2048
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2089
2049
|
*/
|
|
2090
|
-
update_blank_async(sparql: string
|
|
2050
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2091
2051
|
|
|
2092
2052
|
// Overloads of update_blank_async
|
|
2093
2053
|
|
|
@@ -2102,7 +2062,7 @@ export interface SparqlConnection {
|
|
|
2102
2062
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2103
2063
|
* @returns A Promise of: a [type@GLib.Variant] with the generated URNs.
|
|
2104
2064
|
*/
|
|
2105
|
-
update_blank_async(sparql: string
|
|
2065
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Variant>
|
|
2106
2066
|
/**
|
|
2107
2067
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.update_blank_async].
|
|
2108
2068
|
*
|
|
@@ -2178,7 +2138,7 @@ export interface SparqlConnection {
|
|
|
2178
2138
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2179
2139
|
* @returns A prepared statement
|
|
2180
2140
|
*/
|
|
2181
|
-
update_statement(sparql: string
|
|
2141
|
+
update_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
2182
2142
|
|
|
2183
2143
|
// Class property signals of Tracker-3.0.Tracker.SparqlConnection
|
|
2184
2144
|
|
|
@@ -2269,7 +2229,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
2269
2229
|
* @param dbus_connection The [type`Gio`.DBusConnection] to use, or %NULL to use the session bus
|
|
2270
2230
|
* @returns a new `TrackerSparqlConnection`.
|
|
2271
2231
|
*/
|
|
2272
|
-
static bus_new(service_name: string
|
|
2232
|
+
static bus_new(service_name: string, object_path: string | null, dbus_connection: Gio.DBusConnection | null): SparqlConnection
|
|
2273
2233
|
/**
|
|
2274
2234
|
* Finishes the operation started with [func`Tracker`.SparqlConnection.bus_new_async].
|
|
2275
2235
|
* @constructor
|
|
@@ -2376,7 +2336,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
2376
2336
|
* @param uri_base Base URI of the remote connection
|
|
2377
2337
|
* @returns a new remote `TrackerSparqlConnection`.
|
|
2378
2338
|
*/
|
|
2379
|
-
static remote_new(uri_base: string
|
|
2339
|
+
static remote_new(uri_base: string): SparqlConnection
|
|
2380
2340
|
_init(config?: SparqlConnection.ConstructorProperties): void
|
|
2381
2341
|
/**
|
|
2382
2342
|
* Creates or opens a process-local database asynchronously.
|
|
@@ -2398,7 +2358,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
2398
2358
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2399
2359
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2400
2360
|
*/
|
|
2401
|
-
static bus_new_async(service_name: string
|
|
2361
|
+
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
2362
|
}
|
|
2403
2363
|
|
|
2404
2364
|
export module SparqlCursor {
|
|
@@ -2425,10 +2385,6 @@ export interface SparqlCursor {
|
|
|
2425
2385
|
* The [class`Tracker`.SparqlConnection] used to retrieve the results.
|
|
2426
2386
|
*/
|
|
2427
2387
|
readonly connection: SparqlConnection
|
|
2428
|
-
/**
|
|
2429
|
-
* Number of columns available in the result set.
|
|
2430
|
-
*/
|
|
2431
|
-
readonly n_columns: number
|
|
2432
2388
|
/**
|
|
2433
2389
|
* Number of columns available in the result set.
|
|
2434
2390
|
*/
|
|
@@ -2691,31 +2647,31 @@ export interface SparqlStatement {
|
|
|
2691
2647
|
* @param name variable name
|
|
2692
2648
|
* @param value value
|
|
2693
2649
|
*/
|
|
2694
|
-
bind_boolean(name: string
|
|
2650
|
+
bind_boolean(name: string, value: boolean): void
|
|
2695
2651
|
/**
|
|
2696
2652
|
* Binds the [type`GLib`.DateTime] `value` to the parameterized variable given by `name`.
|
|
2697
2653
|
* @param name variable name
|
|
2698
2654
|
* @param value value
|
|
2699
2655
|
*/
|
|
2700
|
-
bind_datetime(name: string
|
|
2656
|
+
bind_datetime(name: string, value: GLib.DateTime): void
|
|
2701
2657
|
/**
|
|
2702
2658
|
* Binds the double `value` to the parameterized variable given by `name`.
|
|
2703
2659
|
* @param name variable name
|
|
2704
2660
|
* @param value value
|
|
2705
2661
|
*/
|
|
2706
|
-
bind_double(name: string
|
|
2662
|
+
bind_double(name: string, value: number): void
|
|
2707
2663
|
/**
|
|
2708
2664
|
* Binds the integer `value` to the parameterized variable given by `name`.
|
|
2709
2665
|
* @param name variable name
|
|
2710
2666
|
* @param value value
|
|
2711
2667
|
*/
|
|
2712
|
-
bind_int(name: string
|
|
2668
|
+
bind_int(name: string, value: number): void
|
|
2713
2669
|
/**
|
|
2714
2670
|
* Binds the string `value` to the parameterized variable given by `name`.
|
|
2715
2671
|
* @param name variable name
|
|
2716
2672
|
* @param value value
|
|
2717
2673
|
*/
|
|
2718
|
-
bind_string(name: string
|
|
2674
|
+
bind_string(name: string, value: string): void
|
|
2719
2675
|
/**
|
|
2720
2676
|
* Clears all bindings.
|
|
2721
2677
|
*/
|
|
@@ -2792,7 +2748,7 @@ export interface SparqlStatement {
|
|
|
2792
2748
|
* Returns the SPARQL string that this prepared statement holds.
|
|
2793
2749
|
* @returns The contained SPARQL query
|
|
2794
2750
|
*/
|
|
2795
|
-
get_sparql(): string
|
|
2751
|
+
get_sparql(): string
|
|
2796
2752
|
/**
|
|
2797
2753
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the given RDF `format`.
|
|
2798
2754
|
*
|
|
@@ -3024,7 +2980,7 @@ export interface NotifierEvent {
|
|
|
3024
2980
|
* notified upon, typically of the form `urn:uuid:...`.
|
|
3025
2981
|
* @returns The element URN
|
|
3026
2982
|
*/
|
|
3027
|
-
get_urn(): string
|
|
2983
|
+
get_urn(): string
|
|
3028
2984
|
}
|
|
3029
2985
|
|
|
3030
2986
|
/**
|