@comunica/actor-dereference-rdf-parse 2.0.1-alpha.8.0 → 2.0.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.
@@ -31,18 +31,33 @@
31
31
  },
32
32
  {
33
33
  "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings",
34
- "range": {
35
- "@type": "ParameterRangeCollectEntries",
36
- "parameterRangeCollectEntriesParameters": [
37
- {
38
- "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings_key"
39
- },
40
- {
41
- "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings_value",
42
- "range": "xsd:string"
43
- }
44
- ]
45
- }
34
+ "range": "rdf:JSON",
35
+ "default": {
36
+ "@type": "@json",
37
+ "@value": {
38
+ "ttl": "text/turtle",
39
+ "turtle": "text/turtle",
40
+ "nt": "application/n-triples",
41
+ "ntriples": "application/n-triples",
42
+ "nq": "application/n-quads",
43
+ "nquads": "application/n-quads",
44
+ "rdf": "application/rdf+xml",
45
+ "rdfxml": "application/rdf+xml",
46
+ "owl": "application/rdf+xml",
47
+ "n3": "text/n3",
48
+ "trig": "application/trig",
49
+ "jsonld": "application/ld+json",
50
+ "json": "application/json",
51
+ "html": "text/html",
52
+ "htm": "text/html",
53
+ "xhtml": "application/xhtml+xml",
54
+ "xht": "application/xhtml+xml",
55
+ "xml": "application/xml",
56
+ "svg": "image/svg+xml",
57
+ "svgz": "image/svg+xml"
58
+ }
59
+ },
60
+ "comment": "A collection of mappings, mapping file extensions to their corresponding media type."
46
61
  },
47
62
  {
48
63
  "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_name",
@@ -130,9 +145,15 @@
130
145
  "comment": "Actor that must be registered in the bus before this actor."
131
146
  }
132
147
  ],
