@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.
@@ -45,11 +45,32 @@ exports.ActorInitQuery = ActorInitQuery;
45
45
  Object.defineProperty(exports, "__esModule", ({ value: true }));
46
46
  exports.ActorInitQueryBase = void 0;
47
47
  const bus_init_1 = __webpack_require__(/*! @comunica/bus-init */ "./node_modules/@comunica/bus-init/lib/index.js");
48
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
48
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js");
49
49
  /**
50
50
  * A browser-safe comunica Query Init Actor.
51
51
  */
52
52
  class ActorInitQueryBase extends bus_init_1.ActorInit {
53
+ mediatorQueryResultSerialize;
54
+ mediatorQueryResultSerializeMediaTypeCombiner;
55
+ mediatorQueryResultSerializeMediaTypeFormatCombiner;
56
+ mediatorHttpInvalidate;
57
+ mediatorQueryProcess;
58
+ queryString;
59
+ defaultQueryInputFormat;
60
+ allowNoSources;
61
+ context;
62
+ constructor(args) {
63
+ super(args);
64
+ this.mediatorQueryResultSerialize = args.mediatorQueryResultSerialize;
65
+ this.mediatorQueryResultSerializeMediaTypeCombiner = args.mediatorQueryResultSerializeMediaTypeCombiner;
66
+ this.mediatorQueryResultSerializeMediaTypeFormatCombiner = args.mediatorQueryResultSerializeMediaTypeFormatCombiner;
67
+ this.mediatorHttpInvalidate = args.mediatorHttpInvalidate;
68
+ this.mediatorQueryProcess = args.mediatorQueryProcess;
69
+ this.queryString = args.queryString;
70
+ this.defaultQueryInputFormat = args.defaultQueryInputFormat;
71
+ this.allowNoSources = args.allowNoSources;
72
+ this.context = args.context;
73
+ }
53
74
  async test(_action) {
54
75
  return (0, core_1.passTestVoid)();
55
76
  }
@@ -72,12 +93,13 @@ exports.ActorInitQueryBase = ActorInitQueryBase;
72
93
 
73
94
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74
95
  exports.QueryEngineBase = void 0;
75
- const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/lib/index.js");
76
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
96
+ const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/index.js");
97
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js");
77
98
  /**
78
99
  * Base implementation of a Comunica query engine.
79
100
  */
80
101
  class QueryEngineBase {
102
+ actorInitQuery;
81
103
  constructor(actorInitQuery) {
82
104
  this.actorInitQuery = actorInitQuery;
83
105
  }
@@ -206,11 +228,17 @@ class QueryEngineBase {
206
228
  * @param internalResult An intermediary query result.
207
229
  */
208
230
  static internalToFinalResult(internalResult) {
231
+ const logger = internalResult.context?.get(context_entries_1.KeysCore.log);
209
232
  switch (internalResult.type) {
210
233
  case 'bindings':
211
234
  return {
212
235
  resultType: 'bindings',
213
- execute: async () => internalResult.bindingsStream,
236
+ execute: async () => {
237
+ if (logger) {
238
+ internalResult.bindingsStream.on?.('end', () => logger.flush());
239
+ }
240
+ return internalResult.bindingsStream;
241
+ },
214
242
  metadata: async () => {
215
243
  const meta = await internalResult.metadata();
216
244
  meta.variables = meta.variables.map((variable) => variable.variable);
@@ -221,20 +249,33 @@ class QueryEngineBase {
221
249
  case 'quads':
222
250
  return {
223
251
  resultType: 'quads',
224
- execute: async () => internalResult.quadStream,
252
+ execute: async () => {
253
+ if (logger) {
254
+ internalResult.quadStream.on?.('end', () => logger.flush());
255
+ }
256
+ return internalResult.quadStream;
257
+ },
225
258
  metadata: async () => await internalResult.metadata(),
226
259
  context: internalResult.context,
227
260
  };
228
261
  case 'boolean':
229
262
  return {
230
263
  resultType: 'boolean',
231
- execute: async () => internalResult.execute(),
264
+ execute: async () => {
265
+ const result = await internalResult.execute();
266
+ logger?.flush();
267
+ return result;
268
+ },
232
269
  context: internalResult.context,
233
270
  };
234
271
  case 'void':
235
272
  return {
236
273
  resultType: 'void',
237
- execute: async () => internalResult.execute(),
274
+ execute: async () => {
275
+ const result = await internalResult.execute();
276
+ logger?.flush();
277
+ return result;
278
+ },
238
279
  context: internalResult.context,
239
280
  };
240
281
  }
@@ -311,6 +352,1385 @@ Object.defineProperty(exports, "QueryEngineBase", ({ enumerable: true, get: func
311
352
 
312
353
  /***/ },
313
354
 
355
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/Keys.js"
356
+ /*!****************************************************************************************************!*\
357
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/Keys.js ***!
358
+ \****************************************************************************************************/
359
+ (__unused_webpack_module, exports, __webpack_require__) {
360
+
361
+ "use strict";
362
+
363
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
364
+ 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;
365
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js");
366
+ /**
367
+ * When adding entries to this file, also add a shortcut for them in the contextKeyShortcuts TSDoc comment in
368
+ * ActorContextPreprocessConvertShortcuts in @comunica/actor-init-query if it makes sense to use this entry externally.
369
+ * Also, add this shortcut to IQueryContextCommon in @comunica/types,
370
+ * and possibly the CliArgsHandlers in @comunica/actor-init-query.
371
+ */
372
+ exports.KeysCore = {
373
+ // We create the core context keys in @comunica/core to avoid a cyclic dependency
374
+ /**
375
+ * A logger instance.
376
+ */
377
+ log: core_1.CONTEXT_KEY_LOGGER,
378
+ };
379
+ exports.KeysHttp = {
380
+ /**
381
+ * Include credentials flags.
382
+ */
383
+ includeCredentials: new core_1.ActionContextKey('@comunica/bus-http:include-credentials'),
384
+ /**
385
+ * Authentication for a source as a "username:password"-pair.
386
+ */
387
+ auth: new core_1.ActionContextKey('@comunica/bus-http:auth'),
388
+ /**
389
+ * Fetch function implementation.
390
+ */
391
+ fetch: new core_1.ActionContextKey('@comunica/bus-http:fetch'),
392
+ /**
393
+ * HTTP request timeout in milliseconds.
394
+ */
395
+ httpTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-timeout'),
396
+ /**
397
+ * Makes the HTTP timeout not only apply until the response starts streaming in
398
+ * but until the response is fully consumed.
399
+ */
400
+ httpBodyTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-body-timeout'),
401
+ /**
402
+ * Number of retries to make on failed network calls. This only takes effect
403
+ * on errors thrown during the initial fetch() call and not while streaming the body.
404
+ */
405
+ httpRetryCount: new core_1.ActionContextKey('@comunica/bus-http:http-retry-count'),
406
+ /**
407
+ * The fallback retry delay in milliseconds. This value is used when a server does not
408
+ * send a delay value in the Retry-After header or if the header value is incorrectly formatted.
409
+ */
410
+ httpRetryDelayFallback: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-fallback'),
411
+ /**
412
+ * The upper limit for the retry delay in milliseconds. When a server requests a delay larger than this,
413
+ * the engine will consider it unavailable until the specified timestamp is close enough.
414
+ */
415
+ httpRetryDelayLimit: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-limit'),
416
+ /**
417
+ * HTTP status codes that should always trigger a retry, regardless of the default behaviour.
418
+ * This can be used to, for example, force retries on server-side errors in the 500 range.
419
+ */
420
+ httpRetryStatusCodes: new core_1.ActionContextKey('@comunica/bus-http:http-retry-status-codes'),
421
+ /**
422
+ * Number of retries to make when the response body stream errors mid-read.
423
+ * Response bodies are buffered per attempt (unless disabled by `httpRetryBodyMaxBytes`)
424
+ * to avoid emitting partial data to downstream parsers.
425
+ */
426
+ httpRetryBodyCount: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-count'),
427
+ /**
428
+ * The fallback retry delay in milliseconds between body retries.
429
+ */
430
+ httpRetryBodyDelayFallback: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-delay-fallback'),
431
+ /**
432
+ * Allow body retries for non-idempotent methods or non-replayable request bodies.
433
+ */
434
+ httpRetryBodyAllowUnsafe: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-allow-unsafe'),
435
+ /**
436
+ * Maximum number of bytes to buffer when retrying response body streams.
437
+ * When exceeded, body retries are disabled and the response will continue streaming as-is.
438
+ */
439
+ httpRetryBodyMaxBytes: new core_1.ActionContextKey('@comunica/bus-http:http-retry-body-max-bytes'),
440
+ /**
441
+ * An abort signal for aborting pending HTTP requests.
442
+ */
443
+ httpAbortSignal: new core_1.ActionContextKey('@comunica/bus-http:http-abort-controller'),
444
+ /**
445
+ * If the HTTP-level cache must be enabled.
446
+ * When enabled, HTTP responses will be stored within the cache, and/or responses can be read from the cache.
447
+ * This only will only do something outside a browser environment, as browsers take care of caching internally.
448
+ */
449
+ httpCache: new core_1.ActionContextKey('@comunica/bus-http:httpCache'),
450
+ };
451
+ exports.KeysHttpWayback = {
452
+ /**
453
+ * Use the WayBack machine to get the most recent representation of a file if a link is broken.
454
+ * @default false
455
+ */
456
+ recoverBrokenLinks: new core_1.ActionContextKey('@comunica/bus-http:recover-broken-links'),
457
+ };
458
+ exports.KeysHttpMemento = {
459
+ /**
460
+ * The desired datetime for Memento datetime-negotiation.
461
+ */
462
+ datetime: new core_1.ActionContextKey('@comunica/actor-http-memento:datetime'),
463
+ };
464
+ exports.KeysHttpProxy = {
465
+ /**
466
+ * Interface.
467
+ */
468
+ httpProxyHandler: new core_1.ActionContextKey('@comunica/actor-http-proxy:httpProxyHandler'),
469
+ };
470
+ exports.KeysInitQuery = {
471
+ /**
472
+ * The unidentified sources to query over.
473
+ */
474
+ querySourcesUnidentified: new core_1.ActionContextKey('@comunica/actor-init-query:querySourcesUnidentified'),
475
+ /**
476
+ * Variables that have to be pre-bound to values in the query.
477
+ */
478
+ initialBindings: new core_1.ActionContextKey('@comunica/actor-init-query:initialBindings'),
479
+ /**
480
+ * The provided query's format.
481
+ * Defaults to { language: 'sparql', version: '1.1' }
482
+ */
483
+ queryFormat: new core_1.ActionContextKey('@comunica/actor-init-query:queryFormat'),
484
+ /**
485
+ * Which GraphQL bindings should be singularized.
486
+ */
487
+ graphqlSingularizeVariables: new core_1.ActionContextKey('@comunica/actor-init-query:singularizeVariables'),
488
+ /**
489
+ * If HTTP and parsing failures are ignored.
490
+ */
491
+ lenient: new core_1.ActionContextKey('@comunica/actor-init-query:lenient'),
492
+ /**
493
+ * If SERVICE clauses are allowed to target local files.
494
+ * This is disabled by default, as queries could otherwise read arbitrary local files,
495
+ * which is problematic when queries originate from untrusted parties.
496
+ */
497
+ serviceAllowFileTargets: new core_1.ActionContextKey('@comunica/actor-init-query:serviceAllowFileTargets'),
498
+ /**
499
+ * If SERVICE clauses are allowed to have a variable as target.
500
+ * This is disabled by default, as the targets are then determined by the queried data,
501
+ * which would allow queries from untrusted parties to dereference arbitrary sources.
502
+ */
503
+ serviceAllowVariableTargets: new core_1.ActionContextKey('@comunica/actor-init-query:serviceAllowVariableTargets'),
504
+ /**
505
+ * By default, errors will be emitted if parsers encounter unsupported versions.
506
+ * Setting this flag to true will silence those checks.
507
+ * Errors may still be emitted if unsupported grammar is encountered.
508
+ */
509
+ parseUnsupportedVersions: new core_1.ActionContextKey('@comunica/actor-init-query:parseUnsupportedVersions'),
510
+ /**
511
+ * The original query string.
512
+ */
513
+ queryString: new core_1.ActionContextKey('@comunica/actor-init-query:queryString'),
514
+ /**
515
+ * The original parsed query.
516
+ */
517
+ query: new core_1.ActionContextKey('@comunica/actor-init-query:query'),
518
+ /**
519
+ * The query's base IRI.
520
+ */
521
+ baseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:baseIRI'),
522
+ /**
523
+ * The file's base IRI.
524
+ */
525
+ fileBaseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:fileBaseIRI'),
526
+ /**
527
+ * Object to cache function argument overload resolutions.
528
+ * Defaults to an object that is reused across query executions.
529
+ */
530
+ functionArgumentsCache: new core_1.ActionContextKey('@comunica/actor-init-query:functionArgumentsCache'),
531
+ /**
532
+ * A timestamp representing the current time.
533
+ * This is required for certain SPARQL operations such as NOW().
534
+ */
535
+ queryTimestamp: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestamp'),
536
+ /**
537
+ * A high resolution timestamp representing the time elapsed since Performance.timeOrigin`.
538
+ * It can be used to precisely measure durations from the start of query execution.
539
+ */
540
+ queryTimestampHighResolution: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestampHighResolution'),
541
+ /**
542
+ * @range {functionNamedNode: RDF.NamedNode) => ((args: RDF.Term[]) => Promise<RDF.Term>) | undefined}
543
+ * Extension function creator for a given function IRI.
544
+ * Returned value should be an async function implementation.
545
+ * Undefined may be returned if no implementation exists for the given function IRI.
546
+ *
547
+ * The dictionary-based extensionFunctions context entry may be used instead, but not simultaneously.
548
+ */
549
+ extensionFunctionCreator: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionCreator'),
550
+ /**
551
+ * Dictionary of extension functions.
552
+ * Key is the IRI of the function, and value is the async function implementation.
553
+ *
554
+ * The callback-based extensionFunctionCreator context entry may be used instead, but not simultaneously.
555
+ */
556
+ extensionFunctions: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctions'),
557
+ /**
558
+ * If extension functions must always be pushed down to sources that support expressions,
559
+ * even if those sources to not explicitly declare support for these extension functions.
560
+ */
561
+ extensionFunctionsAlwaysPushdown: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionsAlwaysPushdown'),
562
+ /**
563
+ * Enables manipulation of the CLI arguments and their processing.
564
+ */
565
+ cliArgsHandlers: new core_1.ActionContextKey('@comunica/actor-init-query:cliArgsHandlers'),
566
+ /**
567
+ * Explain mode of the query. Can be 'parsed', 'logical', 'query', 'physical', or 'physical-json'.
568
+ */
569
+ explain: new core_1.ActionContextKey('@comunica/actor-init-query:explain'),
570
+ /**
571
+ * Logs the used physical operators
572
+ */
573
+ physicalQueryPlanLogger: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanLogger'),
574
+ /**
575
+ * The current physical operator within the query plan.
576
+ * This is used to pass parent-child relationships for invoking the query plan logger.
577
+ */
578
+ physicalQueryPlanNode: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanNode'),
579
+ /**
580
+ * A JSON-LD context
581
+ */
582
+ jsonLdContext: new core_1.ActionContextKey('@context'),
583
+ /**
584
+ * A boolean value denoting whether caching is disabled or not.
585
+ */
586
+ invalidateCache: new core_1.ActionContextKey('@comunica/actor-init-query:invalidateCache'),
587
+ /**
588
+ * An opaque object that is unique to a single query execution.
589
+ * Actors can use it as a key into a `WeakMap` to hold state that may be reused within one query execution,
590
+ * but must never be reused across query executions, such as cached source cardinalities.
591
+ */
592
+ queryExecutionScope: new core_1.ActionContextKey('@comunica/actor-init-query:queryExecutionScope'),
593
+ /**
594
+ * The data factory for creating terms and quads.
595
+ */
596
+ dataFactory: new core_1.ActionContextKey('@comunica/actor-init-query:dataFactory'),
597
+ /**
598
+ * A boolean value denoting whether results should be deduplicated or not.
599
+ */
600
+ distinctConstruct: new core_1.ActionContextKey('@comunica/actor-init-query:distinctConstruct'),
601
+ };
602
+ exports.KeysExpressionEvaluator = {
603
+ extensionFunctionCreator: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:extensionFunctionCreator'),
604
+ superTypeProvider: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:superTypeProvider'),
605
+ defaultTimeZone: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:defaultTimeZone'),
606
+ actionContext: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:actionContext'),
607
+ /**
608
+ * A boolean denoting the behaviour of comparators (e.g. <, >, <=, >=) when used with non-lexical literal operands.
609
+ * Non-lexical literal are literals whose value does not belong in the space of it's datatype,
610
+ * e.g. "not-a-number"^^xsd:int
611
+ *
612
+ * true: compares both operands by datatypes first and if they're equal, their string values are compared.
613
+ * false: throws an error (default).
614
+ */
615
+ nonLexicalComparison: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:nonLexicalComparison'),
616
+ /**
617
+ * A boolean denoting the behaviour of comparators (e.g. <, >, <=, >=) when used with non-literal and mixed operands.
618
+ * Such non-literals are IRIs, blank nodes, languageStrings and triple terms.
619
+ * Their comparison is not required by default in SPARQL.
620
+ *
621
+ * true: compares them. (follows the relative ordering of https://www.w3.org/TR/sparql12-query/#modOrderBy)
622
+ * false: throws an error (default).
623
+ */
624
+ fullTermComparison: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:fullTermComparison'),
625
+ };
626
+ exports.KeysQueryOperation = {
627
+ /**
628
+ * Context entry for the current query operation.
629
+ */
630
+ operation: new core_1.ActionContextKey('@comunica/bus-query-operation:operation'),
631
+ /**
632
+ * @type {any} The metadata from the left streams within a join operation.
633
+ */
634
+ joinLeftMetadata: new core_1.ActionContextKey('@comunica/bus-query-operation:joinLeftMetadata'),
635
+ /**
636
+ * An array of metadata from the right streams within a join operation.
637
+ */
638
+ joinRightMetadatas: new core_1.ActionContextKey('@comunica/bus-query-operation:joinRightMetadatas'),
639
+ /**
640
+ * Indicates the bindings that were used to bind the operation.
641
+ */
642
+ joinBindings: new core_1.ActionContextKey('@comunica/bus-query-operation:joinBindings'),
643
+ /**
644
+ * Flag for indicating that only read operations are allowed, defaults to false.
645
+ */
646
+ readOnly: new core_1.ActionContextKey('@comunica/bus-query-operation:readOnly'),
647
+ /**
648
+ * Flag on a query source context indicating that this source is the target of a `SERVICE SILENT` clause.
649
+ * Errors from such a source must be swallowed, and replaced by a single empty solution,
650
+ * as mandated by SPARQL 1.1 Federated Query.
651
+ */
652
+ silent: new core_1.ActionContextKey('@comunica/bus-query-operation:silent'),
653
+ /**
654
+ * An internal context entry to mark that a property path with arbitrary length and a distinct key is being processed.
655
+ */
656
+ isPathArbitraryLengthDistinctKey: new core_1.ActionContextKey('@comunica/bus-query-operation:isPathArbitraryLengthDistinct'),
657
+ /**
658
+ * An indicator that the stream will be limited to the given number of elements afterwards.
659
+ */
660
+ limitIndicator: new core_1.ActionContextKey('@comunica/bus-query-operation:limitIndicator'),
661
+ /**
662
+ * If the default graph should also contain the union of all named graphs.
663
+ */
664
+ unionDefaultGraph: new core_1.ActionContextKey('@comunica/bus-query-operation:unionDefaultGraph'),
665
+ /**
666
+ * The sources to query over.
667
+ */
668
+ querySources: new core_1.ActionContextKey('@comunica/bus-query-operation:querySources'),
669
+ /**
670
+ * A mapping of SERVICE targets to sources.
671
+ */
672
+ serviceSources: new core_1.ActionContextKey('@comunica/bus-query-operation:serviceSources'),
673
+ };
674
+ exports.KeysRdfParseJsonLd = {
675
+ /**
676
+ * @range {IDocumentLoader}
677
+ */
678
+ documentLoader: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:documentLoader'),
679
+ /**
680
+ * @range {boolean}
681
+ */
682
+ strictValues: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:strictValues'),
683
+ /**
684
+ * @range {Record<string, any>}
685
+ */
686
+ parserOptions: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:parserOptions'),
687
+ };
688
+ exports.KeysRdfParseHtmlScript = {
689
+ /**
690
+ * An internal context flag to determine if the engine is already processing an HTML script tag.
691
+ */
692
+ processingHtmlScript: new core_1.ActionContextKey('@comunica/actor-rdf-parse-html-script:processingHtmlScript'),
693
+ /**
694
+ * If all HTML script tags must be considered.
695
+ */
696
+ extractAllScripts: new core_1.ActionContextKey('extractAllScripts'),
697
+ };
698
+ exports.KeysRdfSerialize = {
699
+ /**
700
+ * Prefixes that will be used by RDF serializers.
701
+ */
702
+ rdfSerializationPrefixes: new core_1.ActionContextKey('@comunica/bus-rdf-serialize:rdfSerializationPrefixes'),
703
+ };
704
+ exports.KeysQuerySourceIdentify = {
705
+ /**
706
+ * A map containing unique IDs for each source
707
+ */
708
+ sourceIds: new core_1.ActionContextKey('@comunica/bus-query-source-identify:sourceIds'),
709
+ /**
710
+ * If links may be traversed from this source.
711
+ * This means that sources annotated with this flag are considered incomplete until all links have been traversed.
712
+ */
713
+ traverse: new core_1.ActionContextKey('@comunica/bus-query-source-identify:traverse'),
714
+ };
715
+ exports.KeysDereference = {
716
+ /**
717
+ * If local files may not be dereferenced within the current scope.
718
+ * This is for example set when dereferencing SERVICE targets,
719
+ * to avoid exposing local files to queries from untrusted parties.
720
+ */
721
+ blockFileAccess: new core_1.ActionContextKey('@comunica/bus-dereference:blockFileAccess'),
722
+ };
723
+ exports.KeysRdfUpdateQuads = {
724
+ /**
725
+ * A data destination.
726
+ */
727
+ destination: new core_1.ActionContextKey('@comunica/bus-rdf-update-quads:destination'),
728
+ };
729
+ exports.KeysMergeBindingsContext = {
730
+ /**
731
+ * The data sources required to produce the binding
732
+ */
733
+ sourcesBinding: new core_1.ActionContextKey('@comunica/bus-merge-bindings-context:sourcesBinding'),
734
+ };
735
+ exports.KeysRdfJoin = {
736
+ /**
737
+ * The last physical join actor that was executed.
738
+ */
739
+ lastPhysicalJoin: new core_1.ActionContextKey('@comunica/bus-rdf-join:lastPhysicalJoin'),
740
+ };
741
+ exports.KeysStatistics = {
742
+ /**
743
+ * All discovered links during query execution. Not all of them will necessarily be dereferenced.
744
+ */
745
+ discoveredLinks: new core_1.ActionContextKey('@comunica/statistic:discoveredLinks'),
746
+ /**
747
+ * Information about what links are dereferenced and when
748
+ */
749
+ dereferencedLinks: new core_1.ActionContextKey('@comunica/statistic:dereferencedLinks'),
750
+ /**
751
+ * Intermediate results produced during query execution
752
+ */
753
+ intermediateResults: new core_1.ActionContextKey('@comunica/statistic:intermediateResults'),
754
+ };
755
+ //# sourceMappingURL=Keys.js.map
756
+
757
+ /***/ },
758
+
759
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/index.js"
760
+ /*!*****************************************************************************************************!*\
761
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/index.js ***!
762
+ \*****************************************************************************************************/
763
+ (__unused_webpack_module, exports, __webpack_require__) {
764
+
765
+ "use strict";
766
+
767
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
768
+ if (k2 === undefined) k2 = k;
769
+ var desc = Object.getOwnPropertyDescriptor(m, k);
770
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
771
+ desc = { enumerable: true, get: function() { return m[k]; } };
772
+ }
773
+ Object.defineProperty(o, k2, desc);
774
+ }) : (function(o, m, k, k2) {
775
+ if (k2 === undefined) k2 = k;
776
+ o[k2] = m[k];
777
+ }));
778
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
779
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
780
+ };
781
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
782
+ __exportStar(__webpack_require__(/*! ./Keys */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/context-entries/lib/Keys.js"), exports);
783
+ //# sourceMappingURL=index.js.map
784
+
785
+ /***/ },
786
+
787
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js"
788
+ /*!**************************************************************************************************!*\
789
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js ***!
790
+ \**************************************************************************************************/
791
+ (__unused_webpack_module, exports, __webpack_require__) {
792
+
793
+ "use strict";
794
+
795
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
796
+ exports.ActionContextKey = exports.ActionContext = void 0;
797
+ const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.es.js");
798
+ /**
799
+ * Implementation of {@link IActionContext} using Immutable.js.
800
+ */
801
+ class ActionContext {
802
+ map;
803
+ constructor(data = {}) {
804
+ this.map = (0, immutable_1.Map)(data);
805
+ }
806
+ /**
807
+ * Will only set the value if the key is not already set.
808
+ */
809
+ setDefault(key, value) {
810
+ return this.has(key) ? this : this.set(key, value);
811
+ }
812
+ set(key, value) {
813
+ return this.setRaw(key.name, value);
814
+ }
815
+ setRaw(key, value) {
816
+ return new ActionContext(this.map.set(key, value));
817
+ }
818
+ delete(key) {
819
+ return new ActionContext(this.map.delete(key.name));
820
+ }
821
+ get(key) {
822
+ return this.getRaw(key.name);
823
+ }
824
+ getRaw(key) {
825
+ return this.map.get(key);
826
+ }
827
+ getSafe(key) {
828
+ if (!this.has(key)) {
829
+ throw new Error(`Context entry ${key.name} is required but not available`);
830
+ }
831
+ return this.get(key);
832
+ }
833
+ has(key) {
834
+ return this.hasRaw(key.name);
835
+ }
836
+ hasRaw(key) {
837
+ return this.map.has(key);
838
+ }
839
+ merge(...contexts) {
840
+ // eslint-disable-next-line ts/no-this-alias
841
+ let context = this;
842
+ for (const source of contexts) {
843
+ for (const key of source.keys()) {
844
+ context = context.set(key, source.get(key));
845
+ }
846
+ }
847
+ return context;
848
+ }
849
+ keys() {
850
+ return [...this.map.keys()]
851
+ .map(keyName => new ActionContextKey(keyName));
852
+ }
853
+ toJS() {
854
+ return this.map.toJS();
855
+ }
856
+ toString() {
857
+ return `ActionContext(${JSON.stringify(this.map.toJS())})`;
858
+ }
859
+ [Symbol.for('nodejs.util.inspect.custom')]() {
860
+ return `ActionContext(${JSON.stringify(this.map.toJS(), null, ' ')})`;
861
+ }
862
+ /**
863
+ * Convert the given object to an action context object if it is not an action context object yet.
864
+ * If it already is an action context object, return the object as-is.
865
+ * @param maybeActionContext An action context or record.
866
+ * @return {ActionContext} An action context object.
867
+ */
868
+ static ensureActionContext(maybeActionContext) {
869
+ // This should only be an instanceof, but can fail when this package is loaded multiple times,
870
+ // with multiple ActionContexts existing in parallel.
871
+ return maybeActionContext instanceof ActionContext || (maybeActionContext && 'map' in maybeActionContext) ?
872
+ maybeActionContext :
873
+ new ActionContext((0, immutable_1.Map)(maybeActionContext ?? {}));
874
+ }
875
+ }
876
+ exports.ActionContext = ActionContext;
877
+ /**
878
+ * Simple implementation of {@link IActionContextKey}.
879
+ */
880
+ class ActionContextKey {
881
+ /**
882
+ * A unique context key name.
883
+ */
884
+ name;
885
+ dummy;
886
+ constructor(name) {
887
+ this.name = name;
888
+ }
889
+ }
890
+ exports.ActionContextKey = ActionContextKey;
891
+ //# sourceMappingURL=ActionContext.js.map
892
+
893
+ /***/ },
894
+
895
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionObserver.js"
896
+ /*!***************************************************************************************************!*\
897
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionObserver.js ***!
898
+ \***************************************************************************************************/
899
+ (__unused_webpack_module, exports) {
900
+
901
+ "use strict";
902
+
903
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
904
+ exports.ActionObserver = void 0;
905
+ /**
906
+ * An ActionObserver can passively listen to {@link Actor#run} inputs and outputs for all actors on a certain bus.
907
+ *
908
+ * ActionObserver should not edit inputs and outputs,
909
+ * they should be considered immutable.
910
+ *
911
+ * @see Actor
912
+ * @see Bus
913
+ *
914
+ * @template I The input type of an actor.
915
+ * @template O The output type of an actor.
916
+ * @template TS The test side data type.
917
+ */
918
+ class ActionObserver {
919
+ name;
920
+ bus;
921
+ /**
922
+ * All enumerable properties from the `args` object are inherited to this observer.
923
+ *
924
+ * The observer will NOT automatically subscribe to the given bus when this constructor is called.
925
+ *
926
+ * @param {IActionObserverArgs<I extends IAction, O extends IActorOutput>} args Arguments object
927
+ * @throws When required arguments are missing.
928
+ */
929
+ constructor(args) {
930
+ this.name = args.name;
931
+ this.bus = args.bus;
932
+ }
933
+ }
934
+ exports.ActionObserver = ActionObserver;
935
+ //# sourceMappingURL=ActionObserver.js.map
936
+
937
+ /***/ },
938
+
939
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Actor.js"
940
+ /*!******************************************************************************************!*\
941
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Actor.js ***!
942
+ \******************************************************************************************/
943
+ (__unused_webpack_module, exports, __webpack_require__) {
944
+
945
+ "use strict";
946
+
947
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
948
+ exports.Actor = void 0;
949
+ const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js");
950
+ /**
951
+ * An actor can act on messages of certain types and provide output of a certain type.
952
+ *
953
+ * The flow of an actor is as follows:
954
+ * 1. Send a message to {@link Actor#test} to test if an actor can run that action.
955
+ * 2. If the actor can reply to the message, let the actor run the action using {@link Actor#run}.
956
+ *
957
+ * An actor is typically subscribed to a bus,
958
+ * using which the applicability to an action can be tested.
959
+ *
960
+ * @see Bus
961
+ *
962
+ * @template I The input type of an actor.
963
+ * @template T The test type of an actor.
964
+ * @template O The output type of an actor.
965
+ * @template TS The test side data type.
966
+ */
967
+ class Actor {
968
+ name;
969
+ bus;
970
+ beforeActors = [];
971
+ /**
972
+ * The actor will subscribe to the given bus when this constructor is called.
973
+ *
974
+ * @param {IActorArgs<I extends IAction, T extends IActorTest, O extends IActorOutput>} args Arguments object
975
+ * @param {string} args.name The name for this actor.
976
+ * @param {Bus<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus
977
+ * The bus this actor subscribes to.
978
+ * @throws When required arguments are missing.
979
+ */
980
+ constructor(args) {
981
+ // Copy all own enumerable properties from args, excluding __proto__ to prevent prototype pollution.
982
+ // TODO: Remove this inheritance in next/major
983
+ for (const key of Object.keys(args)) {
984
+ if (key !== '__proto__') {
985
+ this[key] = args[key];
986
+ }
987
+ }
988
+ this.name = args.name;
989
+ this.bus = args.bus;
990
+ this.bus.subscribe(this);
991
+ if (this.beforeActors.length > 0) {
992
+ this.bus.addDependencies(this, this.beforeActors);
993
+ }
994
+ if (args.busFailMessage) {
995
+ this.bus.failMessage = args.busFailMessage;
996
+ }
997
+ }
998
+ /**
999
+ * Get the logger from the given context.
1000
+ * @param {ActionContext} context An optional context.
1001
+ * @return {Logger} The logger or undefined.
1002
+ */
1003
+ static getContextLogger(context) {
1004
+ return context.get(ContextEntries_1.CONTEXT_KEY_LOGGER);
1005
+ }
1006
+ /**
1007
+ * Run the given action on this actor
1008
+ * AND invokes the {@link Bus#onRun} method.
1009
+ *
1010
+ * @param {I} action The action to run.
1011
+ * @return {Promise<T>} A promise that resolves to the run result.
1012
+ */
1013
+ runObservable(action, sideData) {
1014
+ const output = this.run(action, sideData);
1015
+ this.bus.onRun(this, action, output);
1016
+ return output;
1017
+ }
1018
+ /* Proxy methods for the (optional) logger that is defined in the context */
1019
+ getDefaultLogData(context, data) {
1020
+ const dataActual = data ? data() : {};
1021
+ dataActual.actor = this.name;
1022
+ return dataActual;
1023
+ }
1024
+ logTrace(context, message, data) {
1025
+ const logger = Actor.getContextLogger(context);
1026
+ if (logger) {
1027
+ logger.trace(message, this.getDefaultLogData(context, data));
1028
+ }
1029
+ }
1030
+ logDebug(context, message, data) {
1031
+ const logger = Actor.getContextLogger(context);
1032
+ if (logger) {
1033
+ logger.debug(message, this.getDefaultLogData(context, data));
1034
+ }
1035
+ }
1036
+ logInfo(context, message, data) {
1037
+ const logger = Actor.getContextLogger(context);
1038
+ if (logger) {
1039
+ logger.info(message, this.getDefaultLogData(context, data));
1040
+ }
1041
+ }
1042
+ logWarn(context, message, data) {
1043
+ const logger = Actor.getContextLogger(context);
1044
+ if (logger) {
1045
+ logger.warn(message, this.getDefaultLogData(context, data));
1046
+ }
1047
+ }
1048
+ logError(context, message, data) {
1049
+ const logger = Actor.getContextLogger(context);
1050
+ if (logger) {
1051
+ logger.error(message, this.getDefaultLogData(context, data));
1052
+ }
1053
+ }
1054
+ logFatal(context, message, data) {
1055
+ const logger = Actor.getContextLogger(context);
1056
+ if (logger) {
1057
+ logger.fatal(message, this.getDefaultLogData(context, data));
1058
+ }
1059
+ }
1060
+ }
1061
+ exports.Actor = Actor;
1062
+ //# sourceMappingURL=Actor.js.map
1063
+
1064
+ /***/ },
1065
+
1066
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js"
1067
+ /*!****************************************************************************************!*\
1068
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js ***!
1069
+ \****************************************************************************************/
1070
+ (__unused_webpack_module, exports) {
1071
+
1072
+ "use strict";
1073
+
1074
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1075
+ exports.Bus = void 0;
1076
+ /**
1077
+ * A publish-subscribe bus for sending actions to actors
1078
+ * to test whether or not they can run an action.
1079
+ *
1080
+ * This bus does not run the action itself,
1081
+ * for that a {@link Mediator} can be used.
1082
+ *
1083
+ * @see Actor
1084
+ * @see Mediator
1085
+ *
1086
+ * @template A The actor type that can subscribe to the sub.
1087
+ * @template I The input type of an actor.
1088
+ * @template T The test type of an actor.
1089
+ * @template O The output type of an actor.
1090
+ * @template TS The test side data type.
1091
+ */
1092
+ class Bus {
1093
+ name;
1094
+ actors = [];
1095
+ observers = [];
1096
+ // Mapping from dependency (after) to dependents (before)
1097
+ dependencyLinks = new Map();
1098
+ failMessage;
1099
+ /**
1100
+ * All enumerable properties from the `args` object are inherited to this bus.
1101
+ *
1102
+ * @param {IBusArgs} args Arguments object
1103
+ * @param {string} args.name The name for the bus
1104
+ * @throws When required arguments are missing.
1105
+ */
1106
+ constructor(args) {
1107
+ this.name = args.name;
1108
+ this.failMessage = `All actors over bus ${this.name} failed to handle an action`;
1109
+ }
1110
+ /**
1111
+ * Subscribe the given actor to the bus.
1112
+ * After this, the given actor can be unsubscribed from the bus by calling {@link Bus#unsubscribe}.
1113
+ *
1114
+ * An actor that is subscribed multiple times will exist that amount of times in the bus.
1115
+ *
1116
+ * @param {A} actor The actor to subscribe.
1117
+ */
1118
+ subscribe(actor) {
1119
+ this.actors.push(actor);
1120
+ this.reorderForDependencies();
1121
+ }
1122
+ /**
1123
+ * Subscribe the given observer to the bus.
1124
+ * After this, the given observer can be unsubscribed from the bus by calling {@link Bus#unsubscribeObserver}.
1125
+ *
1126
+ * An observer that is subscribed multiple times will exist that amount of times in the bus.
1127
+ *
1128
+ * @param {ActionObserver<I, O>} observer The observer to subscribe.
1129
+ */
1130
+ subscribeObserver(observer) {
1131
+ this.observers.push(observer);
1132
+ }
1133
+ /**
1134
+ * Unsubscribe the given actor from the bus.
1135
+ *
1136
+ * An actor that is subscribed multiple times will be unsubscribed only once.
1137
+ *
1138
+ * @param {A} actor The actor to unsubscribe
1139
+ * @return {boolean} If the given actor was successfully unsubscribed,
1140
+ * otherwise it was not subscribed before.
1141
+ */
1142
+ unsubscribe(actor) {
1143
+ const index = this.actors.indexOf(actor);
1144
+ if (index >= 0) {
1145
+ this.actors.splice(index, 1);
1146
+ return true;
1147
+ }
1148
+ return false;
1149
+ }
1150
+ /**
1151
+ * Unsubscribe the given observer from the bus.
1152
+ *
1153
+ * An observer that is subscribed multiple times will be unsubscribed only once.
1154
+ *
1155
+ * @param {ActionObserver<I, O>} observer The observer to unsubscribe.
1156
+ * @return {boolean} If the given observer was successfully unsubscribed,
1157
+ * otherwise it was not subscribed before.
1158
+ */
1159
+ unsubscribeObserver(observer) {
1160
+ const index = this.observers.indexOf(observer);
1161
+ if (index >= 0) {
1162
+ this.observers.splice(index, 1);
1163
+ return true;
1164
+ }
1165
+ return false;
1166
+ }
1167
+ /**
1168
+ * Publish an action to all actors in the bus to test if they can run the action.
1169
+ *
1170
+ * @param {I} action An action to publish
1171
+ * @return {IActorReply<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest,
1172
+ * O extends IActorOutput>[]}
1173
+ * An array of reply objects. Each object contains a reference to the actor,
1174
+ * and a promise to its {@link Actor#test} result.
1175
+ */
1176
+ publish(action) {
1177
+ return this.actors.map((actor) => ({ actor, reply: actor.test(action) }));
1178
+ }
1179
+ /**
1180
+ * Invoked when an action was run by an actor.
1181
+ *
1182
+ * @param actor The action on which the {@link Actor#run} method was invoked.
1183
+ * @param {I} action The original action input.
1184
+ * @param {Promise<O>} output A promise resolving to the final action output.
1185
+ */
1186
+ onRun(actor, action, output) {
1187
+ for (const observer of this.observers) {
1188
+ observer.onRun(actor, action, output);
1189
+ }
1190
+ }
1191
+ /**
1192
+ * Indicate that the given actor has the given actor dependencies.
1193
+ *
1194
+ * This will ensure that the given actor will be present in the bus *before* the given dependencies.
1195
+ *
1196
+ * @param {A} dependent A dependent actor that will be placed before the given actors.
1197
+ * @param {A[]} dependencies Actor dependencies that will be placed after the given actor.
1198
+ */
1199
+ addDependencies(dependent, dependencies) {
1200
+ for (const dependency of dependencies) {
1201
+ let existingDependencies = this.dependencyLinks.get(dependency);
1202
+ if (!existingDependencies) {
1203
+ existingDependencies = [];
1204
+ this.dependencyLinks.set(dependency, existingDependencies);
1205
+ }
1206
+ existingDependencies.push(dependent);
1207
+ }
1208
+ this.reorderForDependencies();
1209
+ }
1210
+ /**
1211
+ * Reorder the bus based on all present dependencies.
1212
+ */
1213
+ reorderForDependencies() {
1214
+ if (this.dependencyLinks.size > 0) {
1215
+ const actorsAfter = [];
1216
+ // Temporarily remove all actors that have dependencies
1217
+ for (const actorAfter of this.dependencyLinks.keys()) {
1218
+ const dependentPos = this.actors.indexOf(actorAfter);
1219
+ if (dependentPos >= 0) {
1220
+ this.actors.splice(dependentPos, 1);
1221
+ actorsAfter.push(actorAfter);
1222
+ }
1223
+ }
1224
+ // Iteratively append actors based on the first dependency link
1225
+ // that has all of its dependencies available in the array
1226
+ while (actorsAfter.length > 0) {
1227
+ // Find the first actor that has all of its dependencies available.
1228
+ let activeActorAfterId = -1;
1229
+ for (let i = 0; i < actorsAfter.length; i++) {
1230
+ let validLink = true;
1231
+ for (const dependency of this.dependencyLinks.get(actorsAfter[i])) {
1232
+ if (!this.actors.includes(dependency) && actorsAfter.includes(dependency)) {
1233
+ validLink = false;
1234
+ break;
1235
+ }
1236
+ }
1237
+ if (validLink) {
1238
+ activeActorAfterId = i;
1239
+ break;
1240
+ }
1241
+ }
1242
+ // If none of the pending links are possible, there must be a cyclic dependency
1243
+ if (activeActorAfterId < 0) {
1244
+ throw new Error(`Cyclic dependency links detected in bus ${this.name}`);
1245
+ }
1246
+ // The dependent may not be available (yet), so we don't add it to the array (yet).
1247
+ const activeActorAfter = actorsAfter.splice(activeActorAfterId, 1)[0];
1248
+ this.actors.push(activeActorAfter);
1249
+ }
1250
+ }
1251
+ }
1252
+ }
1253
+ exports.Bus = Bus;
1254
+ //# sourceMappingURL=Bus.js.map
1255
+
1256
+ /***/ },
1257
+
1258
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/BusIndexed.js"
1259
+ /*!***********************************************************************************************!*\
1260
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/BusIndexed.js ***!
1261
+ \***********************************************************************************************/
1262
+ (__unused_webpack_module, exports, __webpack_require__) {
1263
+
1264
+ "use strict";
1265
+
1266
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1267
+ exports.BusIndexed = void 0;
1268
+ const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js");
1269
+ /**
1270
+ * A bus that indexes identified actors,
1271
+ * so that actions with a corresponding identifier can be published more efficiently.
1272
+ *
1273
+ * Multiple actors with the same identifier can be subscribed.
1274
+ *
1275
+ * If actors or actions do not have a valid identifier,
1276
+ * then this will fallback to the normal bus behaviour.
1277
+ *
1278
+ * @see Bus
1279
+ *
1280
+ * @template A The actor type that can subscribe to the sub.
1281
+ * @template I The input type of an actor.
1282
+ * @template T The test type of an actor.
1283
+ * @template O The output type of an actor.
1284
+ */
1285
+ class BusIndexed extends Bus_1.Bus {
1286
+ actorsIndex = {};
1287
+ actorIdentifierFields;
1288
+ actionIdentifierFields;
1289
+ /**
1290
+ * All enumerable properties from the `args` object are inherited to this bus.
1291
+ *
1292
+ * @param {IBusIndexedArgs} args Arguments object
1293
+ * @param {string} args.name The name for the bus
1294
+ * @throws When required arguments are missing.
1295
+ */
1296
+ constructor(args) {
1297
+ super(args);
1298
+ this.actorIdentifierFields = args.actorIdentifierFields;
1299
+ this.actionIdentifierFields = args.actionIdentifierFields;
1300
+ }
1301
+ subscribe(actor) {
1302
+ const actorIds = this.getActorIdentifiers(actor) ?? ['_undefined_'];
1303
+ for (const actorId of actorIds) {
1304
+ let actors = this.actorsIndex[actorId];
1305
+ if (!actors) {
1306
+ actors = this.actorsIndex[actorId] = [];
1307
+ }
1308
+ actors.push(actor);
1309
+ super.subscribe(actor);
1310
+ }
1311
+ }
1312
+ unsubscribe(actor) {
1313
+ const actorIds = this.getActorIdentifiers(actor) ?? ['_undefined_'];
1314
+ let unsubscribed = false;
1315
+ for (const actorId of actorIds) {
1316
+ const actors = this.actorsIndex[actorId];
1317
+ if (actors) {
1318
+ const i = actors.indexOf(actor);
1319
+ if (i >= 0) {
1320
+ actors.splice(i, 1);
1321
+ }
1322
+ if (actors.length === 0) {
1323
+ delete this.actorsIndex[actorId];
1324
+ }
1325
+ }
1326
+ unsubscribed = unsubscribed || super.unsubscribe(actor);
1327
+ }
1328
+ return unsubscribed;
1329
+ }
1330
+ publish(action) {
1331
+ const actionId = this.getActionIdentifier(action);
1332
+ if (actionId) {
1333
+ const actors = [...this.actorsIndex[actionId] || [], ...this.actorsIndex._undefined_ || []];
1334
+ return actors.map((actor) => ({ actor, reply: actor.test(action) }));
1335
+ }
1336
+ return super.publish(action);
1337
+ }
1338
+ getActorIdentifiers(actor) {
1339
+ const identifierValue = this.actorIdentifierFields
1340
+ .reduce((object, field) => object[field], actor);
1341
+ if (!identifierValue) {
1342
+ return;
1343
+ }
1344
+ return Array.isArray(identifierValue) ? identifierValue : [identifierValue];
1345
+ }
1346
+ getActionIdentifier(action) {
1347
+ return this.actionIdentifierFields.reduce((object, field) => object[field], action);
1348
+ }
1349
+ }
1350
+ exports.BusIndexed = BusIndexed;
1351
+ //# sourceMappingURL=BusIndexed.js.map
1352
+
1353
+ /***/ },
1354
+
1355
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js"
1356
+ /*!***************************************************************************************************!*\
1357
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js ***!
1358
+ \***************************************************************************************************/
1359
+ (__unused_webpack_module, exports, __webpack_require__) {
1360
+
1361
+ "use strict";
1362
+
1363
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1364
+ exports.CONTEXT_KEY_LOGGER = void 0;
1365
+ const ActionContext_1 = __webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js");
1366
+ exports.CONTEXT_KEY_LOGGER = new ActionContext_1.ActionContextKey('@comunica/core:log');
1367
+ //# sourceMappingURL=ContextEntries.js.map
1368
+
1369
+ /***/ },
1370
+
1371
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Mediator.js"
1372
+ /*!*********************************************************************************************!*\
1373
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Mediator.js ***!
1374
+ \*********************************************************************************************/
1375
+ (__unused_webpack_module, exports) {
1376
+
1377
+ "use strict";
1378
+
1379
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1380
+ exports.Mediator = void 0;
1381
+ /**
1382
+ * A mediator can mediate an action over a bus of actors.
1383
+ *
1384
+ * It does the following:
1385
+ * 1. Accepts an action in {@link Mediator#mediate}.
1386
+ * 2. Sends the action to the bus to test its applicability on all actors.
1387
+ * 3. It _mediates_ over these test results.
1388
+ * 4. It selects the _best_ actor.
1389
+ * 5. The action is run by the _best_ actor, and the result if returned.
1390
+ *
1391
+ * The _mediates_ and _best_ parts are filled in by subclasses of this abstract Mediator class.
1392
+ *
1393
+ * @template A The type of actor to mediator over.
1394
+ * @template I The input type of an actor.
1395
+ * @template T The test type of an actor.
1396
+ * @template O The output type of an actor.
1397
+ */
1398
+ class Mediator {
1399
+ name;
1400
+ bus;
1401
+ /**
1402
+ * All enumerable properties from the `args` object are inherited to this mediator.
1403
+ *
1404
+ * @param {IMediatorArgs<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest,
1405
+ * O extends IActorOutput>} args Arguments object
1406
+ * @param {string} args.name The name for this mediator.
1407
+ * @param {Bus<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus
1408
+ * The bus this mediator will mediate over.
1409
+ * @throws When required arguments are missing.
1410
+ */
1411
+ constructor(args) {
1412
+ this.name = args.name;
1413
+ this.bus = args.bus;
1414
+ }
1415
+ /**
1416
+ * Publish the given action in the bus.
1417
+ *
1418
+ * This will send the test action on all actors in the bus.
1419
+ * All actor replies will be returned.
1420
+ *
1421
+ * @param {I} action The action to mediate for.
1422
+ * @return {IActorReply<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput>[]}
1423
+ * The list of actor replies.
1424
+ */
1425
+ publish(action) {
1426
+ // Test all actors in the bus
1427
+ const actors = this.bus.publish(action);
1428
+ if (actors.length === 0) {
1429
+ throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);
1430
+ }
1431
+ return actors;
1432
+ }
1433
+ /**
1434
+ * Mediate for the given action to get an actor.
1435
+ *
1436
+ * This will send the test action on all actors in the bus.
1437
+ * The actor that tests _best_ will be returned.
1438
+ *
1439
+ * @param {I} action The action to mediate for.
1440
+ * @return {Promise<O extends IActorOutput>} A promise that resolves to the _best_ actor.
1441
+ */
1442
+ async mediateActor(action) {
1443
+ // Mediate to one actor and run that actor.
1444
+ return await this.mediateWith(action, this.publish(action));
1445
+ }
1446
+ /**
1447
+ * Mediate for the given action.
1448
+ *
1449
+ * This will send the test action on all actors in the bus.
1450
+ * The action will be run on the actor that tests _best_,
1451
+ * of which the result will be returned.
1452
+ *
1453
+ * @param {I} action The action to mediate for.
1454
+ * @return {Promise<O extends IActorOutput>} A promise that resolves to the mediation result.
1455
+ */
1456
+ async mediateTestable(action) {
1457
+ // Mediate to one actor and run the action on it
1458
+ const actorResult = await this.mediateActor(action);
1459
+ return actorResult.mapAsync((actor, sideData) => actor.runObservable(action, sideData));
1460
+ }
1461
+ /**
1462
+ * Mediate for the given action.
1463
+ *
1464
+ * This will send the test action on all actors in the bus.
1465
+ * The action will be run on the actor that tests _best_,
1466
+ * of which the result will be returned.
1467
+ *
1468
+ * @param {I} action The action to mediate for.
1469
+ * @return {Promise<O extends IActorOutput>} A promise that resolves to the mediation result.
1470
+ */
1471
+ async mediate(action) {
1472
+ const testable = await this.mediateTestable(action);
1473
+ return testable.getOrThrow();
1474
+ }
1475
+ /**
1476
+ * Construct a human-friendly failure message that accumulates the given actors's failure messages.
1477
+ * @param action The action that was executed.
1478
+ * @param actorFailures The failure messages that were collected from actor tests based on the given executed action.
1479
+ * @protected
1480
+ */
1481
+ constructFailureMessage(action, actorFailures) {
1482
+ const prefix = `\n `;
1483
+ const failMessage = this.bus.failMessage
1484
+ .replaceAll(/\$\{(.*?)\}/gu, (match, key) => Mediator
1485
+ .getObjectValue({ action }, key.split('.')) || match);
1486
+ return `${failMessage}\n Error messages of failing actors:${prefix}${actorFailures.join(prefix)}`;
1487
+ }
1488
+ static getObjectValue(obj, path) {
1489
+ if (path.length === 0) {
1490
+ return obj;
1491
+ }
1492
+ if (obj) {
1493
+ return Mediator.getObjectValue(obj[path[0]], path.slice(1));
1494
+ }
1495
+ return undefined;
1496
+ }
1497
+ }
1498
+ exports.Mediator = Mediator;
1499
+ //# sourceMappingURL=Mediator.js.map
1500
+
1501
+ /***/ },
1502
+
1503
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/TestResult.js"
1504
+ /*!***********************************************************************************************!*\
1505
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/TestResult.js ***!
1506
+ \***********************************************************************************************/
1507
+ (__unused_webpack_module, exports) {
1508
+
1509
+ "use strict";
1510
+
1511
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1512
+ exports.TestResultFailed = exports.TestResultPassed = void 0;
1513
+ exports.passTest = passTest;
1514
+ exports.passTestVoid = passTestVoid;
1515
+ exports.passTestWithSideData = passTestWithSideData;
1516
+ exports.passTestVoidWithSideData = passTestVoidWithSideData;
1517
+ exports.failTest = failTest;
1518
+ /**
1519
+ * Create a new test result that represents a passed value.
1520
+ * @param value The value the test passed with.
1521
+ */
1522
+ function passTest(value) {
1523
+ return new TestResultPassed(value, undefined);
1524
+ }
1525
+ /**
1526
+ * Create a new test result that represents a passed void value.
1527
+ */
1528
+ function passTestVoid() {
1529
+ return new TestResultPassed(true, undefined);
1530
+ }
1531
+ /**
1532
+ * Create a new test result that represents a passed value with side data.
1533
+ * @param value The value the test passed with.
1534
+ * @param sideData Additional data to pass to the run phase.
1535
+ */
1536
+ function passTestWithSideData(value, sideData) {
1537
+ return new TestResultPassed(value, sideData);
1538
+ }
1539
+ /**
1540
+ * Create a new test result that represents a passed void value with side data.
1541
+ * @param sideData Additional data to pass to the run phase.
1542
+ */
1543
+ function passTestVoidWithSideData(sideData) {
1544
+ return new TestResultPassed(true, sideData);
1545
+ }
1546
+ /**
1547
+ * Create a new test result that represents a test failure.
1548
+ * @param message The error message that describes the failure.
1549
+ */
1550
+ function failTest(message) {
1551
+ return new TestResultFailed(message);
1552
+ }
1553
+ /**
1554
+ * A passed test result.
1555
+ * This should not be constructed manually.
1556
+ * Instead, `testPass` should be used.
1557
+ */
1558
+ class TestResultPassed {
1559
+ value;
1560
+ sideData;
1561
+ constructor(passValue, sideData) {
1562
+ this.value = passValue;
1563
+ this.sideData = sideData;
1564
+ }
1565
+ /**
1566
+ * Check if the test has passed.
1567
+ * If true, it will contain a value.
1568
+ */
1569
+ isPassed() {
1570
+ return true;
1571
+ }
1572
+ /**
1573
+ * Check if the test has failed.
1574
+ * If true, it will contain a failure message.
1575
+ */
1576
+ isFailed() {
1577
+ return false;
1578
+ }
1579
+ /**
1580
+ * Get the value of the passed test, or undefined if the test failed.
1581
+ */
1582
+ get() {
1583
+ return this.value;
1584
+ }
1585
+ /**
1586
+ * Get the value of the passed test, or throw an error if the test failed.
1587
+ */
1588
+ getOrThrow() {
1589
+ return this.value;
1590
+ }
1591
+ /**
1592
+ * The side data that will be passed to run.
1593
+ */
1594
+ getSideData() {
1595
+ return this.sideData;
1596
+ }
1597
+ /**
1598
+ * Get the failure message callback of the failed test, or undefined if the test passed.
1599
+ */
1600
+ getFailMessage() {
1601
+ return undefined;
1602
+ }
1603
+ /**
1604
+ * For passed tests, map the passed value to another value.
1605
+ * Failed tests will remain unchanged.
1606
+ *
1607
+ * This will not mutate the test result, and instead return a new test result.
1608
+ *
1609
+ * @param mapper A function that will transform the passed value.
1610
+ */
1611
+ map(mapper) {
1612
+ return new TestResultPassed(mapper(this.value, this.sideData), this.sideData);
1613
+ }
1614
+ /**
1615
+ * For passed tests, asynchronously map the passed value to another value.
1616
+ * Failed tests will remain unchanged.
1617
+ *
1618
+ * This will not mutate the test result, and instead return a new test result.
1619
+ *
1620
+ * @param mapper A function that will transform the passed value.
1621
+ */
1622
+ async mapAsync(mapper) {
1623
+ return new TestResultPassed(await mapper(this.value, this.sideData), this.sideData);
1624
+ }
1625
+ }
1626
+ exports.TestResultPassed = TestResultPassed;
1627
+ /**
1628
+ * A failed test result.
1629
+ * This should not be constructed manually.
1630
+ * Instead, `testFail` should be used.
1631
+ */
1632
+ class TestResultFailed {
1633
+ failMessage;
1634
+ constructor(failMessage) {
1635
+ this.failMessage = failMessage;
1636
+ }
1637
+ /**
1638
+ * Check if the test has passed.
1639
+ * If true, it will contain a value.
1640
+ */
1641
+ isPassed() {
1642
+ return false;
1643
+ }
1644
+ /**
1645
+ * Check if the test has failed.
1646
+ * If true, it will contain a failure message.
1647
+ */
1648
+ isFailed() {
1649
+ return true;
1650
+ }
1651
+ /**
1652
+ * Get the value of the passed test, or undefined if the test failed.
1653
+ */
1654
+ get() {
1655
+ return undefined;
1656
+ }
1657
+ /**
1658
+ * Get the value of the passed test, or throw an error if the test failed.
1659
+ */
1660
+ getOrThrow() {
1661
+ throw new Error(this.getFailMessage());
1662
+ }
1663
+ /**
1664
+ * The side data that will be passed to run.
1665
+ */
1666
+ getSideData() {
1667
+ throw new Error(this.getFailMessage());
1668
+ }
1669
+ /**
1670
+ * Get the failure message callback of the failed test, or undefined if the test passed.
1671
+ */
1672
+ getFailMessage() {
1673
+ return this.failMessage;
1674
+ }
1675
+ /**
1676
+ * For passed tests, map the passed value to another value.
1677
+ * Failed tests will remain unchanged.
1678
+ *
1679
+ * This will not mutate the test result, and instead return a new test result.
1680
+ */
1681
+ map() {
1682
+ return this;
1683
+ }
1684
+ /**
1685
+ * For passed tests, asynchronously map the passed value to another value.
1686
+ * Failed tests will remain unchanged.
1687
+ *
1688
+ * This will not mutate the test result, and instead return a new test result.
1689
+ */
1690
+ async mapAsync() {
1691
+ return this;
1692
+ }
1693
+ }
1694
+ exports.TestResultFailed = TestResultFailed;
1695
+ //# sourceMappingURL=TestResult.js.map
1696
+
1697
+ /***/ },
1698
+
1699
+ /***/ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js"
1700
+ /*!******************************************************************************************!*\
1701
+ !*** ./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/index.js ***!
1702
+ \******************************************************************************************/
1703
+ (__unused_webpack_module, exports, __webpack_require__) {
1704
+
1705
+ "use strict";
1706
+
1707
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1708
+ if (k2 === undefined) k2 = k;
1709
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1710
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1711
+ desc = { enumerable: true, get: function() { return m[k]; } };
1712
+ }
1713
+ Object.defineProperty(o, k2, desc);
1714
+ }) : (function(o, m, k, k2) {
1715
+ if (k2 === undefined) k2 = k;
1716
+ o[k2] = m[k];
1717
+ }));
1718
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1719
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1720
+ };
1721
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1722
+ __exportStar(__webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionContext.js"), exports);
1723
+ __exportStar(__webpack_require__(/*! ./Bus */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Bus.js"), exports);
1724
+ __exportStar(__webpack_require__(/*! ./BusIndexed */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/BusIndexed.js"), exports);
1725
+ __exportStar(__webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ContextEntries.js"), exports);
1726
+ __exportStar(__webpack_require__(/*! ./ActionObserver */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/ActionObserver.js"), exports);
1727
+ __exportStar(__webpack_require__(/*! ./Actor */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Actor.js"), exports);
1728
+ __exportStar(__webpack_require__(/*! ./Mediator */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/Mediator.js"), exports);
1729
+ __exportStar(__webpack_require__(/*! ./TestResult */ "./node_modules/@comunica/actor-init-query/node_modules/@comunica/core/lib/TestResult.js"), exports);
1730
+ //# sourceMappingURL=index.js.map
1731
+
1732
+ /***/ },
1733
+
314
1734
  /***/ "./node_modules/@comunica/bus-init/lib/ActorInit.js"
315
1735
  /*!**********************************************************!*\
316
1736
  !*** ./node_modules/@comunica/bus-init/lib/ActorInit.js ***!
@@ -321,7 +1741,7 @@ Object.defineProperty(exports, "QueryEngineBase", ({ enumerable: true, get: func
321
1741
 
322
1742
  Object.defineProperty(exports, "__esModule", ({ value: true }));
323
1743
  exports.ActorInit = void 0;
324
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
1744
+ const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/index.js");
325
1745
  /**
326
1746
  * A base actor for listening to init events.
327
1747
  *
@@ -377,350 +1797,10 @@ __exportStar(__webpack_require__(/*! ./ActorInit */ "./node_modules/@comunica/bu
377
1797
 
378
1798
  /***/ },
379
1799
 
380
- /***/ "./node_modules/@comunica/context-entries/lib/Keys.js"
381
- /*!************************************************************!*\
382
- !*** ./node_modules/@comunica/context-entries/lib/Keys.js ***!
383
- \************************************************************/
384
- (__unused_webpack_module, exports, __webpack_require__) {
385
-
386
- "use strict";
387
-
388
- Object.defineProperty(exports, "__esModule", ({ value: true }));
389
- 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;
390
- const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/lib/index.js");
391
- /**
392
- * When adding entries to this file, also add a shortcut for them in the contextKeyShortcuts TSDoc comment in
393
- * ActorInitQueryBase in @comunica/actor-init-query if it makes sense to use this entry externally.
394
- * Also, add this shortcut to IQueryContextCommon in @comunica/types.
395
- */
396
- exports.KeysCore = {
397
- // We create the core context keys in @comunica/core to avoid a cyclic dependency
398
- /**
399
- * A logger instance.
400
- */
401
- log: core_1.CONTEXT_KEY_LOGGER,
402
- };
403
- exports.KeysHttp = {
404
- /**
405
- * Include credentials flags.
406
- */
407
- includeCredentials: new core_1.ActionContextKey('@comunica/bus-http:include-credentials'),
408
- /**
409
- * Authentication for a source as a "username:password"-pair.
410
- */
411
- auth: new core_1.ActionContextKey('@comunica/bus-http:auth'),
412
- /**
413
- * Fetch function implementation.
414
- */
415
- fetch: new core_1.ActionContextKey('@comunica/bus-http:fetch'),
416
- /**
417
- * HTTP request timeout in milliseconds.
418
- */
419
- httpTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-timeout'),
420
- /**
421
- * Makes the HTTP timeout not only apply until the response starts streaming in
422
- * but until the response is fully consumed.
423
- */
424
- httpBodyTimeout: new core_1.ActionContextKey('@comunica/bus-http:http-body-timeout'),
425
- /**
426
- * Number of retries to make on failed network calls. This only takes effect
427
- * on errors thrown during the initial fetch() call and not while streaming the body.
428
- */
429
- httpRetryCount: new core_1.ActionContextKey('@comunica/bus-http:http-retry-count'),
430
- /**
431
- * The fallback retry delay in milliseconds. This value is used when a server does not
432
- * send a delay value in the Retry-After header or if the header value is incorrectly formatted.
433
- */
434
- httpRetryDelayFallback: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-fallback'),
435
- /**
436
- * The upper limit for the retry delay in milliseconds. When a server requests a delay larger than this,
437
- * the engine will consider it unavailable until the specified timestamp is close enough.
438
- */
439
- httpRetryDelayLimit: new core_1.ActionContextKey('@comunica/bus-http:http-retry-delay-limit'),
440
- /**
441
- * HTTP status codes that should always trigger a retry, regardless of the default behaviour.
442
- * This can be used to, for example, force retries on server-side errors in the 500 range.
443
- */
444
- httpRetryStatusCodes: new core_1.ActionContextKey('@comunica/bus-http:http-retry-status-codes'),
445
- };
446
- exports.KeysHttpWayback = {
447
- /**
448
- * Use the WayBack machine to get the most recent representation of a file if a link is broken.
449
- * @default false
450
- */
451
- recoverBrokenLinks: new core_1.ActionContextKey('@comunica/bus-http:recover-broken-links'),
452
- };
453
- exports.KeysHttpMemento = {
454
- /**
455
- * The desired datetime for Memento datetime-negotiation.
456
- */
457
- datetime: new core_1.ActionContextKey('@comunica/actor-http-memento:datetime'),
458
- };
459
- exports.KeysHttpProxy = {
460
- /**
461
- * Interface.
462
- */
463
- httpProxyHandler: new core_1.ActionContextKey('@comunica/actor-http-proxy:httpProxyHandler'),
464
- };
465
- exports.KeysInitQuery = {
466
- /**
467
- * The unidentified sources to query over.
468
- */
469
- querySourcesUnidentified: new core_1.ActionContextKey('@comunica/actor-init-query:querySourcesUnidentified'),
470
- /**
471
- * Variables that have to be pre-bound to values in the query.
472
- */
473
- initialBindings: new core_1.ActionContextKey('@comunica/actor-init-query:initialBindings'),
474
- /**
475
- * The provided query's format.
476
- * Defaults to { language: 'sparql', version: '1.1' }
477
- */
478
- queryFormat: new core_1.ActionContextKey('@comunica/actor-init-query:queryFormat'),
479
- /**
480
- * Which GraphQL bindings should be singularized.
481
- */
482
- graphqlSingularizeVariables: new core_1.ActionContextKey('@comunica/actor-init-query:singularizeVariables'),
483
- /**
484
- * If HTTP and parsing failures are ignored.
485
- */
486
- lenient: new core_1.ActionContextKey('@comunica/actor-init-query:lenient'),
487
- /**
488
- * The original query string.
489
- */
490
- queryString: new core_1.ActionContextKey('@comunica/actor-init-query:queryString'),
491
- /**
492
- * The original parsed query.
493
- */
494
- query: new core_1.ActionContextKey('@comunica/actor-init-query:query'),
495
- /**
496
- * The query's base IRI.
497
- */
498
- baseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:baseIRI'),
499
- /**
500
- * The file's base IRI.
501
- */
502
- fileBaseIRI: new core_1.ActionContextKey('@comunica/actor-init-query:fileBaseIRI'),
503
- /**
504
- * Object to cache function argument overload resolutions.
505
- * Defaults to an object that is reused across query executions.
506
- */
507
- functionArgumentsCache: new core_1.ActionContextKey('@comunica/actor-init-query:functionArgumentsCache'),
508
- /**
509
- * A timestamp representing the current time.
510
- * This is required for certain SPARQL operations such as NOW().
511
- */
512
- queryTimestamp: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestamp'),
513
- /**
514
- * A high resolution timestamp representing the time elapsed since Performance.timeOrigin`.
515
- * It can be used to precisely measure durations from the start of query execution.
516
- */
517
- queryTimestampHighResolution: new core_1.ActionContextKey('@comunica/actor-init-query:queryTimestampHighResolution'),
518
- /**
519
- * @range {functionNamedNode: RDF.NamedNode) => ((args: RDF.Term[]) => Promise<RDF.Term>) | undefined}
520
- * Extension function creator for a given function IRI.
521
- * Returned value should be an async function implementation.
522
- * Undefined may be returned if no implementation exists for the given function IRI.
523
- *
524
- * The dictionary-based extensionFunctions context entry may be used instead, but not simultaneously.
525
- */
526
- extensionFunctionCreator: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionCreator'),
527
- /**
528
- * Dictionary of extension functions.
529
- * Key is the IRI of the function, and value is the async function implementation.
530
- *
531
- * The callback-based extensionFunctionCreator context entry may be used instead, but not simultaneously.
532
- */
533
- extensionFunctions: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctions'),
534
- /**
535
- * If extension functions must always be pushed down to sources that support expressions,
536
- * even if those sources to not explicitly declare support for these extension functions.
537
- */
538
- extensionFunctionsAlwaysPushdown: new core_1.ActionContextKey('@comunica/actor-init-query:extensionFunctionsAlwaysPushdown'),
539
- /**
540
- * Enables manipulation of the CLI arguments and their processing.
541
- */
542
- cliArgsHandlers: new core_1.ActionContextKey('@comunica/actor-init-query:cliArgsHandlers'),
543
- /**
544
- * Explain mode of the query. Can be 'parsed', 'logical', 'physical', or 'physical-json'.
545
- */
546
- explain: new core_1.ActionContextKey('@comunica/actor-init-query:explain'),
547
- /**
548
- * Logs the used physical operators
549
- */
550
- physicalQueryPlanLogger: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanLogger'),
551
- /**
552
- * The current physical operator within the query plan.
553
- * This is used to pass parent-child relationships for invoking the query plan logger.
554
- */
555
- physicalQueryPlanNode: new core_1.ActionContextKey('@comunica/actor-init-query:physicalQueryPlanNode'),
556
- /**
557
- * A JSON-LD context
558
- */
559
- jsonLdContext: new core_1.ActionContextKey('@context'),
560
- /**
561
- * A boolean value denoting whether caching is disabled or not.
562
- */
563
- invalidateCache: new core_1.ActionContextKey('@comunica/actor-init-query:invalidateCache'),
564
- /**
565
- * The data factory for creating terms and quads.
566
- */
567
- dataFactory: new core_1.ActionContextKey('@comunica/actor-init-query:dataFactory'),
568
- /**
569
- * A boolean value denoting whether results should be deduplicated or not.
570
- */
571
- distinctConstruct: new core_1.ActionContextKey('@comunica/actor-init-query:distinctConstruct'),
572
- };
573
- exports.KeysExpressionEvaluator = {
574
- extensionFunctionCreator: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:extensionFunctionCreator'),
575
- superTypeProvider: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:superTypeProvider'),
576
- defaultTimeZone: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:defaultTimeZone'),
577
- actionContext: new core_1.ActionContextKey('@comunica/utils-expression-evaluator:actionContext'),
578
- };
579
- exports.KeysQueryOperation = {
580
- /**
581
- * Context entry for the current query operation.
582
- */
583
- operation: new core_1.ActionContextKey('@comunica/bus-query-operation:operation'),
584
- /**
585
- * @type {any} The metadata from the left streams within a join operation.
586
- */
587
- joinLeftMetadata: new core_1.ActionContextKey('@comunica/bus-query-operation:joinLeftMetadata'),
588
- /**
589
- * An array of metadata from the right streams within a join operation.
590
- */
591
- joinRightMetadatas: new core_1.ActionContextKey('@comunica/bus-query-operation:joinRightMetadatas'),
592
- /**
593
- * Indicates the bindings that were used to bind the operation.
594
- */
595
- joinBindings: new core_1.ActionContextKey('@comunica/bus-query-operation:joinBindings'),
596
- /**
597
- * Flag for indicating that only read operations are allowed, defaults to false.
598
- */
599
- readOnly: new core_1.ActionContextKey('@comunica/bus-query-operation:readOnly'),
600
- /**
601
- * An internal context entry to mark that a property path with arbitrary length and a distinct key is being processed.
602
- */
603
- isPathArbitraryLengthDistinctKey: new core_1.ActionContextKey('@comunica/bus-query-operation:isPathArbitraryLengthDistinct'),
604
- /**
605
- * An indicator that the stream will be limited to the given number of elements afterwards.
606
- */
607
- limitIndicator: new core_1.ActionContextKey('@comunica/bus-query-operation:limitIndicator'),
608
- /**
609
- * If the default graph should also contain the union of all named graphs.
610
- */
611
- unionDefaultGraph: new core_1.ActionContextKey('@comunica/bus-query-operation:unionDefaultGraph'),
612
- /**
613
- * The sources to query over.
614
- */
615
- querySources: new core_1.ActionContextKey('@comunica/bus-query-operation:querySources'),
616
- };
617
- exports.KeysRdfParseJsonLd = {
618
- /**
619
- * @range {IDocumentLoader}
620
- */
621
- documentLoader: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:documentLoader'),
622
- /**
623
- * @range {boolean}
624
- */
625
- strictValues: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:strictValues'),
626
- /**
627
- * @range {Record<string, any>}
628
- */
629
- parserOptions: new core_1.ActionContextKey('@comunica/actor-rdf-parse-jsonld:parserOptions'),
630
- };
631
- exports.KeysRdfParseHtmlScript = {
632
- /**
633
- * An internal context flag to determine if the engine is already processing an HTML script tag.
634
- */
635
- processingHtmlScript: new core_1.ActionContextKey('@comunica/actor-rdf-parse-html-script:processingHtmlScript'),
636
- /**
637
- * If all HTML script tags must be considered.
638
- */
639
- extractAllScripts: new core_1.ActionContextKey('extractAllScripts'),
640
- };
641
- exports.KeysQuerySourceIdentify = {
642
- /**
643
- * A map containing unique IDs for each source
644
- */
645
- sourceIds: new core_1.ActionContextKey('@comunica/bus-query-source-identify:sourceIds'),
646
- /**
647
- * Hypermedia sources mapping to their aggregated store.
648
- */
649
- hypermediaSourcesAggregatedStores: new core_1.ActionContextKey('@comunica/bus-query-source-identify:hypermediaSourcesAggregatedStores'),
650
- /**
651
- * If links may be traversed from this source.
652
- * This means that sources annotated with this flag are considered incomplete until all links have been traversed.
653
- */
654
- traverse: new core_1.ActionContextKey('@comunica/bus-query-source-identify:traverse'),
655
- };
656
- exports.KeysRdfUpdateQuads = {
657
- /**
658
- * A data destination.
659
- */
660
- destination: new core_1.ActionContextKey('@comunica/bus-rdf-update-quads:destination'),
661
- };
662
- exports.KeysMergeBindingsContext = {
663
- /**
664
- * The data sources required to produce the binding
665
- */
666
- sourcesBinding: new core_1.ActionContextKey('@comunica/bus-merge-bindings-context:sourcesBinding'),
667
- };
668
- exports.KeysRdfJoin = {
669
- /**
670
- * The last physical join actor that was executed.
671
- */
672
- lastPhysicalJoin: new core_1.ActionContextKey('@comunica/bus-rdf-join:lastPhysicalJoin'),
673
- };
674
- exports.KeysStatistics = {
675
- /**
676
- * All discovered links during query execution. Not all of them will necessarily be dereferenced.
677
- */
678
- discoveredLinks: new core_1.ActionContextKey('@comunica/statistic:discoveredLinks'),
679
- /**
680
- * Information about what links are dereferenced and when
681
- */
682
- dereferencedLinks: new core_1.ActionContextKey('@comunica/statistic:dereferencedLinks'),
683
- /**
684
- * Intermediate results produced during query execution
685
- */
686
- intermediateResults: new core_1.ActionContextKey('@comunica/statistic:intermediateResults'),
687
- };
688
- //# sourceMappingURL=Keys.js.map
689
-
690
- /***/ },
691
-
692
- /***/ "./node_modules/@comunica/context-entries/lib/index.js"
693
- /*!*************************************************************!*\
694
- !*** ./node_modules/@comunica/context-entries/lib/index.js ***!
695
- \*************************************************************/
696
- (__unused_webpack_module, exports, __webpack_require__) {
697
-
698
- "use strict";
699
-
700
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
701
- if (k2 === undefined) k2 = k;
702
- var desc = Object.getOwnPropertyDescriptor(m, k);
703
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
704
- desc = { enumerable: true, get: function() { return m[k]; } };
705
- }
706
- Object.defineProperty(o, k2, desc);
707
- }) : (function(o, m, k, k2) {
708
- if (k2 === undefined) k2 = k;
709
- o[k2] = m[k];
710
- }));
711
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
712
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
713
- };
714
- Object.defineProperty(exports, "__esModule", ({ value: true }));
715
- __exportStar(__webpack_require__(/*! ./Keys */ "./node_modules/@comunica/context-entries/lib/Keys.js"), exports);
716
- //# sourceMappingURL=index.js.map
717
-
718
- /***/ },
719
-
720
- /***/ "./node_modules/@comunica/core/lib/ActionContext.js"
721
- /*!**********************************************************!*\
722
- !*** ./node_modules/@comunica/core/lib/ActionContext.js ***!
723
- \**********************************************************/
1800
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js"
1801
+ /*!******************************************************************************************!*\
1802
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js ***!
1803
+ \******************************************************************************************/
724
1804
  (__unused_webpack_module, exports, __webpack_require__) {
725
1805
 
726
1806
  "use strict";
@@ -732,6 +1812,7 @@ const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutab
732
1812
  * Implementation of {@link IActionContext} using Immutable.js.
733
1813
  */
734
1814
  class ActionContext {
1815
+ map;
735
1816
  constructor(data = {}) {
736
1817
  this.map = (0, immutable_1.Map)(data);
737
1818
  }
@@ -798,7 +1879,9 @@ class ActionContext {
798
1879
  * @return {ActionContext} An action context object.
799
1880
  */
800
1881
  static ensureActionContext(maybeActionContext) {
801
- return maybeActionContext instanceof ActionContext ?
1882
+ // This should only be an instanceof, but can fail when this package is loaded multiple times,
1883
+ // with multiple ActionContexts existing in parallel.
1884
+ return maybeActionContext instanceof ActionContext || (maybeActionContext && 'map' in maybeActionContext) ?
802
1885
  maybeActionContext :
803
1886
  new ActionContext((0, immutable_1.Map)(maybeActionContext ?? {}));
804
1887
  }
@@ -808,6 +1891,11 @@ exports.ActionContext = ActionContext;
808
1891
  * Simple implementation of {@link IActionContextKey}.
809
1892
  */
810
1893
  class ActionContextKey {
1894
+ /**
1895
+ * A unique context key name.
1896
+ */
1897
+ name;
1898
+ dummy;
811
1899
  constructor(name) {
812
1900
  this.name = name;
813
1901
  }
@@ -817,10 +1905,10 @@ exports.ActionContextKey = ActionContextKey;
817
1905
 
818
1906
  /***/ },
819
1907
 
820
- /***/ "./node_modules/@comunica/core/lib/ActionObserver.js"
821
- /*!***********************************************************!*\
822
- !*** ./node_modules/@comunica/core/lib/ActionObserver.js ***!
823
- \***********************************************************/
1908
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionObserver.js"
1909
+ /*!*******************************************************************************************!*\
1910
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionObserver.js ***!
1911
+ \*******************************************************************************************/
824
1912
  (__unused_webpack_module, exports) {
825
1913
 
826
1914
  "use strict";
@@ -841,6 +1929,8 @@ exports.ActionObserver = void 0;
841
1929
  * @template TS The test side data type.
842
1930
  */
843
1931
  class ActionObserver {
1932
+ name;
1933
+ bus;
844
1934
  /**
845
1935
  * All enumerable properties from the `args` object are inherited to this observer.
846
1936
  *
@@ -850,7 +1940,8 @@ class ActionObserver {
850
1940
  * @throws When required arguments are missing.
851
1941
  */
852
1942
  constructor(args) {
853
- Object.assign(this, args);
1943
+ this.name = args.name;
1944
+ this.bus = args.bus;
854
1945
  }
855
1946
  }
856
1947
  exports.ActionObserver = ActionObserver;
@@ -858,17 +1949,17 @@ exports.ActionObserver = ActionObserver;
858
1949
 
859
1950
  /***/ },
860
1951
 
861
- /***/ "./node_modules/@comunica/core/lib/Actor.js"
862
- /*!**************************************************!*\
863
- !*** ./node_modules/@comunica/core/lib/Actor.js ***!
864
- \**************************************************/
1952
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Actor.js"
1953
+ /*!**********************************************************************************!*\
1954
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Actor.js ***!
1955
+ \**********************************************************************************/
865
1956
  (__unused_webpack_module, exports, __webpack_require__) {
866
1957
 
867
1958
  "use strict";
868
1959
 
869
1960
  Object.defineProperty(exports, "__esModule", ({ value: true }));
870
1961
  exports.Actor = void 0;
871
- const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/core/lib/ContextEntries.js");
1962
+ const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js");
872
1963
  /**
873
1964
  * An actor can act on messages of certain types and provide output of a certain type.
874
1965
  *
@@ -887,9 +1978,10 @@ const ContextEntries_1 = __webpack_require__(/*! ./ContextEntries */ "./node_mod
887
1978
  * @template TS The test side data type.
888
1979
  */
889
1980
  class Actor {
1981
+ name;
1982
+ bus;
1983
+ beforeActors = [];
890
1984
  /**
891
- * All enumerable properties from the `args` object are inherited to this actor.
892
- *
893
1985
  * The actor will subscribe to the given bus when this constructor is called.
894
1986
  *
895
1987
  * @param {IActorArgs<I extends IAction, T extends IActorTest, O extends IActorOutput>} args Arguments object
@@ -899,8 +1991,15 @@ class Actor {
899
1991
  * @throws When required arguments are missing.
900
1992
  */
901
1993
  constructor(args) {
902
- this.beforeActors = [];
903
- Object.assign(this, args);
1994
+ // Copy all own enumerable properties from args, excluding __proto__ to prevent prototype pollution.
1995
+ // TODO: Remove this inheritance in next/major
1996
+ for (const key of Object.keys(args)) {
1997
+ if (key !== '__proto__') {
1998
+ this[key] = args[key];
1999
+ }
2000
+ }
2001
+ this.name = args.name;
2002
+ this.bus = args.bus;
904
2003
  this.bus.subscribe(this);
905
2004
  if (this.beforeActors.length > 0) {
906
2005
  this.bus.addDependencies(this, this.beforeActors);
@@ -977,10 +2076,10 @@ exports.Actor = Actor;
977
2076
 
978
2077
  /***/ },
979
2078
 
980
- /***/ "./node_modules/@comunica/core/lib/Bus.js"
981
- /*!************************************************!*\
982
- !*** ./node_modules/@comunica/core/lib/Bus.js ***!
983
- \************************************************/
2079
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js"
2080
+ /*!********************************************************************************!*\
2081
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js ***!
2082
+ \********************************************************************************/
984
2083
  (__unused_webpack_module, exports) {
985
2084
 
986
2085
  "use strict";
@@ -1004,6 +2103,12 @@ exports.Bus = void 0;
1004
2103
  * @template TS The test side data type.
1005
2104
  */
1006
2105
  class Bus {
2106
+ name;
2107
+ actors = [];
2108
+ observers = [];
2109
+ // Mapping from dependency (after) to dependents (before)
2110
+ dependencyLinks = new Map();
2111
+ failMessage;
1007
2112
  /**
1008
2113
  * All enumerable properties from the `args` object are inherited to this bus.
1009
2114
  *
@@ -1012,11 +2117,7 @@ class Bus {
1012
2117
  * @throws When required arguments are missing.
1013
2118
  */
1014
2119
  constructor(args) {
1015
- this.actors = [];
1016
- this.observers = [];
1017
- // Mapping from dependency (after) to dependents (before)
1018
- this.dependencyLinks = new Map();
1019
- Object.assign(this, args);
2120
+ this.name = args.name;
1020
2121
  this.failMessage = `All actors over bus ${this.name} failed to handle an action`;
1021
2122
  }
1022
2123
  /**
@@ -1167,17 +2268,17 @@ exports.Bus = Bus;
1167
2268
 
1168
2269
  /***/ },
1169
2270
 
1170
- /***/ "./node_modules/@comunica/core/lib/BusIndexed.js"
1171
- /*!*******************************************************!*\
1172
- !*** ./node_modules/@comunica/core/lib/BusIndexed.js ***!
1173
- \*******************************************************/
2271
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/BusIndexed.js"
2272
+ /*!***************************************************************************************!*\
2273
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/BusIndexed.js ***!
2274
+ \***************************************************************************************/
1174
2275
  (__unused_webpack_module, exports, __webpack_require__) {
1175
2276
 
1176
2277
  "use strict";
1177
2278
 
1178
2279
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1179
2280
  exports.BusIndexed = void 0;
1180
- const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/lib/Bus.js");
2281
+ const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js");
1181
2282
  /**
1182
2283
  * A bus that indexes identified actors,
1183
2284
  * so that actions with a corresponding identifier can be published more efficiently.
@@ -1195,6 +2296,9 @@ const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/li
1195
2296
  * @template O The output type of an actor.
1196
2297
  */
1197
2298
  class BusIndexed extends Bus_1.Bus {
2299
+ actorsIndex = {};
2300
+ actorIdentifierFields;
2301
+ actionIdentifierFields;
1198
2302
  /**
1199
2303
  * All enumerable properties from the `args` object are inherited to this bus.
1200
2304
  *
@@ -1204,7 +2308,8 @@ class BusIndexed extends Bus_1.Bus {
1204
2308
  */
1205
2309
  constructor(args) {
1206
2310
  super(args);
1207
- this.actorsIndex = {};
2311
+ this.actorIdentifierFields = args.actorIdentifierFields;
2312
+ this.actionIdentifierFields = args.actionIdentifierFields;
1208
2313
  }
1209
2314
  subscribe(actor) {
1210
2315
  const actorIds = this.getActorIdentifiers(actor) ?? ['_undefined_'];
@@ -1260,26 +2365,26 @@ exports.BusIndexed = BusIndexed;
1260
2365
 
1261
2366
  /***/ },
1262
2367
 
1263
- /***/ "./node_modules/@comunica/core/lib/ContextEntries.js"
1264
- /*!***********************************************************!*\
1265
- !*** ./node_modules/@comunica/core/lib/ContextEntries.js ***!
1266
- \***********************************************************/
2368
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js"
2369
+ /*!*******************************************************************************************!*\
2370
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js ***!
2371
+ \*******************************************************************************************/
1267
2372
  (__unused_webpack_module, exports, __webpack_require__) {
1268
2373
 
1269
2374
  "use strict";
1270
2375
 
1271
2376
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1272
2377
  exports.CONTEXT_KEY_LOGGER = void 0;
1273
- const ActionContext_1 = __webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/core/lib/ActionContext.js");
2378
+ const ActionContext_1 = __webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js");
1274
2379
  exports.CONTEXT_KEY_LOGGER = new ActionContext_1.ActionContextKey('@comunica/core:log');
1275
2380
  //# sourceMappingURL=ContextEntries.js.map
1276
2381
 
1277
2382
  /***/ },
1278
2383
 
1279
- /***/ "./node_modules/@comunica/core/lib/Mediator.js"
1280
- /*!*****************************************************!*\
1281
- !*** ./node_modules/@comunica/core/lib/Mediator.js ***!
1282
- \*****************************************************/
2384
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Mediator.js"
2385
+ /*!*************************************************************************************!*\
2386
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Mediator.js ***!
2387
+ \*************************************************************************************/
1283
2388
  (__unused_webpack_module, exports) {
1284
2389
 
1285
2390
  "use strict";
@@ -1304,6 +2409,8 @@ exports.Mediator = void 0;
1304
2409
  * @template O The output type of an actor.
1305
2410
  */
1306
2411
  class Mediator {
2412
+ name;
2413
+ bus;
1307
2414
  /**
1308
2415
  * All enumerable properties from the `args` object are inherited to this mediator.
1309
2416
  *
@@ -1315,7 +2422,8 @@ class Mediator {
1315
2422
  * @throws When required arguments are missing.
1316
2423
  */
1317
2424
  constructor(args) {
1318
- Object.assign(this, args);
2425
+ this.name = args.name;
2426
+ this.bus = args.bus;
1319
2427
  }
1320
2428
  /**
1321
2429
  * Publish the given action in the bus.
@@ -1405,16 +2513,21 @@ exports.Mediator = Mediator;
1405
2513
 
1406
2514
  /***/ },
1407
2515
 
1408
- /***/ "./node_modules/@comunica/core/lib/TestResult.js"
1409
- /*!*******************************************************!*\
1410
- !*** ./node_modules/@comunica/core/lib/TestResult.js ***!
1411
- \*******************************************************/
2516
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/TestResult.js"
2517
+ /*!***************************************************************************************!*\
2518
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/TestResult.js ***!
2519
+ \***************************************************************************************/
1412
2520
  (__unused_webpack_module, exports) {
1413
2521
 
1414
2522
  "use strict";
1415
2523
 
1416
2524
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1417
- exports.TestResultFailed = exports.TestResultPassed = exports.failTest = exports.passTestVoidWithSideData = exports.passTestWithSideData = exports.passTestVoid = exports.passTest = void 0;
2525
+ exports.TestResultFailed = exports.TestResultPassed = void 0;
2526
+ exports.passTest = passTest;
2527
+ exports.passTestVoid = passTestVoid;
2528
+ exports.passTestWithSideData = passTestWithSideData;
2529
+ exports.passTestVoidWithSideData = passTestVoidWithSideData;
2530
+ exports.failTest = failTest;
1418
2531
  /**
1419
2532
  * Create a new test result that represents a passed value.
1420
2533
  * @param value The value the test passed with.
@@ -1422,14 +2535,12 @@ exports.TestResultFailed = exports.TestResultPassed = exports.failTest = exports
1422
2535
  function passTest(value) {
1423
2536
  return new TestResultPassed(value, undefined);
1424
2537
  }
1425
- exports.passTest = passTest;
1426
2538
  /**
1427
2539
  * Create a new test result that represents a passed void value.
1428
2540
  */
1429
2541
  function passTestVoid() {
1430
2542
  return new TestResultPassed(true, undefined);
1431
2543
  }
1432
- exports.passTestVoid = passTestVoid;
1433
2544
  /**
1434
2545
  * Create a new test result that represents a passed value with side data.
1435
2546
  * @param value The value the test passed with.
@@ -1438,7 +2549,6 @@ exports.passTestVoid = passTestVoid;
1438
2549
  function passTestWithSideData(value, sideData) {
1439
2550
  return new TestResultPassed(value, sideData);
1440
2551
  }
1441
- exports.passTestWithSideData = passTestWithSideData;
1442
2552
  /**
1443
2553
  * Create a new test result that represents a passed void value with side data.
1444
2554
  * @param sideData Additional data to pass to the run phase.
@@ -1446,7 +2556,6 @@ exports.passTestWithSideData = passTestWithSideData;
1446
2556
  function passTestVoidWithSideData(sideData) {
1447
2557
  return new TestResultPassed(true, sideData);
1448
2558
  }
1449
- exports.passTestVoidWithSideData = passTestVoidWithSideData;
1450
2559
  /**
1451
2560
  * Create a new test result that represents a test failure.
1452
2561
  * @param message The error message that describes the failure.
@@ -1454,13 +2563,14 @@ exports.passTestVoidWithSideData = passTestVoidWithSideData;
1454
2563
  function failTest(message) {
1455
2564
  return new TestResultFailed(message);
1456
2565
  }
1457
- exports.failTest = failTest;
1458
2566
  /**
1459
2567
  * A passed test result.
1460
2568
  * This should not be constructed manually.
1461
2569
  * Instead, `testPass` should be used.
1462
2570
  */
1463
2571
  class TestResultPassed {
2572
+ value;
2573
+ sideData;
1464
2574
  constructor(passValue, sideData) {
1465
2575
  this.value = passValue;
1466
2576
  this.sideData = sideData;
@@ -1533,6 +2643,7 @@ exports.TestResultPassed = TestResultPassed;
1533
2643
  * Instead, `testFail` should be used.
1534
2644
  */
1535
2645
  class TestResultFailed {
2646
+ failMessage;
1536
2647
  constructor(failMessage) {
1537
2648
  this.failMessage = failMessage;
1538
2649
  }
@@ -1598,10 +2709,10 @@ exports.TestResultFailed = TestResultFailed;
1598
2709
 
1599
2710
  /***/ },
1600
2711
 
1601
- /***/ "./node_modules/@comunica/core/lib/index.js"
1602
- /*!**************************************************!*\
1603
- !*** ./node_modules/@comunica/core/lib/index.js ***!
1604
- \**************************************************/
2712
+ /***/ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/index.js"
2713
+ /*!**********************************************************************************!*\
2714
+ !*** ./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/index.js ***!
2715
+ \**********************************************************************************/
1605
2716
  (__unused_webpack_module, exports, __webpack_require__) {
1606
2717
 
1607
2718
  "use strict";
@@ -1621,14 +2732,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1621
2732
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1622
2733
  };
1623
2734
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1624
- __exportStar(__webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/core/lib/ActionContext.js"), exports);
1625
- __exportStar(__webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/lib/Bus.js"), exports);
1626
- __exportStar(__webpack_require__(/*! ./BusIndexed */ "./node_modules/@comunica/core/lib/BusIndexed.js"), exports);
1627
- __exportStar(__webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/core/lib/ContextEntries.js"), exports);
1628
- __exportStar(__webpack_require__(/*! ./ActionObserver */ "./node_modules/@comunica/core/lib/ActionObserver.js"), exports);
1629
- __exportStar(__webpack_require__(/*! ./Actor */ "./node_modules/@comunica/core/lib/Actor.js"), exports);
1630
- __exportStar(__webpack_require__(/*! ./Mediator */ "./node_modules/@comunica/core/lib/Mediator.js"), exports);
1631
- __exportStar(__webpack_require__(/*! ./TestResult */ "./node_modules/@comunica/core/lib/TestResult.js"), exports);
2735
+ __exportStar(__webpack_require__(/*! ./ActionContext */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionContext.js"), exports);
2736
+ __exportStar(__webpack_require__(/*! ./Bus */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Bus.js"), exports);
2737
+ __exportStar(__webpack_require__(/*! ./BusIndexed */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/BusIndexed.js"), exports);
2738
+ __exportStar(__webpack_require__(/*! ./ContextEntries */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ContextEntries.js"), exports);
2739
+ __exportStar(__webpack_require__(/*! ./ActionObserver */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/ActionObserver.js"), exports);
2740
+ __exportStar(__webpack_require__(/*! ./Actor */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Actor.js"), exports);
2741
+ __exportStar(__webpack_require__(/*! ./Mediator */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/Mediator.js"), exports);
2742
+ __exportStar(__webpack_require__(/*! ./TestResult */ "./node_modules/@comunica/bus-init/node_modules/@comunica/core/lib/TestResult.js"), exports);
1632
2743
  //# sourceMappingURL=index.js.map
1633
2744
 
1634
2745
  /***/ },
@@ -32734,7 +33845,7 @@ function getVariableValue(name) {
32734
33845
  }
32735
33846
  return variables[name];
32736
33847
  }
32737
- const df_647_1 = new (require('@comunica/logger-void').LoggerVoid)();
33848
+ const df_345_1 = new (require('@comunica/logger-void').LoggerVoid)();
32738
33849
  const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_init__5_0_0_components_ActorInit_jsonld_ActorInit_default_bus = new (require('@comunica/core').Bus)({
32739
33850
  'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^5.0.0/components/ActorInit.jsonld#ActorInit_default_bus'
32740
33851
  });
@@ -32859,6 +33970,13 @@ const urn_comunica_default_extract_links_actors_predicates_common = new (require
32859
33970
  'name': 'urn:comunica:default:extract-links/actors#predicates-common',
32860
33971
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
32861
33972
  });
33973
+ const urn_comunica_default_extract_links_actors_links_describedby = new (require('@comunica/actor-extract-links-headers').ActorExtractLinksHeaders)({
33974
+ 'headersRegexes': [
33975
+ 'rel="describedby"'
33976
+ ],
33977
+ 'name': 'urn:comunica:default:extract-links/actors#links-describedby',
33978
+ 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
33979
+ });
32862
33980
  const urn_comunica_default_extract_links_actors_predicates_ldp = new (require('@comunica/actor-extract-links-predicates').ActorExtractLinksPredicates)({
32863
33981
  'checkSubject': true,
32864
33982
  'predicateRegexes': [
@@ -32867,13 +33985,6 @@ const urn_comunica_default_extract_links_actors_predicates_ldp = new (require('@
32867
33985
  'name': 'urn:comunica:default:extract-links/actors#predicates-ldp',
32868
33986
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
32869
33987
  });
32870
- const urn_comunica_default_extract_links_actors_links_describedby = new (require('@comunica/actor-extract-links-headers').ActorExtractLinksHeaders)({
32871
- 'headersRegexes': [
32872
- 'rel="describedby"'
32873
- ],
32874
- 'name': 'urn:comunica:default:extract-links/actors#links-describedby',
32875
- 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_extract_links__0_0_0_components_ActorExtractLinks_jsonld_ActorExtractLinks_default_bus
32876
- });
32877
33988
  const urn_comunica_default_extract_links_actors_predicates_solid = new (require('@comunica/actor-extract-links-predicates').ActorExtractLinksPredicates)({
32878
33989
  'checkSubject': true,
32879
33990
  'predicateRegexes': [
@@ -32903,7 +34014,7 @@ const urn_comunica_default_context_preprocess_actors_convert_shortcuts = new (re
32903
34014
  'busFailMessage': 'Context preprocessing failed'
32904
34015
  });
32905
34016
  const urn_comunica_default_context_preprocess_actors_set_defaults = new (require('@comunica/actor-context-preprocess-set-defaults').ActorContextPreprocessSetDefaults)({
32906
- 'logger': df_647_1,
34017
+ 'logger': df_345_1,
32907
34018
  'name': 'urn:comunica:default:context-preprocess/actors#set-defaults',
32908
34019
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_context_preprocess__5_0_0_components_ActorContextPreprocess_jsonld_ActorContextPreprocess_default_bus,
32909
34020
  'busFailMessage': 'Context preprocessing failed'
@@ -33364,13 +34475,13 @@ const urn_comunica_default_function_factory_actors_expression_function_coalesce
33364
34475
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33365
34476
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33366
34477
  });
33367
- const urn_comunica_default_function_factory_actors_expression_function_extensions = new (require('@comunica/actor-function-factory-expression-extensions').ActorFunctionFactoryExpressionExtensions)({
33368
- 'name': 'urn:comunica:default:function-factory/actors#expression-function-extensions',
34478
+ const urn_comunica_default_function_factory_actors_expression_function_concat = new (require('@comunica/actor-function-factory-expression-concat').ActorFunctionFactoryExpressionConcat)({
34479
+ 'name': 'urn:comunica:default:function-factory/actors#expression-function-concat',
33369
34480
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33370
34481
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33371
34482
  });
33372
- const urn_comunica_default_function_factory_actors_expression_function_concat = new (require('@comunica/actor-function-factory-expression-concat').ActorFunctionFactoryExpressionConcat)({
33373
- 'name': 'urn:comunica:default:function-factory/actors#expression-function-concat',
34483
+ const urn_comunica_default_function_factory_actors_expression_function_extensions = new (require('@comunica/actor-function-factory-expression-extensions').ActorFunctionFactoryExpressionExtensions)({
34484
+ 'name': 'urn:comunica:default:function-factory/actors#expression-function-extensions',
33374
34485
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33375
34486
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33376
34487
  });
@@ -33594,13 +34705,13 @@ const urn_comunica_default_function_factory_actors_term_function_sha512 = new (r
33594
34705
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33595
34706
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33596
34707
  });
33597
- const urn_comunica_default_function_factory_actors_term_function_str_before = new (require('@comunica/actor-function-factory-term-str-before').ActorFunctionFactoryTermStrBefore)({
33598
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-before',
34708
+ const urn_comunica_default_function_factory_actors_term_function_str_after = new (require('@comunica/actor-function-factory-term-str-after').ActorFunctionFactoryTermStrAfter)({
34709
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-after',
33599
34710
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33600
34711
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33601
34712
  });
33602
- const urn_comunica_default_function_factory_actors_term_function_str_after = new (require('@comunica/actor-function-factory-term-str-after').ActorFunctionFactoryTermStrAfter)({
33603
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-after',
34713
+ const urn_comunica_default_function_factory_actors_term_function_str_before = new (require('@comunica/actor-function-factory-term-str-before').ActorFunctionFactoryTermStrBefore)({
34714
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-before',
33604
34715
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33605
34716
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33606
34717
  });
@@ -33609,13 +34720,13 @@ const urn_comunica_default_function_factory_actors_term_function_str_dt = new (r
33609
34720
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33610
34721
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33611
34722
  });
33612
- const urn_comunica_default_function_factory_actors_term_function_str_lang = new (require('@comunica/actor-function-factory-term-str-lang').ActorFunctionFactoryTermStrLang)({
33613
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-lang',
34723
+ const urn_comunica_default_function_factory_actors_term_function_str_ends = new (require('@comunica/actor-function-factory-term-str-ends').ActorFunctionFactoryTermStrEnds)({
34724
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-ends',
33614
34725
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33615
34726
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33616
34727
  });
33617
- const urn_comunica_default_function_factory_actors_term_function_str_ends = new (require('@comunica/actor-function-factory-term-str-ends').ActorFunctionFactoryTermStrEnds)({
33618
- 'name': 'urn:comunica:default:function-factory/actors#term-function-str-ends',
34728
+ const urn_comunica_default_function_factory_actors_term_function_str_lang = new (require('@comunica/actor-function-factory-term-str-lang').ActorFunctionFactoryTermStrLang)({
34729
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-str-lang',
33619
34730
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
33620
34731
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
33621
34732
  });
@@ -33828,11 +34939,6 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_rdf_upd
33828
34939
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
33829
34940
  'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
33830
34941
  });
33831
- 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)({
33832
- 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-limit-rate/^5.0.0/components/ActorHttpLimitRate.jsonld#IActorHttpLimitRateArgs_default_invalidator',
33833
- 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
33834
- 'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
33835
- });
33836
34942
  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)({
33837
34943
  'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-retry/^5.0.0/components/ActorHttpRetry.jsonld#IActorHttpQueueArgs_default_invalidator',
33838
34944
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
@@ -33843,6 +34949,11 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_fe
33843
34949
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
33844
34950
  'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
33845
34951
  });
34952
+ 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)({
34953
+ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-limit-rate/^5.0.0/components/ActorHttpLimitRate.jsonld#IActorHttpLimitRateArgs_default_invalidator',
34954
+ 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
34955
+ 'busFailMessage': 'HTTP invalidation failed: none of the configured actors were able to invalidate ${action.url}'
34956
+ });
33846
34957
  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)({
33847
34958
  'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^5.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator',
33848
34959
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_invalidate__5_0_0_components_ActorHttpInvalidate_jsonld_ActorHttpInvalidate_default_bus,
@@ -34045,15 +35156,15 @@ const urn_comunica_default_function_factory_actors_term_function_inequality = ne
34045
35156
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
34046
35157
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
34047
35158
  });
34048
- const urn_comunica_default_function_factory_actors_term_function_lesser_than = new (require('@comunica/actor-function-factory-term-lesser-than').ActorFunctionFactoryTermLesserThan)({
35159
+ const urn_comunica_default_function_factory_actors_term_function_lesser_than_equal = new (require('@comunica/actor-function-factory-term-lesser-than-equal').ActorFunctionFactoryTermLesserThanEqual)({
34049
35160
  'mediatorFunctionFactory': urn_comunica_default_function_factory_mediators_main,
34050
- 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than',
35161
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than-equal',
34051
35162
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
34052
35163
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
34053
35164
  });
34054
- const urn_comunica_default_function_factory_actors_term_function_lesser_than_equal = new (require('@comunica/actor-function-factory-term-lesser-than-equal').ActorFunctionFactoryTermLesserThanEqual)({
35165
+ const urn_comunica_default_function_factory_actors_term_function_lesser_than = new (require('@comunica/actor-function-factory-term-lesser-than').ActorFunctionFactoryTermLesserThan)({
34055
35166
  'mediatorFunctionFactory': urn_comunica_default_function_factory_mediators_main,
34056
- 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than-equal',
35167
+ 'name': 'urn:comunica:default:function-factory/actors#term-function-lesser-than',
34057
35168
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_function_factory__5_0_0_components_ActorFunctionFactory_jsonld_ActorFunctionFactory_default_bus,
34058
35169
  'busFailMessage': 'Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}'
34059
35170
  });
@@ -34091,15 +35202,15 @@ const urn_comunica_default_query_operation_actors_ask = new (require('@comunica/
34091
35202
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation__5_0_0_components_ActorQueryOperation_jsonld_ActorQueryOperation_default_bus,
34092
35203
  'busFailMessage': 'Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}'
34093
35204
  });
34094
- const urn_comunica_default_query_operation_actors_construct = new (require('@comunica/actor-query-operation-construct').ActorQueryOperationConstruct)({
35205
+ const urn_comunica_default_query_operation_actors_bgp = new (require('@comunica/actor-query-operation-bgp-join').ActorQueryOperationBgpJoin)({
34095
35206
  'mediatorQueryOperation': urn_comunica_default_query_operation_mediators_main,
34096
- 'name': 'urn:comunica:default:query-operation/actors#construct',
35207
+ 'name': 'urn:comunica:default:query-operation/actors#bgp',
34097
35208
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation__5_0_0_components_ActorQueryOperation_jsonld_ActorQueryOperation_default_bus,
34098
35209
  'busFailMessage': 'Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}'
34099
35210
  });
34100
- const urn_comunica_default_query_operation_actors_bgp = new (require('@comunica/actor-query-operation-bgp-join').ActorQueryOperationBgpJoin)({
35211
+ const urn_comunica_default_query_operation_actors_construct = new (require('@comunica/actor-query-operation-construct').ActorQueryOperationConstruct)({
34101
35212
  'mediatorQueryOperation': urn_comunica_default_query_operation_mediators_main,
34102
- 'name': 'urn:comunica:default:query-operation/actors#bgp',
35213
+ 'name': 'urn:comunica:default:query-operation/actors#construct',
34103
35214
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation__5_0_0_components_ActorQueryOperation_jsonld_ActorQueryOperation_default_bus,
34104
35215
  'busFailMessage': 'Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}'
34105
35216
  });
@@ -34694,24 +35805,24 @@ const urn_comunica_default_optimize_query_operation_actors_bgp_to_join = new (re
34694
35805
  urn_comunica_default_optimize_query_operation_actors_join_connected
34695
35806
  ]
34696
35807
  });
34697
- const urn_comunica_default_http_actors_limit_rate = new (require('@comunica/actor-http-limit-rate').ActorHttpLimitRate)({
35808
+ const urn_comunica_default_http_actors_retry = new (require('@comunica/actor-http-retry').ActorHttpRetry)({
34698
35809
  'mediatorHttp': urn_comunica_default_http_mediators_main,
34699
- 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_limit_rate__5_0_0_components_ActorHttpLimitRate_jsonld_IActorHttpLimitRateArgs_default_invalidator,
34700
- 'correctionMultiplier': 0.1,
34701
- 'failureMultiplier': 10,
34702
- 'limitByDefault': false,
34703
- 'allowOverlap': false,
34704
- 'name': 'urn:comunica:default:http/actors#limit-rate',
35810
+ 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_retry__5_0_0_components_ActorHttpRetry_jsonld_IActorHttpQueueArgs_default_invalidator,
35811
+ 'name': 'urn:comunica:default:http/actors#retry',
34705
35812
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http__5_0_0_components_ActorHttp_jsonld_ActorHttp_default_bus,
34706
35813
  'busFailMessage': 'HTTP request failed: none of the configured actors were able to handle ${action.input}',
34707
35814
  'beforeActors': [
34708
35815
  urn_comunica_default_http_actors_proxy
34709
35816
  ]
34710
35817
  });
34711
- const urn_comunica_default_http_actors_retry = new (require('@comunica/actor-http-retry').ActorHttpRetry)({
35818
+ const urn_comunica_default_http_actors_limit_rate = new (require('@comunica/actor-http-limit-rate').ActorHttpLimitRate)({
34712
35819
  'mediatorHttp': urn_comunica_default_http_mediators_main,
34713
- 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_retry__5_0_0_components_ActorHttpRetry_jsonld_IActorHttpQueueArgs_default_invalidator,
34714
- 'name': 'urn:comunica:default:http/actors#retry',
35820
+ 'httpInvalidator': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_http_limit_rate__5_0_0_components_ActorHttpLimitRate_jsonld_IActorHttpLimitRateArgs_default_invalidator,
35821
+ 'correctionMultiplier': 0.1,
35822
+ 'failureMultiplier': 10,
35823
+ 'limitByDefault': false,
35824
+ 'allowOverlap': false,
35825
+ 'name': 'urn:comunica:default:http/actors#limit-rate',
34715
35826
  'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http__5_0_0_components_ActorHttp_jsonld_ActorHttp_default_bus,
34716
35827
  'busFailMessage': 'HTTP request failed: none of the configured actors were able to handle ${action.input}',
34717
35828
  'beforeActors': [
@@ -34755,14 +35866,6 @@ const urn_comunica_default_optimize_query_operation_actors_query_source_identify
34755
35866
  urn_comunica_default_optimize_query_operation_actors_query_source_skolemize
34756
35867
  ]
34757
35868
  });
34758
- const urn_comunica_default_optimize_query_operation_actors_describe_to_constructs_subject = new (require('@comunica/actor-optimize-query-operation-describe-to-constructs-subject').ActorOptimizeQueryOperationDescribeToConstructsSubject)({
34759
- 'name': 'urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject',
34760
- 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation__5_0_0_components_ActorOptimizeQueryOperation_jsonld_ActorOptimizeQueryOperation_default_bus,
34761
- 'busFailMessage': 'Query optimization failed: none of the configured actors were able to optimize',
34762
- 'beforeActors': [
34763
- urn_comunica_default_optimize_query_operation_actors_query_source_identify
34764
- ]
34765
- });
34766
35869
  const urn_comunica_default_optimize_query_operation_actors_initialize_link_traversal_manager = new (require('@comunica/actor-optimize-query-operation-initialize-link-traversal-manager').ActorOptimizeQueryOperationInitializeLinkTraversalManager)({
34767
35870
  'linkParallelization': 64,
34768
35871
  'linkParallelizationLimit': 2,
@@ -34778,6 +35881,14 @@ const urn_comunica_default_optimize_query_operation_actors_initialize_link_trave
34778
35881
  urn_comunica_default_optimize_query_operation_actors_query_source_identify
34779
35882
  ]
34780
35883
  });
35884
+ const urn_comunica_default_optimize_query_operation_actors_describe_to_constructs_subject = new (require('@comunica/actor-optimize-query-operation-describe-to-constructs-subject').ActorOptimizeQueryOperationDescribeToConstructsSubject)({
35885
+ 'name': 'urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject',
35886
+ 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation__5_0_0_components_ActorOptimizeQueryOperation_jsonld_ActorOptimizeQueryOperation_default_bus,
35887
+ 'busFailMessage': 'Query optimization failed: none of the configured actors were able to optimize',
35888
+ 'beforeActors': [
35889
+ urn_comunica_default_optimize_query_operation_actors_query_source_identify
35890
+ ]
35891
+ });
34781
35892
  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)({
34782
35893
  'extractSubjects': true,
34783
35894
  'extractPredicates': false,
@@ -34793,8 +35904,8 @@ const urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quad
34793
35904
  });
34794
35905
  const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_init__5_0_0_components_ActorInit_jsonld_ActorInit_default_bus, [
34795
35906
  urn_comunica_default_extract_links_actors_predicates_common,
34796
- urn_comunica_default_extract_links_actors_predicates_ldp,
34797
35907
  urn_comunica_default_extract_links_actors_links_describedby,
35908
+ urn_comunica_default_extract_links_actors_predicates_ldp,
34798
35909
  urn_comunica_default_extract_links_actors_predicates_solid,
34799
35910
  urn_comunica_default_extract_links_actors_quad_pattern_query,
34800
35911
  urn_comunica_default_extract_links_actors_solid_type_index,
@@ -34806,6 +35917,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34806
35917
  urn_comunica_default_hash_bindings_actors_murmur,
34807
35918
  urn_comunica_default_hash_quads_actors_murmur,
34808
35919
  urn_comunica_default_init_actors_query,
35920
+ urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quadpattern_iris,
35921
+ urn_comunica_default_optimize_query_operation_actors_initialize_link_traversal_manager,
34809
35922
  urn_comunica_default_optimize_query_operation_actors_rewrite_copy,
34810
35923
  urn_comunica_default_optimize_query_operation_actors_rewrite_move,
34811
35924
  urn_comunica_default_optimize_query_operation_actors_rewrite_add,
@@ -34821,8 +35934,6 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34821
35934
  urn_comunica_default_optimize_query_operation_actors_filter_pushdown,
34822
35935
  urn_comunica_default_optimize_query_operation_actors_group_sources,
34823
35936
  urn_comunica_default_optimize_query_operation_actors_construct_distinct,
34824
- urn_comunica_default_optimize_query_operation_actors_set_seed_sources_quadpattern_iris,
34825
- urn_comunica_default_optimize_query_operation_actors_initialize_link_traversal_manager,
34826
35937
  urn_comunica_default_query_parse_actors_sparql,
34827
35938
  urn_comunica_default_query_parse_actors_graphql,
34828
35939
  urn_comunica_default_query_result_serialize_actors_json,
@@ -34887,16 +35998,16 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34887
35998
  urn_comunica_default_bindings_aggregator_factory_actors_count,
34888
35999
  urn_comunica_default_bindings_aggregator_factory_actors_group_concat,
34889
36000
  urn_comunica_default_bindings_aggregator_factory_actors_max,
34890
- urn_comunica_default_bindings_aggregator_factory_actors_sample,
34891
36001
  urn_comunica_default_bindings_aggregator_factory_actors_min,
36002
+ urn_comunica_default_bindings_aggregator_factory_actors_sample,
34892
36003
  urn_comunica_default_bindings_aggregator_factory_actors_sum,
34893
36004
  urn_comunica_default_bindings_aggregator_factory_actors_wildcard_count,
34894
36005
  urn_comunica_default_expression_evaluator_factory_actors_default,
34895
36006
  urn_comunica_default_function_factory_actors_expression_function_bnode,
34896
36007
  urn_comunica_default_function_factory_actors_expression_function_bound,
34897
36008
  urn_comunica_default_function_factory_actors_expression_function_coalesce,
34898
- urn_comunica_default_function_factory_actors_expression_function_extensions,
34899
36009
  urn_comunica_default_function_factory_actors_expression_function_concat,
36010
+ urn_comunica_default_function_factory_actors_expression_function_extensions,
34900
36011
  urn_comunica_default_function_factory_actors_expression_function_if,
34901
36012
  urn_comunica_default_function_factory_actors_expression_function_in,
34902
36013
  urn_comunica_default_function_factory_actors_expression_function_logical_and,
@@ -34929,8 +36040,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34929
36040
  urn_comunica_default_function_factory_actors_term_function_langdir,
34930
36041
  urn_comunica_default_function_factory_actors_term_function_langmatches,
34931
36042
  urn_comunica_default_function_factory_actors_term_function_lcase,
34932
- urn_comunica_default_function_factory_actors_term_function_lesser_than,
34933
36043
  urn_comunica_default_function_factory_actors_term_function_lesser_than_equal,
36044
+ urn_comunica_default_function_factory_actors_term_function_lesser_than,
34934
36045
  urn_comunica_default_function_factory_actors_term_function_md5,
34935
36046
  urn_comunica_default_function_factory_actors_term_function_minutes,
34936
36047
  urn_comunica_default_function_factory_actors_term_function_month,
@@ -34948,11 +36059,11 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34948
36059
  urn_comunica_default_function_factory_actors_term_function_sha256,
34949
36060
  urn_comunica_default_function_factory_actors_term_function_sha384,
34950
36061
  urn_comunica_default_function_factory_actors_term_function_sha512,
34951
- urn_comunica_default_function_factory_actors_term_function_str_before,
34952
36062
  urn_comunica_default_function_factory_actors_term_function_str_after,
36063
+ urn_comunica_default_function_factory_actors_term_function_str_before,
34953
36064
  urn_comunica_default_function_factory_actors_term_function_str_dt,
34954
- urn_comunica_default_function_factory_actors_term_function_str_lang,
34955
36065
  urn_comunica_default_function_factory_actors_term_function_str_ends,
36066
+ urn_comunica_default_function_factory_actors_term_function_str_lang,
34956
36067
  urn_comunica_default_function_factory_actors_term_function_str_langdir,
34957
36068
  urn_comunica_default_function_factory_actors_term_function_str_len,
34958
36069
  urn_comunica_default_function_factory_actors_term_function_str_starts,
@@ -34981,15 +36092,15 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
34981
36092
  urn_comunica_default_function_factory_actors_term_function_xsd_to_time,
34982
36093
  urn_comunica_default_function_factory_actors_term_function_xsd_to_year_month_duration,
34983
36094
  urn_comunica_default_function_factory_actors_term_function_year,
34984
- urn_comunica_default_http_actors_limit_rate,
34985
36095
  urn_comunica_default_http_actors_retry,
34986
36096
  urn_comunica_default_http_actors_proxy,
34987
36097
  urn_comunica_default_http_actors_inrupt_solid_client_authn,
34988
36098
  urn_comunica_default_http_actors_fetch,
36099
+ urn_comunica_default_http_actors_limit_rate,
34989
36100
  urn_comunica_default_http_actors_wayback,
34990
36101
  urn_comunica_default_query_operation_actors_ask,
34991
- urn_comunica_default_query_operation_actors_construct,
34992
36102
  urn_comunica_default_query_operation_actors_bgp,
36103
+ urn_comunica_default_query_operation_actors_construct,
34993
36104
  urn_comunica_default_query_operation_actors_distinct,
34994
36105
  urn_comunica_default_query_operation_actors_extend,
34995
36106
  urn_comunica_default_query_operation_actors_filter,
@@ -35016,8 +36127,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
35016
36127
  urn_comunica_default_query_operation_actors_path_zero_or_one,
35017
36128
  urn_comunica_default_query_operation_actors_update_clear,
35018
36129
  urn_comunica_default_query_operation_actors_update_composite,
35019
- urn_comunica_default_query_operation_actors_update_create,
35020
36130
  urn_comunica_default_query_operation_actors_update_delete_insert,
36131
+ urn_comunica_default_query_operation_actors_update_create,
35021
36132
  urn_comunica_default_query_operation_actors_update_drop,
35022
36133
  urn_comunica_default_query_operation_actors_update_load,
35023
36134
  urn_comunica_default_query_process_actors_sequential,
@@ -35027,8 +36138,8 @@ const urn_comunica_default_Runner = (https___linkedsoftwaredependencies_org_bund
35027
36138
  urn_comunica_default_query_process_actors_explain_physical,
35028
36139
  urn_comunica_default_query_source_identify_actors_hypermedia,
35029
36140
  urn_comunica_default_query_source_identify_actors_link_traversal,
35030
- urn_comunica_default_query_source_identify_actors_serialized,
35031
36141
  urn_comunica_default_query_source_identify_actors_rdfjs,
36142
+ urn_comunica_default_query_source_identify_actors_serialized,
35032
36143
  urn_comunica_default_rdf_join_actors_inner_none,
35033
36144
  urn_comunica_default_rdf_join_actors_inner_single,
35034
36145
  urn_comunica_default_rdf_join_actors_inner_multi_bind_source,