@blackcatinformatics/purrdf 0.6.0 → 0.8.0

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 CHANGED
@@ -76,6 +76,92 @@ const names = engine.select(
76
76
  console.log(names.rows.take(0)?.message.value);
77
77
  ```
78
78
 
79
+ Configured JSON-LD/YAML-LD calls the same Rust context engine as native PurRDF:
80
+
81
+ ```js
82
+ import { CompiledJsonLdContext } from "@blackcatinformatics/purrdf";
83
+
84
+ const options = JSON.stringify({
85
+ version: 1,
86
+ mode: "context",
87
+ prefixes: { ex: "https://ex/" },
88
+ });
89
+ const context = new CompiledJsonLdContext(options);
90
+ const jsonld = reparsed.serializeWithContext("jsonld", context);
91
+ ```
92
+
93
+ `serializeConfigured` handles one-shot expanded, context, registry-backed, or
94
+ derived requests. Matching `QueryEngine.queryRawConfigured` and
95
+ `queryRawWithContext` methods serialize CONSTRUCT/DESCRIBE graph results.
96
+
97
+ ## Graph, tabular, and research-object projection archives
98
+
99
+ Projection and lift run entirely in memory through the native Rust engine. The
100
+ caller supplies strict profile-tagged JSON; PurRDF does not fabricate vocabulary,
101
+ identity, or resource limits.
102
+
103
+ ```js
104
+ import { Dataset, liftProjection, ready } from "@blackcatinformatics/purrdf";
105
+
106
+ await ready();
107
+ const config = JSON.stringify({
108
+ profile: "lpg-csv",
109
+ config: {
110
+ rdf_type: "https://example.org/type",
111
+ scope: { mode: "all" },
112
+ limits: {
113
+ max_artifacts: 16,
114
+ max_artifact_bytes: 1_000_000,
115
+ max_total_bytes: 4_000_000,
116
+ max_archive_bytes: 5_000_000,
117
+ max_term_depth: 16,
118
+ },
119
+ execution_limits: {
120
+ max_input_records: 1_000,
121
+ max_model_records: 1_000,
122
+ max_nodes: 1_000,
123
+ max_edges: 1_000,
124
+ },
125
+ },
126
+ });
127
+ const dataset = Dataset.parse(
128
+ "@prefix ex: <https://example.org/> . ex:alice ex:knows ex:bob .",
129
+ "turtle",
130
+ );
131
+ const projected = dataset.project("lpg-csv", config);
132
+ const lifted = liftProjection(projected.archive, "lpg-csv", config);
133
+ const roundTrip = lifted.takeDataset();
134
+ console.log(roundTrip?.size, JSON.parse(projected.lossLedgerJson));
135
+ ```
136
+
137
+ `lpg-csv`, `neo4j-csv`, `open-cypher`, `graphml`, `csvw-exact`, `croissant-1.1`,
138
+ `ro-crate-1.3`, `datacite-4.6`, `dcat-3`, and `frictionless-data-package-1` are
139
+ bidirectional. `csvw-terms`, `okf-terms`, `obo-graphs`, `skos`, `dcat-rdf`, and
140
+ `void` are write-only, loss-ledgered views and are excluded from the
141
+ `LiftProfile` TypeScript union.
142
+ Research-object contexts, vocabularies, identities, and
143
+ profiles are mandatory caller configuration. Archives are canonical
144
+ deterministic USTAR bytes. Package/lift objects own wasm memory; call `free()`
145
+ when finished, and remember that `takeDataset()` transfers its dataset exactly
146
+ once. A runnable Node example is
147
+ [`projection-roundtrip.mjs`](https://github.com/Blackcat-Informatics/purrdf/blob/main/crates/rdf-wasm/js/examples/projection-roundtrip.mjs).
148
+
149
+ For native RDF dataset descriptions, parse the complete source dataset and pass
150
+ the same strict caller-owned JSON used by Rust and the other hosts:
151
+
152
+ ```js
153
+ const dataset = Dataset.parse(sourceTrig, "trig");
154
+ const description = dataset.project("void", voidConfigJson);
155
+ const archive = description.archive;
156
+ description.free();
157
+ dataset.free();
158
+ ```
159
+
160
+ The `dcat-rdf` configuration selects mapped or bounded CONSTRUCT mode; the
161
+ `void` configuration names exact graphs, every target role, dataset-prefix
162
+ ownership, and all limits. Complete examples are in
163
+ `crates/rdf/tests/fixtures/dataset-description/`.
164
+
79
165
  ## API surface
80
166
 
81
167
  - `ready(bytesOrUrl?)` — one-time async wasm instantiation.
@@ -83,10 +169,14 @@ console.log(names.rows.take(0)?.message.value);
83
169
  `directionalLiteral`, `variable`, `defaultGraph`, `quad`, `quotedTriple`,
84
170
  `fromTerm`, `fromQuad`.
85
171
  - `Dataset` — `Dataset.parse(input, format, base?)`, `serialize(format)`,
172
+ `serializeConfigured(format, optionsJson)`, `serializeWithContext(format, context)`,
86
173
  `add` / `delete` / `has` / `match` / `quads` / `size`, iteration.
87
174
  Formats: `turtle`, `ntriples`, `nquads`, `trig`, `rdfxml` (`serialize` also `jsonld`).
88
175
  - `Dataset.canonicalize()` / `Dataset.isomorphic(other)` — RDFC-1.0 canonical N-Quads
89
176
  and RDF graph-identity (isomorphism under blank-node relabeling).
177
+ - `Dataset.project(profile, configJson)` / `liftProjection(archive, profile,
178
+ configJson)` — canonical graph/tabular/research-object USTAR carriers with structured,
179
+ always-computed loss-ledger JSON.
90
180
  - `Dataset.visualModel(options?)` / `visualExport(options?)` /
91
181
  `visualSvg(options?)` — the renderer-neutral RDF 1.2 model, complete semantic
92
182
  scene and deterministic geometry, or self-contained SVG paired with that export.
package/index.d.ts CHANGED
@@ -61,6 +61,20 @@ export interface QueryRawOptions extends QueryOptions {
61
61
  readonly format?: QueryRawFormat | string | null;
62
62
  }
63
63
 
64
+ /** Closed, versioned options document consumed by the shared Rust JSON-LD engine. */
65
+ export type JsonLdSerializeOptions =
66
+ | { readonly version: 1; readonly mode: "expanded"; readonly yaml_schema_url?: string }
67
+ | { readonly version: 1; readonly mode: "derived"; readonly yaml_schema_url?: string }
68
+ | {
69
+ readonly version: 1;
70
+ readonly mode: "context";
71
+ readonly prefixes?: Readonly<Record<string, string>>;
72
+ readonly context?: unknown;
73
+ readonly document_iri?: string;
74
+ readonly registry?: Readonly<Record<string, unknown>>;
75
+ readonly yaml_schema_url?: string;
76
+ };
77
+
64
78
  export type QueryBindingRow = Record<string, RdfTerm | undefined>;
65
79
 
66
80
  export interface QueryBindingRows extends IterableIterator<QueryBindingRow> {
@@ -378,10 +392,22 @@ export class Dataset implements Iterable<Quad> {
378
392
  graph?: Term | null,
379
393
  ): Dataset;
380
394
  quads(): Quad[];
395
+ project(profile: ProjectionProfile, configJson: string): ProjectionPackage;
396
+ projectWithAssets(
397
+ profile: "ro-crate-1.3",
398
+ configJson: string,
399
+ assetsArchive: Uint8Array,
400
+ ): ProjectionPackage;
381
401
  visualModel(options?: VisualizationOptions | null): VisualModel;
382
402
  visualExport(options?: VisualizationOptions | null): VisualExport;
383
403
  visualSvg(options?: VisualizationOptions | null): VisualSvgDocument;
384
404
  serialize(format: string): string;
405
+ serializeConfigured(format: "jsonld" | "yamlld" | string, optionsJson: string): string;
406
+ serializeWithContext(
407
+ format: "jsonld" | "yamlld" | string,
408
+ context: CompiledJsonLdContext,
409
+ yamlSchemaUrl?: string | null,
410
+ ): string;
385
411
  query(sparql: string, base?: string | null): string;
386
412
  canonicalize(): string;
387
413
  isomorphic(other: Dataset): boolean;
@@ -390,6 +416,62 @@ export class Dataset implements Iterable<Quad> {
390
416
  free(): void;
391
417
  }
392
418
 
419
+ export class CompiledJsonLdContext {
420
+ constructor(optionsJson: string);
421
+ canonicalContextJson(): string;
422
+ free(): void;
423
+ }
424
+
425
+ export type ProjectionProfile =
426
+ | "lpg-csv"
427
+ | "neo4j-csv"
428
+ | "open-cypher"
429
+ | "graphml"
430
+ | "csvw-exact"
431
+ | "csvw-terms"
432
+ | "okf-terms"
433
+ | "obo-graphs"
434
+ | "skos"
435
+ | "croissant-1.1"
436
+ | "ro-crate-1.3"
437
+ | "datacite-4.6"
438
+ | "dcat-3"
439
+ | "dcat-rdf"
440
+ | "void"
441
+ | "frictionless-data-package-1";
442
+
443
+ export type LiftProfile = Exclude<
444
+ ProjectionProfile,
445
+ "csvw-terms" | "okf-terms" | "obo-graphs" | "skos" | "dcat-rdf" | "void"
446
+ >;
447
+
448
+ export interface ProjectionLossLedger {
449
+ schema_version: 1;
450
+ losses: Array<{
451
+ code: string;
452
+ from: string;
453
+ to: string;
454
+ intentional: boolean;
455
+ note: string;
456
+ location?: string;
457
+ }>;
458
+ }
459
+
460
+ export class ProjectionPackage {
461
+ private constructor();
462
+ readonly profile: ProjectionProfile;
463
+ readonly archive: Uint8Array;
464
+ readonly lossLedgerJson: string;
465
+ free(): void;
466
+ }
467
+
468
+ export class ProjectionLift {
469
+ private constructor();
470
+ readonly lossLedgerJson: string;
471
+ takeDataset(): Dataset | undefined;
472
+ free(): void;
473
+ }
474
+
393
475
  export class QueryEngine {
394
476
  constructor();
395
477
  query(dataset: Dataset, sparql: string, options?: QueryOptions | null): QueryResult;
@@ -399,6 +481,21 @@ export class QueryEngine {
399
481
  describe(dataset: Dataset, sparql: string, options?: QueryOptions | null): Dataset;
400
482
  update(dataset: Dataset, sparql: string, options?: QueryOptions | null): Dataset;
401
483
  queryRaw(dataset: Dataset, sparql: string, options?: QueryRawOptions | null): string;
484
+ queryRawConfigured(
485
+ dataset: Dataset,
486
+ sparql: string,
487
+ base: string | null | undefined,
488
+ format: "jsonld" | "yamlld" | string,
489
+ optionsJson: string,
490
+ ): string;
491
+ queryRawWithContext(
492
+ dataset: Dataset,
493
+ sparql: string,
494
+ base: string | null | undefined,
495
+ format: "jsonld" | "yamlld" | string,
496
+ context: CompiledJsonLdContext,
497
+ yamlSchemaUrl?: string | null,
498
+ ): string;
402
499
  free(): void;
403
500
  }
404
501
 
@@ -414,6 +511,11 @@ export function datasetToStream(dataset: Dataset): AsyncIterableIterator<Quad>;
414
511
  export function streamToDataset(
415
512
  quadStream: AsyncIterable<Quad> | Iterable<Quad>,
416
513
  ): Promise<Dataset>;
514
+ export function liftProjection(
515
+ archive: Uint8Array,
516
+ profile: LiftProfile,
517
+ configJson: string,
518
+ ): ProjectionLift;
417
519
  export function shaclEntail(shapesTtl: string, dataNt: string): string;
418
520
  export function shaclValidateToSarif(shapesTtl: string, dataNt: string): string;
419
521
  export function version(): string;
package/index.mjs CHANGED
@@ -19,8 +19,12 @@
19
19
  // over the synchronous `Dataset.quads()` / `Sink` engine surface.
20
20
 
21
21
  import init, {
22
+ CompiledJsonLdContext,
22
23
  DataFactory,
23
24
  Dataset,
25
+ liftProjection,
26
+ ProjectionLift,
27
+ ProjectionPackage,
24
28
  Quad,
25
29
  QueryEngine,
26
30
  shaclEntail,
@@ -328,8 +332,12 @@ export async function streamToDataset(quadStream) {
328
332
  }
329
333
 
330
334
  export {
335
+ CompiledJsonLdContext,
331
336
  DataFactory,
332
337
  Dataset,
338
+ liftProjection,
339
+ ProjectionLift,
340
+ ProjectionPackage,
333
341
  Quad,
334
342
  QueryEngine,
335
343
  shaclEntail,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackcatinformatics/purrdf",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "A wasm32, in-memory RDF 1.2 engine with an idiomatic RDF/JS (DataFactory/Dataset/Stream) API. Quoted-triple terms and directional literals included.",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",
@@ -43,6 +43,7 @@
43
43
  "typecheck": "tsc -p tsconfig.types.json"
44
44
  },
45
45
  "devDependencies": {
46
+ "graphql": "16.14.0",
46
47
  "typescript": "7.0.2"
47
48
  },
48
49
  "engines": {
@@ -1,6 +1,22 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
+ /**
5
+ * An immutable JSON-LD 1.1 context compiled once and reusable across datasets.
6
+ */
7
+ export class CompiledJsonLdContext {
8
+ free(): void;
9
+ [Symbol.dispose](): void;
10
+ /**
11
+ * Return the recursively canonical context document as JSON.
12
+ */
13
+ canonicalContextJson(): string;
14
+ /**
15
+ * Compile the context branch of a versioned JSON-LD options document.
16
+ */
17
+ constructor(options_json: string);
18
+ }
19
+
4
20
  /**
5
21
  * An RDF/JS `DataFactory`. Stateless except for the auto-generated blank-node
6
22
  * counter (`blankNode()` with no argument mints a fresh label).
@@ -123,10 +139,19 @@ export class Dataset {
123
139
  /**
124
140
  * `parse(input, format, base?)` → a dataset of the parsed quads.
125
141
  *
126
- * `format` is a media type or short name (turtle/ntriples/nquads/trig/rdfxml).
142
+ * `format` is a media type or short name
143
+ * (turtle/ntriples/nquads/trig/rdfxml/jsonld/yamlld).
127
144
  * Ill-typed literals are preserved verbatim (RDFLib parity), not rejected.
128
145
  */
129
146
  static parse(input: string, format: string, base?: string | null): Dataset;
147
+ /**
148
+ * Project this dataset into a deterministic graph, tabular, or research-object USTAR package.
149
+ */
150
+ project(profile: string, config_json: string): ProjectionPackage;
151
+ /**
152
+ * Project this dataset plus a canonical payload-only USTAR into an attached RO-Crate.
153
+ */
154
+ projectWithAssets(profile: string, config_json: string, assets_archive: Uint8Array): ProjectionPackage;
130
155
  /**
131
156
  * `quads()` → every effective quad, as a JS array.
132
157
  */
@@ -143,12 +168,23 @@ export class Dataset {
143
168
  /**
144
169
  * `serialize(format)` → the dataset rendered in `format` (a UTF-8 string).
145
170
  *
146
- * Formats: `turtle` / `ntriples` / `nquads` / `trig` / `rdfxml` (their media types
147
- * too) plus `jsonld` (JSON-LD-star). Note: a quoted-triple term appearing as a quad
148
- * object currently round-trips only through N-Quads (a serializer limitation for
149
- * the other text formats).
171
+ * Formats: `turtle` / `ntriples` / `nquads` / `trig` / `rdfxml` / `jsonld`
172
+ * (JSON-LD-star) / `yamlld` (YAML-LD-star), and their media types all resolved
173
+ * through the one core registry.
174
+ *
175
+ * Object-position quoted-triple terms (RDF-1.2 triple terms) are preserved
176
+ * through N-Quads, JSON-LD, and YAML-LD; the other text syntaxes (Turtle,
177
+ * N-Triples, TriG, RDF/XML) flatten them.
150
178
  */
151
179
  serialize(format: string): string;
180
+ /**
181
+ * Serialize JSON-LD/YAML-LD using the shared versioned options decoder.
182
+ */
183
+ serializeConfigured(format: string, options_json: string): string;
184
+ /**
185
+ * Serialize JSON-LD/YAML-LD using a reusable compiled context.
186
+ */
187
+ serializeWithContext(format: string, context: CompiledJsonLdContext, yaml_schema_url?: string | null): string;
152
188
  /**
153
189
  * `visualExportJson(optionsJson?)` -> model, scene, geometry, and index as JSON.
154
190
  */
@@ -167,6 +203,44 @@ export class Dataset {
167
203
  readonly size: number;
168
204
  }
169
205
 
206
+ /**
207
+ * Result of lifting a strict carrier package into an in-memory RDF dataset.
208
+ */
209
+ export class ProjectionLift {
210
+ private constructor();
211
+ free(): void;
212
+ [Symbol.dispose](): void;
213
+ /**
214
+ * Move the lifted dataset out of this result. The dataset can be taken once.
215
+ */
216
+ takeDataset(): Dataset | undefined;
217
+ /**
218
+ * Canonical, versioned runtime loss-ledger JSON.
219
+ */
220
+ readonly lossLedgerJson: string;
221
+ }
222
+
223
+ /**
224
+ * A deterministic USTAR projection package and its canonical runtime ledger.
225
+ */
226
+ export class ProjectionPackage {
227
+ private constructor();
228
+ free(): void;
229
+ [Symbol.dispose](): void;
230
+ /**
231
+ * Canonical deterministic USTAR bytes.
232
+ */
233
+ readonly archive: Uint8Array;
234
+ /**
235
+ * Canonical, versioned runtime loss-ledger JSON.
236
+ */
237
+ readonly lossLedgerJson: string;
238
+ /**
239
+ * Stable carrier profile name.
240
+ */
241
+ readonly profile: string;
242
+ }
243
+
170
244
  /**
171
245
  * An RDF/JS [Quad](https://rdf.js.org/data-model-spec/#quad-interface) — a statement
172
246
  * `(subject, predicate, object, graph)` with `termType: "Quad"`.
@@ -240,6 +314,14 @@ export class QueryEngine {
240
314
  * Run any SPARQL query and serialize its raw result.
241
315
  */
242
316
  queryRaw(dataset: Dataset, sparql: string, base?: string | null, format?: string | null): string;
317
+ /**
318
+ * Serialize a CONSTRUCT/DESCRIBE result with configured JSON-LD/YAML-LD.
319
+ */
320
+ queryRawConfigured(dataset: Dataset, sparql: string, base: string | null | undefined, format: string, options_json: string): string;
321
+ /**
322
+ * Serialize a CONSTRUCT/DESCRIBE result with a reusable compiled context.
323
+ */
324
+ queryRawWithContext(dataset: Dataset, sparql: string, base: string | null | undefined, format: string, context: CompiledJsonLdContext, yaml_schema_url?: string | null): string;
243
325
  /**
244
326
  * Run a SELECT query and return typed rows.
245
327
  */
@@ -406,6 +488,11 @@ export class Term {
406
488
  readonly value: string;
407
489
  }
408
490
 
491
+ /**
492
+ * Lift a strict bidirectional USTAR package into an in-memory RDF dataset.
493
+ */
494
+ export function liftProjection(archive: Uint8Array, profile: string, config_json: string): ProjectionLift;
495
+
409
496
  /**
410
497
  * `shaclEntail(shapesTtl, dataNt)` → the materialized dataset as an N-Triples
411
498
  * string (the base graph plus every inferred triple).
@@ -435,8 +522,11 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
435
522
 
436
523
  export interface InitOutput {
437
524
  readonly memory: WebAssembly.Memory;
525
+ readonly __wbg_compiledjsonldcontext_free: (a: number, b: number) => void;
438
526
  readonly __wbg_datafactory_free: (a: number, b: number) => void;
439
527
  readonly __wbg_dataset_free: (a: number, b: number) => void;
528
+ readonly __wbg_projectionlift_free: (a: number, b: number) => void;
529
+ readonly __wbg_projectionpackage_free: (a: number, b: number) => void;
440
530
  readonly __wbg_quad_free: (a: number, b: number) => void;
441
531
  readonly __wbg_queryengine_free: (a: number, b: number) => void;
442
532
  readonly __wbg_queryresult_free: (a: number, b: number) => void;
@@ -444,6 +534,8 @@ export interface InitOutput {
444
534
  readonly __wbg_selectrow_free: (a: number, b: number) => void;
445
535
  readonly __wbg_sink_free: (a: number, b: number) => void;
446
536
  readonly __wbg_term_free: (a: number, b: number) => void;
537
+ readonly compiledjsonldcontext_canonicalContextJson: (a: number, b: number) => void;
538
+ readonly compiledjsonldcontext_new: (a: number, b: number, c: number) => void;
447
539
  readonly datafactory_blankNode: (a: number, b: number, c: number) => number;
448
540
  readonly datafactory_defaultGraph: (a: number) => number;
449
541
  readonly datafactory_directionalLiteral: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
@@ -464,13 +556,23 @@ export interface InitOutput {
464
556
  readonly dataset_match: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
465
557
  readonly dataset_new: (a: number) => void;
466
558
  readonly dataset_parse: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
559
+ readonly dataset_project: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
560
+ readonly dataset_projectWithAssets: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
467
561
  readonly dataset_quads: (a: number, b: number) => void;
468
562
  readonly dataset_query: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
469
563
  readonly dataset_serialize: (a: number, b: number, c: number, d: number) => void;
564
+ readonly dataset_serializeConfigured: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
565
+ readonly dataset_serializeWithContext: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
470
566
  readonly dataset_size: (a: number) => number;
471
567
  readonly dataset_visualExportJson: (a: number, b: number, c: number, d: number) => void;
472
568
  readonly dataset_visualModelJson: (a: number, b: number, c: number, d: number) => void;
473
569
  readonly dataset_visualSvgJson: (a: number, b: number, c: number, d: number) => void;
570
+ readonly liftProjection: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
571
+ readonly projectionlift_lossLedgerJson: (a: number, b: number) => void;
572
+ readonly projectionlift_takeDataset: (a: number) => number;
573
+ readonly projectionpackage_archive: (a: number, b: number) => void;
574
+ readonly projectionpackage_lossLedgerJson: (a: number, b: number) => void;
575
+ readonly projectionpackage_profile: (a: number, b: number) => void;
474
576
  readonly quad_asTerm: (a: number, b: number) => void;
475
577
  readonly quad_equals: (a: number, b: number) => number;
476
578
  readonly quad_graph: (a: number) => number;
@@ -484,6 +586,8 @@ export interface InitOutput {
484
586
  readonly queryengine_new: () => number;
485
587
  readonly queryengine_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
486
588
  readonly queryengine_queryRaw: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
589
+ readonly queryengine_queryRawConfigured: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
590
+ readonly queryengine_queryRawWithContext: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
487
591
  readonly queryengine_select: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
488
592
  readonly queryengine_update: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
489
593
  readonly queryresult_boolean: (a: number) => number;
@@ -516,10 +620,10 @@ export interface InitOutput {
516
620
  readonly term_value: (a: number, b: number) => void;
517
621
  readonly version: (a: number) => void;
518
622
  readonly queryengine_describe: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
519
- readonly __wbindgen_export: (a: number, b: number) => number;
520
- readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
521
623
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
522
- readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
624
+ readonly __wbindgen_export: (a: number, b: number, c: number) => void;
625
+ readonly __wbindgen_export2: (a: number, b: number) => number;
626
+ readonly __wbindgen_export3: (a: number, b: number, c: number, d: number) => number;
523
627
  }
524
628
 
525
629
  export type SyncInitInput = BufferSource | WebAssembly.Module;