@semiont/graph 0.2.34-build.91 → 0.2.34-build.92
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/dist/index.d.ts +11 -2
- package/dist/index.js +83 -92
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { components, ResourceUri, UpdateResourceInput, ResourceFilter, CreateAnnotationInternal, AnnotationUri, ResourceId, AnnotationCategory, AnnotationId, GraphConnection, GraphPath, EntityTypeStats, EnvironmentConfig } from '@semiont/core';
|
|
1
|
+
import { components, ResourceUri, UpdateResourceInput, ResourceFilter, CreateAnnotationInternal, AnnotationUri, ResourceId, AnnotationCategory, AnnotationId, GraphConnection, GraphPath, EntityTypeStats, EnvironmentConfig, Logger } from '@semiont/core';
|
|
2
2
|
|
|
3
3
|
type ResourceDescriptor$4 = components['schemas']['ResourceDescriptor'];
|
|
4
4
|
type Annotation$4 = components['schemas']['Annotation'];
|
|
@@ -81,6 +81,7 @@ type Annotation$3 = components['schemas']['Annotation'];
|
|
|
81
81
|
declare class Neo4jGraphDatabase implements GraphDatabase {
|
|
82
82
|
private driver;
|
|
83
83
|
private connected;
|
|
84
|
+
private logger?;
|
|
84
85
|
private config;
|
|
85
86
|
private entityTypesCollection;
|
|
86
87
|
constructor(config?: {
|
|
@@ -88,6 +89,7 @@ declare class Neo4jGraphDatabase implements GraphDatabase {
|
|
|
88
89
|
username?: string;
|
|
89
90
|
password?: string;
|
|
90
91
|
database?: string;
|
|
92
|
+
logger?: Logger;
|
|
91
93
|
});
|
|
92
94
|
connect(): Promise<void>;
|
|
93
95
|
disconnect(): Promise<void>;
|
|
@@ -156,6 +158,7 @@ declare class NeptuneGraphDatabase implements GraphDatabase {
|
|
|
156
158
|
private neptuneEndpoint?;
|
|
157
159
|
private neptunePort;
|
|
158
160
|
private region?;
|
|
161
|
+
private logger?;
|
|
159
162
|
private g;
|
|
160
163
|
private connection;
|
|
161
164
|
private fetchAnnotationsWithEntityTypes;
|
|
@@ -163,6 +166,7 @@ declare class NeptuneGraphDatabase implements GraphDatabase {
|
|
|
163
166
|
endpoint?: string;
|
|
164
167
|
port?: number;
|
|
165
168
|
region?: string;
|
|
169
|
+
logger?: Logger;
|
|
166
170
|
});
|
|
167
171
|
private discoverNeptuneEndpoint;
|
|
168
172
|
connect(): Promise<void>;
|
|
@@ -229,12 +233,14 @@ declare class JanusGraphDatabase implements GraphDatabase {
|
|
|
229
233
|
private connected;
|
|
230
234
|
private connection;
|
|
231
235
|
private g;
|
|
236
|
+
private logger?;
|
|
232
237
|
private entityTypesCollection;
|
|
233
238
|
constructor(graphConfig: {
|
|
234
239
|
host?: string;
|
|
235
240
|
port?: number;
|
|
236
241
|
storageBackend?: 'cassandra' | 'hbase' | 'berkeleydb';
|
|
237
242
|
indexBackend?: 'elasticsearch' | 'solr' | 'lucene';
|
|
243
|
+
logger?: Logger;
|
|
238
244
|
}, envConfig: EnvironmentConfig);
|
|
239
245
|
connect(): Promise<void>;
|
|
240
246
|
disconnect(): Promise<void>;
|
|
@@ -292,9 +298,12 @@ type ResourceDescriptor = components['schemas']['ResourceDescriptor'];
|
|
|
292
298
|
type Annotation = components['schemas']['Annotation'];
|
|
293
299
|
declare class MemoryGraphDatabase implements GraphDatabase {
|
|
294
300
|
private connected;
|
|
301
|
+
private logger?;
|
|
295
302
|
private resources;
|
|
296
303
|
private annotations;
|
|
297
|
-
constructor(config?:
|
|
304
|
+
constructor(config?: {
|
|
305
|
+
logger?: Logger;
|
|
306
|
+
});
|
|
298
307
|
connect(): Promise<void>;
|
|
299
308
|
disconnect(): Promise<void>;
|
|
300
309
|
isConnected(): boolean;
|