133
- "memberKeys": [
134
- "constructor",
135
- "getMetadata"
148
+ "memberFields": [
149
+ {
150
+ "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse__member_constructor",
151
+ "memberFieldName": "constructor"
152
+ },
153
+ {
154
+ "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse__member_getMetadata",
155
+ "memberFieldName": "getMetadata"
156
+ }
136
157
  ],
137
158
  "constructorArguments": [
138
159
  {
@@ -159,16 +180,7 @@
159
180
  {
160
181
  "keyRaw": "mediaMappings",
161
182
  "value": {
162
- "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings__constructorArgument",
163
- "fields": [
164
- {
165
- "collectEntries": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings",
166
- "key": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings_key",
167
- "value": {
168
- "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings_value"
169
- }
170
- }
171
- ]
183
+ "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings"
172
184
  }
173
185
  },
174
186
  {
@@ -201,9 +213,6 @@
201
213
  "cbdr:components/ActorDereferenceRdf.jsonld#IActorDereferenceRdfArgs"
202
214
  ],
203
215
  "parameters": [],
204
- "memberKeys": [
205
- "mediaMappings"
206
- ],
207
216
  "constructorArguments": []
208
217
  }
209
218
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^4.0.0/components/context.jsonld",
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld",
4
4
  {
5
5
  "npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
6
6
  "cadrp": "npmd:@comunica/actor-dereference-rdf-parse/^2.0.0/",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "args_mediaMappings": {
21
21
  "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings",
22
- "@container": "@list"
22
+ "@type": "@json"
23
23
  },
24
24
  "args_name": {
25
25
  "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_name"
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "mediaMappings": {
44
44
  "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_mediaMappings",
45
- "@container": "@list"
45
+ "@type": "@json"
46
46
  },
47
47
  "name": {
48
48
  "@id": "cadrp:components/ActorDereferenceRdfParse.jsonld#ActorDereferenceRdfParse_args_name"
@@ -6,35 +6,32 @@ import type { IActionRdfParseMetadata } from '@comunica/bus-rdf-parse';
6
6
  * A comunica Parse Dereference RDF Actor.
7
7
  */
8
8
  export declare class ActorDereferenceRdfParse extends ActorDereferenceRdf {
9
+ /**
10
+ * @param args - @defaultNested {{
11
+ * "ttl": "text/turtle",
12
+ * "turtle": "text/turtle",
13
+ * "nt": "application/n-triples",
14
+ * "ntriples": "application/n-triples",
15
+ * "nq": "application/n-quads",
16
+ * "nquads": "application/n-quads",
17
+ * "rdf": "application/rdf+xml",
18
+ * "rdfxml": "application/rdf+xml",
19
+ * "owl": "application/rdf+xml",
20
+ * "n3": "text/n3",
21
+ * "trig": "application/trig",
22
+ * "jsonld": "application/ld+json",
23
+ * "json": "application/json",
24
+ * "html": "text/html",
25
+ * "htm": "text/html",
26
+ * "xhtml": "application/xhtml+xml",
27
+ * "xht": "application/xhtml+xml",
28
+ * "xml": "application/xml",
29
+ * "svg": "image/svg+xml",
30
+ * "svgz": "image/svg+xml"
31
+ * }} mediaMappings
32
+ */
9
33
  constructor(args: IActorDereferenceRdfArgs);
10
34
  getMetadata(dereference: IActorDereferenceOutput): Promise<IActionRdfParseMetadata>;
11
35
  }
12
36
  export interface IActorDereferenceRdfParseArgs extends IActorDereferenceRdfArgs {
13
- /**
14
- * A collection of mappings, mapping file extensions to their corresponding media type.
15
- * @range {json}
16
- * @default {{
17
- * "ttl": "text/turtle",
18
- * "turtle": "text/turtle",
19
- * "nt": "application/n-triples",
20
- * "ntriples": "application/n-triples",
21
- * "nq": "application/n-quads",
22
- * "nquads": "application/n-quads",
23
- * "rdf": "application/rdf+xml",
24
- * "rdfxml": "application/rdf+xml",
25
- * "owl": "application/rdf+xml",
26
- * "n3": "text/n3",
27
- * "trig": "application/trig",
28
- * "jsonld": "application/ld+json",
29
- * "json": "application/json",
30
- * "html": "text/html",
31
- * "htm": "text/html",
32
- * "xhtml": "application/xhtml+xml",
33
- * "xht": "application/xhtml+xml",
34
- * "xml": "application/xml",
35
- * "svg": "image/svg+xml",
36
- * "svgz": "image/svg+xml"
37
- * }}
38
- */
39
- mediaMappings: Record<string, string>;
40
37
  }
@@ -6,6 +6,30 @@ const bus_dereference_rdf_1 = require("@comunica/bus-dereference-rdf");
6
6
  * A comunica Parse Dereference RDF Actor.
7
7
  */
8
8
  class ActorDereferenceRdfParse extends bus_dereference_rdf_1.ActorDereferenceRdf {
9
+ /**
10
+ * @param args - @defaultNested {{
11
+ * "ttl": "text/turtle",
12
+ * "turtle": "text/turtle",
13
+ * "nt": "application/n-triples",
14
+ * "ntriples": "application/n-triples",
15
+ * "nq": "application/n-quads",
16
+ * "nquads": "application/n-quads",
17
+ * "rdf": "application/rdf+xml",
18
+ * "rdfxml": "application/rdf+xml",
19
+ * "owl": "application/rdf+xml",
20
+ * "n3": "text/n3",
21
+ * "trig": "application/trig",
22
+ * "jsonld": "application/ld+json",
23
+ * "json": "application/json",
24
+ * "html": "text/html",
25
+ * "htm": "text/html",
26
+ * "xhtml": "application/xhtml+xml",
27
+ * "xht": "application/xhtml+xml",
28
+ * "xml": "application/xml",
29
+ * "svg": "image/svg+xml",
30
+ * "svgz": "image/svg+xml"
31
+ * }} mediaMappings
32
+ */
9
33
  constructor(args) {
10
34
  super(args);
11
35
  }
package/lib/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-dereference-rdf-parse",
3
- "version": "2.0.1-alpha.8.0",
3
+ "version": "2.0.2",
4
4
  "description": "A parse dereference-rdf actor",
5
5
  "lsd:module": true,
6
6
  "main": "lib/index.js",
@@ -32,13 +32,13 @@
32
32
  "lib/**/*.js"
33
33
  ],
34
34
  "dependencies": {
35
- "@comunica/bus-dereference-rdf": "2.0.1-alpha.8.0",
36
- "@comunica/core": "2.0.1-alpha.8.0"
35
+ "@comunica/bus-dereference-rdf": "^2.0.2",
36
+ "@comunica/core": "^2.0.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "npm run build:ts && npm run build:components",
40
40
  "build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
41
41
  "build:components": "componentsjs-generator"
42
42
  },
43
- "gitHead": "aaf5b7bb8d67de3364618454ed2976fd08052b61"
43
+ "gitHead": "0f4dbef85e27830174efc5f460e07c92ff93469f"
44
44
  }