@girs/tracker-2.0 2.0.0-3.2.5 → 2.0.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-2.0.d.cts +100 -99
- package/tracker-2.0.d.ts +100 -99
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Tracker-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Tracker-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
The libtracker-miner library is the foundation for Tracker data miners, these miners will extract metadata and insert it in SPARQL form to a TrackerSparqlConnection.
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/tracker-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Tracker-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "tracker-2.0.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit tracker-2.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-2.0.d.cts
CHANGED
|
@@ -94,15 +94,15 @@ export enum NotifierFlags {
|
|
|
94
94
|
*/
|
|
95
95
|
NOTIFY_UNEXTRACTED,
|
|
96
96
|
}
|
|
97
|
-
export const DBUS_SERVICE: string
|
|
98
|
-
export const DBUS_INTERFACE_RESOURCES: string
|
|
99
|
-
export const DBUS_OBJECT_RESOURCES: string
|
|
100
|
-
export const DBUS_INTERFACE_STATISTICS: string
|
|
101
|
-
export const DBUS_OBJECT_STATISTICS: string
|
|
102
|
-
export const DBUS_INTERFACE_STATUS: string
|
|
103
|
-
export const DBUS_OBJECT_STATUS: string
|
|
104
|
-
export const DBUS_INTERFACE_STEROIDS: string
|
|
105
|
-
export const DBUS_OBJECT_STEROIDS: string
|
|
97
|
+
export const DBUS_SERVICE: string
|
|
98
|
+
export const DBUS_INTERFACE_RESOURCES: string
|
|
99
|
+
export const DBUS_OBJECT_RESOURCES: string
|
|
100
|
+
export const DBUS_INTERFACE_STATISTICS: string
|
|
101
|
+
export const DBUS_OBJECT_STATISTICS: string
|
|
102
|
+
export const DBUS_INTERFACE_STATUS: string
|
|
103
|
+
export const DBUS_OBJECT_STATUS: string
|
|
104
|
+
export const DBUS_INTERFACE_STEROIDS: string
|
|
105
|
+
export const DBUS_OBJECT_STEROIDS: string
|
|
106
106
|
/**
|
|
107
107
|
* Checks that the Tracker library in use is compatible with the
|
|
108
108
|
* given version. Generally you would pass in the constants
|
|
@@ -123,9 +123,9 @@ export const DBUS_OBJECT_STEROIDS: string | null
|
|
|
123
123
|
* @param required_micro the required micro version.
|
|
124
124
|
* @returns %NULL if the Tracker library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by Tracker and must not be modified or freed.
|
|
125
125
|
*/
|
|
126
|
-
export function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
127
|
-
export function sparql_escape_uri(uri: string
|
|
128
|
-
export function sparql_escape_string(literal: string
|
|
126
|
+
export function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
127
|
+
export function sparql_escape_uri(uri: string): string | null
|
|
128
|
+
export function sparql_escape_string(literal: string): string | null
|
|
129
129
|
export function sparql_get_uuid_urn(): string | null
|
|
130
130
|
export module NamespaceManager {
|
|
131
131
|
|
|
@@ -148,7 +148,7 @@ export interface NamespaceManager {
|
|
|
148
148
|
* @param prefix a short, unique prefix to identify `namespace`
|
|
149
149
|
* @param ns the URL of the given namespace
|
|
150
150
|
*/
|
|
151
|
-
add_prefix(prefix: string
|
|
151
|
+
add_prefix(prefix: string, ns: string): void
|
|
152
152
|
/**
|
|
153
153
|
* If `compact_uri` begins with one of the prefixes known to this
|
|
154
154
|
* #TrackerNamespaceManager, then the return value will be the
|
|
@@ -156,20 +156,20 @@ export interface NamespaceManager {
|
|
|
156
156
|
* @param compact_uri a URI or compact URI
|
|
157
157
|
* @returns a newly-allocated string
|
|
158
158
|
*/
|
|
159
|
-
expand_uri(compact_uri: string
|
|
159
|
+
expand_uri(compact_uri: string): string | null
|
|
160
160
|
/**
|
|
161
161
|
* Calls `func` for each known prefix / URI pair.
|
|
162
162
|
* @param func the function to call for each prefix / URI pair
|
|
163
163
|
*/
|
|
164
164
|
foreach(func: GLib.HFunc): void
|
|
165
|
-
has_prefix(prefix: string
|
|
165
|
+
has_prefix(prefix: string): boolean
|
|
166
166
|
/**
|
|
167
167
|
* Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
|
|
168
168
|
* is not known.
|
|
169
169
|
* @param prefix a string
|
|
170
170
|
* @returns a string owned by the #TrackerNamespaceManager, or %NULL
|
|
171
171
|
*/
|
|
172
|
-
lookup_prefix(prefix: string
|
|
172
|
+
lookup_prefix(prefix: string): string
|
|
173
173
|
/**
|
|
174
174
|
* Writes out all namespaces as Turtle `prefix` statements.
|
|
175
175
|
* @returns a newly-allocated string
|
|
@@ -346,13 +346,13 @@ export interface Resource {
|
|
|
346
346
|
* @param property_uri a string identifying the property to modify
|
|
347
347
|
* @param value the property object
|
|
348
348
|
*/
|
|
349
|
-
add_boolean(property_uri: string
|
|
349
|
+
add_boolean(property_uri: string, value: boolean): void
|
|
350
350
|
/**
|
|
351
351
|
* Adds a double object to a multi-valued property.
|
|
352
352
|
* @param property_uri a string identifying the property to modify
|
|
353
353
|
* @param value the property object
|
|
354
354
|
*/
|
|
355
|
-
add_double(property_uri: string
|
|
355
|
+
add_double(property_uri: string, value: number): void
|
|
356
356
|
/**
|
|
357
357
|
* Add 'value' to the list of values for given property.
|
|
358
358
|
*
|
|
@@ -362,19 +362,19 @@ export interface Resource {
|
|
|
362
362
|
* @param property_uri a string identifying the property to set
|
|
363
363
|
* @param value an initialised #GValue
|
|
364
364
|
*/
|
|
365
|
-
add_gvalue(property_uri: string
|
|
365
|
+
add_gvalue(property_uri: string, value: any): void
|
|
366
366
|
/**
|
|
367
367
|
* Adds an integer object to a multi-valued property.
|
|
368
368
|
* @param property_uri a string identifying the property to modify
|
|
369
369
|
* @param value the property object
|
|
370
370
|
*/
|
|
371
|
-
add_int(property_uri: string
|
|
371
|
+
add_int(property_uri: string, value: number): void
|
|
372
372
|
/**
|
|
373
373
|
* Adds an integer object to a multi-valued property.
|
|
374
374
|
* @param property_uri a string identifying the property to modify
|
|
375
375
|
* @param value the property object
|
|
376
376
|
*/
|
|
377
|
-
add_int64(property_uri: string
|
|
377
|
+
add_int64(property_uri: string, value: number): void
|
|
378
378
|
/**
|
|
379
379
|
* Adds a resource object to a multi-valued property. This
|
|
380
380
|
* function produces similar RDF to tracker_resource_add_uri(),
|
|
@@ -383,13 +383,13 @@ export interface Resource {
|
|
|
383
383
|
* @param property_uri a string identifying the property to modify
|
|
384
384
|
* @param resource the property object
|
|
385
385
|
*/
|
|
386
|
-
add_relation(property_uri: string
|
|
386
|
+
add_relation(property_uri: string, resource: Resource): void
|
|
387
387
|
/**
|
|
388
388
|
* Adds a string object to a multi-valued property.
|
|
389
389
|
* @param property_uri a string identifying the property to modify
|
|
390
390
|
* @param value the property object
|
|
391
391
|
*/
|
|
392
|
-
add_string(property_uri: string
|
|
392
|
+
add_string(property_uri: string, value: string): void
|
|
393
393
|
/**
|
|
394
394
|
* Adds a resource object to a multi-valued property. This function
|
|
395
395
|
* produces similar RDF to tracker_resource_add_relation(), although
|
|
@@ -397,49 +397,49 @@ export interface Resource {
|
|
|
397
397
|
* @param property_uri a string identifying the property to modify
|
|
398
398
|
* @param value the property object
|
|
399
399
|
*/
|
|
400
|
-
add_uri(property_uri: string
|
|
400
|
+
add_uri(property_uri: string, value: string): void
|
|
401
401
|
/**
|
|
402
402
|
* Returns the first boolean object previously assigned to a property.
|
|
403
403
|
* @param property_uri a string identifying the property to look up
|
|
404
404
|
* @returns the first boolean object
|
|
405
405
|
*/
|
|
406
|
-
get_first_boolean(property_uri: string
|
|
406
|
+
get_first_boolean(property_uri: string): boolean
|
|
407
407
|
/**
|
|
408
408
|
* Returns the first double object previously assigned to a property.
|
|
409
409
|
* @param property_uri a string identifying the property to look up
|
|
410
410
|
* @returns the first double object
|
|
411
411
|
*/
|
|
412
|
-
get_first_double(property_uri: string
|
|
412
|
+
get_first_double(property_uri: string): number
|
|
413
413
|
/**
|
|
414
414
|
* Returns the first integer object previously assigned to a property.
|
|
415
415
|
* @param property_uri a string identifying the property to look up
|
|
416
416
|
* @returns the first integer object
|
|
417
417
|
*/
|
|
418
|
-
get_first_int(property_uri: string
|
|
418
|
+
get_first_int(property_uri: string): number
|
|
419
419
|
/**
|
|
420
420
|
* Returns the first integer object previously assigned to a property.
|
|
421
421
|
* @param property_uri a string identifying the property to look up
|
|
422
422
|
* @returns the first integer object
|
|
423
423
|
*/
|
|
424
|
-
get_first_int64(property_uri: string
|
|
424
|
+
get_first_int64(property_uri: string): number
|
|
425
425
|
/**
|
|
426
426
|
* Returns the first resource object previously assigned to a property.
|
|
427
427
|
* @param property_uri a string identifying the property to look up
|
|
428
428
|
* @returns the first resource object
|
|
429
429
|
*/
|
|
430
|
-
get_first_relation(property_uri: string
|
|
430
|
+
get_first_relation(property_uri: string): Resource
|
|
431
431
|
/**
|
|
432
432
|
* Returns the first string object previously assigned to a property.
|
|
433
433
|
* @param property_uri a string identifying the property to look up
|
|
434
434
|
* @returns the first string object
|
|
435
435
|
*/
|
|
436
|
-
get_first_string(property_uri: string
|
|
436
|
+
get_first_string(property_uri: string): string
|
|
437
437
|
/**
|
|
438
438
|
* Returns the first resource object previously assigned to a property.
|
|
439
439
|
* @param property_uri a string identifying the property to look up
|
|
440
440
|
* @returns the first resource object as an URI.
|
|
441
441
|
*/
|
|
442
|
-
get_first_uri(property_uri: string
|
|
442
|
+
get_first_uri(property_uri: string): string
|
|
443
443
|
/**
|
|
444
444
|
* Returns the identifier of a resource.
|
|
445
445
|
*
|
|
@@ -447,14 +447,14 @@ export interface Resource {
|
|
|
447
447
|
* SPARQL blank node identifier, such as "_:123".
|
|
448
448
|
* @returns a string owned by the resource
|
|
449
449
|
*/
|
|
450
|
-
get_identifier(): string
|
|
450
|
+
get_identifier(): string
|
|
451
451
|
/**
|
|
452
452
|
* Returns the list of all known values of the given property.
|
|
453
453
|
* @param property_uri a string identifying the property to look up
|
|
454
454
|
* @returns a #GList of #GValue instances, which must be freed by the caller.
|
|
455
455
|
*/
|
|
456
|
-
get_values(property_uri: string
|
|
457
|
-
identifier_compare_func(identifier: string
|
|
456
|
+
get_values(property_uri: string): any[]
|
|
457
|
+
identifier_compare_func(identifier: string): number
|
|
458
458
|
/**
|
|
459
459
|
* Serialize all the information in `resource` as a JSON-LD document.
|
|
460
460
|
*
|
|
@@ -501,13 +501,13 @@ export interface Resource {
|
|
|
501
501
|
* @param property_uri a string identifying the property to modify
|
|
502
502
|
* @param value the property object
|
|
503
503
|
*/
|
|
504
|
-
set_boolean(property_uri: string
|
|
504
|
+
set_boolean(property_uri: string, value: boolean): void
|
|
505
505
|
/**
|
|
506
506
|
* Sets a single-valued double object.
|
|
507
507
|
* @param property_uri a string identifying the property to modify
|
|
508
508
|
* @param value the property object
|
|
509
509
|
*/
|
|
510
|
-
set_double(property_uri: string
|
|
510
|
+
set_double(property_uri: string, value: number): void
|
|
511
511
|
/**
|
|
512
512
|
* State that the only value for the given property is 'value'. Any existing
|
|
513
513
|
* values for 'property' will be removed.
|
|
@@ -522,7 +522,7 @@ export interface Resource {
|
|
|
522
522
|
* @param property_uri a string identifying the property to set
|
|
523
523
|
* @param value an initialised #GValue
|
|
524
524
|
*/
|
|
525
|
-
set_gvalue(property_uri: string
|
|
525
|
+
set_gvalue(property_uri: string, value: any): void
|
|
526
526
|
/**
|
|
527
527
|
* Changes the identifier of a #TrackerResource. The identifier should be a
|
|
528
528
|
* URI or compact URI, but this is not necessarily enforced. Invalid
|
|
@@ -539,13 +539,13 @@ export interface Resource {
|
|
|
539
539
|
* @param property_uri a string identifying the property to modify
|
|
540
540
|
* @param value the property object
|
|
541
541
|
*/
|
|
542
|
-
set_int(property_uri: string
|
|
542
|
+
set_int(property_uri: string, value: number): void
|
|
543
543
|
/**
|
|
544
544
|
* Sets a single-valued integer object.
|
|
545
545
|
* @param property_uri a string identifying the property to modify
|
|
546
546
|
* @param value the property object
|
|
547
547
|
*/
|
|
548
|
-
set_int64(property_uri: string
|
|
548
|
+
set_int64(property_uri: string, value: number): void
|
|
549
549
|
/**
|
|
550
550
|
* Sets a single-valued resource object as a #TrackerResource. This
|
|
551
551
|
* function produces similar RDF to tracker_resource_set_uri(),
|
|
@@ -554,13 +554,13 @@ export interface Resource {
|
|
|
554
554
|
* @param property_uri a string identifying the property to modify
|
|
555
555
|
* @param resource the property object
|
|
556
556
|
*/
|
|
557
|
-
set_relation(property_uri: string
|
|
557
|
+
set_relation(property_uri: string, resource: Resource): void
|
|
558
558
|
/**
|
|
559
559
|
* Sets a single-valued string object.
|
|
560
560
|
* @param property_uri a string identifying the property to modify
|
|
561
561
|
* @param value the property object
|
|
562
562
|
*/
|
|
563
|
-
set_string(property_uri: string
|
|
563
|
+
set_string(property_uri: string, value: string): void
|
|
564
564
|
/**
|
|
565
565
|
* Sets a single-valued resource object as a string URI. This function
|
|
566
566
|
* produces similar RDF to tracker_resource_set_relation(), although
|
|
@@ -568,7 +568,7 @@ export interface Resource {
|
|
|
568
568
|
* @param property_uri a string identifying the property to modify
|
|
569
569
|
* @param value the property object
|
|
570
570
|
*/
|
|
571
|
-
set_uri(property_uri: string
|
|
571
|
+
set_uri(property_uri: string, value: string): void
|
|
572
572
|
|
|
573
573
|
// Class property signals of Tracker-2.0.Tracker.Resource
|
|
574
574
|
|
|
@@ -602,14 +602,14 @@ export class Resource extends GObject.Object {
|
|
|
602
602
|
* @param identifier A string containing a URI
|
|
603
603
|
* @returns a newly created #TrackerResource. Free with g_object_unref() when done
|
|
604
604
|
*/
|
|
605
|
-
constructor(identifier: string
|
|
605
|
+
constructor(identifier: string)
|
|
606
606
|
/**
|
|
607
607
|
* Creates a TrackerResource instance.
|
|
608
608
|
* @constructor
|
|
609
609
|
* @param identifier A string containing a URI
|
|
610
610
|
* @returns a newly created #TrackerResource. Free with g_object_unref() when done
|
|
611
611
|
*/
|
|
612
|
-
static new(identifier: string
|
|
612
|
+
static new(identifier: string): Resource
|
|
613
613
|
_init(config?: Resource.ConstructorProperties): void
|
|
614
614
|
}
|
|
615
615
|
|
|
@@ -641,29 +641,29 @@ export interface SparqlBuilder {
|
|
|
641
641
|
insert_close(): void
|
|
642
642
|
delete_open(graph: string | null): void
|
|
643
643
|
delete_close(): void
|
|
644
|
-
graph_open(graph: string
|
|
644
|
+
graph_open(graph: string): void
|
|
645
645
|
graph_close(): void
|
|
646
646
|
where_open(): void
|
|
647
647
|
where_close(): void
|
|
648
|
-
subject_variable(var_name: string
|
|
649
|
-
object_variable(var_name: string
|
|
650
|
-
subject_iri(iri: string
|
|
651
|
-
subject(s: string
|
|
652
|
-
predicate_iri(iri: string
|
|
653
|
-
predicate(s: string
|
|
654
|
-
object_iri(iri: string
|
|
655
|
-
object(s: string
|
|
656
|
-
object_string(literal: string
|
|
657
|
-
object_unvalidated(value: string
|
|
648
|
+
subject_variable(var_name: string): void
|
|
649
|
+
object_variable(var_name: string): void
|
|
650
|
+
subject_iri(iri: string): void
|
|
651
|
+
subject(s: string): void
|
|
652
|
+
predicate_iri(iri: string): void
|
|
653
|
+
predicate(s: string): void
|
|
654
|
+
object_iri(iri: string): void
|
|
655
|
+
object(s: string): void
|
|
656
|
+
object_string(literal: string): void
|
|
657
|
+
object_unvalidated(value: string): void
|
|
658
658
|
object_boolean(literal: boolean): void
|
|
659
659
|
object_int64(literal: number): void
|
|
660
660
|
object_date(literal: number): /* literal */ number
|
|
661
661
|
object_double(literal: number): void
|
|
662
662
|
object_blank_open(): void
|
|
663
663
|
object_blank_close(): void
|
|
664
|
-
prepend(raw: string
|
|
665
|
-
append(raw: string
|
|
666
|
-
get_result(): string
|
|
664
|
+
prepend(raw: string): void
|
|
665
|
+
append(raw: string): void
|
|
666
|
+
get_result(): string
|
|
667
667
|
get_length(): number
|
|
668
668
|
get_state(): any
|
|
669
669
|
|
|
@@ -714,8 +714,8 @@ export interface SparqlConnection {
|
|
|
714
714
|
|
|
715
715
|
// Owm methods of Tracker-2.0.Tracker.SparqlConnection
|
|
716
716
|
|
|
717
|
-
query(sparql: string
|
|
718
|
-
query_async(sparql: string
|
|
717
|
+
query(sparql: string, cancellable: Gio.Cancellable | null): any
|
|
718
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
719
719
|
|
|
720
720
|
// Overloads of query_async
|
|
721
721
|
|
|
@@ -728,10 +728,10 @@ export interface SparqlConnection {
|
|
|
728
728
|
* @param _callback_
|
|
729
729
|
* @returns A Promise of the result of {@link query_async}
|
|
730
730
|
*/
|
|
731
|
-
query_async(sparql: string
|
|
731
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<any>
|
|
732
732
|
query_finish(_res_: Gio.AsyncResult): any
|
|
733
|
-
update(sparql: string
|
|
734
|
-
update_async(sparql: string
|
|
733
|
+
update(sparql: string, priority: number, cancellable: Gio.Cancellable | null): void
|
|
734
|
+
update_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
735
735
|
|
|
736
736
|
// Overloads of update_async
|
|
737
737
|
|
|
@@ -745,7 +745,7 @@ export interface SparqlConnection {
|
|
|
745
745
|
* @param _callback_
|
|
746
746
|
* @returns A Promise of the result of {@link update_async}
|
|
747
747
|
*/
|
|
748
|
-
update_async(sparql: string
|
|
748
|
+
update_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<void>
|
|
749
749
|
update_finish(_res_: Gio.AsyncResult): void
|
|
750
750
|
update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
751
751
|
|
|
@@ -763,8 +763,8 @@ export interface SparqlConnection {
|
|
|
763
763
|
*/
|
|
764
764
|
update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<any[] | null>
|
|
765
765
|
update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
766
|
-
update_blank(sparql: string
|
|
767
|
-
update_blank_async(sparql: string
|
|
766
|
+
update_blank(sparql: string, priority: number, cancellable: Gio.Cancellable | null): GLib.Variant | null
|
|
767
|
+
update_blank_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
768
768
|
|
|
769
769
|
// Overloads of update_blank_async
|
|
770
770
|
|
|
@@ -778,7 +778,7 @@ export interface SparqlConnection {
|
|
|
778
778
|
* @param _callback_
|
|
779
779
|
* @returns A Promise of the result of {@link update_blank_async}
|
|
780
780
|
*/
|
|
781
|
-
update_blank_async(sparql: string
|
|
781
|
+
update_blank_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Variant | null>
|
|
782
782
|
update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
783
783
|
load(file: Gio.File, cancellable: Gio.Cancellable | null): void
|
|
784
784
|
load_async(file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
@@ -812,20 +812,20 @@ export interface SparqlConnection {
|
|
|
812
812
|
statistics_async(cancellable: Gio.Cancellable | null): globalThis.Promise<any | null>
|
|
813
813
|
statistics_finish(_res_: Gio.AsyncResult): any | null
|
|
814
814
|
get_namespace_manager(): NamespaceManager | null
|
|
815
|
-
query_statement(sparql: string
|
|
815
|
+
query_statement(sparql: string, cancellable: Gio.Cancellable | null): any | null
|
|
816
816
|
|
|
817
817
|
// Own virtual methods of Tracker-2.0.Tracker.SparqlConnection
|
|
818
818
|
|
|
819
|
-
vfunc_query(sparql: string
|
|
820
|
-
vfunc_query_async(sparql: string
|
|
819
|
+
vfunc_query(sparql: string, cancellable: Gio.Cancellable | null): any
|
|
820
|
+
vfunc_query_async(sparql: string, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
821
821
|
vfunc_query_finish(_res_: Gio.AsyncResult): any
|
|
822
|
-
vfunc_update(sparql: string
|
|
823
|
-
vfunc_update_async(sparql: string
|
|
822
|
+
vfunc_update(sparql: string, priority: number, cancellable: Gio.Cancellable | null): void
|
|
823
|
+
vfunc_update_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
824
824
|
vfunc_update_finish(_res_: Gio.AsyncResult): void
|
|
825
825
|
vfunc_update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
826
826
|
vfunc_update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
827
|
-
vfunc_update_blank(sparql: string
|
|
828
|
-
vfunc_update_blank_async(sparql: string
|
|
827
|
+
vfunc_update_blank(sparql: string, priority: number, cancellable: Gio.Cancellable | null): GLib.Variant | null
|
|
828
|
+
vfunc_update_blank_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
829
829
|
vfunc_update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
830
830
|
vfunc_load(file: Gio.File, cancellable: Gio.Cancellable | null): void
|
|
831
831
|
vfunc_load_async(file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
@@ -834,7 +834,7 @@ export interface SparqlConnection {
|
|
|
834
834
|
vfunc_statistics_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
835
835
|
vfunc_statistics_finish(_res_: Gio.AsyncResult): any | null
|
|
836
836
|
vfunc_get_namespace_manager(): NamespaceManager | null
|
|
837
|
-
vfunc_query_statement(sparql: string
|
|
837
|
+
vfunc_query_statement(sparql: string, cancellable: Gio.Cancellable | null): any | null
|
|
838
838
|
|
|
839
839
|
// Class property signals of Tracker-2.0.Tracker.SparqlConnection
|
|
840
840
|
|
|
@@ -858,7 +858,7 @@ export class SparqlConnection extends GObject.Object {
|
|
|
858
858
|
static get_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
859
859
|
static get_finish(_res_: Gio.AsyncResult): any
|
|
860
860
|
static get(cancellable: Gio.Cancellable | null): any
|
|
861
|
-
static remote_new(uri_base: string
|
|
861
|
+
static remote_new(uri_base: string): any
|
|
862
862
|
static local_new(flags: any, store: Gio.File, journal: Gio.File | null, ontology: Gio.File | null, cancellable: Gio.Cancellable | null): any
|
|
863
863
|
static local_new_async(flags: any, store: Gio.File, journal: Gio.File | null, ontology: Gio.File | null, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
864
864
|
static local_new_finish(_res_: Gio.AsyncResult): any
|
|
@@ -887,6 +887,7 @@ export interface SparqlCursor {
|
|
|
887
887
|
|
|
888
888
|
connection: any
|
|
889
889
|
readonly n_columns: number
|
|
890
|
+
readonly nColumns: number
|
|
890
891
|
|
|
891
892
|
// Owm methods of Tracker-2.0.Tracker.SparqlCursor
|
|
892
893
|
|
|
@@ -984,10 +985,10 @@ export interface SparqlStatement {
|
|
|
984
985
|
|
|
985
986
|
// Owm methods of Tracker-2.0.Tracker.SparqlStatement
|
|
986
987
|
|
|
987
|
-
bind_int(name: string
|
|
988
|
-
bind_boolean(name: string
|
|
989
|
-
bind_string(name: string
|
|
990
|
-
bind_double(name: string
|
|
988
|
+
bind_int(name: string, value: number): void
|
|
989
|
+
bind_boolean(name: string, value: boolean): void
|
|
990
|
+
bind_string(name: string, value: string): void
|
|
991
|
+
bind_double(name: string, value: number): void
|
|
991
992
|
execute(cancellable: Gio.Cancellable | null): any
|
|
992
993
|
execute_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
993
994
|
|
|
@@ -1003,17 +1004,17 @@ export interface SparqlStatement {
|
|
|
1003
1004
|
*/
|
|
1004
1005
|
execute_async(cancellable: Gio.Cancellable | null): globalThis.Promise<any>
|
|
1005
1006
|
execute_finish(_res_: Gio.AsyncResult): any
|
|
1006
|
-
get_sparql(): string
|
|
1007
|
-
set_sparql(value: string
|
|
1007
|
+
get_sparql(): string
|
|
1008
|
+
set_sparql(value: string): void
|
|
1008
1009
|
get_connection(): any
|
|
1009
1010
|
set_connection(value: any): void
|
|
1010
1011
|
|
|
1011
1012
|
// Own virtual methods of Tracker-2.0.Tracker.SparqlStatement
|
|
1012
1013
|
|
|
1013
|
-
vfunc_bind_int(name: string
|
|
1014
|
-
vfunc_bind_boolean(name: string
|
|
1015
|
-
vfunc_bind_string(name: string
|
|
1016
|
-
vfunc_bind_double(name: string
|
|
1014
|
+
vfunc_bind_int(name: string, value: number): void
|
|
1015
|
+
vfunc_bind_boolean(name: string, value: boolean): void
|
|
1016
|
+
vfunc_bind_string(name: string, value: string): void
|
|
1017
|
+
vfunc_bind_double(name: string, value: number): void
|
|
1017
1018
|
vfunc_execute(cancellable: Gio.Cancellable | null): any
|
|
1018
1019
|
vfunc_execute_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
1019
1020
|
vfunc_execute_finish(_res_: Gio.AsyncResult): any
|
|
@@ -1108,7 +1109,7 @@ export interface NotifierEvent {
|
|
|
1108
1109
|
* are explicitly marked with the tracker:notify property in their ontology.
|
|
1109
1110
|
* @returns the RDF type of the element
|
|
1110
1111
|
*/
|
|
1111
|
-
get_type(): string
|
|
1112
|
+
get_type(): string
|
|
1112
1113
|
/**
|
|
1113
1114
|
* Returns the Uniform Resource Name of the element if the
|
|
1114
1115
|
* notifier has the flag %TRACKER_NOTIFIER_FLAG_QUERY_URN enabled.
|
|
@@ -1117,7 +1118,7 @@ export interface NotifierEvent {
|
|
|
1117
1118
|
* notified upon, typically of the form "urn:uuid:...".
|
|
1118
1119
|
* @returns The element URN
|
|
1119
1120
|
*/
|
|
1120
|
-
get_urn(): string
|
|
1121
|
+
get_urn(): string
|
|
1121
1122
|
}
|
|
1122
1123
|
|
|
1123
1124
|
export class NotifierEvent {
|
|
@@ -1165,16 +1166,16 @@ export interface SparqlConnectionClass {
|
|
|
1165
1166
|
|
|
1166
1167
|
// Own fields of Tracker-2.0.Tracker.SparqlConnectionClass
|
|
1167
1168
|
|
|
1168
|
-
query: (self: any, sparql: string
|
|
1169
|
-
query_async: (self: any, sparql: string
|
|
1169
|
+
query: (self: any, sparql: string, cancellable: Gio.Cancellable | null) => any
|
|
1170
|
+
query_async: (self: any, sparql: string, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1170
1171
|
query_finish: (self: any, _res_: Gio.AsyncResult) => any
|
|
1171
|
-
update: (self: any, sparql: string
|
|
1172
|
-
update_async: (self: any, sparql: string
|
|
1172
|
+
update: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null) => void
|
|
1173
|
+
update_async: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1173
1174
|
update_finish: (self: any, _res_: Gio.AsyncResult) => void
|
|
1174
1175
|
update_array_async: (self: any, sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1175
1176
|
update_array_finish: (self: any, _res_: Gio.AsyncResult) => any[] | null
|
|
1176
|
-
update_blank: (self: any, sparql: string
|
|
1177
|
-
update_blank_async: (self: any, sparql: string
|
|
1177
|
+
update_blank: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null) => GLib.Variant | null
|
|
1178
|
+
update_blank_async: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1178
1179
|
update_blank_finish: (self: any, _res_: Gio.AsyncResult) => GLib.Variant | null
|
|
1179
1180
|
load: (self: any, file: Gio.File, cancellable: Gio.Cancellable | null) => void
|
|
1180
1181
|
load_async: (self: any, file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
@@ -1183,7 +1184,7 @@ export interface SparqlConnectionClass {
|
|
|
1183
1184
|
statistics_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1184
1185
|
statistics_finish: (self: any, _res_: Gio.AsyncResult) => any | null
|
|
1185
1186
|
get_namespace_manager: (self: any) => NamespaceManager | null
|
|
1186
|
-
query_statement: (self: any, sparql: string
|
|
1187
|
+
query_statement: (self: any, sparql: string, cancellable: Gio.Cancellable | null) => any | null
|
|
1187
1188
|
}
|
|
1188
1189
|
|
|
1189
1190
|
export abstract class SparqlConnectionClass {
|
|
@@ -1242,10 +1243,10 @@ export interface SparqlStatementClass {
|
|
|
1242
1243
|
|
|
1243
1244
|
// Own fields of Tracker-2.0.Tracker.SparqlStatementClass
|
|
1244
1245
|
|
|
1245
|
-
bind_int: (self: any, name: string
|
|
1246
|
-
bind_boolean: (self: any, name: string
|
|
1247
|
-
bind_string: (self: any, name: string
|
|
1248
|
-
bind_double: (self: any, name: string
|
|
1246
|
+
bind_int: (self: any, name: string, value: number) => void
|
|
1247
|
+
bind_boolean: (self: any, name: string, value: boolean) => void
|
|
1248
|
+
bind_string: (self: any, name: string, value: string) => void
|
|
1249
|
+
bind_double: (self: any, name: string, value: number) => void
|
|
1249
1250
|
execute: (self: any, cancellable: Gio.Cancellable | null) => any
|
|
1250
1251
|
execute_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1251
1252
|
execute_finish: (self: any, _res_: Gio.AsyncResult) => any
|
package/tracker-2.0.d.ts
CHANGED
|
@@ -96,15 +96,15 @@ enum NotifierFlags {
|
|
|
96
96
|
*/
|
|
97
97
|
NOTIFY_UNEXTRACTED,
|
|
98
98
|
}
|
|
99
|
-
const DBUS_SERVICE: string
|
|
100
|
-
const DBUS_INTERFACE_RESOURCES: string
|
|
101
|
-
const DBUS_OBJECT_RESOURCES: string
|
|
102
|
-
const DBUS_INTERFACE_STATISTICS: string
|
|
103
|
-
const DBUS_OBJECT_STATISTICS: string
|
|
104
|
-
const DBUS_INTERFACE_STATUS: string
|
|
105
|
-
const DBUS_OBJECT_STATUS: string
|
|
106
|
-
const DBUS_INTERFACE_STEROIDS: string
|
|
107
|
-
const DBUS_OBJECT_STEROIDS: string
|
|
99
|
+
const DBUS_SERVICE: string
|
|
100
|
+
const DBUS_INTERFACE_RESOURCES: string
|
|
101
|
+
const DBUS_OBJECT_RESOURCES: string
|
|
102
|
+
const DBUS_INTERFACE_STATISTICS: string
|
|
103
|
+
const DBUS_OBJECT_STATISTICS: string
|
|
104
|
+
const DBUS_INTERFACE_STATUS: string
|
|
105
|
+
const DBUS_OBJECT_STATUS: string
|
|
106
|
+
const DBUS_INTERFACE_STEROIDS: string
|
|
107
|
+
const DBUS_OBJECT_STEROIDS: string
|
|
108
108
|
/**
|
|
109
109
|
* Checks that the Tracker library in use is compatible with the
|
|
110
110
|
* given version. Generally you would pass in the constants
|
|
@@ -125,9 +125,9 @@ const DBUS_OBJECT_STEROIDS: string | null
|
|
|
125
125
|
* @param required_micro the required micro version.
|
|
126
126
|
* @returns %NULL if the Tracker library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by Tracker and must not be modified or freed.
|
|
127
127
|
*/
|
|
128
|
-
function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
129
|
-
function sparql_escape_uri(uri: string
|
|
130
|
-
function sparql_escape_string(literal: string
|
|
128
|
+
function check_version(required_major: number, required_minor: number, required_micro: number): string
|
|
129
|
+
function sparql_escape_uri(uri: string): string | null
|
|
130
|
+
function sparql_escape_string(literal: string): string | null
|
|
131
131
|
function sparql_get_uuid_urn(): string | null
|
|
132
132
|
module NamespaceManager {
|
|
133
133
|
|
|
@@ -150,7 +150,7 @@ interface NamespaceManager {
|
|
|
150
150
|
* @param prefix a short, unique prefix to identify `namespace`
|
|
151
151
|
* @param ns the URL of the given namespace
|
|
152
152
|
*/
|
|
153
|
-
add_prefix(prefix: string
|
|
153
|
+
add_prefix(prefix: string, ns: string): void
|
|
154
154
|
/**
|
|
155
155
|
* If `compact_uri` begins with one of the prefixes known to this
|
|
156
156
|
* #TrackerNamespaceManager, then the return value will be the
|
|
@@ -158,20 +158,20 @@ interface NamespaceManager {
|
|
|
158
158
|
* @param compact_uri a URI or compact URI
|
|
159
159
|
* @returns a newly-allocated string
|
|
160
160
|
*/
|
|
161
|
-
expand_uri(compact_uri: string
|
|
161
|
+
expand_uri(compact_uri: string): string | null
|
|
162
162
|
/**
|
|
163
163
|
* Calls `func` for each known prefix / URI pair.
|
|
164
164
|
* @param func the function to call for each prefix / URI pair
|
|
165
165
|
*/
|
|
166
166
|
foreach(func: GLib.HFunc): void
|
|
167
|
-
has_prefix(prefix: string
|
|
167
|
+
has_prefix(prefix: string): boolean
|
|
168
168
|
/**
|
|
169
169
|
* Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
|
|
170
170
|
* is not known.
|
|
171
171
|
* @param prefix a string
|
|
172
172
|
* @returns a string owned by the #TrackerNamespaceManager, or %NULL
|
|
173
173
|
*/
|
|
174
|
-
lookup_prefix(prefix: string
|
|
174
|
+
lookup_prefix(prefix: string): string
|
|
175
175
|
/**
|
|
176
176
|
* Writes out all namespaces as Turtle `prefix` statements.
|
|
177
177
|
* @returns a newly-allocated string
|
|
@@ -348,13 +348,13 @@ interface Resource {
|
|
|
348
348
|
* @param property_uri a string identifying the property to modify
|
|
349
349
|
* @param value the property object
|
|
350
350
|
*/
|
|
351
|
-
add_boolean(property_uri: string
|
|
351
|
+
add_boolean(property_uri: string, value: boolean): void
|
|
352
352
|
/**
|
|
353
353
|
* Adds a double object to a multi-valued property.
|
|
354
354
|
* @param property_uri a string identifying the property to modify
|
|
355
355
|
* @param value the property object
|
|
356
356
|
*/
|
|
357
|
-
add_double(property_uri: string
|
|
357
|
+
add_double(property_uri: string, value: number): void
|
|
358
358
|
/**
|
|
359
359
|
* Add 'value' to the list of values for given property.
|
|
360
360
|
*
|
|
@@ -364,19 +364,19 @@ interface Resource {
|
|
|
364
364
|
* @param property_uri a string identifying the property to set
|
|
365
365
|
* @param value an initialised #GValue
|
|
366
366
|
*/
|
|
367
|
-
add_gvalue(property_uri: string
|
|
367
|
+
add_gvalue(property_uri: string, value: any): void
|
|
368
368
|
/**
|
|
369
369
|
* Adds an integer object to a multi-valued property.
|
|
370
370
|
* @param property_uri a string identifying the property to modify
|
|
371
371
|
* @param value the property object
|
|
372
372
|
*/
|
|
373
|
-
add_int(property_uri: string
|
|
373
|
+
add_int(property_uri: string, value: number): void
|
|
374
374
|
/**
|
|
375
375
|
* Adds an integer object to a multi-valued property.
|
|
376
376
|
* @param property_uri a string identifying the property to modify
|
|
377
377
|
* @param value the property object
|
|
378
378
|
*/
|
|
379
|
-
add_int64(property_uri: string
|
|
379
|
+
add_int64(property_uri: string, value: number): void
|
|
380
380
|
/**
|
|
381
381
|
* Adds a resource object to a multi-valued property. This
|
|
382
382
|
* function produces similar RDF to tracker_resource_add_uri(),
|
|
@@ -385,13 +385,13 @@ interface Resource {
|
|
|
385
385
|
* @param property_uri a string identifying the property to modify
|
|
386
386
|
* @param resource the property object
|
|
387
387
|
*/
|
|
388
|
-
add_relation(property_uri: string
|
|
388
|
+
add_relation(property_uri: string, resource: Resource): void
|
|
389
389
|
/**
|
|
390
390
|
* Adds a string object to a multi-valued property.
|
|
391
391
|
* @param property_uri a string identifying the property to modify
|
|
392
392
|
* @param value the property object
|
|
393
393
|
*/
|
|
394
|
-
add_string(property_uri: string
|
|
394
|
+
add_string(property_uri: string, value: string): void
|
|
395
395
|
/**
|
|
396
396
|
* Adds a resource object to a multi-valued property. This function
|
|
397
397
|
* produces similar RDF to tracker_resource_add_relation(), although
|
|
@@ -399,49 +399,49 @@ interface Resource {
|
|
|
399
399
|
* @param property_uri a string identifying the property to modify
|
|
400
400
|
* @param value the property object
|
|
401
401
|
*/
|
|
402
|
-
add_uri(property_uri: string
|
|
402
|
+
add_uri(property_uri: string, value: string): void
|
|
403
403
|
/**
|
|
404
404
|
* Returns the first boolean object previously assigned to a property.
|
|
405
405
|
* @param property_uri a string identifying the property to look up
|
|
406
406
|
* @returns the first boolean object
|
|
407
407
|
*/
|
|
408
|
-
get_first_boolean(property_uri: string
|
|
408
|
+
get_first_boolean(property_uri: string): boolean
|
|
409
409
|
/**
|
|
410
410
|
* Returns the first double object previously assigned to a property.
|
|
411
411
|
* @param property_uri a string identifying the property to look up
|
|
412
412
|
* @returns the first double object
|
|
413
413
|
*/
|
|
414
|
-
get_first_double(property_uri: string
|
|
414
|
+
get_first_double(property_uri: string): number
|
|
415
415
|
/**
|
|
416
416
|
* Returns the first integer object previously assigned to a property.
|
|
417
417
|
* @param property_uri a string identifying the property to look up
|
|
418
418
|
* @returns the first integer object
|
|
419
419
|
*/
|
|
420
|
-
get_first_int(property_uri: string
|
|
420
|
+
get_first_int(property_uri: string): number
|
|
421
421
|
/**
|
|
422
422
|
* Returns the first integer object previously assigned to a property.
|
|
423
423
|
* @param property_uri a string identifying the property to look up
|
|
424
424
|
* @returns the first integer object
|
|
425
425
|
*/
|
|
426
|
-
get_first_int64(property_uri: string
|
|
426
|
+
get_first_int64(property_uri: string): number
|
|
427
427
|
/**
|
|
428
428
|
* Returns the first resource object previously assigned to a property.
|
|
429
429
|
* @param property_uri a string identifying the property to look up
|
|
430
430
|
* @returns the first resource object
|
|
431
431
|
*/
|
|
432
|
-
get_first_relation(property_uri: string
|
|
432
|
+
get_first_relation(property_uri: string): Resource
|
|
433
433
|
/**
|
|
434
434
|
* Returns the first string object previously assigned to a property.
|
|
435
435
|
* @param property_uri a string identifying the property to look up
|
|
436
436
|
* @returns the first string object
|
|
437
437
|
*/
|
|
438
|
-
get_first_string(property_uri: string
|
|
438
|
+
get_first_string(property_uri: string): string
|
|
439
439
|
/**
|
|
440
440
|
* Returns the first resource object previously assigned to a property.
|
|
441
441
|
* @param property_uri a string identifying the property to look up
|
|
442
442
|
* @returns the first resource object as an URI.
|
|
443
443
|
*/
|
|
444
|
-
get_first_uri(property_uri: string
|
|
444
|
+
get_first_uri(property_uri: string): string
|
|
445
445
|
/**
|
|
446
446
|
* Returns the identifier of a resource.
|
|
447
447
|
*
|
|
@@ -449,14 +449,14 @@ interface Resource {
|
|
|
449
449
|
* SPARQL blank node identifier, such as "_:123".
|
|
450
450
|
* @returns a string owned by the resource
|
|
451
451
|
*/
|
|
452
|
-
get_identifier(): string
|
|
452
|
+
get_identifier(): string
|
|
453
453
|
/**
|
|
454
454
|
* Returns the list of all known values of the given property.
|
|
455
455
|
* @param property_uri a string identifying the property to look up
|
|
456
456
|
* @returns a #GList of #GValue instances, which must be freed by the caller.
|
|
457
457
|
*/
|
|
458
|
-
get_values(property_uri: string
|
|
459
|
-
identifier_compare_func(identifier: string
|
|
458
|
+
get_values(property_uri: string): any[]
|
|
459
|
+
identifier_compare_func(identifier: string): number
|
|
460
460
|
/**
|
|
461
461
|
* Serialize all the information in `resource` as a JSON-LD document.
|
|
462
462
|
*
|
|
@@ -503,13 +503,13 @@ interface Resource {
|
|
|
503
503
|
* @param property_uri a string identifying the property to modify
|
|
504
504
|
* @param value the property object
|
|
505
505
|
*/
|
|
506
|
-
set_boolean(property_uri: string
|
|
506
|
+
set_boolean(property_uri: string, value: boolean): void
|
|
507
507
|
/**
|
|
508
508
|
* Sets a single-valued double object.
|
|
509
509
|
* @param property_uri a string identifying the property to modify
|
|
510
510
|
* @param value the property object
|
|
511
511
|
*/
|
|
512
|
-
set_double(property_uri: string
|
|
512
|
+
set_double(property_uri: string, value: number): void
|
|
513
513
|
/**
|
|
514
514
|
* State that the only value for the given property is 'value'. Any existing
|
|
515
515
|
* values for 'property' will be removed.
|
|
@@ -524,7 +524,7 @@ interface Resource {
|
|
|
524
524
|
* @param property_uri a string identifying the property to set
|
|
525
525
|
* @param value an initialised #GValue
|
|
526
526
|
*/
|
|
527
|
-
set_gvalue(property_uri: string
|
|
527
|
+
set_gvalue(property_uri: string, value: any): void
|
|
528
528
|
/**
|
|
529
529
|
* Changes the identifier of a #TrackerResource. The identifier should be a
|
|
530
530
|
* URI or compact URI, but this is not necessarily enforced. Invalid
|
|
@@ -541,13 +541,13 @@ interface Resource {
|
|
|
541
541
|
* @param property_uri a string identifying the property to modify
|
|
542
542
|
* @param value the property object
|
|
543
543
|
*/
|
|
544
|
-
set_int(property_uri: string
|
|
544
|
+
set_int(property_uri: string, value: number): void
|
|
545
545
|
/**
|
|
546
546
|
* Sets a single-valued integer object.
|
|
547
547
|
* @param property_uri a string identifying the property to modify
|
|
548
548
|
* @param value the property object
|
|
549
549
|
*/
|
|
550
|
-
set_int64(property_uri: string
|
|
550
|
+
set_int64(property_uri: string, value: number): void
|
|
551
551
|
/**
|
|
552
552
|
* Sets a single-valued resource object as a #TrackerResource. This
|
|
553
553
|
* function produces similar RDF to tracker_resource_set_uri(),
|
|
@@ -556,13 +556,13 @@ interface Resource {
|
|
|
556
556
|
* @param property_uri a string identifying the property to modify
|
|
557
557
|
* @param resource the property object
|
|
558
558
|
*/
|
|
559
|
-
set_relation(property_uri: string
|
|
559
|
+
set_relation(property_uri: string, resource: Resource): void
|
|
560
560
|
/**
|
|
561
561
|
* Sets a single-valued string object.
|
|
562
562
|
* @param property_uri a string identifying the property to modify
|
|
563
563
|
* @param value the property object
|
|
564
564
|
*/
|
|
565
|
-
set_string(property_uri: string
|
|
565
|
+
set_string(property_uri: string, value: string): void
|
|
566
566
|
/**
|
|
567
567
|
* Sets a single-valued resource object as a string URI. This function
|
|
568
568
|
* produces similar RDF to tracker_resource_set_relation(), although
|
|
@@ -570,7 +570,7 @@ interface Resource {
|
|
|
570
570
|
* @param property_uri a string identifying the property to modify
|
|
571
571
|
* @param value the property object
|
|
572
572
|
*/
|
|
573
|
-
set_uri(property_uri: string
|
|
573
|
+
set_uri(property_uri: string, value: string): void
|
|
574
574
|
|
|
575
575
|
// Class property signals of Tracker-2.0.Tracker.Resource
|
|
576
576
|
|
|
@@ -604,14 +604,14 @@ class Resource extends GObject.Object {
|
|
|
604
604
|
* @param identifier A string containing a URI
|
|
605
605
|
* @returns a newly created #TrackerResource. Free with g_object_unref() when done
|
|
606
606
|
*/
|
|
607
|
-
constructor(identifier: string
|
|
607
|
+
constructor(identifier: string)
|
|
608
608
|
/**
|
|
609
609
|
* Creates a TrackerResource instance.
|
|
610
610
|
* @constructor
|
|
611
611
|
* @param identifier A string containing a URI
|
|
612
612
|
* @returns a newly created #TrackerResource. Free with g_object_unref() when done
|
|
613
613
|
*/
|
|
614
|
-
static new(identifier: string
|
|
614
|
+
static new(identifier: string): Resource
|
|
615
615
|
_init(config?: Resource.ConstructorProperties): void
|
|
616
616
|
}
|
|
617
617
|
|
|
@@ -643,29 +643,29 @@ interface SparqlBuilder {
|
|
|
643
643
|
insert_close(): void
|
|
644
644
|
delete_open(graph: string | null): void
|
|
645
645
|
delete_close(): void
|
|
646
|
-
graph_open(graph: string
|
|
646
|
+
graph_open(graph: string): void
|
|
647
647
|
graph_close(): void
|
|
648
648
|
where_open(): void
|
|
649
649
|
where_close(): void
|
|
650
|
-
subject_variable(var_name: string
|
|
651
|
-
object_variable(var_name: string
|
|
652
|
-
subject_iri(iri: string
|
|
653
|
-
subject(s: string
|
|
654
|
-
predicate_iri(iri: string
|
|
655
|
-
predicate(s: string
|
|
656
|
-
object_iri(iri: string
|
|
657
|
-
object(s: string
|
|
658
|
-
object_string(literal: string
|
|
659
|
-
object_unvalidated(value: string
|
|
650
|
+
subject_variable(var_name: string): void
|
|
651
|
+
object_variable(var_name: string): void
|
|
652
|
+
subject_iri(iri: string): void
|
|
653
|
+
subject(s: string): void
|
|
654
|
+
predicate_iri(iri: string): void
|
|
655
|
+
predicate(s: string): void
|
|
656
|
+
object_iri(iri: string): void
|
|
657
|
+
object(s: string): void
|
|
658
|
+
object_string(literal: string): void
|
|
659
|
+
object_unvalidated(value: string): void
|
|
660
660
|
object_boolean(literal: boolean): void
|
|
661
661
|
object_int64(literal: number): void
|
|
662
662
|
object_date(literal: number): /* literal */ number
|
|
663
663
|
object_double(literal: number): void
|
|
664
664
|
object_blank_open(): void
|
|
665
665
|
object_blank_close(): void
|
|
666
|
-
prepend(raw: string
|
|
667
|
-
append(raw: string
|
|
668
|
-
get_result(): string
|
|
666
|
+
prepend(raw: string): void
|
|
667
|
+
append(raw: string): void
|
|
668
|
+
get_result(): string
|
|
669
669
|
get_length(): number
|
|
670
670
|
get_state(): any
|
|
671
671
|
|
|
@@ -716,8 +716,8 @@ interface SparqlConnection {
|
|
|
716
716
|
|
|
717
717
|
// Owm methods of Tracker-2.0.Tracker.SparqlConnection
|
|
718
718
|
|
|
719
|
-
query(sparql: string
|
|
720
|
-
query_async(sparql: string
|
|
719
|
+
query(sparql: string, cancellable: Gio.Cancellable | null): any
|
|
720
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
721
721
|
|
|
722
722
|
// Overloads of query_async
|
|
723
723
|
|
|
@@ -730,10 +730,10 @@ interface SparqlConnection {
|
|
|
730
730
|
* @param _callback_
|
|
731
731
|
* @returns A Promise of the result of {@link query_async}
|
|
732
732
|
*/
|
|
733
|
-
query_async(sparql: string
|
|
733
|
+
query_async(sparql: string, cancellable: Gio.Cancellable | null): globalThis.Promise<any>
|
|
734
734
|
query_finish(_res_: Gio.AsyncResult): any
|
|
735
|
-
update(sparql: string
|
|
736
|
-
update_async(sparql: string
|
|
735
|
+
update(sparql: string, priority: number, cancellable: Gio.Cancellable | null): void
|
|
736
|
+
update_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
737
737
|
|
|
738
738
|
// Overloads of update_async
|
|
739
739
|
|
|
@@ -747,7 +747,7 @@ interface SparqlConnection {
|
|
|
747
747
|
* @param _callback_
|
|
748
748
|
* @returns A Promise of the result of {@link update_async}
|
|
749
749
|
*/
|
|
750
|
-
update_async(sparql: string
|
|
750
|
+
update_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<void>
|
|
751
751
|
update_finish(_res_: Gio.AsyncResult): void
|
|
752
752
|
update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
753
753
|
|
|
@@ -765,8 +765,8 @@ interface SparqlConnection {
|
|
|
765
765
|
*/
|
|
766
766
|
update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<any[] | null>
|
|
767
767
|
update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
768
|
-
update_blank(sparql: string
|
|
769
|
-
update_blank_async(sparql: string
|
|
768
|
+
update_blank(sparql: string, priority: number, cancellable: Gio.Cancellable | null): GLib.Variant | null
|
|
769
|
+
update_blank_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
770
770
|
|
|
771
771
|
// Overloads of update_blank_async
|
|
772
772
|
|
|
@@ -780,7 +780,7 @@ interface SparqlConnection {
|
|
|
780
780
|
* @param _callback_
|
|
781
781
|
* @returns A Promise of the result of {@link update_blank_async}
|
|
782
782
|
*/
|
|
783
|
-
update_blank_async(sparql: string
|
|
783
|
+
update_blank_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<GLib.Variant | null>
|
|
784
784
|
update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
785
785
|
load(file: Gio.File, cancellable: Gio.Cancellable | null): void
|
|
786
786
|
load_async(file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
@@ -814,20 +814,20 @@ interface SparqlConnection {
|
|
|
814
814
|
statistics_async(cancellable: Gio.Cancellable | null): globalThis.Promise<any | null>
|
|
815
815
|
statistics_finish(_res_: Gio.AsyncResult): any | null
|
|
816
816
|
get_namespace_manager(): NamespaceManager | null
|
|
817
|
-
query_statement(sparql: string
|
|
817
|
+
query_statement(sparql: string, cancellable: Gio.Cancellable | null): any | null
|
|
818
818
|
|
|
819
819
|
// Own virtual methods of Tracker-2.0.Tracker.SparqlConnection
|
|
820
820
|
|
|
821
|
-
vfunc_query(sparql: string
|
|
822
|
-
vfunc_query_async(sparql: string
|
|
821
|
+
vfunc_query(sparql: string, cancellable: Gio.Cancellable | null): any
|
|
822
|
+
vfunc_query_async(sparql: string, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
823
823
|
vfunc_query_finish(_res_: Gio.AsyncResult): any
|
|
824
|
-
vfunc_update(sparql: string
|
|
825
|
-
vfunc_update_async(sparql: string
|
|
824
|
+
vfunc_update(sparql: string, priority: number, cancellable: Gio.Cancellable | null): void
|
|
825
|
+
vfunc_update_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
826
826
|
vfunc_update_finish(_res_: Gio.AsyncResult): void
|
|
827
827
|
vfunc_update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
828
828
|
vfunc_update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
829
|
-
vfunc_update_blank(sparql: string
|
|
830
|
-
vfunc_update_blank_async(sparql: string
|
|
829
|
+
vfunc_update_blank(sparql: string, priority: number, cancellable: Gio.Cancellable | null): GLib.Variant | null
|
|
830
|
+
vfunc_update_blank_async(sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
831
831
|
vfunc_update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
832
832
|
vfunc_load(file: Gio.File, cancellable: Gio.Cancellable | null): void
|
|
833
833
|
vfunc_load_async(file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
@@ -836,7 +836,7 @@ interface SparqlConnection {
|
|
|
836
836
|
vfunc_statistics_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
837
837
|
vfunc_statistics_finish(_res_: Gio.AsyncResult): any | null
|
|
838
838
|
vfunc_get_namespace_manager(): NamespaceManager | null
|
|
839
|
-
vfunc_query_statement(sparql: string
|
|
839
|
+
vfunc_query_statement(sparql: string, cancellable: Gio.Cancellable | null): any | null
|
|
840
840
|
|
|
841
841
|
// Class property signals of Tracker-2.0.Tracker.SparqlConnection
|
|
842
842
|
|
|
@@ -860,7 +860,7 @@ class SparqlConnection extends GObject.Object {
|
|
|
860
860
|
static get_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
861
861
|
static get_finish(_res_: Gio.AsyncResult): any
|
|
862
862
|
static get(cancellable: Gio.Cancellable | null): any
|
|
863
|
-
static remote_new(uri_base: string
|
|
863
|
+
static remote_new(uri_base: string): any
|
|
864
864
|
static local_new(flags: any, store: Gio.File, journal: Gio.File | null, ontology: Gio.File | null, cancellable: Gio.Cancellable | null): any
|
|
865
865
|
static local_new_async(flags: any, store: Gio.File, journal: Gio.File | null, ontology: Gio.File | null, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
866
866
|
static local_new_finish(_res_: Gio.AsyncResult): any
|
|
@@ -889,6 +889,7 @@ interface SparqlCursor {
|
|
|
889
889
|
|
|
890
890
|
connection: any
|
|
891
891
|
readonly n_columns: number
|
|
892
|
+
readonly nColumns: number
|
|
892
893
|
|
|
893
894
|
// Owm methods of Tracker-2.0.Tracker.SparqlCursor
|
|
894
895
|
|
|
@@ -986,10 +987,10 @@ interface SparqlStatement {
|
|
|
986
987
|
|
|
987
988
|
// Owm methods of Tracker-2.0.Tracker.SparqlStatement
|
|
988
989
|
|
|
989
|
-
bind_int(name: string
|
|
990
|
-
bind_boolean(name: string
|
|
991
|
-
bind_string(name: string
|
|
992
|
-
bind_double(name: string
|
|
990
|
+
bind_int(name: string, value: number): void
|
|
991
|
+
bind_boolean(name: string, value: boolean): void
|
|
992
|
+
bind_string(name: string, value: string): void
|
|
993
|
+
bind_double(name: string, value: number): void
|
|
993
994
|
execute(cancellable: Gio.Cancellable | null): any
|
|
994
995
|
execute_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
995
996
|
|
|
@@ -1005,17 +1006,17 @@ interface SparqlStatement {
|
|
|
1005
1006
|
*/
|
|
1006
1007
|
execute_async(cancellable: Gio.Cancellable | null): globalThis.Promise<any>
|
|
1007
1008
|
execute_finish(_res_: Gio.AsyncResult): any
|
|
1008
|
-
get_sparql(): string
|
|
1009
|
-
set_sparql(value: string
|
|
1009
|
+
get_sparql(): string
|
|
1010
|
+
set_sparql(value: string): void
|
|
1010
1011
|
get_connection(): any
|
|
1011
1012
|
set_connection(value: any): void
|
|
1012
1013
|
|
|
1013
1014
|
// Own virtual methods of Tracker-2.0.Tracker.SparqlStatement
|
|
1014
1015
|
|
|
1015
|
-
vfunc_bind_int(name: string
|
|
1016
|
-
vfunc_bind_boolean(name: string
|
|
1017
|
-
vfunc_bind_string(name: string
|
|
1018
|
-
vfunc_bind_double(name: string
|
|
1016
|
+
vfunc_bind_int(name: string, value: number): void
|
|
1017
|
+
vfunc_bind_boolean(name: string, value: boolean): void
|
|
1018
|
+
vfunc_bind_string(name: string, value: string): void
|
|
1019
|
+
vfunc_bind_double(name: string, value: number): void
|
|
1019
1020
|
vfunc_execute(cancellable: Gio.Cancellable | null): any
|
|
1020
1021
|
vfunc_execute_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
|
|
1021
1022
|
vfunc_execute_finish(_res_: Gio.AsyncResult): any
|
|
@@ -1110,7 +1111,7 @@ interface NotifierEvent {
|
|
|
1110
1111
|
* are explicitly marked with the tracker:notify property in their ontology.
|
|
1111
1112
|
* @returns the RDF type of the element
|
|
1112
1113
|
*/
|
|
1113
|
-
get_type(): string
|
|
1114
|
+
get_type(): string
|
|
1114
1115
|
/**
|
|
1115
1116
|
* Returns the Uniform Resource Name of the element if the
|
|
1116
1117
|
* notifier has the flag %TRACKER_NOTIFIER_FLAG_QUERY_URN enabled.
|
|
@@ -1119,7 +1120,7 @@ interface NotifierEvent {
|
|
|
1119
1120
|
* notified upon, typically of the form "urn:uuid:...".
|
|
1120
1121
|
* @returns The element URN
|
|
1121
1122
|
*/
|
|
1122
|
-
get_urn(): string
|
|
1123
|
+
get_urn(): string
|
|
1123
1124
|
}
|
|
1124
1125
|
|
|
1125
1126
|
class NotifierEvent {
|
|
@@ -1167,16 +1168,16 @@ interface SparqlConnectionClass {
|
|
|
1167
1168
|
|
|
1168
1169
|
// Own fields of Tracker-2.0.Tracker.SparqlConnectionClass
|
|
1169
1170
|
|
|
1170
|
-
query: (self: any, sparql: string
|
|
1171
|
-
query_async: (self: any, sparql: string
|
|
1171
|
+
query: (self: any, sparql: string, cancellable: Gio.Cancellable | null) => any
|
|
1172
|
+
query_async: (self: any, sparql: string, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1172
1173
|
query_finish: (self: any, _res_: Gio.AsyncResult) => any
|
|
1173
|
-
update: (self: any, sparql: string
|
|
1174
|
-
update_async: (self: any, sparql: string
|
|
1174
|
+
update: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null) => void
|
|
1175
|
+
update_async: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1175
1176
|
update_finish: (self: any, _res_: Gio.AsyncResult) => void
|
|
1176
1177
|
update_array_async: (self: any, sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1177
1178
|
update_array_finish: (self: any, _res_: Gio.AsyncResult) => any[] | null
|
|
1178
|
-
update_blank: (self: any, sparql: string
|
|
1179
|
-
update_blank_async: (self: any, sparql: string
|
|
1179
|
+
update_blank: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null) => GLib.Variant | null
|
|
1180
|
+
update_blank_async: (self: any, sparql: string, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1180
1181
|
update_blank_finish: (self: any, _res_: Gio.AsyncResult) => GLib.Variant | null
|
|
1181
1182
|
load: (self: any, file: Gio.File, cancellable: Gio.Cancellable | null) => void
|
|
1182
1183
|
load_async: (self: any, file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
@@ -1185,7 +1186,7 @@ interface SparqlConnectionClass {
|
|
|
1185
1186
|
statistics_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1186
1187
|
statistics_finish: (self: any, _res_: Gio.AsyncResult) => any | null
|
|
1187
1188
|
get_namespace_manager: (self: any) => NamespaceManager | null
|
|
1188
|
-
query_statement: (self: any, sparql: string
|
|
1189
|
+
query_statement: (self: any, sparql: string, cancellable: Gio.Cancellable | null) => any | null
|
|
1189
1190
|
}
|
|
1190
1191
|
|
|
1191
1192
|
abstract class SparqlConnectionClass {
|
|
@@ -1244,10 +1245,10 @@ interface SparqlStatementClass {
|
|
|
1244
1245
|
|
|
1245
1246
|
// Own fields of Tracker-2.0.Tracker.SparqlStatementClass
|
|
1246
1247
|
|
|
1247
|
-
bind_int: (self: any, name: string
|
|
1248
|
-
bind_boolean: (self: any, name: string
|
|
1249
|
-
bind_string: (self: any, name: string
|
|
1250
|
-
bind_double: (self: any, name: string
|
|
1248
|
+
bind_int: (self: any, name: string, value: number) => void
|
|
1249
|
+
bind_boolean: (self: any, name: string, value: boolean) => void
|
|
1250
|
+
bind_string: (self: any, name: string, value: string) => void
|
|
1251
|
+
bind_double: (self: any, name: string, value: number) => void
|
|
1251
1252
|
execute: (self: any, cancellable: Gio.Cancellable | null) => any
|
|
1252
1253
|
execute_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
|
|
1253
1254
|
execute_finish: (self: any, _res_: Gio.AsyncResult) => any
|