@comunica/actor-query-result-serialize-rdf 4.4.2-alpha.49.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,7 +22,7 @@ After installing, this package can be added to your engine's configuration as fo
22
22
  {
23
23
  "@context": [
24
24
  ...
25
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-rdf/^4.0.0/components/context.jsonld"
25
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-rdf/^5.0.0/components/context.jsonld"
26
26
  ],
27
27
  "actors": [
28
28
  ...
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-rdf/^4.0.0/components/context.jsonld",
4
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^4.0.0/components/context.jsonld",
5
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-rdf/^5.0.0/components/context.jsonld",
4
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^5.0.0/components/context.jsonld",
5
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^5.0.0/components/context.jsonld"
6
6
  ],
7
7
  "@id": "npmd:@comunica/actor-query-result-serialize-rdf",
8
8
  "components": [
@@ -48,37 +48,37 @@
48
48
  "genericTypeInstances": [
49
49
  {
50
50
  "@type": "ParameterRangeGenericTypeReference",
51
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
51
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
52
52
  },
53
53
  {
54
54
  "@type": "ParameterRangeGenericTypeReference",
55
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
55
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
56
56
  },
57
57
  {
58
58
  "@type": "ParameterRangeGenericTypeReference",
59
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
59
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
60
60
  },
61
61
  {
62
62
  "@type": "ParameterRangeGenericTypeReference",
63
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
63
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
64
64
  }
65
65
  ]
66
66
  },
67
67
  {
68
68
  "@type": "ParameterRangeGenericTypeReference",
69
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
69
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
70
70
  },
71
71
  {
72
72
  "@type": "ParameterRangeGenericTypeReference",
73
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
73
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
74
74
  },
75
75
  {
76
76
  "@type": "ParameterRangeGenericTypeReference",
77
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
77
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
78
78
  },
79
79
  {
80
80
  "@type": "ParameterRangeGenericTypeReference",
81
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
81
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
82
82
  }
83
83
  ]
84
84
  },
@@ -115,19 +115,19 @@
115
115
  "genericTypeInstances": [
116
116
  {
117
117
  "@type": "ParameterRangeGenericTypeReference",
118
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
118
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
119
119
  },
120
120
  {
121
121
  "@type": "ParameterRangeGenericTypeReference",
122
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
122
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
123
123
  },
124
124
  {
125
125
  "@type": "ParameterRangeGenericTypeReference",
126
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
126
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
127
127
  },
128
128
  {
129
129
  "@type": "ParameterRangeGenericTypeReference",
130
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
130
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
131
131
  }
132
132
  ]
133
133
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-rdf/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-rdf/^5.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/actor-query-result-serialize-rdf",
6
6
  "@type": "Module",
@@ -3,7 +3,7 @@
3
3
  "https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
