@openhps/solid 1.1.1 → 1.1.2

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.
@@ -32,11 +32,32 @@ exports.ActorInitQuery = ActorInitQuery;
32
32
  Object.defineProperty(exports, "__esModule", ({ value: true }));
33
33
  exports.ActorInitQueryBase = void 0;
34
34
  const bus_init_1 = __webpack_require__(/*! @comunica/bus-init */ "./node_modules/@comunica/bus-init/lib/index.js");
35
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
35
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js");
36
36
  /**
37
37
  * A browser-safe comunica Query Init Actor.
38
38
  */
39
39
  class ActorInitQueryBase extends bus_init_1.ActorInit {
40
+ mediatorQueryResultSerialize;
41
+ mediatorQueryResultSerializeMediaTypeCombiner;
42
+ mediatorQueryResultSerializeMediaTypeFormatCombiner;
43
+ mediatorHttpInvalidate;
44
+ mediatorQueryProcess;
45
+ queryString;
46
+ defaultQueryInputFormat;
47
+ allowNoSources;
48
+ context;
49
+ constructor(args) {
50
+ super(args);
51
+ this.mediatorQueryResultSerialize = args.mediatorQueryResultSerialize;
52
+ this.mediatorQueryResultSerializeMediaTypeCombiner = args.mediatorQueryResultSerializeMediaTypeCombiner;
53
+ this.mediatorQueryResultSerializeMediaTypeFormatCombiner = args.mediatorQueryResultSerializeMediaTypeFormatCombiner;
54
+ this.mediatorHttpInvalidate = args.mediatorHttpInvalidate;
55
+ this.mediatorQueryProcess = args.mediatorQueryProcess;
56
+ this.queryString = args.queryString;
57
+ this.defaultQueryInputFormat = args.defaultQueryInputFormat;
58
+ this.allowNoSources = args.allowNoSources;
59
+ this.context = args.context;
60
+ }
40
61
  async test(_action) {
41
62
  return (0, core_1.passTestVoid)();
42
63
  }
@@ -58,12 +79,13 @@ exports.ActorInitQueryBase = ActorInitQueryBase;
58
79
 
59
80
  Object.defineProperty(exports, "__esModule", ({ value: true }));
60
81
  exports.QueryEngineBase = void 0;
61
- const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/lib/index.js");
62
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
82
+ const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/index.js");
83
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js");
63
84
  /**
64
85
  * Base implementation of a Comunica query engine.
65
86
  */
66
87
  class QueryEngineBase {
88
+ actorInitQuery;
67
89
  constructor(actorInitQuery) {
68
90
  this.actorInitQuery = actorInitQuery;
69
91
  }
@@ -192,11 +214,17 @@ class QueryEngineBase {
192
214
  * @param internalResult An intermediary query result.
193
215
  */
194
216
  static internalToFinalResult(internalResult) {
217
+ const logger = internalResult.context?.get(context_entries_1.KeysCore.log);
195
218
  switch (internalResult.type) {
196
219
  case 'bindings':
197
220
  return {
198
221
  resultType: 'bindings',
199
- execute: async () => internalResult.bindingsStream,
222
+ execute: async () => {
223
+ if (logger) {
224
+ internalResult.bindingsStream.on?.('end', () => logger.flush());
225
+ }
226
+ return internalResult.bindingsStream;
227
+ },
200
228
  metadata: async () => {
201
229
  const meta = await internalResult.metadata();
202
230
  meta.variables = meta.variables.map((variable) => variable.variable);
@@ -207,20 +235,33 @@ class QueryEngineBase {
207
235
  case 'quads':
208
236
  return {
209
237
  resultType: 'quads',
210
- execute: async () => internalResult.quadStream,
238
+ execute: async () => {
239
+ if (logger) {
240
+ internalResult.quadStream.on?.('end', () => logger.flush());
241
+ }
242
+ return internalResult.quadStream;
243
+ },
211
244
  metadata: async () => await internalResult.metadata(),
212
245
  context: internalResult.context,
213
246
  };
214
247
  case 'boolean':
215
248
  return {
216
249
  resultType: 'boolean',
217
- execute: async () => internalResult.execute(),
250
+ execute: async () => {
251
+ const result = await internalResult.execute();
252
+ logger?.flush();
253
+ return result;
254
+ },
218
255
  context: internalResult.context,
219
256
  };
220
257
  case 'void':
221
258
  return {
222
259
  resultType: 'void',
223
- execute: async () => internalResult.execute(),
260
+ execute: async () => {
261
+ const result = await internalResult.execute();
262
+ logger?.flush();
263
+ return result;
264
+ },
224
265
  context: internalResult.context,
225
266
  };
226
267
  }
@@ -296,6 +337,1374 @@ Object.defineProperty(exports, "QueryEngineBase", ({ enumerable: true, get: func
296
337
 
297
338
  /***/ },
298
339
 
340
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/Keys.js"
341
+ /*!****************************************************************************************************!*\
342
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/Keys.js ***!
343
+ \****************************************************************************************************/
344
+ (__unused_webpack_module, exports, __webpack_require__) {
345
+
346
+
347
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
348
+ exports.KeysStatistics = exports.KeysRdfJoin = exports.KeysMergeBindingsContext = exports.KeysRdfUpdateQuads = exports.KeysDereference = exports.KeysQuerySourceIdentify = exports.KeysRdfSerialize = exports.KeysRdfParseHtmlScript = exports.KeysRdfParseJsonLd = exports.KeysQueryOperation = exports.KeysExpressionEvaluator = exports.KeysInitQuery = exports.KeysHttpProxy = exports.KeysHttpMemento = exports.KeysHttpWayback = exports.KeysHttp = exports.KeysCore = void 0;
349
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js");
350
+ /**
351
+ * When adding entries to this file, also add a shortcut for them in the contextKeyShortcuts TSDoc comment in
352
+ * ActorContextPreprocessConvertShortcuts in @comunica/actor-init-query if it makes sense to use this entry externally.
353
+ * Also, add this shortcut to IQueryContextCommon in @comunica/types,
354
+ * and possibly the CliArgsHandlers in @comunica/actor-init-query.
355
+ */
356
+ exports.KeysCore = {
357
+ // We create the core context keys in @comunica/core to avoid a cyclic dependency
358
+ /**
359
+ * A logger instance.
360
+ */
361
+ log: core_1.CONTEXT_KEY_LOGGER,
362
+ };
363
+ exports.KeysHttp = {
364
+ /**
365
+ * Include credentials flags.
366
+ */
367
+ includeCredentials: new core_1.ActionContextKey('@comunica/bus-http:include-credentials'),
368
+ /**
369
+ * Authentication for a source as a "username:password"-pair.
370
+ */
371
+ auth: new core_1.ActionContextKey('@comunica/bus-http:auth'),
372
+ /**
373
+ * Fetch function implementation.
374
+ */
375
+ fetch: new core_1.ActionContextKey('@comunica/bus-http:fetch'),
376
+ /**
377
+ * HTTP request timeout in milliseconds.
378
+ */
379
+ httpTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-timeout'),
380
+ /**
381
+ * Makes the HTTP timeout not only apply until the response starts streaming in
382
+ * but until the response is fully consumed.
383
+ */
384
+ httpBodyTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-body-timeout'),
385
+ /**
386
+ * Number of retries to make on failed network calls. This only takes effect
387
+ * on errors thrown during the initial fetch() call and not while streaming the body.
388
+ */
389
+ httpRetryCount: new core_1.ActionContextKey('@comunica/bus-http:http-retry-count'),
390
+ /**
391
+ * The fallback retry delay in milliseconds. This value is used when a server does not
392
+ * send a delay value in the Retry-After header or if the header value is incorrectly formatted.
393
+ */
394
+ httpRetryDelayFallback: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-fallback'),
395
+ /**
396
+ * The upper limit for the retry delay in milliseconds. When a server requests a delay larger than this,
397
+ * the engine will consider it unavailable until the specified timestamp is close enough.
398
+ */
399
+ httpRetryDelayLimit: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-limit'),
400
+ /**
401
+ * HTTP status codes that should always trigger a retry, regardless of the default behaviour.
402
+ * This can be used to, for example, force retries on server-side errors in the 500 range.
403
+ */
404
+ httpRetryStatusCodes: new core_1.ActionContextKey('@comunica/bus-http:http-retry-status-codes'),
405
+ /**
406
+ * Number of retries to make when the response body stream errors mid-read.
407
+ * Response bodies are buffered per attempt (unless disabled by `httpRetryBodyMaxBytes`)
408
+ * to avoid emitting partial data to downstream parsers.
409
+ */
410
+ httpRetryBodyCount: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-count'),
411
+ /**
412
+ * The fallback retry delay in milliseconds between body retries.
413
+ */
414
+ httpRetryBodyDelayFallback: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-delay-fallback'),
415
+ /**
416
+ * Allow body retries for non-idempotent methods or non-replayable request bodies.
417
+ */
418
+ httpRetryBodyAllowUnsafe: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-allow-unsafe'),
419
+ /**
420
+ * Maximum number of bytes to buffer when retrying response body streams.
421
+ * When exceeded, body retries are disabled and the response will continue streaming as-is.
422
+ */
423
+ httpRetryBodyMaxBytes: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-max-bytes'),
424
+ /**
425
+ * An abort signal for aborting pending HTTP requests.
426
+ */
427
+ httpAbortSignal: new core_1.ActionContextKey('@comunica/bus-http:http-abort-controller'),
428
+ /**
429
+ * If the HTTP-level cache must be enabled.
430
+ * When enabled, HTTP responses will be stored within the cache, and/or responses can be read from the cache.
431
+ * This only will only do something outside a browser environment, as browsers take care of caching internally.
432
+ */
433
+ httpCache: new core_1.ActionContextKey('@comunica/bus-http:httpCache'),
434
+ };
435
+ exports.KeysHttpWayback = {
436
+ /**
437
+ * Use the WayBack machine to get the most recent representation of a file if a link is broken.
438
+ * @default false
439
+ */
440
+ recoverBrokenLinks: new core_1.ActionContextKey('@comunica/bus-http:recover-broken-links'),
441
+ };
442
+ exports.KeysHttpMemento = {
443
+ /**
444
+ * The desired datetime for Memento datetime-negotiation.
445
+ */
446
+ datetime: new core_1.ActionContextKey('@comunica/actor-http-memento:datetime'),
447
+ };
448
+ exports.KeysHttpProxy = {
449
+ /**
450
+ * Interface.
451
+ */
452
+ httpProxyHandler: new core_1.ActionContextKey('@comunica/actor-http-proxy:httpProxyHandler'),
453
+ };
454
+ exports.KeysInitQuery = {
455
+ /**
456
+ * The unidentified sources to query over.
457
+ */
458
+ querySourcesUnidentified: new core_1.ActionContextKey('@comunica/actor-init-query:querySourcesUnidentified'),
459
+ /**
460
+ * Variables that have to be pre-bound to values in the query.
461
+ */
462
+ initialBindings: new core_1.ActionContextKey('@comunica/actor-init-query:initialBindings'),
463
+ /**
464
+ * The provided query's format.
465
+ * Defaults to { language: 'sparql', version: '1.1' }
466
+ */
467
+ queryFormat: new core_1.ActionContextKey('@comunica/actor-init-query:queryFormat'),
468
+ /**
469
+ * Which GraphQL bindings should be singularized.
470
+ */
471
+ graphqlSingularizeVariables: new core_1.ActionContextKey('@comunica/actor-init-query:singularizeVariables'),
472
+ /**
473
+ * If HTTP and parsing failures are ignored.
474
+ */
475
+ lenient: new core_1.ActionContextKey('@comunica/actor-init-query:lenient'),
476
+ /**
477
+ * If SERVICE clauses are allowed to target local files.
478
+ * This is disabled by default, as queries could otherwise read arbitrary local files,
479
+ * which is problematic when queries originate from untrusted parties.
480
+ */
481
+ serviceAllowFileTargets: new core_1.ActionContextKey('@comunica/actor-init-query:serviceAllowFileTargets'),
482
+ /**
483
+ * If SERVICE clauses are allowed to have a variable as target.
484
+ * This is disabled by default, as the targets are then determined by the queried data,
485
+ * which would allow queries from untrusted parties to dereference arbitrary sources.
486
+ */
487
+ serviceAllowVariableTargets: new core_1.ActionContextKey('@comunica/actor-init-query:serviceAllowVariableTargets'),
488
+ /**
489
+ * By default, errors will be emitted if parsers encounter unsupported versions.
490
+ * Setting this flag to true will silence those checks.
491
+ * Errors may still be emitted if unsupported grammar is encountered.
492
+ */
493
+ parseUnsupportedVersions: new core_1.ActionContextKey('@comunica/actor-init-query:parseUnsupportedVersions'),
494
+ /**
495
+ * The original query string.
496
+ */
497
+ queryString: new core_1.ActionContextKey('@comunica/actor-init-query:queryString'),
498
+ /**
499
+ * The original parsed query.
500
+ */
501
+ query: new core_1.ActionContextKey('@comunica/actor-init-query:query'),
502
+ /**
503
+ * The query's base IRI.
504
+ */
505
+ baseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:baseIRI'),
506
+ /**
507
+ * The file's base IRI.
508
+ */
509
+ fileBaseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:fileBaseIRI'),
510
+ /**
511
+ * Object to cache function argument overload resolutions.
512
+ * Defaults to an object that is reused across query executions.
513
+ */
514
+ functionArgumentsCache: new core_1.ActionContextKey('@comunica/actor-init-query:functionArgumentsCache'),
515
+ /**
516
+ * A timestamp representing the current time.
517
+ * This is required for certain SPARQL operations such as NOW().
518
+ */
519
+ queryTimestamp: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestamp'),
520
+ /**
521
+ * A high resolution timestamp representing the time elapsed since Performance.timeOrigin`.
522
+ * It can be used to precisely measure durations from the start of query execution.
523
+ */
524
+ queryTimestampHighResolution: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestampHighResolution'),
525
+ /**
526
+ * @range {functionNamedNode: RDF.NamedNode) => ((args: RDF.Term[]) => Promise<RDF.Term>) | undefined}
527
+ * Extension function creator for a given function IRI.
528
+ * Returned value should be an async function implementation.
529
+ * Undefined may be returned if no implementation exists for the given function IRI.
530
+ *
531
+ * The dictionary-based extensionFunctions context entry may be used instead, but not simultaneously.
532
+ */
533
+ extensionFunctionCreator: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionCreator'),
534
+ /**
535
+ * Dictionary of extension functions.
536
+ * Key is the IRI of the function, and value is the async function implementation.
537
+ *
538
+ * The callback-based extensionFunctionCreator context entry may be used instead, but not simultaneously.
539
+ */
540
+ extensionFunctions: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctions'),
541
+ /**
542
+ * If extension functions must always be pushed down to sources that support expressions,
543
+ * even if those sources to not explicitly declare support for these extension functions.
544
+ */
545
+ extensionFunctionsAlwaysPushdown: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionsAlwaysPushdown'),
546
+ /**
547
+ * Enables manipulation of the CLI arguments and their processing.
548
+ */
549
+ cliArgsHandlers: new core_1.ActionContextKey('@comunica/actor-init-query:cliArgsHandlers'),
550
+ /**
551
+ * Explain mode of the query. Can be 'parsed', 'logical', 'query', 'physical', or 'physical-json'.
552
+ */
553
+ explain: new core_1.ActionContextKey('@comunica/actor-init-query:explain'),
554
+ /**
555
+ * Logs the used physical operators
556
+ */
557
+ physicalQueryPlanLogger: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanLogger'),
558
+ /**
559
+ * The current physical operator within the query plan.
560
+ * This is used to pass parent-child relationships for invoking the query plan logger.
561
+ */
562
+ physicalQueryPlanNode: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanNode'),
563
+ /**
564
+ * A JSON-LD context
565
+ */
566
+ jsonLdContext: new core_1.ActionContextKey('@context'),
567
+ /**
568
+ * A boolean value denoting whether caching is disabled or not.
569
+ */
570
+ invalidateCache: new core_1.ActionContextKey('@comunica/actor-init-query:invalidateCache'),
571
+ /**
572
+ * An opaque object that is unique to a single query execution.
573
+ * Actors can use it as a key into a `WeakMap` to hold state that may be reused within one query execution,
574
+ * but must never be reused across query executions, such as cached source cardinalities.
575
+ */
576
+ queryExecutionScope: new core_1.ActionContextKey('@comunica/actor-init-query:queryExecutionScope'),
577
+ /**
578
+ * The data factory for creating terms and quads.
579
+ */
580
+ dataFactory: new core_1.ActionContextKey('@comunica/actor-init-query:dataFactory'),
581
+ /**
582
+ * A boolean value denoting whether results should be deduplicated or not.
583
+ */
584
+ distinctConstruct: new core_1.ActionContextKey('@comunica/actor-init-query:distinctConstruct'),
585
+ };
586
+ exports.KeysExpressionEvaluator = {
587
+ extensionFunctionCreator: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:extensionFunctionCreator'),
588
+ superTypeProvider: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:superTypeProvider'),
589
+ defaultTimeZone: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:defaultTimeZone'),
590
+ actionContext: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:actionContext'),
591
+ /**
592
+ * A boolean denoting the behaviour of comparators (e.g. <, >, <=, >=) when used with non-lexical literal operands.
593
+ * Non-lexical literal are literals whose value does not belong in the space of it's datatype,
594
+ * e.g. "not-a-number"^^xsd:int
595
+ *
596
+ * true: compares both operands by datatypes first and if they're equal, their string values are compared.
597
+ * false: throws an error (default).
598
+ */
599
+ nonLexicalComparison: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:nonLexicalComparison'),
600
+ /**
601
+ * A boolean denoting the behaviour of comparators (e.g. <, >, <=, >=) when used with non-literal and mixed operands.
602
+ * Such non-literals are IRIs, blank nodes, languageStrings and triple terms.
603
+ * Their comparison is not required by default in SPARQL.
604
+ *
605
+ * true: compares them. (follows the relative ordering of https://www.w3.org/TR/sparql12-query/#modOrderBy)
606
+ * false: throws an error (default).
607
+ */
608
+ fullTermComparison: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:fullTermComparison'),
609
+ };
610
+ exports.KeysQueryOperation = {
611
+ /**
612
+ * Context entry for the current query operation.
613
+ */
614
+ operation: new core_1.ActionContextKey('@comunica/bus-query-operation:operation'),
615
+ /**
616
+ * @type {any} The metadata from the left streams within a join operation.
617
+ */
618
+ joinLeftMetadata: new core_1.ActionContextKey('@comunica/bus-query-operation:joinLeftMetadata'),
619
+ /**
620
+ * An array of metadata from the right streams within a join operation.
621
+ */
622
+ joinRightMetadatas: new core_1.ActionContextKey('@comunica/bus-query-operation:joinRightMetadatas'),
623
+ /**
624
+ * Indicates the bindings that were used to bind the operation.
625
+ */
626
+ joinBindings: new core_1.ActionContextKey('@comunica/bus-query-operation:joinBindings'),
627
+ /**
628
+ * Flag for indicating that only read operations are allowed, defaults to false.
629
+ */
630
+ readOnly: new core_1.ActionContextKey('@comunica/bus-query-operation:readOnly'),
631
+ /**
632
+ * Flag on a query source context indicating that this source is the target of a `SERVICE SILENT` clause.
633
+ * Errors from such a source must be swallowed, and replaced by a single empty solution,
634
+ * as mandated by SPARQL 1.1 Federated Query.
635
+ */
636
+ silent: new core_1.ActionContextKey('@comunica/bus-query-operation:silent'),
637
+ /**
638
+ * An internal context entry to mark that a property path with arbitrary length and a distinct key is being processed.
639
+ */
640
+ isPathArbitraryLengthDistinctKey: new core_1.ActionContextKey('@comunica/bus-query-operation:isPathArbitraryLengthDistinct'),
641
+ /**
642
+ * An indicator that the stream will be limited to the given number of elements afterwards.
643
+ */
644
+ limitIndicator: new core_1.ActionContextKey('@comunica/bus-query-operation:limitIndicator'),
645
+ /**
646
+ * If the default graph should also contain the union of all named graphs.
647
+ */
648
+ unionDefaultGraph: new core_1.ActionContextKey('@comunica/bus-query-operation:unionDefaultGraph'),
649
+ /**
650
+ * The sources to query over.
651
+ */
652
+ querySources: new core_1.ActionContextKey('@comunica/bus-query-operation:querySources'),
653
+ /**
654
+ * A mapping of SERVICE targets to sources.
655
+ */
656
+ serviceSources: new core_1.ActionContextKey('@comunica/bus-query-operation:serviceSources'),
657
+ };
658
+ exports.KeysRdfParseJsonLd = {
659
+ /**
660
+ * @range {IDocumentLoader}
661
+ */
662
+ documentLoader: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:documentLoader'),
663
+ /**
664
+ * @range {boolean}
665
+ */
666
+ strictValues: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:strictValues'),
667
+ /**
668
+ * @range {Record<string, any>}
669
+ */
670
+ parserOptions: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:parserOptions'),
671
+ };
672
+ exports.KeysRdfParseHtmlScript = {
673
+ /**
674
+ * An internal context flag to determine if the engine is already processing an HTML script tag.
675
+ */
676
+ processingHtmlScript: new core_1.ActionContextKey('@comunica/actor-rdf-parse-html-script:processingHtmlScript'),
677
+ /**
678
+ * If all HTML script tags must be considered.
679
+ */
680
+ extractAllScripts: new core_1.ActionContextKey('extractAllScripts'),
681
+ };
682
+ exports.KeysRdfSerialize = {
683
+ /**
684
+ * Prefixes that will be used by RDF serializers.
685
+ */
686
+ rdfSerializationPrefixes: new core_1.ActionContextKey('@comunica/bus-rdf-serialize:rdfSerializationPrefixes'),
687
+ };
688
+ exports.KeysQuerySourceIdentify = {
689
+ /**
690
+ * A map containing unique IDs for each source
691
+ */
692
+ sourceIds: new core_1.ActionContextKey('@comunica/bus-query-source-identify:sourceIds'),
693
+ /**
694
+ * If links may be traversed from this source.
695
+ * This means that sources annotated with this flag are considered incomplete until all links have been traversed.
696
+ */
697
+ traverse: new core_1.ActionContextKey('@comunica/bus-query-source-identify:traverse'),
698
+ };
699
+ exports.KeysDereference = {
700
+ /**
701
+ * If local files may not be dereferenced within the current scope.
702
+ * This is for example set when dereferencing SERVICE targets,
703
+ * to avoid exposing local files to queries from untrusted parties.
704
+ */
705
+ blockFileAccess: new core_1.ActionContextKey('@comunica/bus-dereference:blockFileAccess'),
706
+ };
707
+ exports.KeysRdfUpdateQuads = {
708
+ /**
709
+ * A data destination.
710
+ */
711
+ destination: new core_1.ActionContextKey('@comunica/bus-rdf-update-quads:destination'),
712
+ };
713
+ exports.KeysMergeBindingsContext = {
714
+ /**
715
+ * The data sources required to produce the binding
716
+ */
717
+ sourcesBinding: new core_1.ActionContextKey('@comunica/bus-merge-bindings-context:sourcesBinding'),
718
+ };
719
+ exports.KeysRdfJoin = {
720
+ /**
721
+ * The last physical join actor that was executed.
722
+ */
723
+ lastPhysicalJoin: new core_1.ActionContextKey('@comunica/bus-rdf-join:lastPhysicalJoin'),
724
+ };
725
+ exports.KeysStatistics = {
726
+ /**
727
+ * All discovered links during query execution. Not all of them will necessarily be dereferenced.
728
+ */
729
+ discoveredLinks: new core_1.ActionContextKey('@comunica/statistic:discoveredLinks'),
730
+ /**
731
+ * Information about what links are dereferenced and when
732
+ */
733
+ dereferencedLinks: new core_1.ActionContextKey('@comunica/statistic:dereferencedLinks'),
734
+ /**
735
+ * Intermediate results produced during query execution
736
+ */
737
+ intermediateResults: new core_1.ActionContextKey('@comunica/statistic:intermediateResults'),
738
+ };
739
+ //# sourceMappingURL=Keys.js.map
740
+
741
+ /***/ },
742
+
743
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/index.js"
744
+ /*!*****************************************************************************************************!*\
745
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/index.js ***!
746
+ \*****************************************************************************************************/
747
+ (__unused_webpack_module, exports, __webpack_require__) {
748
+
749
+
750
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
751
+ if (k2 === undefined) k2 = k;
752
+ var desc = Object.getOwnPropertyDescriptor(m, k);
753
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
754
+ desc = { enumerable: true, get: function() { return m[k]; } };
755
+ }
756
+ Object.defineProperty(o, k2, desc);
757
+ }) : (function(o, m, k, k2) {
758
+ if (k2 === undefined) k2 = k;
759
+ o[k2] = m[k];
760
+ }));
761
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
762
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
763
+ };
764
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
765
+ __exportStar(__webpack_require__(/*! ./Keys */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/Keys.js"), exports);
766
+ //# sourceMappingURL=index.js.map
767
+
768
+ /***/ },
769
+
770
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js"
771
+ /*!**************************************************************************************************!*\
772
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js ***!
773
+ \**************************************************************************************************/
774
+ (__unused_webpack_module, exports, __webpack_require__) {
775
+
776
+
777
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
778
+ exports.ActionContextKey = exports.ActionContext = void 0;
779
+ const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.es.js");
780
+ /**
781
+ * Implementation of {@link IActionContext} using Immutable.js.
782
+ */
783
+ class ActionContext {
784
+ map;
785
+ constructor(data = {}) {
786
+ this.map = (0, immutable_1.Map)(data);
787
+ }
788
+ /**
789
+ * Will only set the value if the key is not already set.
790
+ */
791
+ setDefault(key, value) {
792
+ return this.has(key) ? this : this.set(key, value);
793
+ }
794
+ set(key, value) {
795
+ return this.setRaw(key.name, value);
796
+ }
797
+ setRaw(key, value) {
798
+ return new ActionContext(this.map.set(key, value));
799
+ }
800
+ delete(key) {
801
+ return new ActionContext(this.map.delete(key.name));
802
+ }
803
+ get(key) {
804
+ return this.getRaw(key.name);
805
+ }
806
+ getRaw(key) {
807
+ return this.map.get(key);
808
+ }
809
+ getSafe(key) {
810
+ if (!this.has(key)) {
811
+ throw new Error(`Context entry ${key.name} is required but not available`);
812
+ }
813
+ return this.get(key);
814
+ }
815
+ has(key) {
816
+ return this.hasRaw(key.name);
817
+ }
818
+ hasRaw(key) {
819
+ return this.map.has(key);
820
+ }
821
+ merge(...contexts) {
822
+ // eslint-disable-next-line ts/no-this-alias
823
+ let context = this;
824
+ for (const source of contexts) {
825
+ for (const key of source.keys()) {
826
+ context = context.set(key, source.get(key));
827
+ }
828
+ }
829
+ return context;
830
+ }
831
+ keys() {
832
+ return [...this.map.keys()]
833
+ .map(keyName => new ActionContextKey(keyName));
834
+ }
835
+ toJS() {
836
+ return this.map.toJS();
837
+ }
838
+ toString() {
839
+ return `ActionContext(${JSON.stringify(this.map.toJS())})`;
840
+ }
841
+ [Symbol.for('nodejs.util.inspect.custom')]() {
842
+ return `ActionContext(${JSON.stringify(this.map.toJS(), null, ' ')})`;
843
+ }
844
+ /**
845
+ * Convert the given object to an action context object if it is not an action context object yet.
846
+ * If it already is an action context object, return the object as-is.
847
+ * @param maybeActionContext An action context or record.
848
+ * @return {ActionContext} An action context object.
849
+ */
850
+ static ensureActionContext(maybeActionContext) {
851
+ // This should only be an instanceof, but can fail when this package is loaded multiple times,
852
+ // with multiple ActionContexts existing in parallel.
853
+ return maybeActionContext instanceof ActionContext || (maybeActionContext && 'map' in maybeActionContext) ?
854
+ maybeActionContext :
855
+ new ActionContext((0, immutable_1.Map)(maybeActionContext ?? {}));
856
+ }
857
+ }
858
+ exports.ActionContext = ActionContext;
859
+ /**
860
+ * Simple implementation of {@link IActionContextKey}.
861
+ */
862
+ class ActionContextKey {
863
+ /**
864
+ * A unique context key name.
865
+ */
866
+ name;
867
+ dummy;
868
+ constructor(name) {
869
+ this.name = name;
870
+ }
871
+ }
872
+ exports.ActionContextKey = ActionContextKey;
873
+ //# sourceMappingURL=ActionContext.js.map
874
+
875
+ /***/ },
876
+
877
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionObserver.js"
878
+ /*!***************************************************************************************************!*\
879
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionObserver.js ***!
880
+ \***************************************************************************************************/
881
+ (__unused_webpack_module, exports) {
882
+
883
+
884
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
885
+ exports.ActionObserver = void 0;
886
+ /**
887
+ * An ActionObserver can passively listen to {@link Actor#run} inputs and outputs for all actors on a certain bus.
888
+ *
889
+ * ActionObserver should not edit inputs and outputs,
890
+ * they should be considered immutable.
891
+ *
892
+ * @see Actor
893
+ * @see Bus
894
+ *
895
+ * @template I The input type of an actor.
896
+ * @template O The output type of an actor.
897
+ * @template TS The test side data type.
898
+ */
899
+ class ActionObserver {
900
+ name;
901
+ bus;
902
+ /**
903
+ * All enumerable properties from the `args` object are inherited to this observer.
904
+ *
905
+ * The observer will NOT automatically subscribe to the given bus when this constructor is called.
906
+ *
907
+ * @param {IActionObserverArgs<I extends IAction, O extends IActorOutput>} args Arguments object
908
+ * @throws When required arguments are missing.
909
+ */
910
+ constructor(args) {
911
+ this.name = args.name;
912
+ this.bus = args.bus;
913
+ }
914
+ }
915
+ exports.ActionObserver = ActionObserver;
916
+ //# sourceMappingURL=ActionObserver.js.map
917
+
918
+ /***/ },
919
+
920
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Actor.js"
921
+ /*!******************************************************************************************!*\
922
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Actor.js ***!
923
+ \******************************************************************************************/
924
+ (__unused_webpack_module, exports, __webpack_require__) {
925
+
926
+
927
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
928
+ exports.Actor = void 0;
929
+ const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js");
930
+ /**
931
+ * An actor can act on messages of certain types and provide output of a certain type.
932
+ *
933
+ * The flow of an actor is as follows:
934
+ * 1. Send a message to {@link Actor#test} to test if an actor can run that action.
935
+ * 2. If the actor can reply to the message, let the actor run the action using {@link Actor#run}.
936
+ *
937
+ * An actor is typically subscribed to a bus,
938
+ * using which the applicability to an action can be tested.
939
+ *
940
+ * @see Bus
941
+ *
942
+ * @template I The input type of an actor.
943
+ * @template T The test type of an actor.
944
+ * @template O The output type of an actor.
945
+ * @template TS The test side data type.
946
+ */
947
+ class Actor {
948
+ name;
949
+ bus;
950
+ beforeActors = [];
951
+ /**
952
+ * The actor will subscribe to the given bus when this constructor is called.
953
+ *
954
+ * @param {IActorArgs<I extends IAction, T extends IActorTest, O extends IActorOutput>} args Arguments object
955
+ * @param {string} args.name The name for this actor.
956
+ * @param {Bus<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus
957
+ * The bus this actor subscribes to.
958
+ * @throws When required arguments are missing.
959
+ */
960
+ constructor(args) {
961
+ // Copy all own enumerable properties from args, excluding __proto__ to prevent prototype pollution.
962
+ // TODO: Remove this inheritance in next/major
963
+ for (const key of Object.keys(args)) {
964
+ if (key !== '__proto__') {
965
+ this[key] = args[key];
966
+ }
967
+ }
968
+ this.name = args.name;
969
+ this.bus = args.bus;
970
+ this.bus.subscribe(this);
971
+ if (this.beforeActors.length > 0) {
972
+ this.bus.addDependencies(this, this.beforeActors);
973
+ }
974
+ if (args.busFailMessage) {
975
+ this.bus.failMessage = args.busFailMessage;
976
+ }
977
+ }
978
+ /**
979
+ * Get the logger from the given context.
980
+ * @param {ActionContext} context An optional context.
981
+ * @return {Logger} The logger or undefined.
982
+ */
983
+ static getContextLogger(context) {
984
+ return context.get(ContextEntries_1.CONTEXT_KEY_LOGGER);
985
+ }
986
+ /**
987
+ * Run the given action on this actor
988
+ * AND invokes the {@link Bus#onRun} method.
989
+ *
990
+ * @param {I} action The action to run.
991
+ * @return {Promise<T>} A promise that resolves to the run result.
992
+ */
993
+ runObservable(action, sideData) {
994
+ const output = this.run(action, sideData);
995
+ this.bus.onRun(this, action, output);
996
+ return output;
997
+ }
998
+ /* Proxy methods for the (optional) logger that is defined in the context */
999
+ getDefaultLogData(context, data) {
1000
+ const dataActual = data ? data() : {};
1001
+ dataActual.actor = this.name;
1002
+ return dataActual;
1003
+ }
1004
+ logTrace(context, message, data) {
1005
+ const logger = Actor.getContextLogger(context);
1006
+ if (logger) {
1007
+ logger.trace(message, this.getDefaultLogData(context, data));
1008
+ }
1009
+ }
1010
+ logDebug(context, message, data) {
1011
+ const logger = Actor.getContextLogger(context);
1012
+ if (logger) {
1013
+ logger.debug(message, this.getDefaultLogData(context, data));
1014
+ }
1015
+ }
1016
+ logInfo(context, message, data) {
1017
+ const logger = Actor.getContextLogger(context);
1018
+ if (logger) {
1019
+ logger.info(message, this.getDefaultLogData(context, data));
1020
+ }
1021
+ }
1022
+ logWarn(context, message, data) {
1023
+ const logger = Actor.getContextLogger(context);
1024
+ if (logger) {
1025
+ logger.warn(message, this.getDefaultLogData(context, data));
1026
+ }
1027
+ }
1028
+ logError(context, message, data) {
1029
+ const logger = Actor.getContextLogger(context);
1030
+ if (logger) {
1031
+ logger.error(message, this.getDefaultLogData(context, data));
1032
+ }
1033
+ }
1034
+ logFatal(context, message, data) {
1035
+ const logger = Actor.getContextLogger(context);
1036
+ if (logger) {
1037
+ logger.fatal(message, this.getDefaultLogData(context, data));
1038
+ }
1039
+ }
1040
+ }
1041
+ exports.Actor = Actor;
1042
+ //# sourceMappingURL=Actor.js.map
1043
+
1044
+ /***/ },
1045
+
1046
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js"
1047
+ /*!****************************************************************************************!*\
1048
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js ***!
1049
+ \****************************************************************************************/
1050
+ (__unused_webpack_module, exports) {
1051
+
1052
+
1053
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1054
+ exports.Bus = void 0;
1055
+ /**
1056
+ * A publish-subscribe bus for sending actions to actors
1057
+ * to test whether or not they can run an action.
1058
+ *
1059
+ * This bus does not run the action itself,
1060
+ * for that a {@link Mediator} can be used.
1061
+ *
1062
+ * @see Actor
1063
+ * @see Mediator
1064
+ *
1065
+ * @template A The actor type that can subscribe to the sub.
1066
+ * @template I The input type of an actor.
1067
+ * @template T The test type of an actor.
1068
+ * @template O The output type of an actor.
1069
+ * @template TS The test side data type.
1070
+ */
1071
+ class Bus {
1072
+ name;
1073
+ actors = [];
1074
+ observers = [];
1075
+ // Mapping from dependency (after) to dependents (before)
1076
+ dependencyLinks = new Map();
1077
+ failMessage;
1078
+ /**
1079
+ * All enumerable properties from the `args` object are inherited to this bus.
1080
+ *
1081
+ * @param {IBusArgs} args Arguments object
1082
+ * @param {string} args.name The name for the bus
1083
+ * @throws When required arguments are missing.
1084
+ */
1085
+ constructor(args) {
1086
+ this.name = args.name;
1087
+ this.failMessage = `All actors over bus ${this.name} failed to handle an action`;
1088
+ }
1089
+ /**
1090
+ * Subscribe the given actor to the bus.
1091
+ * After this, the given actor can be unsubscribed from the bus by calling {@link Bus#unsubscribe}.
1092
+ *
1093
+ * An actor that is subscribed multiple times will exist that amount of times in the bus.
1094
+ *
1095
+ * @param {A} actor The actor to subscribe.
1096
+ */
1097
+ subscribe(actor) {
1098
+ this.actors.push(actor);
1099
+ this.reorderForDependencies();
1100
+ }
1101
+ /**
1102
+ * Subscribe the given observer to the bus.
1103
+ * After this, the given observer can be unsubscribed from the bus by calling {@link Bus#unsubscribeObserver}.
1104
+ *
1105
+ * An observer that is subscribed multiple times will exist that amount of times in the bus.
1106
+ *
1107
+ * @param {ActionObserver<I, O>} observer The observer to subscribe.
1108
+ */
1109
+ subscribeObserver(observer) {
1110
+ this.observers.push(observer);
1111
+ }
1112
+ /**
1113
+ * Unsubscribe the given actor from the bus.
1114
+ *
1115
+ * An actor that is subscribed multiple times will be unsubscribed only once.
1116
+ *
1117
+ * @param {A} actor The actor to unsubscribe
1118
+ * @return {boolean} If the given actor was successfully unsubscribed,
1119
+ * otherwise it was not subscribed before.
1120
+ */
1121
+ unsubscribe(actor) {
1122
+ const index = this.actors.indexOf(actor);
1123
+ if (index >= 0) {
1124
+ this.actors.splice(index, 1);
1125
+ return true;
1126
+ }
1127
+ return false;
1128
+ }
1129
+ /**
1130
+ * Unsubscribe the given observer from the bus.
1131
+ *
1132
+ * An observer that is subscribed multiple times will be unsubscribed only once.
1133
+ *
1134
+ * @param {ActionObserver<I, O>} observer The observer to unsubscribe.
1135
+ * @return {boolean} If the given observer was successfully unsubscribed,
1136
+ * otherwise it was not subscribed before.
1137
+ */
1138
+ unsubscribeObserver(observer) {
1139
+ const index = this.observers.indexOf(observer);
1140
+ if (index >= 0) {
1141
+ this.observers.splice(index, 1);
1142
+ return true;
1143
+ }
1144
+ return false;
1145
+ }
1146
+ /**
1147
+ * Publish an action to all actors in the bus to test if they can run the action.
1148
+ *
1149
+ * @param {I} action An action to publish
1150
+ * @return {IActorReply<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest,
1151
+ * O extends IActorOutput>[]}
1152
+ * An array of reply objects. Each object contains a reference to the actor,
1153
+ * and a promise to its {@link Actor#test} result.
1154
+ */
1155
+ publish(action) {
1156
+ return this.actors.map((actor) => ({ actor, reply: actor.test(action) }));
1157
+ }
1158
+ /**
1159
+ * Invoked when an action was run by an actor.
1160
+ *
1161
+ * @param actor The action on which the {@link Actor#run} method was invoked.
1162
+ * @param {I} action The original action input.
1163
+ * @param {Promise<O>} output A promise resolving to the final action output.
1164
+ */
1165
+ onRun(actor, action, output) {
1166
+ for (const observer of this.observers) {
1167
+ observer.onRun(actor, action, output);
1168
+ }
1169
+ }
1170
+ /**
1171
+ * Indicate that the given actor has the given actor dependencies.
1172
+ *
1173
+ * This will ensure that the given actor will be present in the bus *before* the given dependencies.
1174
+ *
1175
+ * @param {A} dependent A dependent actor that will be placed before the given actors.
1176
+ * @param {A[]} dependencies Actor dependencies that will be placed after the given actor.
1177
+ */
1178
+ addDependencies(dependent, dependencies) {
1179
+ for (const dependency of dependencies) {
1180
+ let existingDependencies = this.dependencyLinks.get(dependency);
1181
+ if (!existingDependencies) {
1182
+ existingDependencies = [];
1183
+ this.dependencyLinks.set(dependency, existingDependencies);
1184
+ }
1185
+ existingDependencies.push(dependent);
1186
+ }
1187
+ this.reorderForDependencies();
1188
+ }
1189
+ /**
1190
+ * Reorder the bus based on all present dependencies.
1191
+ */
1192
+ reorderForDependencies() {
1193
+ if (this.dependencyLinks.size > 0) {
1194
+ const actorsAfter = [];
1195
+ // Temporarily remove all actors that have dependencies
1196
+ for (const actorAfter of this.dependencyLinks.keys()) {
1197
+ const dependentPos = this.actors.indexOf(actorAfter);
1198
+ if (dependentPos >= 0) {
1199
+ this.actors.splice(dependentPos, 1);
1200
+ actorsAfter.push(actorAfter);
1201
+ }
1202
+ }
1203
+ // Iteratively append actors based on the first dependency link
1204
+ // that has all of its dependencies available in the array
1205
+ while (actorsAfter.length > 0) {
1206
+ // Find the first actor that has all of its dependencies available.
1207
+ let activeActorAfterId = -1;
1208
+ for (let i = 0; i < actorsAfter.length; i++) {
1209
+ let validLink = true;
1210
+ for (const dependency of this.dependencyLinks.get(actorsAfter[i])) {
1211
+ if (!this.actors.includes(dependency) && actorsAfter.includes(dependency)) {
1212
+ validLink = false;
1213
+ break;
1214
+ }
1215
+ }
1216
+ if (validLink) {
1217
+ activeActorAfterId = i;
1218
+ break;
1219
+ }
1220
+ }
1221
+ // If none of the pending links are possible, there must be a cyclic dependency
1222
+ if (activeActorAfterId < 0) {
1223
+ throw new Error(`Cyclic dependency links detected in bus ${this.name}`);
1224
+ }
1225
+ // The dependent may not be available (yet), so we don't add it to the array (yet).
1226
+ const activeActorAfter = actorsAfter.splice(activeActorAfterId, 1)[0];
1227
+ this.actors.push(activeActorAfter);
1228
+ }
1229
+ }
1230
+ }
1231
+ }
1232
+ exports.Bus = Bus;
1233
+ //# sourceMappingURL=Bus.js.map
1234
+
1235
+ /***/ },
1236
+
1237
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/BusIndexed.js"
1238
+ /*!***********************************************************************************************!*\
1239
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/BusIndexed.js ***!
1240
+ \***********************************************************************************************/
1241
+ (__unused_webpack_module, exports, __webpack_require__) {
1242
+
1243
+
1244
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1245
+ exports.BusIndexed = void 0;
1246
+ const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js");
1247
+ /**
1248
+ * A bus that indexes identified actors,
1249
+ * so that actions with a corresponding identifier can be published more efficiently.
1250
+ *
1251
+ * Multiple actors with the same identifier can be subscribed.
1252
+ *
1253
+ * If actors or actions do not have a valid identifier,
1254
+ * then this will fallback to the normal bus behaviour.
1255
+ *
1256
+ * @see Bus
1257
+ *
1258
+ * @template A The actor type that can subscribe to the sub.
1259
+ * @template I The input type of an actor.
1260
+ * @template T The test type of an actor.
1261
+ * @template O The output type of an actor.
1262
+ */
1263
+ class BusIndexed extends Bus_1.Bus {
1264
+ actorsIndex = {};
1265
+ actorIdentifierFields;
1266
+ actionIdentifierFields;
1267
+ /**
1268
+ * All enumerable properties from the `args` object are inherited to this bus.
1269
+ *
1270
+ * @param {IBusIndexedArgs} args Arguments object
1271
+ * @param {string} args.name The name for the bus
1272
+ * @throws When required arguments are missing.
1273
+ */
1274
+ constructor(args) {
1275
+ super(args);
1276
+ this.actorIdentifierFields = args.actorIdentifierFields;
1277
+ this.actionIdentifierFields = args.actionIdentifierFields;
1278
+ }
1279
+ subscribe(actor) {
1280
+ const actorIds = this.getActorIdentifiers(actor) ?? ['_undefined_'];
1281
+ for (const actorId of actorIds) {
1282
+ let actors = this.actorsIndex[actorId];
1283
+ if (!actors) {
1284
+ actors = this.actorsIndex[actorId] = [];
1285
+ }
1286
+ actors.push(actor);
1287
+ super.subscribe(actor);
1288
+ }
1289
+ }
1290
+ unsubscribe(actor) {
1291
+ const actorIds = this.getActorIdentifiers(actor) ?? ['_undefined_'];
1292
+ let unsubscribed = false;
1293
+ for (const actorId of actorIds) {
1294
+ const actors = this.actorsIndex[actorId];
1295
+ if (actors) {
1296
+ const i = actors.indexOf(actor);
1297
+ if (i >= 0) {
1298
+ actors.splice(i, 1);
1299
+ }
1300
+ if (actors.length === 0) {
1301
+ delete this.actorsIndex[actorId];
1302
+ }
1303
+ }
1304
+ unsubscribed = unsubscribed || super.unsubscribe(actor);
1305
+ }
1306
+ return unsubscribed;
1307
+ }
1308
+ publish(action) {
1309
+ const actionId = this.getActionIdentifier(action);
1310
+ if (actionId) {
1311
+ const actors = [...this.actorsIndex[actionId] || [], ...this.actorsIndex._undefined_ || []];
1312
+ return actors.map((actor) => ({ actor, reply: actor.test(action) }));
1313
+ }
1314
+ return super.publish(action);
1315
+ }
1316
+ getActorIdentifiers(actor) {
1317
+ const identifierValue = this.actorIdentifierFields
1318
+ .reduce((object, field) => object[field], actor);
1319
+ if (!identifierValue) {
1320
+ return;
1321
+ }
1322
+ return Array.isArray(identifierValue) ? identifierValue : [identifierValue];
1323
+ }
1324
+ getActionIdentifier(action) {
1325
+ return this.actionIdentifierFields.reduce((object, field) => object[field], action);
1326
+ }
1327
+ }
1328
+ exports.BusIndexed = BusIndexed;
1329
+ //# sourceMappingURL=BusIndexed.js.map
1330
+
1331
+ /***/ },
1332
+
1333
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js"
1334
+ /*!***************************************************************************************************!*\
1335
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js ***!
1336
+ \***************************************************************************************************/
1337
+ (__unused_webpack_module, exports, __webpack_require__) {
1338
+
1339
+
1340
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1341
+ exports.CONTEXT_KEY_LOGGER = void 0;
1342
+ const ActionContext_1 = __webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js");
1343
+ exports.CONTEXT_KEY_LOGGER = new ActionContext_1.ActionContextKey('@comunica/core:log');
1344
+ //# sourceMappingURL=ContextEntries.js.map
1345
+
1346
+ /***/ },
1347
+
1348
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Mediator.js"
1349
+ /*!*********************************************************************************************!*\
1350
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Mediator.js ***!
1351
+ \*********************************************************************************************/
1352
+ (__unused_webpack_module, exports) {
1353
+
1354
+
1355
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1356
+ exports.Mediator = void 0;
1357
+ /**
1358
+ * A mediator can mediate an action over a bus of actors.
1359
+ *
1360
+ * It does the following:
1361
+ * 1. Accepts an action in {@link Mediator#mediate}.
1362
+ * 2. Sends the action to the bus to test its applicability on all actors.
1363
+ * 3. It _mediates_ over these test results.
1364
+ * 4. It selects the _best_ actor.
1365
+ * 5. The action is run by the _best_ actor, and the result if returned.
1366
+ *
1367
+ * The _mediates_ and _best_ parts are filled in by subclasses of this abstract Mediator class.
1368
+ *
1369
+ * @template A The type of actor to mediator over.
1370
+ * @template I The input type of an actor.
1371
+ * @template T The test type of an actor.
1372
+ * @template O The output type of an actor.
1373
+ */
1374
+ class Mediator {
1375
+ name;
1376
+ bus;
1377
+ /**
1378
+ * All enumerable properties from the `args` object are inherited to this mediator.
1379
+ *
1380
+ * @param {IMediatorArgs<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest,
1381
+ * O extends IActorOutput>} args Arguments object
1382
+ * @param {string} args.name The name for this mediator.
1383
+ * @param {Bus<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus
1384
+ * The bus this mediator will mediate over.
1385
+ * @throws When required arguments are missing.
1386
+ */
1387
+ constructor(args) {
1388
+ this.name = args.name;
1389
+ this.bus = args.bus;
1390
+ }
1391
+ /**
1392
+ * Publish the given action in the bus.
1393
+ *
1394
+ * This will send the test action on all actors in the bus.
1395
+ * All actor replies will be returned.
1396
+ *
1397
+ * @param {I} action The action to mediate for.
1398
+ * @return {IActorReply<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput>[]}
1399
+ * The list of actor replies.
1400
+ */
1401
+ publish(action) {
1402
+ // Test all actors in the bus
1403
+ const actors = this.bus.publish(action);
1404
+ if (actors.length === 0) {
1405
+ throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);
1406
+ }
1407
+ return actors;
1408
+ }
1409
+ /**
1410
+ * Mediate for the given action to get an actor.
1411
+ *
1412
+ * This will send the test action on all actors in the bus.
1413
+ * The actor that tests _best_ will be returned.
1414
+ *
1415
+ * @param {I} action The action to mediate for.
1416
+ * @return {Promise<O extends IActorOutput>} A promise that resolves to the _best_ actor.
1417
+ */
1418
+ async mediateActor(action) {
1419
+ // Mediate to one actor and run that actor.
1420
+ return await this.mediateWith(action, this.publish(action));
1421
+ }
1422
+ /**
1423
+ * Mediate for the given action.
1424
+ *
1425
+ * This will send the test action on all actors in the bus.
1426
+ * The action will be run on the actor that tests _best_,
1427
+ * of which the result will be returned.
1428
+ *
1429
+ * @param {I} action The action to mediate for.
1430
+ * @return {Promise<O extends IActorOutput>} A promise that resolves to the mediation result.
1431
+ */
1432
+ async mediateTestable(action) {
1433
+ // Mediate to one actor and run the action on it
1434
+ const actorResult = await this.mediateActor(action);
1435
+ return actorResult.mapAsync((actor, sideData) => actor.runObservable(action, sideData));
1436
+ }
1437
+ /**
1438
+ * Mediate for the given action.
1439
+ *
1440
+ * This will send the test action on all actors in the bus.
1441
+ * The action will be run on the actor that tests _best_,
1442
+ * of which the result will be returned.
1443
+ *
1444
+ * @param {I} action The action to mediate for.
1445
+ * @return {Promise<O extends IActorOutput>} A promise that resolves to the mediation result.
1446
+ */
1447
+ async mediate(action) {
1448
+ const testable = await this.mediateTestable(action);
1449
+ return testable.getOrThrow();
1450
+ }
1451
+ /**
1452
+ * Construct a human-friendly failure message that accumulates the given actors's failure messages.
1453
+ * @param action The action that was executed.
1454
+ * @param actorFailures The failure messages that were collected from actor tests based on the given executed action.
1455
+ * @protected
1456
+ */
1457
+ constructFailureMessage(action, actorFailures) {
1458
+ const prefix = `\n `;
1459
+ const failMessage = this.bus.failMessage
1460
+ .replaceAll(/\$\{(.*?)\}/gu, (match, key) => Mediator
1461
+ .getObjectValue({ action }, key.split('.')) || match);
1462
+ return `${failMessage}\n Error messages of failing actors:${prefix}${actorFailures.join(prefix)}`;
1463
+ }
1464
+ static getObjectValue(obj, path) {
1465
+ if (path.length === 0) {
1466
+ return obj;
1467
+ }
1468
+ if (obj) {
1469
+ return Mediator.getObjectValue(obj[path[0]], path.slice(1));
1470
+ }
1471
+ return undefined;
1472
+ }
1473
+ }
1474
+ exports.Mediator = Mediator;
1475
+ //# sourceMappingURL=Mediator.js.map
1476
+
1477
+ /***/ },
1478
+
1479
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/TestResult.js"
1480
+ /*!***********************************************************************************************!*\
1481
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/TestResult.js ***!
1482
+ \***********************************************************************************************/
1483
+ (__unused_webpack_module, exports) {
1484
+
1485
+
1486
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1487
+ exports.TestResultFailed = exports.TestResultPassed = void 0;
1488
+ exports.passTest = passTest;
1489
+ exports.passTestVoid = passTestVoid;
1490
+ exports.passTestWithSideData = passTestWithSideData;
1491
+ exports.passTestVoidWithSideData = passTestVoidWithSideData;
1492
+ exports.failTest = failTest;
1493
+ /**
1494
+ * Create a new test result that represents a passed value.
1495
+ * @param value The value the test passed with.
1496
+ */
1497
+ function passTest(value) {
1498
+ return new TestResultPassed(value, undefined);
1499
+ }
1500
+ /**
1501
+ * Create a new test result that represents a passed void value.
1502
+ */
1503
+ function passTestVoid() {
1504
+ return new TestResultPassed(true, undefined);
1505
+ }
1506
+ /**
1507
+ * Create a new test result that represents a passed value with side data.
1508
+ * @param value The value the test passed with.
1509
+ * @param sideData Additional data to pass to the run phase.
1510
+ */
1511
+ function passTestWithSideData(value, sideData) {
1512
+ return new TestResultPassed(value, sideData);
1513
+ }
1514
+ /**
1515
+ * Create a new test result that represents a passed void value with side data.
1516
+ * @param sideData Additional data to pass to the run phase.
1517
+ */
1518
+ function passTestVoidWithSideData(sideData) {
1519
+ return new TestResultPassed(true, sideData);
1520
+ }
1521
+ /**
1522
+ * Create a new test result that represents a test failure.
1523
+ * @param message The error message that describes the failure.
1524
+ */
1525
+ function failTest(message) {
1526
+ return new TestResultFailed(message);
1527
+ }
1528
+ /**
1529
+ * A passed test result.
1530
+ * This should not be constructed manually.
1531
+ * Instead, `testPass` should be used.
1532
+ */
1533
+ class TestResultPassed {
1534
+ value;
1535
+ sideData;
1536
+ constructor(passValue, sideData) {
1537
+ this.value = passValue;
1538
+ this.sideData = sideData;
1539
+ }
1540
+ /**
1541
+ * Check if the test has passed.
1542
+ * If true, it will contain a value.
1543
+ */
1544
+ isPassed() {
1545
+ return true;
1546
+ }
1547
+ /**
1548
+ * Check if the test has failed.
1549
+ * If true, it will contain a failure message.
1550
+ */
1551
+ isFailed() {
1552
+ return false;
1553
+ }
1554
+ /**
1555
+ * Get the value of the passed test, or undefined if the test failed.
1556
+ */
1557
+ get() {
1558
+ return this.value;
1559
+ }
1560
+ /**
1561
+ * Get the value of the passed test, or throw an error if the test failed.
1562
+ */
1563
+ getOrThrow() {
1564
+ return this.value;
1565
+ }
1566
+ /**
1567
+ * The side data that will be passed to run.
1568
+ */
1569
+ getSideData() {
1570
+ return this.sideData;
1571
+ }
1572
+ /**
1573
+ * Get the failure message callback of the failed test, or undefined if the test passed.
1574
+ */
1575
+ getFailMessage() {
1576
+ return undefined;
1577
+ }
1578
+ /**
1579
+ * For passed tests, map the passed value to another value.
1580
+ * Failed tests will remain unchanged.
1581
+ *
1582
+ * This will not mutate the test result, and instead return a new test result.
1583
+ *
1584
+ * @param mapper A function that will transform the passed value.
1585
+ */
1586
+ map(mapper) {
1587
+ return new TestResultPassed(mapper(this.value, this.sideData), this.sideData);
1588
+ }
1589
+ /**
1590
+ * For passed tests, asynchronously map the passed value to another value.
1591
+ * Failed tests will remain unchanged.
1592
+ *
1593
+ * This will not mutate the test result, and instead return a new test result.
1594
+ *
1595
+ * @param mapper A function that will transform the passed value.
1596
+ */
1597
+ async mapAsync(mapper) {
1598
+ return new TestResultPassed(await mapper(this.value, this.sideData), this.sideData);
1599
+ }
1600
+ }
1601
+ exports.TestResultPassed = TestResultPassed;
1602
+ /**
1603
+ * A failed test result.
1604
+ * This should not be constructed manually.
1605
+ * Instead, `testFail` should be used.
1606
+ */
1607
+ class TestResultFailed {
1608
+ failMessage;
1609
+ constructor(failMessage) {
1610
+ this.failMessage = failMessage;
1611
+ }
1612
+ /**
1613
+ * Check if the test has passed.
1614
+ * If true, it will contain a value.
1615
+ */
1616
+ isPassed() {
1617
+ return false;
1618
+ }
1619
+ /**
1620
+ * Check if the test has failed.
1621
+ * If true, it will contain a failure message.
1622
+ */
1623
+ isFailed() {
1624
+ return true;
1625
+ }
1626
+ /**
1627
+ * Get the value of the passed test, or undefined if the test failed.
1628
+ */
1629
+ get() {
1630
+ return undefined;
1631
+ }
1632
+ /**
1633
+ * Get the value of the passed test, or throw an error if the test failed.
1634
+ */
1635
+ getOrThrow() {
1636
+ throw new Error(this.getFailMessage());
1637
+ }
1638
+ /**
1639
+ * The side data that will be passed to run.
1640
+ */
1641
+ getSideData() {
1642
+ throw new Error(this.getFailMessage());
1643
+ }
1644
+ /**
1645
+ * Get the failure message callback of the failed test, or undefined if the test passed.
1646
+ */
1647
+ getFailMessage() {
1648
+ return this.failMessage;
1649
+ }
1650
+ /**
1651
+ * For passed tests, map the passed value to another value.
1652
+ * Failed tests will remain unchanged.
1653
+ *
1654
+ * This will not mutate the test result, and instead return a new test result.
1655
+ */
1656
+ map() {
1657
+ return this;
1658
+ }
1659
+ /**
1660
+ * For passed tests, asynchronously map the passed value to another value.
1661
+ * Failed tests will remain unchanged.
1662
+ *
1663
+ * This will not mutate the test result, and instead return a new test result.
1664
+ */
1665
+ async mapAsync() {
1666
+ return this;
1667
+ }
1668
+ }
1669
+ exports.TestResultFailed = TestResultFailed;
1670
+ //# sourceMappingURL=TestResult.js.map
1671
+
1672
+ /***/ },
1673
+
1674
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js"
1675
+ /*!******************************************************************************************!*\
1676
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js ***!
1677
+ \******************************************************************************************/
1678
+ (__unused_webpack_module, exports, __webpack_require__) {
1679
+
1680
+
1681
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1682
+ if (k2 === undefined) k2 = k;
1683
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1684
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1685
+ desc = { enumerable: true, get: function() { return m[k]; } };
1686
+ }
1687
+ Object.defineProperty(o, k2, desc);
1688
+ }) : (function(o, m, k, k2) {
1689
+ if (k2 === undefined) k2 = k;
1690
+ o[k2] = m[k];
1691
+ }));
1692
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1693
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1694
+ };
1695
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1696
+ __exportStar(__webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js"), exports);
1697
+ __exportStar(__webpack_require__(/*! ./Bus */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js"), exports);
1698
+ __exportStar(__webpack_require__(/*! ./BusIndexed */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/BusIndexed.js"), exports);
1699
+ __exportStar(__webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js"), exports);
1700
+ __exportStar(__webpack_require__(/*! ./ActionObserver */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionObserver.js"), exports);
1701
+ __exportStar(__webpack_require__(/*! ./Actor */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Actor.js"), exports);
1702
+ __exportStar(__webpack_require__(/*! ./Mediator */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Mediator.js"), exports);
1703
+ __exportStar(__webpack_require__(/*! ./TestResult */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/TestResult.js"), exports);
1704
+ //# sourceMappingURL=index.js.map
1705
+
1706
+ /***/ },
1707
+
299
1708
  /***/ "./node_modules/@comunica/bus-init/lib/ActorInit.js"
300
1709
  /*!**********************************************************!*\
301
1710
  !*** ./node_modules/@comunica/bus-init/lib/ActorInit.js ***!
@@ -305,7 +1714,7 @@ Object.defineProperty(exports, "QueryEngineBase", ({ enumerable: true, get: func
305
1714
 
306
1715
  Object.defineProperty(exports, "__esModule", ({ value: true }));
307
1716
  exports.ActorInit = void 0;
308
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
1717
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/index.js");
309
1718
  /**
310
1719
  * A base actor for listening to init events.
311
1720
  *
@@ -360,348 +1769,10 @@ __exportStar(__webpack_require__(/*! ./ActorInit */ "./node_modules/@comunica/bu
360
1769
 
361
1770
  /***/ },
362
1771
 
363
- /***/ "./node_modules/@comunica/context-entries/lib/Keys.js"
364
- /*!************************************************************!*\
365
- !*** ./node_modules/@comunica/context-entries/lib/Keys.js ***!
366
- \************************************************************/
367
- (__unused_webpack_module, exports, __webpack_require__) {
368
-
369
-
370
- Object.defineProperty(exports, "__esModule", ({ value: true }));
371
- exports.KeysStatistics = exports.KeysRdfJoin = exports.KeysMergeBindingsContext = exports.KeysRdfUpdateQuads = exports.KeysQuerySourceIdentify = exports.KeysRdfParseHtmlScript = exports.KeysRdfParseJsonLd = exports.KeysQueryOperation = exports.KeysExpressionEvaluator = exports.KeysInitQuery = exports.KeysHttpProxy = exports.KeysHttpMemento = exports.KeysHttpWayback = exports.KeysHttp = exports.KeysCore = void 0;
372
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
373
- /**
374
- * When adding entries to this file, also add a shortcut for them in the contextKeyShortcuts TSDoc comment in
375
- * ActorInitQueryBase in @comunica/actor-init-query if it makes sense to use this entry externally.
376
- * Also, add this shortcut to IQueryContextCommon in @comunica/types.
377
- */
378
- exports.KeysCore = {
379
- // We create the core context keys in @comunica/core to avoid a cyclic dependency
380
- /**
381
- * A logger instance.
382
- */
383
- log: core_1.CONTEXT_KEY_LOGGER,
384
- };
385
- exports.KeysHttp = {
386
- /**
387
- * Include credentials flags.
388
- */
389
- includeCredentials: new core_1.ActionContextKey('@comunica/bus-http:include-credentials'),
390
- /**
391
- * Authentication for a source as a "username:password"-pair.
392
- */
393
- auth: new core_1.ActionContextKey('@comunica/bus-http:auth'),
394
- /**
395
- * Fetch function implementation.
396
- */
397
- fetch: new core_1.ActionContextKey('@comunica/bus-http:fetch'),
398
- /**
399
- * HTTP request timeout in milliseconds.
400
- */
401
- httpTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-timeout'),
402
- /**
403
- * Makes the HTTP timeout not only apply until the response starts streaming in
404
- * but until the response is fully consumed.
405
- */
406
- httpBodyTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-body-timeout'),
407
- /**
408
- * Number of retries to make on failed network calls. This only takes effect
409
- * on errors thrown during the initial fetch() call and not while streaming the body.
410
- */
411
- httpRetryCount: new core_1.ActionContextKey('@comunica/bus-http:http-retry-count'),
412
- /**
413
- * The fallback retry delay in milliseconds. This value is used when a server does not
414
- * send a delay value in the Retry-After header or if the header value is incorrectly formatted.
415
- */
416
- httpRetryDelayFallback: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-fallback'),
417
- /**
418
- * The upper limit for the retry delay in milliseconds. When a server requests a delay larger than this,
419
- * the engine will consider it unavailable until the specified timestamp is close enough.
420
- */
421
- httpRetryDelayLimit: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-limit'),
422
- /**
423
- * HTTP status codes that should always trigger a retry, regardless of the default behaviour.
424
- * This can be used to, for example, force retries on server-side errors in the 500 range.
425
- */
426
- httpRetryStatusCodes: new core_1.ActionContextKey('@comunica/bus-http:http-retry-status-codes'),
427
- };
428
- exports.KeysHttpWayback = {
429
- /**
430
- * Use the WayBack machine to get the most recent representation of a file if a link is broken.
431
- * @default false
432
- */
433
- recoverBrokenLinks: new core_1.ActionContextKey('@comunica/bus-http:recover-broken-links'),
434
- };
435
- exports.KeysHttpMemento = {
436
- /**
437
- * The desired datetime for Memento datetime-negotiation.
438
- */
439
- datetime: new core_1.ActionContextKey('@comunica/actor-http-memento:datetime'),
440
- };
441
- exports.KeysHttpProxy = {
442
- /**
443
- * Interface.
444
- */
445
- httpProxyHandler: new core_1.ActionContextKey('@comunica/actor-http-proxy:httpProxyHandler'),
446
- };
447
- exports.KeysInitQuery = {
448
- /**
449
- * The unidentified sources to query over.
450
- */
451
- querySourcesUnidentified: new core_1.ActionContextKey('@comunica/actor-init-query:querySourcesUnidentified'),
452
- /**
453
- * Variables that have to be pre-bound to values in the query.
454
- */
455
- initialBindings: new core_1.ActionContextKey('@comunica/actor-init-query:initialBindings'),
456
- /**
457
- * The provided query's format.
458
- * Defaults to { language: 'sparql', version: '1.1' }
459
- */
460
- queryFormat: new core_1.ActionContextKey('@comunica/actor-init-query:queryFormat'),
461
- /**
462
- * Which GraphQL bindings should be singularized.
463
- */
464
- graphqlSingularizeVariables: new core_1.ActionContextKey('@comunica/actor-init-query:singularizeVariables'),
465
- /**
466
- * If HTTP and parsing failures are ignored.
467
- */
468
- lenient: new core_1.ActionContextKey('@comunica/actor-init-query:lenient'),
469
- /**
470
- * The original query string.
471
- */
472
- queryString: new core_1.ActionContextKey('@comunica/actor-init-query:queryString'),
473
- /**
474
- * The original parsed query.
475
- */
476
- query: new core_1.ActionContextKey('@comunica/actor-init-query:query'),
477
- /**
478
- * The query's base IRI.
479
- */
480
- baseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:baseIRI'),
481
- /**
482
- * The file's base IRI.
483
- */
484
- fileBaseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:fileBaseIRI'),
485
- /**
486
- * Object to cache function argument overload resolutions.
487
- * Defaults to an object that is reused across query executions.
488
- */
489
- functionArgumentsCache: new core_1.ActionContextKey('@comunica/actor-init-query:functionArgumentsCache'),
490
- /**
491
- * A timestamp representing the current time.
492
- * This is required for certain SPARQL operations such as NOW().
493
- */
494
- queryTimestamp: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestamp'),
495
- /**
496
- * A high resolution timestamp representing the time elapsed since Performance.timeOrigin`.
497
- * It can be used to precisely measure durations from the start of query execution.
498
- */
499
- queryTimestampHighResolution: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestampHighResolution'),
500
- /**
501
- * @range {functionNamedNode: RDF.NamedNode) => ((args: RDF.Term[]) => Promise<RDF.Term>) | undefined}
502
- * Extension function creator for a given function IRI.
503
- * Returned value should be an async function implementation.
504
- * Undefined may be returned if no implementation exists for the given function IRI.
505
- *
506
- * The dictionary-based extensionFunctions context entry may be used instead, but not simultaneously.
507
- */
508
- extensionFunctionCreator: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionCreator'),
509
- /**
510
- * Dictionary of extension functions.
511
- * Key is the IRI of the function, and value is the async function implementation.
512
- *
513
- * The callback-based extensionFunctionCreator context entry may be used instead, but not simultaneously.
514
- */
515
- extensionFunctions: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctions'),
516
- /**
517
- * If extension functions must always be pushed down to sources that support expressions,
518
- * even if those sources to not explicitly declare support for these extension functions.
519
- */
520
- extensionFunctionsAlwaysPushdown: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionsAlwaysPushdown'),
521
- /**
522
- * Enables manipulation of the CLI arguments and their processing.
523
- */
524
- cliArgsHandlers: new core_1.ActionContextKey('@comunica/actor-init-query:cliArgsHandlers'),
525
- /**
526
- * Explain mode of the query. Can be 'parsed', 'logical', 'physical', or 'physical-json'.
527
- */
528
- explain: new core_1.ActionContextKey('@comunica/actor-init-query:explain'),
529
- /**
530
- * Logs the used physical operators
531
- */
532
- physicalQueryPlanLogger: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanLogger'),
533
- /**
534
- * The current physical operator within the query plan.
535
- * This is used to pass parent-child relationships for invoking the query plan logger.
536
- */
537
- physicalQueryPlanNode: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanNode'),
538
- /**
539
- * A JSON-LD context
540
- */
541
- jsonLdContext: new core_1.ActionContextKey('@context'),
542
- /**
543
- * A boolean value denoting whether caching is disabled or not.
544
- */
545
- invalidateCache: new core_1.ActionContextKey('@comunica/actor-init-query:invalidateCache'),
546
- /**
547
- * The data factory for creating terms and quads.
548
- */
549
- dataFactory: new core_1.ActionContextKey('@comunica/actor-init-query:dataFactory'),
550
- /**
551
- * A boolean value denoting whether results should be deduplicated or not.
552
- */
553
- distinctConstruct: new core_1.ActionContextKey('@comunica/actor-init-query:distinctConstruct'),
554
- };
555
- exports.KeysExpressionEvaluator = {
556
- extensionFunctionCreator: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:extensionFunctionCreator'),
557
- superTypeProvider: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:superTypeProvider'),
558
- defaultTimeZone: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:defaultTimeZone'),
559
- actionContext: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:actionContext'),
560
- };
561
- exports.KeysQueryOperation = {
562
- /**
563
- * Context entry for the current query operation.
564
- */
565
- operation: new core_1.ActionContextKey('@comunica/bus-query-operation:operation'),
566
- /**
567
- * @type {any} The metadata from the left streams within a join operation.
568
- */
569
- joinLeftMetadata: new core_1.ActionContextKey('@comunica/bus-query-operation:joinLeftMetadata'),
570
- /**
571
- * An array of metadata from the right streams within a join operation.
572
- */
573
- joinRightMetadatas: new core_1.ActionContextKey('@comunica/bus-query-operation:joinRightMetadatas'),
574
- /**
575
- * Indicates the bindings that were used to bind the operation.
576
- */
577
- joinBindings: new core_1.ActionContextKey('@comunica/bus-query-operation:joinBindings'),
578
- /**
579
- * Flag for indicating that only read operations are allowed, defaults to false.
580
- */
581
- readOnly: new core_1.ActionContextKey('@comunica/bus-query-operation:readOnly'),
582
- /**
583
- * An internal context entry to mark that a property path with arbitrary length and a distinct key is being processed.
584
- */
585
- isPathArbitraryLengthDistinctKey: new core_1.ActionContextKey('@comunica/bus-query-operation:isPathArbitraryLengthDistinct'),
586
- /**
587
- * An indicator that the stream will be limited to the given number of elements afterwards.
588
- */
589
- limitIndicator: new core_1.ActionContextKey('@comunica/bus-query-operation:limitIndicator'),
590
- /**
591
- * If the default graph should also contain the union of all named graphs.
592
- */
593
- unionDefaultGraph: new core_1.ActionContextKey('@comunica/bus-query-operation:unionDefaultGraph'),
594
- /**
595
- * The sources to query over.
596
- */
597
- querySources: new core_1.ActionContextKey('@comunica/bus-query-operation:querySources'),
598
- };
599
- exports.KeysRdfParseJsonLd = {
600
- /**
601
- * @range {IDocumentLoader}
602
- */
603
- documentLoader: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:documentLoader'),
604
- /**
605
- * @range {boolean}
606
- */
607
- strictValues: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:strictValues'),
608
- /**
609
- * @range {Record<string, any>}
610
- */
611
- parserOptions: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:parserOptions'),
612
- };
613
- exports.KeysRdfParseHtmlScript = {
614
- /**
615
- * An internal context flag to determine if the engine is already processing an HTML script tag.
616
- */
617
- processingHtmlScript: new core_1.ActionContextKey('@comunica/actor-rdf-parse-html-script:processingHtmlScript'),
618
- /**
619
- * If all HTML script tags must be considered.
620
- */
621
- extractAllScripts: new core_1.ActionContextKey('extractAllScripts'),
622
- };
623
- exports.KeysQuerySourceIdentify = {
624
- /**
625
- * A map containing unique IDs for each source
626
- */
627
- sourceIds: new core_1.ActionContextKey('@comunica/bus-query-source-identify:sourceIds'),
628
- /**
629
- * Hypermedia sources mapping to their aggregated store.
630
- */
631
- hypermediaSourcesAggregatedStores: new core_1.ActionContextKey('@comunica/bus-query-source-identify:hypermediaSourcesAggregatedStores'),
632
- /**
633
- * If links may be traversed from this source.
634
- * This means that sources annotated with this flag are considered incomplete until all links have been traversed.
635
- */
636
- traverse: new core_1.ActionContextKey('@comunica/bus-query-source-identify:traverse'),
637
- };
638
- exports.KeysRdfUpdateQuads = {
639
- /**
640
- * A data destination.
641
- */
642
- destination: new core_1.ActionContextKey('@comunica/bus-rdf-update-quads:destination'),
643
- };
644
- exports.KeysMergeBindingsContext = {
645
- /**
646
- * The data sources required to produce the binding
647
- */
648
- sourcesBinding: new core_1.ActionContextKey('@comunica/bus-merge-bindings-context:sourcesBinding'),
649
- };
650
- exports.KeysRdfJoin = {
651
- /**
652
- * The last physical join actor that was executed.
653
- */
654
- lastPhysicalJoin: new core_1.ActionContextKey('@comunica/bus-rdf-join:lastPhysicalJoin'),
655
- };
656
- exports.KeysStatistics = {
657
- /**
658
- * All discovered links during query execution. Not all of them will necessarily be dereferenced.
659
- */
660
- discoveredLinks: new core_1.ActionContextKey('@comunica/statistic:discoveredLinks'),
661
- /**
662
- * Information about what links are dereferenced and when
663
- */
664
- dereferencedLinks: new core_1.ActionContextKey('@comunica/statistic:dereferencedLinks'),
665
- /**
666
- * Intermediate results produced during query execution
667
- */
668
- intermediateResults: new core_1.ActionContextKey('@comunica/statistic:intermediateResults'),
669
- };
670
- //# sourceMappingURL=Keys.js.map
671
-
672
- /***/ },
673
-
674
- /***/ "./node_modules/@comunica/context-entries/lib/index.js"
675
- /*!*************************************************************!*\
676
- !*** ./node_modules/@comunica/context-entries/lib/index.js ***!
677
- \*************************************************************/
678
- (__unused_webpack_module, exports, __webpack_require__) {
679
-
680
-
681
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
682
- if (k2 === undefined) k2 = k;
683
- var desc = Object.getOwnPropertyDescriptor(m, k);
684
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
685
- desc = { enumerable: true, get: function() { return m[k]; } };
686
- }
687
- Object.defineProperty(o, k2, desc);
688
- }) : (function(o, m, k, k2) {
689
- if (k2 === undefined) k2 = k;
690
- o[k2] = m[k];
691
- }));
692
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
693
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
694
- };
695
- Object.defineProperty(exports, "__esModule", ({ value: true }));
696
- __exportStar(__webpack_require__(/*! ./Keys */ "./node_modules/@comunica/context-entries/lib/Keys.js"), exports);
697
- //# sourceMappingURL=index.js.map
698
-
699
- /***/ },
700
-
701
- /***/ "./node_modules/@comunica/core/lib/ActionContext.js"
702
- /*!**********************************************************!*\
703
- !*** ./node_modules/@comunica/core/lib/ActionContext.js ***!
704
- \**********************************************************/
1772
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js"
1773
+ /*!******************************************************************************************!*\
1774
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js ***!
1775
+ \******************************************************************************************/
705
1776
  (__unused_webpack_module, exports, __webpack_require__) {
706
1777
 
707
1778
 
@@ -712,6 +1783,7 @@ const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutab
712
1783
  * Implementation of {@link IActionContext} using Immutable.js.
713
1784
  */
714
1785
  class ActionContext {
1786
+ map;
715
1787
  constructor(data = {}) {
716
1788
  this.map = (0, immutable_1.Map)(data);
717
1789
  }
@@ -778,7 +1850,9 @@ class ActionContext {
778
1850
  * @return {ActionContext} An action context object.
779
1851
  */
780
1852
  static ensureActionContext(maybeActionContext) {
781
- return maybeActionContext instanceof ActionContext ?
1853
+ // This should only be an instanceof, but can fail when this package is loaded multiple times,
1854
+ // with multiple ActionContexts existing in parallel.
1855
+ return maybeActionContext instanceof ActionContext || (maybeActionContext && 'map' in maybeActionContext) ?
782
1856
  maybeActionContext :
783
1857
  new ActionContext((0, immutable_1.Map)(maybeActionContext ?? {}));
784
1858
  }
@@ -788,6 +1862,11 @@ exports.ActionContext = ActionContext;
788
1862
  * Simple implementation of {@link IActionContextKey}.
789
1863
  */
790
1864
  class ActionContextKey {
1865
+ /**
1866
+ * A unique context key name.
1867
+ */
1868
+ name;
1869
+ dummy;
791
1870
  constructor(name) {
792
1871
  this.name = name;
793
1872
  }
@@ -797,10 +1876,10 @@ exports.ActionContextKey = ActionContextKey;
797
1876
 
798
1877
  /***/ },
799
1878
 
800
- /***/ "./node_modules/@comunica/core/lib/ActionObserver.js"
801
- /*!***********************************************************!*\
802
- !*** ./node_modules/@comunica/core/lib/ActionObserver.js ***!
803
- \***********************************************************/
1879
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionObserver.js"
1880
+ /*!*******************************************************************************************!*\
1881
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionObserver.js ***!
1882
+ \*******************************************************************************************/
804
1883
  (__unused_webpack_module, exports) {
805
1884
 
806
1885
 
@@ -820,6 +1899,8 @@ exports.ActionObserver = void 0;
820
1899
  * @template TS The test side data type.
821
1900
  */
822
1901
  class ActionObserver {
1902
+ name;
1903
+ bus;
823
1904
  /**
824
1905
  * All enumerable properties from the `args` object are inherited to this observer.
825
1906
  *
@@ -829,7 +1910,8 @@ class ActionObserver {
829
1910
  * @throws When required arguments are missing.
830
1911
  */
831
1912
  constructor(args) {
832
- Object.assign(this, args);
1913
+ this.name = args.name;
1914
+ this.bus = args.bus;
833
1915
  }
834
1916
  }
835
1917
  exports.ActionObserver = ActionObserver;
@@ -837,16 +1919,16 @@ exports.ActionObserver = ActionObserver;
837
1919
 
838
1920
  /***/ },
839
1921
 
840
- /***/ "./node_modules/@comunica/core/lib/Actor.js"
841
- /*!**************************************************!*\
842
- !*** ./node_modules/@comunica/core/lib/Actor.js ***!
843
- \**************************************************/
1922
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Actor.js"
1923
+ /*!**********************************************************************************!*\
1924
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Actor.js ***!
1925
+ \**********************************************************************************/
844
1926
  (__unused_webpack_module, exports, __webpack_require__) {
845
1927
 
846
1928
 
847
1929
  Object.defineProperty(exports, "__esModule", ({ value: true }));
848
1930
  exports.Actor = void 0;
849
- const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/core/lib/ContextEntries.js");
1931
+ const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js");
850
1932
  /**
851
1933
  * An actor can act on messages of certain types and provide output of a certain type.
852
1934
  *
@@ -865,9 +1947,10 @@ const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_mod
865
1947
  * @template TS The test side data type.
866
1948
  */
867
1949
  class Actor {
1950
+ name;
1951
+ bus;
1952
+ beforeActors = [];
868
1953
  /**
869
- * All enumerable properties from the `args` object are inherited to this actor.
870
- *
871
1954
  * The actor will subscribe to the given bus when this constructor is called.
872
1955
  *
873
1956
  * @param {IActorArgs<I extends IAction, T extends IActorTest, O extends IActorOutput>} args Arguments object
@@ -877,8 +1960,15 @@ class Actor {
877
1960
  * @throws When required arguments are missing.
878
1961
  */
879
1962
  constructor(args) {
880
- this.beforeActors = [];
881
- Object.assign(this, args);
1963
+ // Copy all own enumerable properties from args, excluding __proto__ to prevent prototype pollution.
1964
+ // TODO: Remove this inheritance in next/major
1965
+ for (const key of Object.keys(args)) {
1966
+ if (key !== '__proto__') {
1967
+ this[key] = args[key];
1968
+ }
1969
+ }
1970
+ this.name = args.name;
1971
+ this.bus = args.bus;
882
1972
  this.bus.subscribe(this);
883
1973
  if (this.beforeActors.length > 0) {
884
1974
  this.bus.addDependencies(this, this.beforeActors);
@@ -955,10 +2045,10 @@ exports.Actor = Actor;
955
2045
 
956
2046
  /***/ },
957
2047
 
958
- /***/ "./node_modules/@comunica/core/lib/Bus.js"
959
- /*!************************************************!*\
960
- !*** ./node_modules/@comunica/core/lib/Bus.js ***!
961
- \************************************************/
2048
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js"
2049
+ /*!********************************************************************************!*\
2050
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js ***!
2051
+ \********************************************************************************/
962
2052
  (__unused_webpack_module, exports) {
963
2053
 
964
2054
 
@@ -981,6 +2071,12 @@ exports.Bus = void 0;
981
2071
  * @template TS The test side data type.
982
2072
  */
983
2073
  class Bus {
2074
+ name;
2075
+ actors = [];
2076
+ observers = [];
2077
+ // Mapping from dependency (after) to dependents (before)
2078
+ dependencyLinks = new Map();
2079
+ failMessage;
984
2080
  /**
985
2081
  * All enumerable properties from the `args` object are inherited to this bus.
986
2082
  *
@@ -989,11 +2085,7 @@ class Bus {
989
2085
  * @throws When required arguments are missing.
990
2086
  */
991
2087
  constructor(args) {
992
- this.actors = [];
993
- this.observers = [];
994
- // Mapping from dependency (after) to dependents (before)
995
- this.dependencyLinks = new Map();
996
- Object.assign(this, args);
2088
+ this.name = args.name;
997
2089
  this.failMessage = `All actors over bus ${this.name} failed to handle an action`;
998
2090
  }
999
2091
  /**
@@ -1144,16 +2236,16 @@ exports.Bus = Bus;
1144
2236
 
1145
2237
  /***/ },
1146
2238
 
1147
- /***/ "./node_modules/@comunica/core/lib/BusIndexed.js"
1148
- /*!*******************************************************!*\
1149
- !*** ./node_modules/@comunica/core/lib/BusIndexed.js ***!
1150
- \*******************************************************/
2239
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/BusIndexed.js"
2240
+ /*!***************************************************************************************!*\
2241
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/BusIndexed.js ***!
2242
+ \***************************************************************************************/
1151
2243
  (__unused_webpack_module, exports, __webpack_require__) {
1152
2244
 
1153
2245
 
1154
2246
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1155
2247
  exports.BusIndexed = void 0;
1156
- const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/lib/Bus.js");
2248
+ const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js");
1157
2249
  /**
1158
2250
  * A bus that indexes identified actors,
1159
2251
  * so that actions with a corresponding identifier can be published more efficiently.
@@ -1171,6 +2263,9 @@ const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/li
1171
2263
  * @template O The output type of an actor.
1172
2264
  */
1173
2265
  class BusIndexed extends Bus_1.Bus {
2266
+ actorsIndex = {};
2267
+ actorIdentifierFields;
2268
+ actionIdentifierFields;
1174
2269
  /**
1175
2270
  * All enumerable properties from the `args` object are inherited to this bus.
1176
2271
  *
@@ -1180,7 +2275,8 @@ class BusIndexed extends Bus_1.Bus {
1180
2275
  */
1181
2276
  constructor(args) {
1182
2277
  super(args);
1183
- this.actorsIndex = {};
2278
+ this.actorIdentifierFields = args.actorIdentifierFields;
2279
+ this.actionIdentifierFields = args.actionIdentifierFields;
1184
2280
  }
1185
2281
  subscribe(actor) {
1186
2282
  const actorIds = this.getActorIdentifiers(actor) ?? ['_undefined_'];
@@ -1236,25 +2332,25 @@ exports.BusIndexed = BusIndexed;
1236
2332
 
1237
2333
  /***/ },
1238
2334
 
1239
- /***/ "./node_modules/@comunica/core/lib/ContextEntries.js"
1240
- /*!***********************************************************!*\
1241
- !*** ./node_modules/@comunica/core/lib/ContextEntries.js ***!
1242
- \***********************************************************/
2335
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js"
2336
+ /*!*******************************************************************************************!*\
2337
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js ***!
2338
+ \*******************************************************************************************/
1243
2339
  (__unused_webpack_module, exports, __webpack_require__) {
1244
2340
 
1245
2341
 
1246
2342
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1247
2343
  exports.CONTEXT_KEY_LOGGER = void 0;
1248
- const ActionContext_1 = __webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/core/lib/ActionContext.js");
2344
+ const ActionContext_1 = __webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js");
1249
2345
  exports.CONTEXT_KEY_LOGGER = new ActionContext_1.ActionContextKey('@comunica/core:log');
1250
2346
  //# sourceMappingURL=ContextEntries.js.map
1251
2347
 
1252
2348
  /***/ },
1253
2349
 
1254
- /***/ "./node_modules/@comunica/core/lib/Mediator.js"
1255
- /*!*****************************************************!*\
1256
- !*** ./node_modules/@comunica/core/lib/Mediator.js ***!
1257
- \*****************************************************/
2350
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Mediator.js"
2351
+ /*!*************************************************************************************!*\
2352
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Mediator.js ***!
2353
+ \*************************************************************************************/
1258
2354
  (__unused_webpack_module, exports) {
1259
2355
 
1260
2356
 
@@ -1278,6 +2374,8 @@ exports.Mediator = void 0;
1278
2374
  * @template O The output type of an actor.
1279
2375
  */
1280
2376
  class Mediator {
2377
+ name;
2378
+ bus;
1281
2379
  /**
1282
2380
  * All enumerable properties from the `args` object are inherited to this mediator.
1283
2381
  *
@@ -1289,7 +2387,8 @@ class Mediator {
1289
2387
  * @throws When required arguments are missing.
1290
2388
  */
1291
2389
  constructor(args) {
1292
- Object.assign(this, args);
2390
+ this.name = args.name;
2391
+ this.bus = args.bus;
1293
2392
  }
1294
2393
  /**
1295
2394
  * Publish the given action in the bus.
@@ -1379,15 +2478,20 @@ exports.Mediator = Mediator;
1379
2478
 
1380
2479
  /***/ },
1381
2480
 
1382
- /***/ "./node_modules/@comunica/core/lib/TestResult.js"
1383
- /*!*******************************************************!*\
1384
- !*** ./node_modules/@comunica/core/lib/TestResult.js ***!
1385
- \*******************************************************/
2481
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/TestResult.js"
2482
+ /*!***************************************************************************************!*\
2483
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/TestResult.js ***!
2484
+ \***************************************************************************************/
1386
2485
  (__unused_webpack_module, exports) {
1387
2486
 
1388
2487
 
1389
2488
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1390
- exports.TestResultFailed = exports.TestResultPassed = exports.failTest = exports.passTestVoidWithSideData = exports.passTestWithSideData = exports.passTestVoid = exports.passTest = void 0;
2489
+ exports.TestResultFailed = exports.TestResultPassed = void 0;
2490
+ exports.passTest = passTest;
2491
+ exports.passTestVoid = passTestVoid;
2492
+ exports.passTestWithSideData = passTestWithSideData;
2493
+ exports.passTestVoidWithSideData = passTestVoidWithSideData;
2494
+ exports.failTest = failTest;
1391
2495
  /**
1392
2496
  * Create a new test result that represents a passed value.
1393
2497
  * @param value The value the test passed with.
@@ -1395,14 +2499,12 @@ exports.TestResultFailed = exports.TestResultPassed = exports.failTest = exports
1395
2499
  function passTest(value) {
1396
2500
  return new TestResultPassed(value, undefined);
1397
2501
  }
1398
- exports.passTest = passTest;
1399
2502
  /**
1400
2503
  * Create a new test result that represents a passed void value.
1401
2504
  */
1402
2505
  function passTestVoid() {
1403
2506
  return new TestResultPassed(true, undefined);
1404
2507
  }
1405
- exports.passTestVoid = passTestVoid;
1406
2508
  /**
1407
2509
  * Create a new test result that represents a passed value with side data.
1408
2510
  * @param value The value the test passed with.
@@ -1411,7 +2513,6 @@ exports.passTestVoid = passTestVoid;
1411
2513
  function passTestWithSideData(value, sideData) {
1412
2514
  return new TestResultPassed(value, sideData);
1413
2515
  }
1414
- exports.passTestWithSideData = passTestWithSideData;
1415
2516
  /**
1416
2517
  * Create a new test result that represents a passed void value with side data.
1417
2518
  * @param sideData Additional data to pass to the run phase.
@@ -1419,7 +2520,6 @@ exports.passTestWithSideData = passTestWithSideData;
1419
2520
  function passTestVoidWithSideData(sideData) {
1420
2521
  return new TestResultPassed(true, sideData);
1421
2522
  }
1422
- exports.passTestVoidWithSideData = passTestVoidWithSideData;
1423
2523
  /**
1424
2524
  * Create a new test result that represents a test failure.
1425
2525
  * @param message The error message that describes the failure.
@@ -1427,13 +2527,14 @@ exports.passTestVoidWithSideData = passTestVoidWithSideData;
1427
2527
  function failTest(message) {
1428
2528
  return new TestResultFailed(message);
1429
2529
  }
1430
- exports.failTest = failTest;
1431
2530
  /**
1432
2531
  * A passed test result.
1433
2532
  * This should not be constructed manually.
1434
2533
  * Instead, `testPass` should be used.
1435
2534
  */
1436
2535
  class TestResultPassed {
2536
+ value;
2537
+ sideData;
1437
2538
  constructor(passValue, sideData) {
1438
2539
  this.value = passValue;
1439
2540
  this.sideData = sideData;
@@ -1506,6 +2607,7 @@ exports.TestResultPassed = TestResultPassed;
1506
2607
  * Instead, `testFail` should be used.
1507
2608
  */
1508
2609
  class TestResultFailed {
2610
+ failMessage;
1509
2611
  constructor(failMessage) {
1510
2612
  this.failMessage = failMessage;
1511
2613
  }
@@ -1571,10 +2673,10 @@ exports.TestResultFailed = TestResultFailed;
1571
2673
 
1572
2674
  /***/ },
1573
2675
 
1574
- /***/ "./node_modules/@comunica/core/lib/index.js"
1575
- /*!**************************************************!*\
1576
- !*** ./node_modules/@comunica/core/lib/index.js ***!
1577
- \**************************************************/
2676
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/index.js"
2677
+ /*!**********************************************************************************!*\
2678
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/index.js ***!
2679
+ \**********************************************************************************/
1578
2680
  (__unused_webpack_module, exports, __webpack_require__) {
1579
2681
 
1580
2682
 
@@ -1593,14 +2695,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1593
2695
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1594
2696
  };
1595
2697
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1596
- __exportStar(__webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/core/lib/ActionContext.js"), exports);
1597
- __exportStar(__webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/lib/Bus.js"), exports);
1598
- __exportStar(__webpack_require__(/*! ./BusIndexed */ "./node_modules/@comunica/core/lib/BusIndexed.js"), exports);
1599
- __exportStar(__webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/core/lib/ContextEntries.js"), exports);
1600
- __exportStar(__webpack_require__(/*! ./ActionObserver */ "./node_modules/@comunica/core/lib/ActionObserver.js"), exports);
1601
- __exportStar(__webpack_require__(/*! ./Actor */ "./node_modules/@comunica/core/lib/Actor.js"), exports);
1602
- __exportStar(__webpack_require__(/*! ./Mediator */ "./node_modules/@comunica/core/lib/Mediator.js"), exports);
1603
- __exportStar(__webpack_require__(/*! ./TestResult */ "./node_modules/@comunica/core/lib/TestResult.js"), exports);
2698
+ __exportStar(__webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js"), exports);
2699
+ __exportStar(__webpack_require__(/*! ./Bus */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js"), exports);
2700
+ __exportStar(__webpack_require__(/*! ./BusIndexed */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/BusIndexed.js"), exports);
2701
+ __exportStar(__webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js"), exports);
2702
+ __exportStar(__webpack_require__(/*! ./ActionObserver */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionObserver.js"), exports);
2703
+ __exportStar(__webpack_require__(/*! ./Actor */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Actor.js"), exports);
2704
+ __exportStar(__webpack_require__(/*! ./Mediator */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Mediator.js"), exports);
2705
+ __exportStar(__webpack_require__(/*! ./TestResult */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/TestResult.js"), exports);
1604
2706
  //# sourceMappingURL=index.js.map
1605
2707
 
1606
2708
  /***/ },
@@ -32687,7 +33789,7 @@ function getVariableValue(name) {
32687
33789
  }
32688
33790
  return variables[name];
32689
33791
  }
32690
- const df_647_1 = new (require('@comunica/logger-void').LoggerVoid)();
33792
+ const df_345_1 = new (require('@comunica/logger-void').LoggerVoid)();
32691
33793
  const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_init__5_0_0_components_ActorInit_jsonld_ActorInit_default_bus = new (require('@comunica/core').Bus)({
32692
33794
  'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^5.0.0/components/ActorInit.jsonld#ActorInit_default_bus'
32693
33795
  });
@@ -32812,6 +33914,13 @@ const urn_comunica_default_extract_links_actors_predicates_common = new (require
32812
33914
  'name': 'urn:comunica:default:extract-links/actors#predicates-common',
32813
33915
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
32814
33916
  });
33917
+ const urn_comunica_default_extract_links_actors_links_describedby = new (require('@comunica/actor-extract-links-headers').ActorExtractLinksHeaders)({
33918
+ 'headersRegexes': [
33919
+ 'rel="describedby"'
33920
+ ],
33921
+ 'name': 'urn:comunica:default:extract-links/actors#links-describedby',
33922
+ 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
33923
+ });
32815
33924
  const urn_comunica_default_extract_links_actors_predicates_ldp = new (require('@comunica/actor-extract-links-predicates').ActorExtractLinksPredicates)({
32816
33925
  'checkSubject': true,
32817
33926
  'predicateRegexes': [
@@ -32820,13 +33929,6 @@ const urn_comunica_default_extract_links_actors_predicates_ldp = new (require('@
32820
33929
  'name': 'urn:comunica:default:extract-links/actors#predicates-ldp',
32821
33930
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
32822
33931
  });
32823
- const urn_comunica_default_extract_links_actors_links_describedby = new (require('@comunica/actor-extract-links-headers').ActorExtractLinksHeaders)({
32824
- 'headersRegexes': [
32825
- 'rel="describedby"'
32826
- ],
32827
- 'name': 'urn:comunica:default:extract-links/actors#links-describedby',
32828
- 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
32829
- });
32830
33932
  const urn_comunica_default_extract_links_actors_predicates_solid = new (require('@comunica/actor-extract-links-predicates').ActorExtractLinksPredicates)({
32831
33933
  'checkSubject': true,
32832
33934
  'predicateRegexes': [
@@ -32856,7 +33958,7 @@ const urn_comunica_default_context_preprocess_actors_convert_shortcuts = new (re
32856
33958
  'busFailMessage': 'Context preprocessing failed'
32857
33959
  });
32858
33960
  const urn_comunica_default_context_preprocess_actors_set_defaults = new (require('@comunica/actor-context-preprocess-set-defaults').ActorContextPreprocessSetDefaults)({
32859
- 'logger': df_647_1,
33961
+ 'logger': df_345_1,
32860
33962
  'name': 'urn:comunica:default:context-preprocess/actors#set-defaults',
32861
33963
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_context_preprocess__5_0_0_components_ActorContextPreprocess_jsonld_ActorContextPreprocess_default_bus,
32862
33964
  'busFailMessage': 'Context preprocessing failed'
@@ -33317,13 +34419,13 @@ const urn_comunica_default_function_factory_actors_expression_function_coalesce
33317
34419
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33318
34420
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33319
34421
  });
33320
- const urn_comunica_default_function_factory_actors_expression_function_extensions = new (require('@comunica/actor-function-factory-expression-extensions').ActorFunctionFactoryExpressionExtensions)({
33321
- 'name': 'urn:comunica:default:function-factory/actors#expression-function-extensions',
34422
+ const urn_comunica_default_function_factory_actors_expression_function_concat = new (require('@comunica/actor-function-factory-expression-concat').ActorFunctionFactoryExpressionConcat)({
34423
+ 'name': 'urn:comunica:default:function-factory/actors#expression-function-concat',
33322
34424
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33323
34425
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33324
34426
  });
33325
- const urn_comunica_default_function_factory_actors_expression_function_concat = new (require('@comunica/actor-function-factory-expression-concat').ActorFunctionFactoryExpressionConcat)({
33326
- 'name': 'urn:comunica:default:function-factory/actors#expression-function-concat',
34427
+ const urn_comunica_default_function_factory_actors_expression_function_extensions = new (require('@comunica/actor-function-factory-expression-extensions').ActorFunctionFactoryExpressionExtensions)({
34428
+ 'name': 'urn:comunica:default:function-factory/actors#expression-function-extensions',
33327
34429
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33328
34430
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33329
34431
  });
@@ -33547,13 +34649,13 @@ const urn_comunica_default_function_factory_actors_term_function_sha512 = new (r
33547
34649
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33548
34650
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33549
34651
  });
33550
- const urn_comunica_default_function_factory_actors_term_function_str_before = new (require('@comunica/actor-function-factory-term-str-before').ActorFunctionFactoryTermStrBefore)({
33551
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-before',
34652
+ const urn_comunica_default_function_factory_actors_term_function_str_after = new (require('@comunica/actor-function-factory-term-str-after').ActorFunctionFactoryTermStrAfter)({
34653
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-after',
33552
34654
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33553
34655
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33554
34656
  });
33555
- const urn_comunica_default_function_factory_actors_term_function_str_after = new (require('@comunica/actor-function-factory-term-str-after').ActorFunctionFactoryTermStrAfter)({
33556
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-after',
34657
+ const urn_comunica_default_function_factory_actors_term_function_str_before = new (require('@comunica/actor-function-factory-term-str-before').ActorFunctionFactoryTermStrBefore)({
34658
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-before',
33557
34659
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33558
34660
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33559
34661
  });
@@ -33562,13 +34664,13 @@ const urn_comunica_default_function_factory_actors_term_function_str_dt = new (r
33562
34664
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33563
34665
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33564
34666
  });
33565
- const urn_comunica_default_function_factory_actors_term_function_str_lang = new (require('@comunica/actor-function-factory-term-str-lang').ActorFunctionFactoryTermStrLang)({
33566
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-lang',
34667
+ const urn_comunica_default_function_factory_actors_term_function_str_ends = new (require('@comunica/actor-function-factory-term-str-ends').ActorFunctionFactoryTermStrEnds)({
34668
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-ends',
33567
34669
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33568
34670
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33569
34671
  });
33570
- const urn_comunica_default_function_factory_actors_term_function_str_ends = new (require('@comunica/actor-function-factory-term-str-ends').ActorFunctionFactoryTermStrEnds)({
33571
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-ends',
34672
+ const urn_comunica_default_function_factory_actors_term_function_str_lang = new (require('@comunica/actor-function-factory-term-str-lang').ActorFunctionFactoryTermStrLang)({
34673
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-lang',
33572
34674
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33573
34675
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33574
34676
  });
@@ -33781,11 +34883,6 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_rdf_upd
33781
34883
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
33782
34884
  'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
33783
34885
  });
33784
- const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_limit_rate__5_0_0_components_ActorHttpLimitRate_jsonld_IActorHttpLimitRateArgs_default_invalidator = new (require('@comunica/bus-http-invalidate').ActorHttpInvalidateListenable)({
33785
- 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-limit-rate/^5.0.0/components/ActorHttpLimitRate.jsonld#IActorHttpLimitRateArgs_default_invalidator',
33786
- 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
33787
- 'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
33788
- });
33789
34886
  const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_retry__5_0_0_components_ActorHttpRetry_jsonld_IActorHttpQueueArgs_default_invalidator = new (require('@comunica/bus-http-invalidate').ActorHttpInvalidateListenable)({
33790
34887
  'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-retry/^5.0.0/components/ActorHttpRetry.jsonld#IActorHttpQueueArgs_default_invalidator',
33791
34888
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
@@ -33796,6 +34893,11 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_fe
33796
34893
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
33797
34894
  'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
33798
34895
  });
34896
+ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_limit_rate__5_0_0_components_ActorHttpLimitRate_jsonld_IActorHttpLimitRateArgs_default_invalidator = new (require('@comunica/bus-http-invalidate').ActorHttpInvalidateListenable)({
34897
+ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-limit-rate/^5.0.0/components/ActorHttpLimitRate.jsonld#IActorHttpLimitRateArgs_default_invalidator',
34898
+ 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
34899
+ 'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
34900
+ });
33799
34901
  const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_query_result_serialize_sparql_json__5_0_0_components_ActionObserverHttp_jsonld_IActionObserverHttpArgs_default_invalidator = new (require('@comunica/bus-http-invalidate').ActorHttpInvalidateListenable)({
33800
34902
  'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^5.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator',
33801
34903
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
@@ -33998,15 +35100,15 @@ const urn_comunica_default_function_factory_actors_term_function_inequality = ne
33998
35100
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33999
35101
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
34000
35102
  });
34001
- const urn_comunica_default_function_factory_actors_term_function_lesser_than = new (require('@comunica/actor-function-factory-term-lesser-than').ActorFunctionFactoryTermLesserThan)({
35103
+ const urn_comunica_default_function_factory_actors_term_function_lesser_than_equal = new (require('@comunica/actor-function-factory-term-lesser-than-equal').ActorFunctionFactoryTermLesserThanEqual)({
34002
35104
  'mediatorFunctionFactory': urn_comunica_default_function_factory_mediators_main,
34003
- 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than',
35105
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than-equal',
34004
35106
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
34005
35107
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
34006
35108
  });
34007
- const urn_comunica_default_function_factory_actors_term_function_lesser_than_equal = new (require('@comunica/actor-function-factory-term-lesser-than-equal').ActorFunctionFactoryTermLesserThanEqual)({
35109
+ const urn_comunica_default_function_factory_actors_term_function_lesser_than = new (require('@comunica/actor-function-factory-term-lesser-than').ActorFunctionFactoryTermLesserThan)({
34008
35110
  'mediatorFunctionFactory': urn_comunica_default_function_factory_mediators_main,
34009
- 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than-equal',
35111
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than',
34010
35112
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
34011
35113
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
34012
35114
  });
@@ -34044,15 +35146,15 @@ const urn_comunica_default_query_operation_actors_ask = new (require('@comunica/
34044
35146
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation__5_0_0_components_ActorQueryOperation_jsonld_ActorQueryOperation_default_bus,
34045
35147
  'busFailMessage': 'Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}'
34046
35148
  });
34047
- const urn_comunica_default_query_operation_actors_construct = new (require('@comunica/actor-query-operation-construct').ActorQueryOperationConstruct)({
35149
+ const urn_comunica_default_query_operation_actors_bgp = new (require('@comunica/actor-query-operation-bgp-join').ActorQueryOperationBgpJoin)({
34048
35150
  'mediatorQueryOperation': urn_comunica_default_query_operation_mediators_main,
34049
- 'name': 'urn:comunica:default:query-operation/actors#construct',
35151
+ 'name': 'urn:comunica:default:query-operation/actors#bgp',
34050
35152
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation__5_0_0_components_ActorQueryOperation_jsonld_ActorQueryOperation_default_bus,
34051
35153
  'busFailMessage': 'Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}'
34052
35154
  });
34053
- const urn_comunica_default_query_operation_actors_bgp = new (require('@comunica/actor-query-operation-bgp-join').ActorQueryOperationBgpJoin)({
35155
+ const urn_comunica_default_query_operation_actors_construct = new (require('@comunica/actor-query-operation-construct').ActorQueryOperationConstruct)({
34054
35156
  'mediatorQueryOperation': urn_comunica_default_query_operation_mediators_main,
34055
- 'name': 'urn:comunica:default:query-operation/actors#bgp',
35157
+ 'name': 'urn:comunica:default:query-operation/actors#construct',
34056
35158
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation__5_0_0_components_ActorQueryOperation_jsonld_ActorQueryOperation_default_bus,
34057
35159
  'busFailMessage': 'Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}'
34058
35160
  });
@@ -34647,24 +35749,24 @@ const urn_comunica_default_optimize_query_operation_actors_bgp_to_join = new (re
34647
35749
  urn_comunica_default_optimize_query_operation_actors_join_connected
34648
35750
  ]
34649
35751
  });
34650
- const urn_comunica_default_http_actors_limit_rate = new (require('@comunica/actor-http-limit-rate').ActorHttpLimitRate)({
35752
+ const urn_comunica_default_http_actors_retry = new (require('@comunica/actor-http-retry').ActorHttpRetry)({
34651
35753
  'mediatorHttp': urn_comunica_default_http_mediators_main,
34652
- 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_limit_rate__5_0_0_components_ActorHttpLimitRate_jsonld_IActorHttpLimitRateArgs_default_invalidator,
34653
- 'correctionMultiplier': 0.1,
34654
- 'failureMultiplier': 10,
34655
- 'limitByDefault': false,
34656
- 'allowOverlap': false,
34657
- 'name': 'urn:comunica:default:http/actors#limit-rate',
35754
+ 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_retry__5_0_0_components_ActorHttpRetry_jsonld_IActorHttpQueueArgs_default_invalidator,
35755
+ 'name': 'urn:comunica:default:http/actors#retry',
34658
35756
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http__5_0_0_components_ActorHttp_jsonld_ActorHttp_default_bus,
34659
35757
  'busFailMessage': 'HTTP request failed: none of the configured actors were able to handle ${action.input}',
34660
35758
  'beforeActors': [
34661
35759
  urn_comunica_default_http_actors_proxy
34662
35760
  ]
34663
35761
  });
34664
- const urn_comunica_default_http_actors_retry = new (require('@comunica/actor-http-retry').ActorHttpRetry)({
35762
+ const urn_comunica_default_http_actors_limit_rate = new (require('@comunica/actor-http-limit-rate').ActorHttpLimitRate)({
34665
35763
  'mediatorHttp': urn_comunica_default_http_mediators_main,
34666
- 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_retry__5_0_0_components_ActorHttpRetry_jsonld_IActorHttpQueueArgs_default_invalidator,
34667
- 'name': 'urn:comunica:default:http/actors#retry',
35764
+ 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_limit_rate__5_0_0_components_ActorHttpLimitRate_jsonld_IActorHttpLimitRateArgs_default_invalidator,
35765
+ 'correctionMultiplier': 0.1,
35766
+ 'failureMultiplier': 10,
35767
+ 'limitByDefault': false,
35768
+ 'allowOverlap': false,
35769
+ 'name': 'urn:comunica:default:http/actors#limit-rate',
34668
35770
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http__5_0_0_components_ActorHttp_jsonld_ActorHttp_default_bus,
34669
35771
  'busFailMessage': 'HTTP request failed: none of the configured actors were able to handle ${action.input}',
34670
35772
  'beforeActors': [
@@ -34708,14 +35810,6 @@ const urn_comunica_default_optimize_query_operation_actors_query_source_identify
34708
35810
  urn_comunica_default_optimize_query_operation_actors_query_source_skolemize
34709
35811
  ]
34710
35812
  });
34711
- const urn_comunica_default_optimize_query_operation_actors_describe_to_constructs_subject = new (require('@comunica/actor-optimize-query-operation-describe-to-constructs-subject').ActorOptimizeQueryOperationDescribeToConstructsSubject)({
34712
- 'name': 'urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject',
34713
- 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation__5_0_0_components_ActorOptimizeQueryOperation_jsonld_ActorOptimizeQueryOperation_default_bus,
34714
- 'busFailMessage': 'Query optimization failed: none of the configured actors were able to optimize',
34715
- 'beforeActors': [
34716
- urn_comunica_default_optimize_query_operation_actors_query_source_identify
34717
- ]
34718
- });
34719
35813
  const urn_comunica_default_optimize_query_operation_actors_initialize_link_traversal_manager = new (require('@comunica/actor-optimize-query-operation-initialize-link-traversal-manager').ActorOptimizeQueryOperationInitializeLinkTraversalManager)({
34720
35814
  'linkParallelization': 64,
34721
35815
  'linkParallelizationLimit': 2,
@@ -34731,6 +35825,14 @@ const urn_comunica_default_optimize_query_operation_actors_initialize_link_trave
34731
35825
  urn_comunica_default_optimize_query_operation_actors_query_source_identify
34732
35826
  ]
34733
35827
  });
35828
+ const urn_comunica_default_optimize_query_operation_actors_describe_to_constructs_subject = new (require('@comunica/actor-optimize-query-operation-describe-to-constructs-subject').ActorOptimizeQueryOperationDescribeToConstructsSubject)({
35829
+ 'name': 'urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject',
35830
+ 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation__5_0_0_components_ActorOptimizeQueryOperation_jsonld_ActorOptimizeQueryOperation_default_bus,
35831
+ 'busFailMessage': 'Query optimization failed: none of the configured actors were able to optimize',
35832
+ 'beforeActors': [
35833
+ urn_comunica_default_optimize_query_operation_actors_query_source_identify
35834
+ ]
35835
+ });
34734
35836
  const urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quadpattern_iris = new (require('@comunica/actor-optimize-query-operation-set-seed-sources-quadpattern-iris').ActorOptimizeQueryOperationSetSeedSourcesQuadpatternIris)({
34735
35837
  'extractSubjects': true,
34736
35838
  'extractPredicates': false,
@@ -34746,8 +35848,8 @@ const urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quad
34746
35848
  });
34747
35849
  const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_init__5_0_0_components_ActorInit_jsonld_ActorInit_default_bus, [
34748
35850
  urn_comunica_default_extract_links_actors_predicates_common,
34749
- urn_comunica_default_extract_links_actors_predicates_ldp,
34750
35851
  urn_comunica_default_extract_links_actors_links_describedby,
35852
+ urn_comunica_default_extract_links_actors_predicates_ldp,
34751
35853
  urn_comunica_default_extract_links_actors_predicates_solid,
34752
35854
  urn_comunica_default_extract_links_actors_quad_pattern_query,
34753
35855
  urn_comunica_default_extract_links_actors_solid_type_index,
@@ -34759,6 +35861,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34759
35861
  urn_comunica_default_hash_bindings_actors_murmur,
34760
35862
  urn_comunica_default_hash_quads_actors_murmur,
34761
35863
  urn_comunica_default_init_actors_query,
35864
+ urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quadpattern_iris,
35865
+ urn_comunica_default_optimize_query_operation_actors_initialize_link_traversal_manager,
34762
35866
  urn_comunica_default_optimize_query_operation_actors_rewrite_copy,
34763
35867
  urn_comunica_default_optimize_query_operation_actors_rewrite_move,
34764
35868
  urn_comunica_default_optimize_query_operation_actors_rewrite_add,
@@ -34774,8 +35878,6 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34774
35878
  urn_comunica_default_optimize_query_operation_actors_filter_pushdown,
34775
35879
  urn_comunica_default_optimize_query_operation_actors_group_sources,
34776
35880
  urn_comunica_default_optimize_query_operation_actors_construct_distinct,
34777
- urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quadpattern_iris,
34778
- urn_comunica_default_optimize_query_operation_actors_initialize_link_traversal_manager,
34779
35881
  urn_comunica_default_query_parse_actors_sparql,
34780
35882
  urn_comunica_default_query_parse_actors_graphql,
34781
35883
  urn_comunica_default_query_result_serialize_actors_json,
@@ -34840,16 +35942,16 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34840
35942
  urn_comunica_default_bindings_aggregator_factory_actors_count,
34841
35943
  urn_comunica_default_bindings_aggregator_factory_actors_group_concat,
34842
35944
  urn_comunica_default_bindings_aggregator_factory_actors_max,
34843
- urn_comunica_default_bindings_aggregator_factory_actors_sample,
34844
35945
  urn_comunica_default_bindings_aggregator_factory_actors_min,
35946
+ urn_comunica_default_bindings_aggregator_factory_actors_sample,
34845
35947
  urn_comunica_default_bindings_aggregator_factory_actors_sum,
34846
35948
  urn_comunica_default_bindings_aggregator_factory_actors_wildcard_count,
34847
35949
  urn_comunica_default_expression_evaluator_factory_actors_default,
34848
35950
  urn_comunica_default_function_factory_actors_expression_function_bnode,
34849
35951
  urn_comunica_default_function_factory_actors_expression_function_bound,
34850
35952
  urn_comunica_default_function_factory_actors_expression_function_coalesce,
34851
- urn_comunica_default_function_factory_actors_expression_function_extensions,
34852
35953
  urn_comunica_default_function_factory_actors_expression_function_concat,
35954
+ urn_comunica_default_function_factory_actors_expression_function_extensions,
34853
35955
  urn_comunica_default_function_factory_actors_expression_function_if,
34854
35956
  urn_comunica_default_function_factory_actors_expression_function_in,
34855
35957
  urn_comunica_default_function_factory_actors_expression_function_logical_and,
@@ -34882,8 +35984,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34882
35984
  urn_comunica_default_function_factory_actors_term_function_langdir,
34883
35985
  urn_comunica_default_function_factory_actors_term_function_langmatches,
34884
35986
  urn_comunica_default_function_factory_actors_term_function_lcase,
34885
- urn_comunica_default_function_factory_actors_term_function_lesser_than,
34886
35987
  urn_comunica_default_function_factory_actors_term_function_lesser_than_equal,
35988
+ urn_comunica_default_function_factory_actors_term_function_lesser_than,
34887
35989
  urn_comunica_default_function_factory_actors_term_function_md5,
34888
35990
  urn_comunica_default_function_factory_actors_term_function_minutes,
34889
35991
  urn_comunica_default_function_factory_actors_term_function_month,
@@ -34901,11 +36003,11 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34901
36003
  urn_comunica_default_function_factory_actors_term_function_sha256,
34902
36004
  urn_comunica_default_function_factory_actors_term_function_sha384,
34903
36005
  urn_comunica_default_function_factory_actors_term_function_sha512,
34904
- urn_comunica_default_function_factory_actors_term_function_str_before,
34905
36006
  urn_comunica_default_function_factory_actors_term_function_str_after,
36007
+ urn_comunica_default_function_factory_actors_term_function_str_before,
34906
36008
  urn_comunica_default_function_factory_actors_term_function_str_dt,
34907
- urn_comunica_default_function_factory_actors_term_function_str_lang,
34908
36009
  urn_comunica_default_function_factory_actors_term_function_str_ends,
36010
+ urn_comunica_default_function_factory_actors_term_function_str_lang,
34909
36011
  urn_comunica_default_function_factory_actors_term_function_str_langdir,
34910
36012
  urn_comunica_default_function_factory_actors_term_function_str_len,
34911
36013
  urn_comunica_default_function_factory_actors_term_function_str_starts,
@@ -34934,15 +36036,15 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34934
36036
  urn_comunica_default_function_factory_actors_term_function_xsd_to_time,
34935
36037
  urn_comunica_default_function_factory_actors_term_function_xsd_to_year_month_duration,
34936
36038
  urn_comunica_default_function_factory_actors_term_function_year,
34937
- urn_comunica_default_http_actors_limit_rate,
34938
36039
  urn_comunica_default_http_actors_retry,
34939
36040
  urn_comunica_default_http_actors_proxy,
34940
36041
  urn_comunica_default_http_actors_inrupt_solid_client_authn,
34941
36042
  urn_comunica_default_http_actors_fetch,
36043
+ urn_comunica_default_http_actors_limit_rate,
34942
36044
  urn_comunica_default_http_actors_wayback,
34943
36045
  urn_comunica_default_query_operation_actors_ask,
34944
- urn_comunica_default_query_operation_actors_construct,
34945
36046
  urn_comunica_default_query_operation_actors_bgp,
36047
+ urn_comunica_default_query_operation_actors_construct,
34946
36048
  urn_comunica_default_query_operation_actors_distinct,
34947
36049
  urn_comunica_default_query_operation_actors_extend,
34948
36050
  urn_comunica_default_query_operation_actors_filter,
@@ -34969,8 +36071,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34969
36071
  urn_comunica_default_query_operation_actors_path_zero_or_one,
34970
36072
  urn_comunica_default_query_operation_actors_update_clear,
34971
36073
  urn_comunica_default_query_operation_actors_update_composite,
34972
- urn_comunica_default_query_operation_actors_update_create,
34973
36074
  urn_comunica_default_query_operation_actors_update_delete_insert,
36075
+ urn_comunica_default_query_operation_actors_update_create,
34974
36076
  urn_comunica_default_query_operation_actors_update_drop,
34975
36077
  urn_comunica_default_query_operation_actors_update_load,
34976
36078
  urn_comunica_default_query_process_actors_sequential,
@@ -34980,8 +36082,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34980
36082
  urn_comunica_default_query_process_actors_explain_physical,
34981
36083
  urn_comunica_default_query_source_identify_actors_hypermedia,
34982
36084
  urn_comunica_default_query_source_identify_actors_link_traversal,
34983
- urn_comunica_default_query_source_identify_actors_serialized,
34984
36085
  urn_comunica_default_query_source_identify_actors_rdfjs,
36086
+ urn_comunica_default_query_source_identify_actors_serialized,
34985
36087
  urn_comunica_default_rdf_join_actors_inner_none,
34986
36088
  urn_comunica_default_rdf_join_actors_inner_single,
34987
36089
  urn_comunica_default_rdf_join_actors_inner_multi_bind_source,