@blackcatinformatics/purrdf 0.7.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,24 @@ 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
+
79
97
  ## Graph, tabular, and research-object projection archives
80
98
 
81
99
  Projection and lift run entirely in memory through the native Rust engine. The
@@ -90,6 +108,7 @@ const config = JSON.stringify({
90
108
  profile: "lpg-csv",
91
109
  config: {
92
110
  rdf_type: "https://example.org/type",
111
+ scope: { mode: "all" },
93
112
  limits: {
94
113
  max_artifacts: 16,
95
114
  max_artifact_bytes: 1_000_000,
@@ -97,7 +116,12 @@ const config = JSON.stringify({
97
116
  max_archive_bytes: 5_000_000,
98
117
  max_term_depth: 16,
99
118
  },
100
- max_records: 1_000,
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
+ },
101
125
  },
102
126
  });
103
127
  const dataset = Dataset.parse(
@@ -110,17 +134,34 @@ const roundTrip = lifted.takeDataset();
110
134
  console.log(roundTrip?.size, JSON.parse(projected.lossLedgerJson));
111
135
  ```
112
136
 
113
- `lpg-csv`, `neo4j-csv`, `open-cypher`, `graphml`, `csvw-exact`,
114
- `croissant-1.1`, `ro-crate-1.3`, `datacite-4.6`, `dcat-3`, and
115
- `frictionless-data-package-1` are bidirectional. `obo-graphs` and `skos` are
116
- write-only, loss-ledgered views and are excluded from the `LiftProfile`
117
- TypeScript union. Research-object contexts, vocabularies, identities, and
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
118
143
  profiles are mandatory caller configuration. Archives are canonical
119
144
  deterministic USTAR bytes. Package/lift objects own wasm memory; call `free()`
120
145
  when finished, and remember that `takeDataset()` transfers its dataset exactly
121
146
  once. A runnable Node example is
122
147
  [`projection-roundtrip.mjs`](https://github.com/Blackcat-Informatics/purrdf/blob/main/crates/rdf-wasm/js/examples/projection-roundtrip.mjs).
123
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
+
124
165
  ## API surface
125
166
 
126
167
  - `ready(bytesOrUrl?)` — one-time async wasm instantiation.
@@ -128,6 +169,7 @@ once. A runnable Node example is
128
169
  `directionalLiteral`, `variable`, `defaultGraph`, `quad`, `quotedTriple`,
129
170
  `fromTerm`, `fromQuad`.
130
171
  - `Dataset` — `Dataset.parse(input, format, base?)`, `serialize(format)`,
172
+ `serializeConfigured(format, optionsJson)`, `serializeWithContext(format, context)`,
131
173
  `add` / `delete` / `has` / `match` / `quads` / `size`, iteration.
132
174
  Formats: `turtle`, `ntriples`, `nquads`, `trig`, `rdfxml` (`serialize` also `jsonld`).
133
175
  - `Dataset.canonicalize()` / `Dataset.isomorphic(other)` — RDFC-1.0 canonical N-Quads
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> {
@@ -379,10 +393,21 @@ export class Dataset implements Iterable<Quad> {
379
393
  ): Dataset;
380
394
  quads(): Quad[];
381
395
  project(profile: ProjectionProfile, configJson: string): ProjectionPackage;
396
+ projectWithAssets(
397
+ profile: "ro-crate-1.3",
398
+ configJson: string,
399
+ assetsArchive: Uint8Array,
400
+ ): ProjectionPackage;
382
401
  visualModel(options?: VisualizationOptions | null): VisualModel;
383
402
  visualExport(options?: VisualizationOptions | null): VisualExport;
384
403
  visualSvg(options?: VisualizationOptions | null): VisualSvgDocument;
385
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;
386
411
  query(sparql: string, base?: string | null): string;
387
412
  canonicalize(): string;
388
413
  isomorphic(other: Dataset): boolean;
@@ -391,21 +416,34 @@ export class Dataset implements Iterable<Quad> {
391
416
  free(): void;
392
417
  }
393
418
 
419
+ export class CompiledJsonLdContext {
420
+ constructor(optionsJson: string);
421
+ canonicalContextJson(): string;
422
+ free(): void;
423
+ }
424
+
394
425
  export type ProjectionProfile =
395
426
  | "lpg-csv"
396
427
  | "neo4j-csv"
397
428
  | "open-cypher"
398
429
  | "graphml"
399
430
  | "csvw-exact"
431
+ | "csvw-terms"
432
+ | "okf-terms"
400
433
  | "obo-graphs"
401
434
  | "skos"
402
435
  | "croissant-1.1"
403
436
  | "ro-crate-1.3"
404
437
  | "datacite-4.6"
405
438
  | "dcat-3"
439
+ | "dcat-rdf"
440
+ | "void"
406
441
  | "frictionless-data-package-1";
407
442
 
408
- export type LiftProfile = Exclude<ProjectionProfile, "obo-graphs" | "skos">;
443
+ export type LiftProfile = Exclude<
444
+ ProjectionProfile,
445
+ "csvw-terms" | "okf-terms" | "obo-graphs" | "skos" | "dcat-rdf" | "void"
446
+ >;
409
447
 
410
448
  export interface ProjectionLossLedger {
411
449
  schema_version: 1;
@@ -443,6 +481,21 @@ export class QueryEngine {
443
481
  describe(dataset: Dataset, sparql: string, options?: QueryOptions | null): Dataset;
444
482
  update(dataset: Dataset, sparql: string, options?: QueryOptions | null): Dataset;
445
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;
446
499
  free(): void;
447
500
  }
448
501
 
package/index.mjs CHANGED
@@ -19,6 +19,7 @@
19
19
  // over the synchronous `Dataset.quads()` / `Sink` engine surface.
20
20
 
21
21
  import init, {
22
+ CompiledJsonLdContext,
22
23
  DataFactory,
23
24
  Dataset,
24
25
  liftProjection,
@@ -331,6 +332,7 @@ export async function streamToDataset(quadStream) {
331
332
  }
332
333
 
333
334
  export {
335
+ CompiledJsonLdContext,
334
336
  DataFactory,
335
337
  Dataset,
336
338
  liftProjection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackcatinformatics/purrdf",
3
- "version": "0.7.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",
@@ -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).
@@ -132,6 +148,10 @@ export class Dataset {
132
148
  * Project this dataset into a deterministic graph, tabular, or research-object USTAR package.
133
149
  */
134
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;
135
155
  /**
136
156
  * `quads()` → every effective quad, as a JS array.
137
157
  */
@@ -157,6 +177,14 @@ export class Dataset {
157
177
  * N-Triples, TriG, RDF/XML) flatten them.
158
178
  */
159
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;
160
188
  /**
161
189
  * `visualExportJson(optionsJson?)` -> model, scene, geometry, and index as JSON.
162
190
  */
@@ -286,6 +314,14 @@ export class QueryEngine {
286
314
  * Run any SPARQL query and serialize its raw result.
287
315
  */
288
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;
289
325
  /**
290
326
  * Run a SELECT query and return typed rows.
291
327
  */
@@ -486,6 +522,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
486
522
 
487
523
  export interface InitOutput {
488
524
  readonly memory: WebAssembly.Memory;
525
+ readonly __wbg_compiledjsonldcontext_free: (a: number, b: number) => void;
489
526
  readonly __wbg_datafactory_free: (a: number, b: number) => void;
490
527
  readonly __wbg_dataset_free: (a: number, b: number) => void;
491
528
  readonly __wbg_projectionlift_free: (a: number, b: number) => void;
@@ -497,6 +534,8 @@ export interface InitOutput {
497
534
  readonly __wbg_selectrow_free: (a: number, b: number) => void;
498
535
  readonly __wbg_sink_free: (a: number, b: number) => void;
499
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;
500
539
  readonly datafactory_blankNode: (a: number, b: number, c: number) => number;
501
540
  readonly datafactory_defaultGraph: (a: number) => number;
502
541
  readonly datafactory_directionalLiteral: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
@@ -518,9 +557,12 @@ export interface InitOutput {
518
557
  readonly dataset_new: (a: number) => void;
519
558
  readonly dataset_parse: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
520
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;
521
561
  readonly dataset_quads: (a: number, b: number) => void;
522
562
  readonly dataset_query: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
523
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;
524
566
  readonly dataset_size: (a: number) => number;
525
567
  readonly dataset_visualExportJson: (a: number, b: number, c: number, d: number) => void;
526
568
  readonly dataset_visualModelJson: (a: number, b: number, c: number, d: number) => void;
@@ -544,6 +586,8 @@ export interface InitOutput {
544
586
  readonly queryengine_new: () => number;
545
587
  readonly queryengine_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
546
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;
547
591
  readonly queryengine_select: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
548
592
  readonly queryengine_update: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
549
593
  readonly queryresult_boolean: (a: number) => number;
@@ -576,10 +620,10 @@ export interface InitOutput {
576
620
  readonly term_value: (a: number, b: number) => void;
577
621
  readonly version: (a: number) => void;
578
622
  readonly queryengine_describe: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
579
- readonly __wbindgen_export: (a: number, b: number) => number;
580
- readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
581
623
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
582
- 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;
583
627
  }
584
628
 
585
629
  export type SyncInitInput = BufferSource | WebAssembly.Module;
@@ -1,5 +1,73 @@
1
1
  /* @ts-self-types="./purrdf_wasm.d.ts" */
2
2
 
3
+ /**
4
+ * An immutable JSON-LD 1.1 context compiled once and reusable across datasets.
5
+ */
6
+ export class CompiledJsonLdContext {
7
+ __destroy_into_raw() {
8
+ const ptr = this.__wbg_ptr;
9
+ this.__wbg_ptr = 0;
10
+ CompiledJsonLdContextFinalization.unregister(this);
11
+ return ptr;
12
+ }
13
+ free() {
14
+ const ptr = this.__destroy_into_raw();
15
+ wasm.__wbg_compiledjsonldcontext_free(ptr, 0);
16
+ }
17
+ /**
18
+ * Return the recursively canonical context document as JSON.
19
+ * @returns {string}
20
+ */
21
+ canonicalContextJson() {
22
+ let deferred2_0;
23
+ let deferred2_1;
24
+ try {
25
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
26
+ wasm.compiledjsonldcontext_canonicalContextJson(retptr, this.__wbg_ptr);
27
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
28
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
29
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
31
+ var ptr1 = r0;
32
+ var len1 = r1;
33
+ if (r3) {
34
+ ptr1 = 0; len1 = 0;
35
+ throw takeObject(r2);
36
+ }
37
+ deferred2_0 = ptr1;
38
+ deferred2_1 = len1;
39
+ return getStringFromWasm0(ptr1, len1);
40
+ } finally {
41
+ wasm.__wbindgen_add_to_stack_pointer(16);
42
+ wasm.__wbindgen_export(deferred2_0, deferred2_1, 1);
43
+ }
44
+ }
45
+ /**
46
+ * Compile the context branch of a versioned JSON-LD options document.
47
+ * @param {string} options_json
48
+ */
49
+ constructor(options_json) {
50
+ try {
51
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
52
+ const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
53
+ const len0 = WASM_VECTOR_LEN;
54
+ wasm.compiledjsonldcontext_new(retptr, ptr0, len0);
55
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
56
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
57
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
58
+ if (r2) {
59
+ throw takeObject(r1);
60
+ }
61
+ this.__wbg_ptr = r0;
62
+ CompiledJsonLdContextFinalization.register(this, this.__wbg_ptr, this);
63
+ return this;
64
+ } finally {
65
+ wasm.__wbindgen_add_to_stack_pointer(16);
66
+ }
67
+ }
68
+ }
69
+ if (Symbol.dispose) CompiledJsonLdContext.prototype[Symbol.dispose] = CompiledJsonLdContext.prototype.free;
70
+
3
71
  /**
4
72
  * An RDF/JS `DataFactory`. Stateless except for the auto-generated blank-node
5
73
  * counter (`blankNode()` with no argument mints a fresh label).
@@ -21,7 +89,7 @@ export class DataFactory {
21
89
  * @returns {Term}
22
90
  */
23
91
  blankNode(value) {
24
- var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
92
+ var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
25
93
  var len0 = WASM_VECTOR_LEN;
26
94
  const ret = wasm.datafactory_blankNode(this.__wbg_ptr, ptr0, len0);
27
95
  return Term.__wrap(ret);
@@ -46,11 +114,11 @@ export class DataFactory {
46
114
  directionalLiteral(value, language, direction) {
47
115
  try {
48
116
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
49
- const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
117
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
50
118
  const len0 = WASM_VECTOR_LEN;
51
- const ptr1 = passStringToWasm0(language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
119
+ const ptr1 = passStringToWasm0(language, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
52
120
  const len1 = WASM_VECTOR_LEN;
53
- const ptr2 = passStringToWasm0(direction, wasm.__wbindgen_export, wasm.__wbindgen_export2);
121
+ const ptr2 = passStringToWasm0(direction, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
54
122
  const len2 = WASM_VECTOR_LEN;
55
123
  wasm.datafactory_directionalLiteral(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
56
124
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -98,9 +166,9 @@ export class DataFactory {
98
166
  * @returns {Term}
99
167
  */
100
168
  literal(value, language) {
101
- const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
169
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
102
170
  const len0 = WASM_VECTOR_LEN;
103
- var ptr1 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
171
+ var ptr1 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
104
172
  var len1 = WASM_VECTOR_LEN;
105
173
  const ret = wasm.datafactory_literal(this.__wbg_ptr, ptr0, len0, ptr1, len1);
106
174
  return Term.__wrap(ret);
@@ -111,7 +179,7 @@ export class DataFactory {
111
179
  * @returns {Term}
112
180
  */
113
181
  namedNode(value) {
114
- const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
182
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
115
183
  const len0 = WASM_VECTOR_LEN;
116
184
  const ret = wasm.datafactory_namedNode(this.__wbg_ptr, ptr0, len0);
117
185
  return Term.__wrap(ret);
@@ -185,7 +253,7 @@ export class DataFactory {
185
253
  typedLiteral(value, datatype) {
186
254
  try {
187
255
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
188
- const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
256
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
189
257
  const len0 = WASM_VECTOR_LEN;
190
258
  _assertClass(datatype, Term);
191
259
  wasm.datafactory_typedLiteral(retptr, this.__wbg_ptr, ptr0, len0, datatype.__wbg_ptr);
@@ -206,7 +274,7 @@ export class DataFactory {
206
274
  * @returns {Term}
207
275
  */
208
276
  variable(value) {
209
- const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
277
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
210
278
  const len0 = WASM_VECTOR_LEN;
211
279
  const ret = wasm.datafactory_variable(this.__wbg_ptr, ptr0, len0);
212
280
  return Term.__wrap(ret);
@@ -285,7 +353,7 @@ export class Dataset {
285
353
  return getStringFromWasm0(ptr1, len1);
286
354
  } finally {
287
355
  wasm.__wbindgen_add_to_stack_pointer(16);
288
- wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
356
+ wasm.__wbindgen_export(deferred2_0, deferred2_1, 1);
289
357
  }
290
358
  }
291
359
  /**
@@ -436,11 +504,11 @@ export class Dataset {
436
504
  static parse(input, format, base) {
437
505
  try {
438
506
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
439
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export, wasm.__wbindgen_export2);
507
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
440
508
  const len0 = WASM_VECTOR_LEN;
441
- const ptr1 = passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
509
+ const ptr1 = passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
442
510
  const len1 = WASM_VECTOR_LEN;
443
- var ptr2 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
511
+ var ptr2 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
444
512
  var len2 = WASM_VECTOR_LEN;
445
513
  wasm.dataset_parse(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
446
514
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -463,9 +531,9 @@ export class Dataset {
463
531
  project(profile, config_json) {
464
532
  try {
465
533
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
466
- const ptr0 = passStringToWasm0(profile, wasm.__wbindgen_export, wasm.__wbindgen_export2);
534
+ const ptr0 = passStringToWasm0(profile, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
467
535
  const len0 = WASM_VECTOR_LEN;
468
- const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
536
+ const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
469
537
  const len1 = WASM_VECTOR_LEN;
470
538
  wasm.dataset_project(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
471
539
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -479,6 +547,34 @@ export class Dataset {
479
547
  wasm.__wbindgen_add_to_stack_pointer(16);
480
548
  }
481
549
  }
550
+ /**
551
+ * Project this dataset plus a canonical payload-only USTAR into an attached RO-Crate.
552
+ * @param {string} profile
553
+ * @param {string} config_json
554
+ * @param {Uint8Array} assets_archive
555
+ * @returns {ProjectionPackage}
556
+ */
557
+ projectWithAssets(profile, config_json, assets_archive) {
558
+ try {
559
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
560
+ const ptr0 = passStringToWasm0(profile, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
561
+ const len0 = WASM_VECTOR_LEN;
562
+ const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
563
+ const len1 = WASM_VECTOR_LEN;
564
+ const ptr2 = passArray8ToWasm0(assets_archive, wasm.__wbindgen_export2);
565
+ const len2 = WASM_VECTOR_LEN;
566
+ wasm.dataset_projectWithAssets(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
567
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
568
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
569
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
570
+ if (r2) {
571
+ throw takeObject(r1);
572
+ }
573
+ return ProjectionPackage.__wrap(r0);
574
+ } finally {
575
+ wasm.__wbindgen_add_to_stack_pointer(16);
576
+ }
577
+ }
482
578
  /**
483
579
  * `quads()` → every effective quad, as a JS array.
484
580
  * @returns {Quad[]}
@@ -495,7 +591,7 @@ export class Dataset {
495
591
  throw takeObject(r2);
496
592
  }
497
593
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
498
- wasm.__wbindgen_export3(r0, r1 * 4, 4);
594
+ wasm.__wbindgen_export(r0, r1 * 4, 4);
499
595
  return v1;
500
596
  } finally {
501
597
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -517,9 +613,9 @@ export class Dataset {
517
613
  let deferred4_1;
518
614
  try {
519
615
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
520
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
616
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
521
617
  const len0 = WASM_VECTOR_LEN;
522
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
618
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
523
619
  var len1 = WASM_VECTOR_LEN;
524
620
  wasm.dataset_query(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
525
621
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -537,7 +633,7 @@ export class Dataset {
537
633
  return getStringFromWasm0(ptr3, len3);
538
634
  } finally {
539
635
  wasm.__wbindgen_add_to_stack_pointer(16);
540
- wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
636
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
541
637
  }
542
638
  }
543
639
  /**
@@ -558,7 +654,7 @@ export class Dataset {
558
654
  let deferred3_1;
559
655
  try {
560
656
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
561
- const ptr0 = passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
657
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
562
658
  const len0 = WASM_VECTOR_LEN;
563
659
  wasm.dataset_serialize(retptr, this.__wbg_ptr, ptr0, len0);
564
660
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -576,7 +672,77 @@ export class Dataset {
576
672
  return getStringFromWasm0(ptr2, len2);
577
673
  } finally {
578
674
  wasm.__wbindgen_add_to_stack_pointer(16);
579
- wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
675
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
676
+ }
677
+ }
678
+ /**
679
+ * Serialize JSON-LD/YAML-LD using the shared versioned options decoder.
680
+ * @param {string} format
681
+ * @param {string} options_json
682
+ * @returns {string}
683
+ */
684
+ serializeConfigured(format, options_json) {
685
+ let deferred4_0;
686
+ let deferred4_1;
687
+ try {
688
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
689
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
690
+ const len0 = WASM_VECTOR_LEN;
691
+ const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
692
+ const len1 = WASM_VECTOR_LEN;
693
+ wasm.dataset_serializeConfigured(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
694
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
695
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
696
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
697
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
698
+ var ptr3 = r0;
699
+ var len3 = r1;
700
+ if (r3) {
701
+ ptr3 = 0; len3 = 0;
702
+ throw takeObject(r2);
703
+ }
704
+ deferred4_0 = ptr3;
705
+ deferred4_1 = len3;
706
+ return getStringFromWasm0(ptr3, len3);
707
+ } finally {
708
+ wasm.__wbindgen_add_to_stack_pointer(16);
709
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
710
+ }
711
+ }
712
+ /**
713
+ * Serialize JSON-LD/YAML-LD using a reusable compiled context.
714
+ * @param {string} format
715
+ * @param {CompiledJsonLdContext} context
716
+ * @param {string | null} [yaml_schema_url]
717
+ * @returns {string}
718
+ */
719
+ serializeWithContext(format, context, yaml_schema_url) {
720
+ let deferred4_0;
721
+ let deferred4_1;
722
+ try {
723
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
724
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
725
+ const len0 = WASM_VECTOR_LEN;
726
+ _assertClass(context, CompiledJsonLdContext);
727
+ var ptr1 = isLikeNone(yaml_schema_url) ? 0 : passStringToWasm0(yaml_schema_url, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
728
+ var len1 = WASM_VECTOR_LEN;
729
+ wasm.dataset_serializeWithContext(retptr, this.__wbg_ptr, ptr0, len0, context.__wbg_ptr, ptr1, len1);
730
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
731
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
732
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
733
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
734
+ var ptr3 = r0;
735
+ var len3 = r1;
736
+ if (r3) {
737
+ ptr3 = 0; len3 = 0;
738
+ throw takeObject(r2);
739
+ }
740
+ deferred4_0 = ptr3;
741
+ deferred4_1 = len3;
742
+ return getStringFromWasm0(ptr3, len3);
743
+ } finally {
744
+ wasm.__wbindgen_add_to_stack_pointer(16);
745
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
580
746
  }
581
747
  }
582
748
  /**
@@ -597,7 +763,7 @@ export class Dataset {
597
763
  let deferred3_1;
598
764
  try {
599
765
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
600
- var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
766
+ var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
601
767
  var len0 = WASM_VECTOR_LEN;
602
768
  wasm.dataset_visualExportJson(retptr, this.__wbg_ptr, ptr0, len0);
603
769
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -615,7 +781,7 @@ export class Dataset {
615
781
  return getStringFromWasm0(ptr2, len2);
616
782
  } finally {
617
783
  wasm.__wbindgen_add_to_stack_pointer(16);
618
- wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
784
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
619
785
  }
620
786
  }
621
787
  /**
@@ -628,7 +794,7 @@ export class Dataset {
628
794
  let deferred3_1;
629
795
  try {
630
796
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
631
- var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
797
+ var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
632
798
  var len0 = WASM_VECTOR_LEN;
633
799
  wasm.dataset_visualModelJson(retptr, this.__wbg_ptr, ptr0, len0);
634
800
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -646,7 +812,7 @@ export class Dataset {
646
812
  return getStringFromWasm0(ptr2, len2);
647
813
  } finally {
648
814
  wasm.__wbindgen_add_to_stack_pointer(16);
649
- wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
815
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
650
816
  }
651
817
  }
652
818
  /**
@@ -659,7 +825,7 @@ export class Dataset {
659
825
  let deferred3_1;
660
826
  try {
661
827
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
662
- var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
828
+ var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
663
829
  var len0 = WASM_VECTOR_LEN;
664
830
  wasm.dataset_visualSvgJson(retptr, this.__wbg_ptr, ptr0, len0);
665
831
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -677,7 +843,7 @@ export class Dataset {
677
843
  return getStringFromWasm0(ptr2, len2);
678
844
  } finally {
679
845
  wasm.__wbindgen_add_to_stack_pointer(16);
680
- wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
846
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
681
847
  }
682
848
  }
683
849
  }
@@ -720,7 +886,7 @@ export class ProjectionLift {
720
886
  return getStringFromWasm0(r0, r1);
721
887
  } finally {
722
888
  wasm.__wbindgen_add_to_stack_pointer(16);
723
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
889
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
724
890
  }
725
891
  }
726
892
  /**
@@ -765,7 +931,7 @@ export class ProjectionPackage {
765
931
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
766
932
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
767
933
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
768
- wasm.__wbindgen_export3(r0, r1 * 1, 1);
934
+ wasm.__wbindgen_export(r0, r1 * 1, 1);
769
935
  return v1;
770
936
  } finally {
771
937
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -788,7 +954,7 @@ export class ProjectionPackage {
788
954
  return getStringFromWasm0(r0, r1);
789
955
  } finally {
790
956
  wasm.__wbindgen_add_to_stack_pointer(16);
791
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
957
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
792
958
  }
793
959
  }
794
960
  /**
@@ -808,7 +974,7 @@ export class ProjectionPackage {
808
974
  return getStringFromWasm0(r0, r1);
809
975
  } finally {
810
976
  wasm.__wbindgen_add_to_stack_pointer(16);
811
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
977
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
812
978
  }
813
979
  }
814
980
  }
@@ -914,7 +1080,7 @@ export class Quad {
914
1080
  return getStringFromWasm0(r0, r1);
915
1081
  } finally {
916
1082
  wasm.__wbindgen_add_to_stack_pointer(16);
917
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1083
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
918
1084
  }
919
1085
  }
920
1086
  /**
@@ -934,7 +1100,7 @@ export class Quad {
934
1100
  return getStringFromWasm0(r0, r1);
935
1101
  } finally {
936
1102
  wasm.__wbindgen_add_to_stack_pointer(16);
937
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1103
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
938
1104
  }
939
1105
  }
940
1106
  }
@@ -965,9 +1131,9 @@ export class QueryEngine {
965
1131
  try {
966
1132
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
967
1133
  _assertClass(dataset, Dataset);
968
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1134
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
969
1135
  const len0 = WASM_VECTOR_LEN;
970
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1136
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
971
1137
  var len1 = WASM_VECTOR_LEN;
972
1138
  wasm.queryengine_ask(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1);
973
1139
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -992,9 +1158,9 @@ export class QueryEngine {
992
1158
  try {
993
1159
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
994
1160
  _assertClass(dataset, Dataset);
995
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1161
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
996
1162
  const len0 = WASM_VECTOR_LEN;
997
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1163
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
998
1164
  var len1 = WASM_VECTOR_LEN;
999
1165
  wasm.queryengine_construct(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1);
1000
1166
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1019,9 +1185,9 @@ export class QueryEngine {
1019
1185
  try {
1020
1186
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1021
1187
  _assertClass(dataset, Dataset);
1022
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1188
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1023
1189
  const len0 = WASM_VECTOR_LEN;
1024
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1190
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1025
1191
  var len1 = WASM_VECTOR_LEN;
1026
1192
  wasm.queryengine_describe(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1);
1027
1193
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1055,9 +1221,9 @@ export class QueryEngine {
1055
1221
  try {
1056
1222
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1057
1223
  _assertClass(dataset, Dataset);
1058
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1224
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1059
1225
  const len0 = WASM_VECTOR_LEN;
1060
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1226
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1061
1227
  var len1 = WASM_VECTOR_LEN;
1062
1228
  wasm.queryengine_query(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1);
1063
1229
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1085,11 +1251,11 @@ export class QueryEngine {
1085
1251
  try {
1086
1252
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1087
1253
  _assertClass(dataset, Dataset);
1088
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1254
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1089
1255
  const len0 = WASM_VECTOR_LEN;
1090
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1256
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1091
1257
  var len1 = WASM_VECTOR_LEN;
1092
- var ptr2 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1258
+ var ptr2 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1093
1259
  var len2 = WASM_VECTOR_LEN;
1094
1260
  wasm.queryengine_queryRaw(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
1095
1261
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1107,7 +1273,93 @@ export class QueryEngine {
1107
1273
  return getStringFromWasm0(ptr4, len4);
1108
1274
  } finally {
1109
1275
  wasm.__wbindgen_add_to_stack_pointer(16);
1110
- wasm.__wbindgen_export3(deferred5_0, deferred5_1, 1);
1276
+ wasm.__wbindgen_export(deferred5_0, deferred5_1, 1);
1277
+ }
1278
+ }
1279
+ /**
1280
+ * Serialize a CONSTRUCT/DESCRIBE result with configured JSON-LD/YAML-LD.
1281
+ * @param {Dataset} dataset
1282
+ * @param {string} sparql
1283
+ * @param {string | null | undefined} base
1284
+ * @param {string} format
1285
+ * @param {string} options_json
1286
+ * @returns {string}
1287
+ */
1288
+ queryRawConfigured(dataset, sparql, base, format, options_json) {
1289
+ let deferred6_0;
1290
+ let deferred6_1;
1291
+ try {
1292
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1293
+ _assertClass(dataset, Dataset);
1294
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1295
+ const len0 = WASM_VECTOR_LEN;
1296
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1297
+ var len1 = WASM_VECTOR_LEN;
1298
+ const ptr2 = passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1299
+ const len2 = WASM_VECTOR_LEN;
1300
+ const ptr3 = passStringToWasm0(options_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1301
+ const len3 = WASM_VECTOR_LEN;
1302
+ wasm.queryengine_queryRawConfigured(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1303
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1304
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1305
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1306
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1307
+ var ptr5 = r0;
1308
+ var len5 = r1;
1309
+ if (r3) {
1310
+ ptr5 = 0; len5 = 0;
1311
+ throw takeObject(r2);
1312
+ }
1313
+ deferred6_0 = ptr5;
1314
+ deferred6_1 = len5;
1315
+ return getStringFromWasm0(ptr5, len5);
1316
+ } finally {
1317
+ wasm.__wbindgen_add_to_stack_pointer(16);
1318
+ wasm.__wbindgen_export(deferred6_0, deferred6_1, 1);
1319
+ }
1320
+ }
1321
+ /**
1322
+ * Serialize a CONSTRUCT/DESCRIBE result with a reusable compiled context.
1323
+ * @param {Dataset} dataset
1324
+ * @param {string} sparql
1325
+ * @param {string | null | undefined} base
1326
+ * @param {string} format
1327
+ * @param {CompiledJsonLdContext} context
1328
+ * @param {string | null} [yaml_schema_url]
1329
+ * @returns {string}
1330
+ */
1331
+ queryRawWithContext(dataset, sparql, base, format, context, yaml_schema_url) {
1332
+ let deferred6_0;
1333
+ let deferred6_1;
1334
+ try {
1335
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1336
+ _assertClass(dataset, Dataset);
1337
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1338
+ const len0 = WASM_VECTOR_LEN;
1339
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1340
+ var len1 = WASM_VECTOR_LEN;
1341
+ const ptr2 = passStringToWasm0(format, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1342
+ const len2 = WASM_VECTOR_LEN;
1343
+ _assertClass(context, CompiledJsonLdContext);
1344
+ var ptr3 = isLikeNone(yaml_schema_url) ? 0 : passStringToWasm0(yaml_schema_url, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1345
+ var len3 = WASM_VECTOR_LEN;
1346
+ wasm.queryengine_queryRawWithContext(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, context.__wbg_ptr, ptr3, len3);
1347
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1348
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1349
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1350
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1351
+ var ptr5 = r0;
1352
+ var len5 = r1;
1353
+ if (r3) {
1354
+ ptr5 = 0; len5 = 0;
1355
+ throw takeObject(r2);
1356
+ }
1357
+ deferred6_0 = ptr5;
1358
+ deferred6_1 = len5;
1359
+ return getStringFromWasm0(ptr5, len5);
1360
+ } finally {
1361
+ wasm.__wbindgen_add_to_stack_pointer(16);
1362
+ wasm.__wbindgen_export(deferred6_0, deferred6_1, 1);
1111
1363
  }
1112
1364
  }
1113
1365
  /**
@@ -1121,9 +1373,9 @@ export class QueryEngine {
1121
1373
  try {
1122
1374
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1123
1375
  _assertClass(dataset, Dataset);
1124
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1376
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1125
1377
  const len0 = WASM_VECTOR_LEN;
1126
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1378
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1127
1379
  var len1 = WASM_VECTOR_LEN;
1128
1380
  wasm.queryengine_select(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1);
1129
1381
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1147,9 +1399,9 @@ export class QueryEngine {
1147
1399
  try {
1148
1400
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1149
1401
  _assertClass(dataset, Dataset);
1150
- const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1402
+ const ptr0 = passStringToWasm0(sparql, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1151
1403
  const len0 = WASM_VECTOR_LEN;
1152
- var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1404
+ var ptr1 = isLikeNone(base) ? 0 : passStringToWasm0(base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1153
1405
  var len1 = WASM_VECTOR_LEN;
1154
1406
  wasm.queryengine_update(retptr, this.__wbg_ptr, dataset.__wbg_ptr, ptr0, len0, ptr1, len1);
1155
1407
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1209,7 +1461,7 @@ export class QueryResult {
1209
1461
  return getStringFromWasm0(r0, r1);
1210
1462
  } finally {
1211
1463
  wasm.__wbindgen_add_to_stack_pointer(16);
1212
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1464
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1213
1465
  }
1214
1466
  }
1215
1467
  /**
@@ -1268,7 +1520,7 @@ export class SelectResult {
1268
1520
  return getStringFromWasm0(r0, r1);
1269
1521
  } finally {
1270
1522
  wasm.__wbindgen_add_to_stack_pointer(16);
1271
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1523
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1272
1524
  }
1273
1525
  }
1274
1526
  /**
@@ -1315,7 +1567,7 @@ export class SelectResult {
1315
1567
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1316
1568
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1317
1569
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1318
- wasm.__wbindgen_export3(r0, r1 * 4, 4);
1570
+ wasm.__wbindgen_export(r0, r1 * 4, 4);
1319
1571
  return v1;
1320
1572
  } finally {
1321
1573
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1350,7 +1602,7 @@ export class SelectRow {
1350
1602
  * @returns {Term | undefined}
1351
1603
  */
1352
1604
  get(variable) {
1353
- const ptr0 = passStringToWasm0(variable, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1605
+ const ptr0 = passStringToWasm0(variable, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1354
1606
  const len0 = WASM_VECTOR_LEN;
1355
1607
  const ret = wasm.selectrow_get(this.__wbg_ptr, ptr0, len0);
1356
1608
  return ret === 0 ? undefined : Term.__wrap(ret);
@@ -1376,7 +1628,7 @@ export class SelectRow {
1376
1628
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1377
1629
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1378
1630
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1379
- wasm.__wbindgen_export3(r0, r1 * 4, 4);
1631
+ wasm.__wbindgen_export(r0, r1 * 4, 4);
1380
1632
  return v1;
1381
1633
  } finally {
1382
1634
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1497,7 +1749,7 @@ export class Term {
1497
1749
  return getStringFromWasm0(r0, r1);
1498
1750
  } finally {
1499
1751
  wasm.__wbindgen_add_to_stack_pointer(16);
1500
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1752
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1501
1753
  }
1502
1754
  }
1503
1755
  /**
@@ -1537,7 +1789,7 @@ export class Term {
1537
1789
  return getStringFromWasm0(r0, r1);
1538
1790
  } finally {
1539
1791
  wasm.__wbindgen_add_to_stack_pointer(16);
1540
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1792
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1541
1793
  }
1542
1794
  }
1543
1795
  /**
@@ -1581,7 +1833,7 @@ export class Term {
1581
1833
  return getStringFromWasm0(r0, r1);
1582
1834
  } finally {
1583
1835
  wasm.__wbindgen_add_to_stack_pointer(16);
1584
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1836
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1585
1837
  }
1586
1838
  }
1587
1839
  /**
@@ -1602,7 +1854,7 @@ export class Term {
1602
1854
  return getStringFromWasm0(r0, r1);
1603
1855
  } finally {
1604
1856
  wasm.__wbindgen_add_to_stack_pointer(16);
1605
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1857
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1606
1858
  }
1607
1859
  }
1608
1860
  }
@@ -1618,11 +1870,11 @@ if (Symbol.dispose) Term.prototype[Symbol.dispose] = Term.prototype.free;
1618
1870
  export function liftProjection(archive, profile, config_json) {
1619
1871
  try {
1620
1872
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1621
- const ptr0 = passArray8ToWasm0(archive, wasm.__wbindgen_export);
1873
+ const ptr0 = passArray8ToWasm0(archive, wasm.__wbindgen_export2);
1622
1874
  const len0 = WASM_VECTOR_LEN;
1623
- const ptr1 = passStringToWasm0(profile, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1875
+ const ptr1 = passStringToWasm0(profile, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1624
1876
  const len1 = WASM_VECTOR_LEN;
1625
- const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1877
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1626
1878
  const len2 = WASM_VECTOR_LEN;
1627
1879
  wasm.liftProjection(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
1628
1880
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1652,9 +1904,9 @@ export function shaclEntail(shapes_ttl, data_nt) {
1652
1904
  let deferred4_1;
1653
1905
  try {
1654
1906
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1655
- const ptr0 = passStringToWasm0(shapes_ttl, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1907
+ const ptr0 = passStringToWasm0(shapes_ttl, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1656
1908
  const len0 = WASM_VECTOR_LEN;
1657
- const ptr1 = passStringToWasm0(data_nt, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1909
+ const ptr1 = passStringToWasm0(data_nt, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1658
1910
  const len1 = WASM_VECTOR_LEN;
1659
1911
  wasm.shaclEntail(retptr, ptr0, len0, ptr1, len1);
1660
1912
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1672,7 +1924,7 @@ export function shaclEntail(shapes_ttl, data_nt) {
1672
1924
  return getStringFromWasm0(ptr3, len3);
1673
1925
  } finally {
1674
1926
  wasm.__wbindgen_add_to_stack_pointer(16);
1675
- wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
1927
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
1676
1928
  }
1677
1929
  }
1678
1930
 
@@ -1690,9 +1942,9 @@ export function shaclValidateToSarif(shapes_ttl, data_nt) {
1690
1942
  let deferred4_1;
1691
1943
  try {
1692
1944
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1693
- const ptr0 = passStringToWasm0(shapes_ttl, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1945
+ const ptr0 = passStringToWasm0(shapes_ttl, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1694
1946
  const len0 = WASM_VECTOR_LEN;
1695
- const ptr1 = passStringToWasm0(data_nt, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1947
+ const ptr1 = passStringToWasm0(data_nt, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1696
1948
  const len1 = WASM_VECTOR_LEN;
1697
1949
  wasm.shaclValidateToSarif(retptr, ptr0, len0, ptr1, len1);
1698
1950
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1710,7 +1962,7 @@ export function shaclValidateToSarif(shapes_ttl, data_nt) {
1710
1962
  return getStringFromWasm0(ptr3, len3);
1711
1963
  } finally {
1712
1964
  wasm.__wbindgen_add_to_stack_pointer(16);
1713
- wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
1965
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
1714
1966
  }
1715
1967
  }
1716
1968
 
@@ -1734,7 +1986,7 @@ export function version() {
1734
1986
  return getStringFromWasm0(r0, r1);
1735
1987
  } finally {
1736
1988
  wasm.__wbindgen_add_to_stack_pointer(16);
1737
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
1989
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
1738
1990
  }
1739
1991
  }
1740
1992
  function __wbg_get_imports() {
@@ -1774,6 +2026,9 @@ function __wbg_get_imports() {
1774
2026
  };
1775
2027
  }
1776
2028
 
2029
+ const CompiledJsonLdContextFinalization = (typeof FinalizationRegistry === 'undefined')
2030
+ ? { register: () => {}, unregister: () => {} }
2031
+ : new FinalizationRegistry(ptr => wasm.__wbg_compiledjsonldcontext_free(ptr, 1));
1777
2032
  const DataFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
1778
2033
  ? { register: () => {}, unregister: () => {} }
1779
2034
  : new FinalizationRegistry(ptr => wasm.__wbg_datafactory_free(ptr, 1));
Binary file
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_compiledjsonldcontext_free: (a: number, b: number) => void;
4
5
  export const __wbg_datafactory_free: (a: number, b: number) => void;
5
6
  export const __wbg_dataset_free: (a: number, b: number) => void;
6
7
  export const __wbg_projectionlift_free: (a: number, b: number) => void;
@@ -12,6 +13,8 @@ export const __wbg_selectresult_free: (a: number, b: number) => void;
12
13
  export const __wbg_selectrow_free: (a: number, b: number) => void;
13
14
  export const __wbg_sink_free: (a: number, b: number) => void;
14
15
  export const __wbg_term_free: (a: number, b: number) => void;
16
+ export const compiledjsonldcontext_canonicalContextJson: (a: number, b: number) => void;
17
+ export const compiledjsonldcontext_new: (a: number, b: number, c: number) => void;
15
18
  export const datafactory_blankNode: (a: number, b: number, c: number) => number;
16
19
  export const datafactory_defaultGraph: (a: number) => number;
17
20
  export const datafactory_directionalLiteral: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
@@ -33,9 +36,12 @@ export const dataset_match: (a: number, b: number, c: number, d: number, e: numb
33
36
  export const dataset_new: (a: number) => void;
34
37
  export const dataset_parse: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
35
38
  export const dataset_project: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
39
+ export const dataset_projectWithAssets: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
36
40
  export const dataset_quads: (a: number, b: number) => void;
37
41
  export const dataset_query: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
38
42
  export const dataset_serialize: (a: number, b: number, c: number, d: number) => void;
43
+ export const dataset_serializeConfigured: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
44
+ export const dataset_serializeWithContext: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
39
45
  export const dataset_size: (a: number) => number;
40
46
  export const dataset_visualExportJson: (a: number, b: number, c: number, d: number) => void;
41
47
  export const dataset_visualModelJson: (a: number, b: number, c: number, d: number) => void;
@@ -59,6 +65,8 @@ export const queryengine_construct: (a: number, b: number, c: number, d: number,
59
65
  export const queryengine_new: () => number;
60
66
  export const queryengine_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
61
67
  export const queryengine_queryRaw: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
68
+ export const 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;
69
+ export const 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;
62
70
  export const queryengine_select: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
63
71
  export const queryengine_update: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
64
72
  export const queryresult_boolean: (a: number) => number;
@@ -91,7 +99,7 @@ export const term_term_type: (a: number, b: number) => void;
91
99
  export const term_value: (a: number, b: number) => void;
92
100
  export const version: (a: number) => void;
93
101
  export const queryengine_describe: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
94
- export const __wbindgen_export: (a: number, b: number) => number;
95
- export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
96
102
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
97
- export const __wbindgen_export3: (a: number, b: number, c: number) => void;
103
+ export const __wbindgen_export: (a: number, b: number, c: number) => void;
104
+ export const __wbindgen_export2: (a: number, b: number) => number;
105
+ export const __wbindgen_export3: (a: number, b: number, c: number, d: number) => number;