4
4
  {
5
5
  "npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
6
- "caqrsr": "npmd:@comunica/actor-query-result-serialize-rdf/^4.0.0/",
6
+ "caqrsr": "npmd:@comunica/actor-query-result-serialize-rdf/^5.0.0/",
7
7
  "ActorQueryResultSerializeRdf": {
8
8
  "@id": "caqrsr:components/ActorQueryResultSerializeRdf.jsonld#ActorQueryResultSerializeRdf",
9
9
  "@prefix": true,
@@ -10,8 +10,14 @@ const core_1 = require("@comunica/core");
10
10
  * to an RDF syntax.
11
11
  */
12
12
  class ActorQueryResultSerializeRdf extends bus_query_result_serialize_1.ActorQueryResultSerialize {
13
+ mediatorRdfSerialize;
14
+ mediatorMediaTypeCombiner;
15
+ mediatorMediaTypeFormatCombiner;
13
16
  constructor(args) {
14
17
  super(args);
18
+ this.mediatorRdfSerialize = args.mediatorRdfSerialize;
19
+ this.mediatorMediaTypeCombiner = args.mediatorMediaTypeCombiner;
20
+ this.mediatorMediaTypeFormatCombiner = args.mediatorMediaTypeFormatCombiner;
15
21
  }
16
22
  async testHandle(action, mediaType, context) {
17
23
  // Check if we are provided with a quad stream
@@ -1 +1 @@
1
- {"version":3,"file":"ActorQueryResultSerializeRdf.js","sourceRoot":"","sources":["ActorQueryResultSerializeRdf.ts"],"names":[],"mappings":";;;AAKA,qFAAiF;AAOjF,yCAAwD;AAGxD;;;;;GAKG;AACH,MAAa,4BAA6B,SAAQ,sDAAyB;IAMzE,YAAmB,IAAuC;QACxD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,MAA8B,EAAE,SAAiB,EAAE,OAAuB;QAEhG,8CAA8C;QAC9C,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC5B,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,+BAA+B,CAAC,CAAC;QACrE,CAAC;QAED,+CAA+C;QAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CACjE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAC9B,CAAC;QACF,IAAI,CAAC,CAAC,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC;YAC/B,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,8BAA8B,SAAS,0BAA0B;YACjG,4DAA4D;YAC5D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,MAA8B,EAAE,SAAiB,EAAE,OAAuB;QAE/F,oCAAoC;QACpC,OAAO,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YAC9C,OAAO;YACP,MAAM,EAAE;gBACN,OAAO;gBACP,UAAU,EAAgC,MAAO,CAAC,UAAU;aAC7D;YACD,eAAe,EAAE,SAAS;SAC3B,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,QAAwB;QACjD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAuB;QAChD,OAAO,CAAC,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IAClG,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,QAAwB;QACxD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAAuB;QACtD,OAAO,CAAC,MAAM,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;IACpH,CAAC;CACF;AAzDD,oEAyDC","sourcesContent":["import type {\n IActorQueryResultSerializeArgs,\n IActorQueryResultSerializeOutput,\n IActionSparqlSerialize,\n} from '@comunica/bus-query-result-serialize';\nimport { ActorQueryResultSerialize } from '@comunica/bus-query-result-serialize';\nimport type {\n MediatorRdfSerializeHandle,\n MediatorRdfSerializeMediaTypeFormats,\n MediatorRdfSerializeMediaTypes,\n} from '@comunica/bus-rdf-serialize';\nimport type { IActorTest, TestResult } from '@comunica/core';\nimport { failTest, passTestVoid } from '@comunica/core';\nimport type { IActionContext, IQueryOperationResultQuads } from '@comunica/types';\n\n/**\n * A comunica RDF Query Result Serialize Actor.\n *\n * It serializes quad streams (for example resulting from a CONSTRUCT query)\n * to an RDF syntax.\n */\nexport class ActorQueryResultSerializeRdf extends ActorQueryResultSerialize\n implements IActorQueryResultSerializeRdfArgs {\n public readonly mediatorRdfSerialize: MediatorRdfSerializeHandle;\n public readonly mediatorMediaTypeCombiner: MediatorRdfSerializeMediaTypes;\n public readonly mediatorMediaTypeFormatCombiner: MediatorRdfSerializeMediaTypeFormats;\n\n public constructor(args: IActorQueryResultSerializeRdfArgs) {\n super(args);\n }\n\n public async testHandle(action: IActionSparqlSerialize, mediaType: string, context: IActionContext):\n Promise<TestResult<IActorTest>> {\n // Check if we are provided with a quad stream\n if (action.type !== 'quads') {\n return failTest(`Actor ${this.name} can only handle quad streams`);\n }\n\n // Check if the given media type can be handled\n const { mediaTypes } = await this.mediatorMediaTypeCombiner.mediate(\n { context, mediaTypes: true },\n );\n if (!(mediaType in mediaTypes)) {\n return failTest(`Actor ${this.name} can not handle media type ${mediaType}. All available types: ${\n // eslint-disable-next-line ts/restrict-template-expressions\n Object.keys(mediaTypes)}`);\n }\n return passTestVoid();\n }\n\n public async runHandle(action: IActionSparqlSerialize, mediaType: string, context: IActionContext):\n Promise<IActorQueryResultSerializeOutput> {\n // Delegate handling to the mediator\n return (await this.mediatorRdfSerialize.mediate({\n context,\n handle: {\n context,\n quadStream: (<IQueryOperationResultQuads> action).quadStream,\n },\n handleMediaType: mediaType,\n })).handle;\n }\n\n public async testMediaType(_context: IActionContext): Promise<TestResult<boolean>> {\n return passTestVoid();\n }\n\n public async getMediaTypes(context: IActionContext): Promise<Record<string, number>> {\n return (await this.mediatorMediaTypeCombiner.mediate({ context, mediaTypes: true })).mediaTypes;\n }\n\n public async testMediaTypeFormats(_context: IActionContext): Promise<TestResult<boolean>> {\n return passTestVoid();\n }\n\n public async getMediaTypeFormats(context: IActionContext): Promise<Record<string, string>> {\n return (await this.mediatorMediaTypeFormatCombiner.mediate({ context, mediaTypeFormats: true })).mediaTypeFormats;\n }\n}\n\nexport interface IActorQueryResultSerializeRdfArgs extends IActorQueryResultSerializeArgs {\n mediatorRdfSerialize: MediatorRdfSerializeHandle;\n mediatorMediaTypeCombiner: MediatorRdfSerializeMediaTypes;\n mediatorMediaTypeFormatCombiner: MediatorRdfSerializeMediaTypeFormats;\n}\n"]}
1
+ {"version":3,"file":"ActorQueryResultSerializeRdf.js","sourceRoot":"","sources":["ActorQueryResultSerializeRdf.ts"],"names":[],"mappings":";;;AAKA,qFAAiF;AAOjF,yCAAwD;AAGxD;;;;;GAKG;AACH,MAAa,4BAA6B,SAAQ,sDAAyB;IAEzD,oBAAoB,CAA6B;IACjD,yBAAyB,CAAiC;IAC1D,+BAA+B,CAAuC;IAEtF,YAAmB,IAAuC;QACxD,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QACtD,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC,yBAAyB,CAAC;QAChE,IAAI,CAAC,+BAA+B,GAAG,IAAI,CAAC,+BAA+B,CAAC;IAC9E,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,MAA8B,EAAE,SAAiB,EAAE,OAAuB;QAEhG,8CAA8C;QAC9C,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC5B,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,+BAA+B,CAAC,CAAC;QACrE,CAAC;QAED,+CAA+C;QAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CACjE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAC9B,CAAC;QACF,IAAI,CAAC,CAAC,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC;YAC/B,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,8BAA8B,SAAS,0BAA0B;YACjG,4DAA4D;YAC5D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,MAA8B,EAAE,SAAiB,EAAE,OAAuB;QAE/F,oCAAoC;QACpC,OAAO,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YAC9C,OAAO;YACP,MAAM,EAAE;gBACN,OAAO;gBACP,UAAU,EAAgC,MAAO,CAAC,UAAU;aAC7D;YACD,eAAe,EAAE,SAAS;SAC3B,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,QAAwB;QACjD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAuB;QAChD,OAAO,CAAC,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IAClG,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,QAAwB;QACxD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAAuB;QACtD,OAAO,CAAC,MAAM,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;IACpH,CAAC;CACF;AA5DD,oEA4DC","sourcesContent":["import type {\n IActorQueryResultSerializeArgs,\n IActorQueryResultSerializeOutput,\n IActionSparqlSerialize,\n} from '@comunica/bus-query-result-serialize';\nimport { ActorQueryResultSerialize } from '@comunica/bus-query-result-serialize';\nimport type {\n MediatorRdfSerializeHandle,\n MediatorRdfSerializeMediaTypeFormats,\n MediatorRdfSerializeMediaTypes,\n} from '@comunica/bus-rdf-serialize';\nimport type { IActorTest, TestResult } from '@comunica/core';\nimport { failTest, passTestVoid } from '@comunica/core';\nimport type { IActionContext, IQueryOperationResultQuads } from '@comunica/types';\n\n/**\n * A comunica RDF Query Result Serialize Actor.\n *\n * It serializes quad streams (for example resulting from a CONSTRUCT query)\n * to an RDF syntax.\n */\nexport class ActorQueryResultSerializeRdf extends ActorQueryResultSerialize\n implements IActorQueryResultSerializeRdfArgs {\n public readonly mediatorRdfSerialize: MediatorRdfSerializeHandle;\n public readonly mediatorMediaTypeCombiner: MediatorRdfSerializeMediaTypes;\n public readonly mediatorMediaTypeFormatCombiner: MediatorRdfSerializeMediaTypeFormats;\n\n public constructor(args: IActorQueryResultSerializeRdfArgs) {\n super(args);\n this.mediatorRdfSerialize = args.mediatorRdfSerialize;\n this.mediatorMediaTypeCombiner = args.mediatorMediaTypeCombiner;\n this.mediatorMediaTypeFormatCombiner = args.mediatorMediaTypeFormatCombiner;\n }\n\n public async testHandle(action: IActionSparqlSerialize, mediaType: string, context: IActionContext):\n Promise<TestResult<IActorTest>> {\n // Check if we are provided with a quad stream\n if (action.type !== 'quads') {\n return failTest(`Actor ${this.name} can only handle quad streams`);\n }\n\n // Check if the given media type can be handled\n const { mediaTypes } = await this.mediatorMediaTypeCombiner.mediate(\n { context, mediaTypes: true },\n );\n if (!(mediaType in mediaTypes)) {\n return failTest(`Actor ${this.name} can not handle media type ${mediaType}. All available types: ${\n // eslint-disable-next-line ts/restrict-template-expressions\n Object.keys(mediaTypes)}`);\n }\n return passTestVoid();\n }\n\n public async runHandle(action: IActionSparqlSerialize, mediaType: string, context: IActionContext):\n Promise<IActorQueryResultSerializeOutput> {\n // Delegate handling to the mediator\n return (await this.mediatorRdfSerialize.mediate({\n context,\n handle: {\n context,\n quadStream: (<IQueryOperationResultQuads> action).quadStream,\n },\n handleMediaType: mediaType,\n })).handle;\n }\n\n public async testMediaType(_context: IActionContext): Promise<TestResult<boolean>> {\n return passTestVoid();\n }\n\n public async getMediaTypes(context: IActionContext): Promise<Record<string, number>> {\n return (await this.mediatorMediaTypeCombiner.mediate({ context, mediaTypes: true })).mediaTypes;\n }\n\n public async testMediaTypeFormats(_context: IActionContext): Promise<TestResult<boolean>> {\n return passTestVoid();\n }\n\n public async getMediaTypeFormats(context: IActionContext): Promise<Record<string, string>> {\n return (await this.mediatorMediaTypeFormatCombiner.mediate({ context, mediaTypeFormats: true })).mediaTypeFormats;\n }\n}\n\nexport interface IActorQueryResultSerializeRdfArgs extends IActorQueryResultSerializeArgs {\n mediatorRdfSerialize: MediatorRdfSerializeHandle;\n mediatorMediaTypeCombiner: MediatorRdfSerializeMediaTypes;\n mediatorMediaTypeFormatCombiner: MediatorRdfSerializeMediaTypeFormats;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-query-result-serialize-rdf",
3
- "version": "4.4.2-alpha.49.0",
3
+ "version": "5.0.0",
4
4
  "description": "A rdf query-result-serialize actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -41,10 +41,10 @@
41
41
  "build:components": "componentsjs-generator"
42
42
  },
43
43
  "dependencies": {
44
- "@comunica/bus-query-result-serialize": "4.4.2-alpha.49.0",
45
- "@comunica/bus-rdf-serialize": "4.4.2-alpha.49.0",
46
- "@comunica/core": "4.4.2-alpha.49.0",
47
- "@comunica/types": "4.4.2-alpha.49.0"
44
+ "@comunica/bus-query-result-serialize": "^5.0.0",
45
+ "@comunica/bus-rdf-serialize": "^5.0.0",
46
+ "@comunica/core": "^5.0.0",
47
+ "@comunica/types": "^5.0.0"
48
48
  },
49
- "gitHead": "ef6f96cfd8faf7c37955bb7e0fe9f6fc6a994bdf"
49
+ "gitHead": "0b1756fdb9bef014133432489627c1bd71779bd0"
50
50
  }