@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.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`
|
|
@@ -532,10 +532,6 @@ module Endpoint {
|
|
|
532
532
|
|
|
533
533
|
// Own constructor properties of Tracker-3.0.Tracker.Endpoint
|
|
534
534
|
|
|
535
|
-
/**
|
|
536
|
-
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
537
|
-
*/
|
|
538
|
-
sparql_connection?: SparqlConnection | null
|
|
539
535
|
/**
|
|
540
536
|
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
541
537
|
*/
|
|
@@ -548,10 +544,6 @@ interface Endpoint {
|
|
|
548
544
|
|
|
549
545
|
// Own properties of Tracker-3.0.Tracker.Endpoint
|
|
550
546
|
|
|
551
|
-
/**
|
|
552
|
-
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
553
|
-
*/
|
|
554
|
-
readonly sparql_connection: SparqlConnection
|
|
555
547
|
/**
|
|
556
548
|
* The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
|
|
557
549
|
*/
|
|
@@ -618,14 +610,6 @@ module EndpointDBus {
|
|
|
618
610
|
|
|
619
611
|
// Own constructor properties of Tracker-3.0.Tracker.EndpointDBus
|
|
620
612
|
|
|
621
|
-
/**
|
|
622
|
-
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
623
|
-
*/
|
|
624
|
-
dbus_connection?: Gio.DBusConnection | null
|
|
625
|
-
/**
|
|
626
|
-
* The DBus object path that this endpoint manages.
|
|
627
|
-
*/
|
|
628
|
-
object_path?: string | null
|
|
629
613
|
/**
|
|
630
614
|
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
631
615
|
*/
|
|
@@ -642,18 +626,10 @@ interface EndpointDBus extends Gio.Initable {
|
|
|
642
626
|
|
|
643
627
|
// Own properties of Tracker-3.0.Tracker.EndpointDBus
|
|
644
628
|
|
|
645
|
-
/**
|
|
646
|
-
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
647
|
-
*/
|
|
648
|
-
readonly dbus_connection: Gio.DBusConnection
|
|
649
629
|
/**
|
|
650
630
|
* The [class`Gio`.DBusConnection] where the connection is proxied through.
|
|
651
631
|
*/
|
|
652
632
|
readonly dbusConnection: Gio.DBusConnection
|
|
653
|
-
/**
|
|
654
|
-
* The DBus object path that this endpoint manages.
|
|
655
|
-
*/
|
|
656
|
-
readonly object_path: string | null
|
|
657
633
|
/**
|
|
658
634
|
* The DBus object path that this endpoint manages.
|
|
659
635
|
*/
|
|
@@ -766,14 +742,6 @@ module EndpointHttp {
|
|
|
766
742
|
|
|
767
743
|
// Own constructor properties of Tracker-3.0.Tracker.EndpointHttp
|
|
768
744
|
|
|
769
|
-
/**
|
|
770
|
-
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
771
|
-
*/
|
|
772
|
-
http_certificate?: Gio.TlsCertificate | null
|
|
773
|
-
/**
|
|
774
|
-
* HTTP port used to listen requests.
|
|
775
|
-
*/
|
|
776
|
-
http_port?: number | null
|
|
777
745
|
/**
|
|
778
746
|
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
779
747
|
*/
|
|
@@ -790,18 +758,10 @@ interface EndpointHttp extends Gio.Initable {
|
|
|
790
758
|
|
|
791
759
|
// Own properties of Tracker-3.0.Tracker.EndpointHttp
|
|
792
760
|
|
|
793
|
-
/**
|
|
794
|
-
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
795
|
-
*/
|
|
796
|
-
readonly http_certificate: Gio.TlsCertificate
|
|
797
761
|
/**
|
|
798
762
|
* [class`Gio`.TlsCertificate] to encrypt the communication.
|
|
799
763
|
*/
|
|
800
764
|
readonly httpCertificate: Gio.TlsCertificate
|
|
801
|
-
/**
|
|
802
|
-
* HTTP port used to listen requests.
|
|
803
|
-
*/
|
|
804
|
-
readonly http_port: number
|
|
805
765
|
/**
|
|
806
766
|
* HTTP port used to listen requests.
|
|
807
767
|
*/
|
|
@@ -934,7 +894,7 @@ interface NamespaceManager {
|
|
|
934
894
|
* @param prefix a short, unique prefix to identify `namespace`
|
|
935
895
|
* @param ns the URL of the given namespace
|
|
936
896
|
*/
|
|
937
|
-
add_prefix(prefix: string
|
|
897
|
+
add_prefix(prefix: string, ns: string): void
|
|
938
898
|
/**
|
|
939
899
|
* If `uri` begins with one of the namespaces known to this
|
|
940
900
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -942,7 +902,7 @@ interface NamespaceManager {
|
|
|
942
902
|
* @param uri a URI or compact URI
|
|
943
903
|
* @returns (nullable): the compressed URI
|
|
944
904
|
*/
|
|
945
|
-
compress_uri(uri: string
|
|
905
|
+
compress_uri(uri: string): string | null
|
|
946
906
|
/**
|
|
947
907
|
* If `compact_uri` begins with one of the prefixes known to this
|
|
948
908
|
* `TrackerNamespaceManager`, then the return value will be the
|
|
@@ -950,7 +910,7 @@ interface NamespaceManager {
|
|
|
950
910
|
* @param compact_uri a URI or compact URI
|
|
951
911
|
* @returns The possibly expanded URI in a newly-allocated string.
|
|
952
912
|
*/
|
|
953
|
-
expand_uri(compact_uri: string
|
|
913
|
+
expand_uri(compact_uri: string): string | null
|
|
954
914
|
/**
|
|
955
915
|
* Calls `func` for each known prefix / URI pair.
|
|
956
916
|
* @param func the function to call for each prefix / URI pair
|
|
@@ -961,14 +921,14 @@ interface NamespaceManager {
|
|
|
961
921
|
* @param prefix a string
|
|
962
922
|
* @returns %TRUE if the `TrackerNamespaceManager` knows about @prefix, %FALSE otherwise
|
|
963
923
|
*/
|
|
964
|
-
has_prefix(prefix: string
|
|
924
|
+
has_prefix(prefix: string): boolean
|
|
965
925
|
/**
|
|
966
926
|
* Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
|
|
967
927
|
* is not known.
|
|
968
928
|
* @param prefix a string
|
|
969
929
|
* @returns a string owned by the `TrackerNamespaceManager`, or %NULL
|
|
970
930
|
*/
|
|
971
|
-
lookup_prefix(prefix: string
|
|
931
|
+
lookup_prefix(prefix: string): string | null
|
|
972
932
|
/**
|
|
973
933
|
* Writes out all namespaces as ``prefix`` statements in
|
|
974
934
|
* the [Turtle](https://www.w3.org/TR/turtle/) RDF format.
|
|
@@ -1093,7 +1053,7 @@ interface Notifier {
|
|
|
1093
1053
|
* @param graph Graph to listen events for, or %NULL
|
|
1094
1054
|
* @returns An ID for this subscription
|
|
1095
1055
|
*/
|
|
1096
|
-
signal_subscribe(connection: Gio.DBusConnection, service: string
|
|
1056
|
+
signal_subscribe(connection: Gio.DBusConnection, service: string, object_path: string | null, graph: string | null): number
|
|
1097
1057
|
/**
|
|
1098
1058
|
* Undoes a signal subscription done through [method`Tracker`.Notifier.signal_subscribe].
|
|
1099
1059
|
*
|
|
@@ -1209,7 +1169,7 @@ interface Resource {
|
|
|
1209
1169
|
* @param property_uri A string identifying the property to modify
|
|
1210
1170
|
* @param value The property boolean value
|
|
1211
1171
|
*/
|
|
1212
|
-
add_boolean(property_uri: string
|
|
1172
|
+
add_boolean(property_uri: string, value: boolean): void
|
|
1213
1173
|
/**
|
|
1214
1174
|
* Adds a date property as a [type`GLib`.DateTime]. Previous values for the
|
|
1215
1175
|
* same property are kept.
|
|
@@ -1222,7 +1182,7 @@ interface Resource {
|
|
|
1222
1182
|
* @param property_uri a string identifying the property to modify
|
|
1223
1183
|
* @param value the property object
|
|
1224
1184
|
*/
|
|
1225
|
-
add_datetime(property_uri: string
|
|
1185
|
+
add_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1226
1186
|
/**
|
|
1227
1187
|
* Adds a numeric property with double precision. Previous values for the same property are kept.
|
|
1228
1188
|
*
|
|
@@ -1233,7 +1193,7 @@ interface Resource {
|
|
|
1233
1193
|
* @param property_uri a string identifying the property to modify
|
|
1234
1194
|
* @param value the property object
|
|
1235
1195
|
*/
|
|
1236
|
-
add_double(property_uri: string
|
|
1196
|
+
add_double(property_uri: string, value: number): void
|
|
1237
1197
|
/**
|
|
1238
1198
|
* Add `value` to the list of values for given property.
|
|
1239
1199
|
*
|
|
@@ -1243,7 +1203,7 @@ interface Resource {
|
|
|
1243
1203
|
* @param property_uri a string identifying the property to set
|
|
1244
1204
|
* @param value an initialised [struct`GObject`.Value]
|
|
1245
1205
|
*/
|
|
1246
|
-
add_gvalue(property_uri: string
|
|
1206
|
+
add_gvalue(property_uri: string, value: any): void
|
|
1247
1207
|
/**
|
|
1248
1208
|
* Adds a numeric property with integer precision. Previous values for the same property are kept.
|
|
1249
1209
|
*
|
|
@@ -1254,7 +1214,7 @@ interface Resource {
|
|
|
1254
1214
|
* @param property_uri a string identifying the property to modify
|
|
1255
1215
|
* @param value the property object
|
|
1256
1216
|
*/
|
|
1257
|
-
add_int(property_uri: string
|
|
1217
|
+
add_int(property_uri: string, value: number): void
|
|
1258
1218
|
/**
|
|
1259
1219
|
* Adds a numeric property with 64-bit integer precision. Previous values for the same property are kept.
|
|
1260
1220
|
*
|
|
@@ -1265,7 +1225,7 @@ interface Resource {
|
|
|
1265
1225
|
* @param property_uri a string identifying the property to modify
|
|
1266
1226
|
* @param value the property object
|
|
1267
1227
|
*/
|
|
1268
|
-
add_int64(property_uri: string
|
|
1228
|
+
add_int64(property_uri: string, value: number): void
|
|
1269
1229
|
/**
|
|
1270
1230
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1271
1231
|
*
|
|
@@ -1282,7 +1242,7 @@ interface Resource {
|
|
|
1282
1242
|
* @param property_uri a string identifying the property to modify
|
|
1283
1243
|
* @param resource the property object
|
|
1284
1244
|
*/
|
|
1285
|
-
add_relation(property_uri: string
|
|
1245
|
+
add_relation(property_uri: string, resource: Resource): void
|
|
1286
1246
|
/**
|
|
1287
1247
|
* Adds a string property. Previous values for the same property are kept.
|
|
1288
1248
|
*
|
|
@@ -1293,7 +1253,7 @@ interface Resource {
|
|
|
1293
1253
|
* @param property_uri a string identifying the property to modify
|
|
1294
1254
|
* @param value the property object
|
|
1295
1255
|
*/
|
|
1296
|
-
add_string(property_uri: string
|
|
1256
|
+
add_string(property_uri: string, value: string): void
|
|
1297
1257
|
/**
|
|
1298
1258
|
* Adds a resource property as a `TrackerResource`. Previous values for the same property are kept.
|
|
1299
1259
|
* Takes ownership on the given `resource`.
|
|
@@ -1311,7 +1271,7 @@ interface Resource {
|
|
|
1311
1271
|
* @param property_uri a string identifying the property to modify
|
|
1312
1272
|
* @param resource the property object
|
|
1313
1273
|
*/
|
|
1314
|
-
add_take_relation(property_uri: string
|
|
1274
|
+
add_take_relation(property_uri: string, resource: Resource): void
|
|
1315
1275
|
/**
|
|
1316
1276
|
* Adds a resource property as an URI string. Previous values for the same property are kept.
|
|
1317
1277
|
*
|
|
@@ -1327,55 +1287,55 @@ interface Resource {
|
|
|
1327
1287
|
* @param property_uri a string identifying the property to modify
|
|
1328
1288
|
* @param value the property object
|
|
1329
1289
|
*/
|
|
1330
|
-
add_uri(property_uri: string
|
|
1290
|
+
add_uri(property_uri: string, value: string): void
|
|
1331
1291
|
/**
|
|
1332
1292
|
* Returns the first boolean object previously assigned to a property.
|
|
1333
1293
|
* @param property_uri a string identifying the property to look up
|
|
1334
1294
|
* @returns the first boolean object
|
|
1335
1295
|
*/
|
|
1336
|
-
get_first_boolean(property_uri: string
|
|
1296
|
+
get_first_boolean(property_uri: string): boolean
|
|
1337
1297
|
/**
|
|
1338
1298
|
* Returns the first [type`GLib`.DateTime] previously assigned to a property.
|
|
1339
1299
|
* @param property_uri a string identifying the property to look up
|
|
1340
1300
|
* @returns the first GDateTime object
|
|
1341
1301
|
*/
|
|
1342
|
-
get_first_datetime(property_uri: string
|
|
1302
|
+
get_first_datetime(property_uri: string): GLib.DateTime | null
|
|
1343
1303
|
/**
|
|
1344
1304
|
* Returns the first double object previously assigned to a property.
|
|
1345
1305
|
* @param property_uri a string identifying the property to look up
|
|
1346
1306
|
* @returns the first double object
|
|
1347
1307
|
*/
|
|
1348
|
-
get_first_double(property_uri: string
|
|
1308
|
+
get_first_double(property_uri: string): number
|
|
1349
1309
|
/**
|
|
1350
1310
|
* Returns the first integer object previously assigned to a property.
|
|
1351
1311
|
* @param property_uri a string identifying the property to look up
|
|
1352
1312
|
* @returns the first integer object
|
|
1353
1313
|
*/
|
|
1354
|
-
get_first_int(property_uri: string
|
|
1314
|
+
get_first_int(property_uri: string): number
|
|
1355
1315
|
/**
|
|
1356
1316
|
* Returns the first integer object previously assigned to a property.
|
|
1357
1317
|
* @param property_uri a string identifying the property to look up
|
|
1358
1318
|
* @returns the first integer object
|
|
1359
1319
|
*/
|
|
1360
|
-
get_first_int64(property_uri: string
|
|
1320
|
+
get_first_int64(property_uri: string): number
|
|
1361
1321
|
/**
|
|
1362
1322
|
* Returns the first resource object previously assigned to a property.
|
|
1363
1323
|
* @param property_uri a string identifying the property to look up
|
|
1364
1324
|
* @returns the first resource object
|
|
1365
1325
|
*/
|
|
1366
|
-
get_first_relation(property_uri: string
|
|
1326
|
+
get_first_relation(property_uri: string): Resource | null
|
|
1367
1327
|
/**
|
|
1368
1328
|
* Returns the first string object previously assigned to a property.
|
|
1369
1329
|
* @param property_uri a string identifying the property to look up
|
|
1370
1330
|
* @returns the first string object
|
|
1371
1331
|
*/
|
|
1372
|
-
get_first_string(property_uri: string
|
|
1332
|
+
get_first_string(property_uri: string): string | null
|
|
1373
1333
|
/**
|
|
1374
1334
|
* Returns the first resource object previously assigned to a property.
|
|
1375
1335
|
* @param property_uri a string identifying the property to look up
|
|
1376
1336
|
* @returns the first resource object as an URI.
|
|
1377
1337
|
*/
|
|
1378
|
-
get_first_uri(property_uri: string
|
|
1338
|
+
get_first_uri(property_uri: string): string | null
|
|
1379
1339
|
/**
|
|
1380
1340
|
* Returns the identifier of a resource.
|
|
1381
1341
|
*
|
|
@@ -1395,20 +1355,20 @@ interface Resource {
|
|
|
1395
1355
|
* @param property_uri a string identifying the property to query
|
|
1396
1356
|
* @returns #TRUE if the property would be overwritten
|
|
1397
1357
|
*/
|
|
1398
|
-
get_property_overwrite(property_uri: string
|
|
1358
|
+
get_property_overwrite(property_uri: string): boolean
|
|
1399
1359
|
/**
|
|
1400
1360
|
* Returns the list of all known values of the given property.
|
|
1401
1361
|
* @param property_uri a string identifying the property to look up
|
|
1402
1362
|
* @returns a [struct@GLib.List] of [struct@GObject.Value] instances. The list should be freed with [func@GLib.List.free]
|
|
1403
1363
|
*/
|
|
1404
|
-
get_values(property_uri: string
|
|
1364
|
+
get_values(property_uri: string): any[] | null
|
|
1405
1365
|
/**
|
|
1406
1366
|
* A helper function that compares a `TrackerResource` by its identifier
|
|
1407
1367
|
* string.
|
|
1408
1368
|
* @param identifier a string identifying the resource
|
|
1409
1369
|
* @returns an integer less than, equal to, or greater than zero, if the resource identifier is <, == or > than @identifier
|
|
1410
1370
|
*/
|
|
1411
|
-
identifier_compare_func(identifier: string
|
|
1371
|
+
identifier_compare_func(identifier: string): number
|
|
1412
1372
|
/**
|
|
1413
1373
|
* Serialize all the information in `resource` as a JSON-LD document.
|
|
1414
1374
|
*
|
|
@@ -1473,7 +1433,7 @@ interface Resource {
|
|
|
1473
1433
|
* @param property_uri A string identifying the property to modify
|
|
1474
1434
|
* @param value The property boolean value
|
|
1475
1435
|
*/
|
|
1476
|
-
set_boolean(property_uri: string
|
|
1436
|
+
set_boolean(property_uri: string, value: boolean): void
|
|
1477
1437
|
/**
|
|
1478
1438
|
* Sets a date property as a [type`GLib`.DateTime]. Replaces any previous value.
|
|
1479
1439
|
*
|
|
@@ -1482,7 +1442,7 @@ interface Resource {
|
|
|
1482
1442
|
* @param property_uri a string identifying the property to modify
|
|
1483
1443
|
* @param value the property object
|
|
1484
1444
|
*/
|
|
1485
|
-
set_datetime(property_uri: string
|
|
1445
|
+
set_datetime(property_uri: string, value: GLib.DateTime): void
|
|
1486
1446
|
/**
|
|
1487
1447
|
* Sets a numeric property with double precision. Replaces any previous value.
|
|
1488
1448
|
*
|
|
@@ -1490,7 +1450,7 @@ interface Resource {
|
|
|
1490
1450
|
* @param property_uri A string identifying the property to modify
|
|
1491
1451
|
* @param value The property object
|
|
1492
1452
|
*/
|
|
1493
|
-
set_double(property_uri: string
|
|
1453
|
+
set_double(property_uri: string, value: number): void
|
|
1494
1454
|
/**
|
|
1495
1455
|
* Replace any previously existing value for `property_uri` with `value`.
|
|
1496
1456
|
*
|
|
@@ -1504,7 +1464,7 @@ interface Resource {
|
|
|
1504
1464
|
* @param property_uri a string identifying the property to set
|
|
1505
1465
|
* @param value an initialised [struct`GObject`.Value]
|
|
1506
1466
|
*/
|
|
1507
|
-
set_gvalue(property_uri: string
|
|
1467
|
+
set_gvalue(property_uri: string, value: any): void
|
|
1508
1468
|
/**
|
|
1509
1469
|
* Changes the identifier of a `TrackerResource`. The identifier should be a
|
|
1510
1470
|
* URI or compact URI, but this is not necessarily enforced. Invalid
|
|
@@ -1523,7 +1483,7 @@ interface Resource {
|
|
|
1523
1483
|
* @param property_uri A string identifying the property to modify
|
|
1524
1484
|
* @param value The property object
|
|
1525
1485
|
*/
|
|
1526
|
-
set_int(property_uri: string
|
|
1486
|
+
set_int(property_uri: string, value: number): void
|
|
1527
1487
|
/**
|
|
1528
1488
|
* Sets a numeric property with 64-bit integer precision. Replaces any previous value.
|
|
1529
1489
|
*
|
|
@@ -1531,7 +1491,7 @@ interface Resource {
|
|
|
1531
1491
|
* @param property_uri a string identifying the property to modify
|
|
1532
1492
|
* @param value the property object
|
|
1533
1493
|
*/
|
|
1534
|
-
set_int64(property_uri: string
|
|
1494
|
+
set_int64(property_uri: string, value: number): void
|
|
1535
1495
|
/**
|
|
1536
1496
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1537
1497
|
*
|
|
@@ -1545,7 +1505,7 @@ interface Resource {
|
|
|
1545
1505
|
* @param property_uri a string identifying the property to modify
|
|
1546
1506
|
* @param resource the property object
|
|
1547
1507
|
*/
|
|
1548
|
-
set_relation(property_uri: string
|
|
1508
|
+
set_relation(property_uri: string, resource: Resource): void
|
|
1549
1509
|
/**
|
|
1550
1510
|
* Sets a string property. Replaces any previous value.
|
|
1551
1511
|
*
|
|
@@ -1553,7 +1513,7 @@ interface Resource {
|
|
|
1553
1513
|
* @param property_uri a string identifying the property to modify
|
|
1554
1514
|
* @param value the property object
|
|
1555
1515
|
*/
|
|
1556
|
-
set_string(property_uri: string
|
|
1516
|
+
set_string(property_uri: string, value: string): void
|
|
1557
1517
|
/**
|
|
1558
1518
|
* Sets a resource property as a `TrackerResource`. Replaces any previous value.
|
|
1559
1519
|
* Takes ownership on the given `resource`.
|
|
@@ -1568,7 +1528,7 @@ interface Resource {
|
|
|
1568
1528
|
* @param property_uri a string identifying the property to modify
|
|
1569
1529
|
* @param resource the property object
|
|
1570
1530
|
*/
|
|
1571
|
-
set_take_relation(property_uri: string
|
|
1531
|
+
set_take_relation(property_uri: string, resource: Resource): void
|
|
1572
1532
|
/**
|
|
1573
1533
|
* Sets a resource property as an URI string. Replaces any previous value.
|
|
1574
1534
|
*
|
|
@@ -1581,7 +1541,7 @@ interface Resource {
|
|
|
1581
1541
|
* @param property_uri a string identifying the property to modify
|
|
1582
1542
|
* @param value the property object
|
|
1583
1543
|
*/
|
|
1584
|
-
set_uri(property_uri: string
|
|
1544
|
+
set_uri(property_uri: string, value: string): void
|
|
1585
1545
|
|
|
1586
1546
|
// Class property signals of Tracker-3.0.Tracker.Resource
|
|
1587
1547
|
|
|
@@ -1752,7 +1712,7 @@ interface SparqlConnection {
|
|
|
1752
1712
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1753
1713
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1754
1714
|
*/
|
|
1755
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1715
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1756
1716
|
|
|
1757
1717
|
// Overloads of deserialize_async
|
|
1758
1718
|
|
|
@@ -1778,7 +1738,7 @@ interface SparqlConnection {
|
|
|
1778
1738
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1779
1739
|
* @returns A Promise of: %TRUE if all data was inserted successfully.
|
|
1780
1740
|
*/
|
|
1781
|
-
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string
|
|
1741
|
+
deserialize_async(flags: DeserializeFlags, format: RdfFormat, default_graph: string, stream: Gio.InputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
1782
1742
|
/**
|
|
1783
1743
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.deserialize_async].
|
|
1784
1744
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1802,7 +1762,7 @@ interface SparqlConnection {
|
|
|
1802
1762
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1803
1763
|
* @returns A prepared statement
|
|
1804
1764
|
*/
|
|
1805
|
-
load_statement_from_gresource(resource_path: string
|
|
1765
|
+
load_statement_from_gresource(resource_path: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1806
1766
|
/**
|
|
1807
1767
|
* Maps a `TrackerSparqlConnection` onto another through a `private:`handle_name`` URI.
|
|
1808
1768
|
*
|
|
@@ -1832,7 +1792,7 @@ interface SparqlConnection {
|
|
|
1832
1792
|
* @param handle_name Handle name for `service_connection`
|
|
1833
1793
|
* @param service_connection a `TrackerSparqlConnection` to use from `connection`
|
|
1834
1794
|
*/
|
|
1835
|
-
map_connection(handle_name: string
|
|
1795
|
+
map_connection(handle_name: string, service_connection: SparqlConnection): void
|
|
1836
1796
|
/**
|
|
1837
1797
|
* Executes a SPARQL query on `connection`.
|
|
1838
1798
|
*
|
|
@@ -1850,7 +1810,7 @@ interface SparqlConnection {
|
|
|
1850
1810
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1851
1811
|
* @returns a [class@Tracker.SparqlCursor] with the results.
|
|
1852
1812
|
*/
|
|
1853
|
-
query(sparql: string
|
|
1813
|
+
query(sparql: string, cancellable: Gio.Cancellable | null): SparqlCursor
|
|
1854
1814
|
/**
|
|
1855
1815
|
* Executes asynchronously a SPARQL query on `connection`
|
|
1856
1816
|
*
|
|
@@ -1864,7 +1824,7 @@ interface SparqlConnection {
|
|
|
1864
1824
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1865
1825
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1866
1826
|
*/
|
|
1867
|
-
query_async(sparql: string
|
|
1827
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1868
1828
|
|
|
1869
1829
|
// Overloads of query_async
|
|
1870
1830
|
|
|
@@ -1883,7 +1843,7 @@ interface SparqlConnection {
|
|
|
1883
1843
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1884
1844
|
* @returns A Promise of: a [class@Tracker.SparqlCursor] with the results.
|
|
1885
1845
|
*/
|
|
1886
|
-
query_async(sparql: string
|
|
1846
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<SparqlCursor>
|
|
1887
1847
|
/**
|
|
1888
1848
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.query_async].
|
|
1889
1849
|
* @param res A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1900,7 +1860,7 @@ interface SparqlConnection {
|
|
|
1900
1860
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1901
1861
|
* @returns A prepared statement
|
|
1902
1862
|
*/
|
|
1903
|
-
query_statement(sparql: string
|
|
1863
|
+
query_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
1904
1864
|
/**
|
|
1905
1865
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the specified RDF format.
|
|
1906
1866
|
*
|
|
@@ -1918,7 +1878,7 @@ interface SparqlConnection {
|
|
|
1918
1878
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1919
1879
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
1920
1880
|
*/
|
|
1921
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1881
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
1922
1882
|
|
|
1923
1883
|
// Overloads of serialize_async
|
|
1924
1884
|
|
|
@@ -1941,7 +1901,7 @@ interface SparqlConnection {
|
|
|
1941
1901
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1942
1902
|
* @returns A Promise of: A [class@Gio.InputStream] to read RDF content.
|
|
1943
1903
|
*/
|
|
1944
|
-
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string
|
|
1904
|
+
serialize_async(flags: SerializeFlags, format: RdfFormat, query: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
|
|
1945
1905
|
/**
|
|
1946
1906
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.serialize_async].
|
|
1947
1907
|
* @param result A [type`Gio`.AsyncResult] with the result of the operation
|
|
@@ -1969,7 +1929,7 @@ interface SparqlConnection {
|
|
|
1969
1929
|
* @param sparql String containing the SPARQL update query
|
|
1970
1930
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
1971
1931
|
*/
|
|
1972
|
-
update(sparql: string
|
|
1932
|
+
update(sparql: string, cancellable: Gio.Cancellable | null): void
|
|
1973
1933
|
/**
|
|
1974
1934
|
* Executes asynchronously an array of SPARQL updates. All updates in the
|
|
1975
1935
|
* array are handled within a single transaction.
|
|
@@ -2033,7 +1993,7 @@ interface SparqlConnection {
|
|
|
2033
1993
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2034
1994
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2035
1995
|
*/
|
|
2036
|
-
update_async(sparql: string
|
|
1996
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2037
1997
|
|
|
2038
1998
|
// Overloads of update_async
|
|
2039
1999
|
|
|
@@ -2057,7 +2017,7 @@ interface SparqlConnection {
|
|
|
2057
2017
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2058
2018
|
* @returns A Promise of the result of {@link update_async}
|
|
2059
2019
|
*/
|
|
2060
|
-
update_async(sparql: string
|
|
2020
|
+
update_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<void>
|
|
2061
2021
|
/**
|
|
2062
2022
|
* Executes a SPARQL update and returns the names of the generated blank nodes.
|
|
2063
2023
|
*
|
|
@@ -2079,7 +2039,7 @@ interface SparqlConnection {
|
|
|
2079
2039
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2080
2040
|
* @returns a [type@GLib.Variant] with the generated URNs.
|
|
2081
2041
|
*/
|
|
2082
|
-
update_blank(sparql: string
|
|
2042
|
+
update_blank(sparql: string, cancellable: Gio.Cancellable | null): GLib.Variant
|
|
2083
2043
|
/**
|
|
2084
2044
|
* Executes asynchronously a SPARQL update and returns the names of the generated blank nodes.
|
|
2085
2045
|
*
|
|
@@ -2089,7 +2049,7 @@ interface SparqlConnection {
|
|
|
2089
2049
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2090
2050
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2091
2051
|
*/
|
|
2092
|
-
update_blank_async(sparql: string
|
|
2052
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
2093
2053
|
|
|
2094
2054
|
// Overloads of update_blank_async
|
|
2095
2055
|
|
|
@@ -2104,7 +2064,7 @@ interface SparqlConnection {
|
|
|
2104
2064
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2105
2065
|
* @returns A Promise of: a [type@GLib.Variant] with the generated URNs.
|
|
2106
2066
|
*/
|
|
2107
|
-
update_blank_async(sparql: string
|
|
2067
|
+
update_blank_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Variant>
|
|
2108
2068
|
/**
|
|
2109
2069
|
* Finishes the operation started with [method`Tracker`.SparqlConnection.update_blank_async].
|
|
2110
2070
|
*
|
|
@@ -2180,7 +2140,7 @@ interface SparqlConnection {
|
|
|
2180
2140
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2181
2141
|
* @returns A prepared statement
|
|
2182
2142
|
*/
|
|
2183
|
-
update_statement(sparql: string
|
|
2143
|
+
update_statement(sparql: string, cancellable: Gio.Cancellable | null): SparqlStatement | null
|
|
2184
2144
|
|
|
2185
2145
|
// Class property signals of Tracker-3.0.Tracker.SparqlConnection
|
|
2186
2146
|
|
|
@@ -2271,7 +2231,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
2271
2231
|
* @param dbus_connection The [type`Gio`.DBusConnection] to use, or %NULL to use the session bus
|
|
2272
2232
|
* @returns a new `TrackerSparqlConnection`.
|
|
2273
2233
|
*/
|
|
2274
|
-
static bus_new(service_name: string
|
|
2234
|
+
static bus_new(service_name: string, object_path: string | null, dbus_connection: Gio.DBusConnection | null): SparqlConnection
|
|
2275
2235
|
/**
|
|
2276
2236
|
* Finishes the operation started with [func`Tracker`.SparqlConnection.bus_new_async].
|
|
2277
2237
|
* @constructor
|
|
@@ -2378,7 +2338,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
2378
2338
|
* @param uri_base Base URI of the remote connection
|
|
2379
2339
|
* @returns a new remote `TrackerSparqlConnection`.
|
|
2380
2340
|
*/
|
|
2381
|
-
static remote_new(uri_base: string
|
|
2341
|
+
static remote_new(uri_base: string): SparqlConnection
|
|
2382
2342
|
_init(config?: SparqlConnection.ConstructorProperties): void
|
|
2383
2343
|
/**
|
|
2384
2344
|
* Creates or opens a process-local database asynchronously.
|
|
@@ -2400,7 +2360,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
2400
2360
|
* @param cancellable Optional [type`Gio`.Cancellable]
|
|
2401
2361
|
* @param callback User-defined [type`Gio`.AsyncReadyCallback] to be called when the asynchronous operation is finished.
|
|
2402
2362
|
*/
|
|
2403
|
-
static bus_new_async(service_name: string
|
|
2363
|
+
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
2364
|
}
|
|
2405
2365
|
|
|
2406
2366
|
module SparqlCursor {
|
|
@@ -2427,10 +2387,6 @@ interface SparqlCursor {
|
|
|
2427
2387
|
* The [class`Tracker`.SparqlConnection] used to retrieve the results.
|
|
2428
2388
|
*/
|
|
2429
2389
|
readonly connection: SparqlConnection
|
|
2430
|
-
/**
|
|
2431
|
-
* Number of columns available in the result set.
|
|
2432
|
-
*/
|
|
2433
|
-
readonly n_columns: number
|
|
2434
2390
|
/**
|
|
2435
2391
|
* Number of columns available in the result set.
|
|
2436
2392
|
*/
|
|
@@ -2693,31 +2649,31 @@ interface SparqlStatement {
|
|
|
2693
2649
|
* @param name variable name
|
|
2694
2650
|
* @param value value
|
|
2695
2651
|
*/
|
|
2696
|
-
bind_boolean(name: string
|
|
2652
|
+
bind_boolean(name: string, value: boolean): void
|
|
2697
2653
|
/**
|
|
2698
2654
|
* Binds the [type`GLib`.DateTime] `value` to the parameterized variable given by `name`.
|
|
2699
2655
|
* @param name variable name
|
|
2700
2656
|
* @param value value
|
|
2701
2657
|
*/
|
|
2702
|
-
bind_datetime(name: string
|
|
2658
|
+
bind_datetime(name: string, value: GLib.DateTime): void
|
|
2703
2659
|
/**
|
|
2704
2660
|
* Binds the double `value` to the parameterized variable given by `name`.
|
|
2705
2661
|
* @param name variable name
|
|
2706
2662
|
* @param value value
|
|
2707
2663
|
*/
|
|
2708
|
-
bind_double(name: string
|
|
2664
|
+
bind_double(name: string, value: number): void
|
|
2709
2665
|
/**
|
|
2710
2666
|
* Binds the integer `value` to the parameterized variable given by `name`.
|
|
2711
2667
|
* @param name variable name
|
|
2712
2668
|
* @param value value
|
|
2713
2669
|
*/
|
|
2714
|
-
bind_int(name: string
|
|
2670
|
+
bind_int(name: string, value: number): void
|
|
2715
2671
|
/**
|
|
2716
2672
|
* Binds the string `value` to the parameterized variable given by `name`.
|
|
2717
2673
|
* @param name variable name
|
|
2718
2674
|
* @param value value
|
|
2719
2675
|
*/
|
|
2720
|
-
bind_string(name: string
|
|
2676
|
+
bind_string(name: string, value: string): void
|
|
2721
2677
|
/**
|
|
2722
2678
|
* Clears all bindings.
|
|
2723
2679
|
*/
|
|
@@ -2794,7 +2750,7 @@ interface SparqlStatement {
|
|
|
2794
2750
|
* Returns the SPARQL string that this prepared statement holds.
|
|
2795
2751
|
* @returns The contained SPARQL query
|
|
2796
2752
|
*/
|
|
2797
|
-
get_sparql(): string
|
|
2753
|
+
get_sparql(): string
|
|
2798
2754
|
/**
|
|
2799
2755
|
* Serializes a `DESCRIBE` or `CONSTRUCT` query into the given RDF `format`.
|
|
2800
2756
|
*
|
|
@@ -3026,7 +2982,7 @@ interface NotifierEvent {
|
|
|
3026
2982
|
* notified upon, typically of the form `urn:uuid:...`.
|
|
3027
2983
|
* @returns The element URN
|
|
3028
2984
|
*/
|
|
3029
|
-
get_urn(): string
|
|
2985
|
+
get_urn(): string
|
|
3030
2986
|
}
|
|
3031
2987
|
|
|
3032
2988
|
/**
|