@comunica/actor-rdf-parse-rdfxml 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-rdf-parse-rdfxml/^4.0.0/components/context.jsonld"
25
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-rdfxml/^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-rdf-parse-rdfxml/^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-rdf-parse/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-rdfxml/^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-rdf-parse/^5.0.0/components/context.jsonld"
6
6
  ],
7
7
  "@id": "npmd:@comunica/actor-rdf-parse-rdfxml",
8
8
  "components": [
@@ -70,37 +70,37 @@
70
70
  "genericTypeInstances": [
71
71
  {
72
72
  "@type": "ParameterRangeGenericTypeReference",
73
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
73
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
74
74
  },
75
75
  {
76
76
  "@type": "ParameterRangeGenericTypeReference",
77
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
77
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
78
78
  },
79
79
  {
80
80
  "@type": "ParameterRangeGenericTypeReference",
81
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
81
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
82
82
  },
83
83
  {
84
84
  "@type": "ParameterRangeGenericTypeReference",
85
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
85
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
86
86
  }
87
87
  ]
88
88
  },
89
89
  {
90
90
  "@type": "ParameterRangeGenericTypeReference",
91
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
91
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
92
92
  },
93
93
  {
94
94
  "@type": "ParameterRangeGenericTypeReference",
95
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
95
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
96
96
  },
97
97
  {
98
98
  "@type": "ParameterRangeGenericTypeReference",
99
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
99
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
100
100
  },
101
101
  {
102
102
  "@type": "ParameterRangeGenericTypeReference",
103
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
103
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
104
104
  }
105
105
  ]
106
106
  },
@@ -137,19 +137,19 @@
137
137
  "genericTypeInstances": [
138
138
  {
139
139
  "@type": "ParameterRangeGenericTypeReference",
140
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
140
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
141
141
  },
142
142
  {
143
143
  "@type": "ParameterRangeGenericTypeReference",
144
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
144
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
145
145
  },
146
146
  {
147
147
  "@type": "ParameterRangeGenericTypeReference",
148
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
148
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
149
149
  },
150
150
  {
151
151
  "@type": "ParameterRangeGenericTypeReference",
152
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
152
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
153
153
  }
154
154
  ]
155
155
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-rdfxml/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-rdfxml/^5.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/actor-rdf-parse-rdfxml",
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
- "carpr": "npmd:@comunica/actor-rdf-parse-rdfxml/^4.0.0/",
6
+ "carpr": "npmd:@comunica/actor-rdf-parse-rdfxml/^5.0.0/",
7
7
  "ActorRdfParseRdfXml": {
8
8
  "@id": "carpr:components/ActorRdfParseRdfXml.jsonld#ActorRdfParseRdfXml",
9
9
  "@prefix": true,
@@ -26,6 +26,8 @@ class ActorRdfParseRdfXml extends bus_rdf_parse_1.ActorRdfParseFixedMediaTypes {
26
26
  const data = action.data.pipe(new rdfxml_streaming_parser_1.RdfXmlParser({
27
27
  dataFactory,
28
28
  baseIRI: action.metadata?.baseIRI,
29
+ parseUnsupportedVersions: Boolean(action.context.get(context_entries_1.KeysInitQuery.parseUnsupportedVersions)),
30
+ version: action.metadata?.version,
29
31
  }));
30
32
  return {
31
33
  data,
@@ -1 +1 @@
1
- {"version":3,"file":"ActorRdfParseRdfXml.js","sourceRoot":"","sources":["ActorRdfParseRdfXml.ts"],"names":[],"mappings":";;;AACA,2DAAuE;AACvE,+DAA0D;AAE1D,qEAAuD;AAGvD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,4CAA4B;IACnE;;;;;;;;OAQG;IACH,YAAmB,IAAuC;QACxD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,MAAuB;QAC5C,MAAM,WAAW,GAAwB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,+BAAa,CAAC,WAAW,CAAC,CAAC;QAC3F,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;QAC5D,MAAM,IAAI,GAAoB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,sCAAY,CAAC;YAC9D,WAAW;YACX,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO;SAClC,CAAC,CAAC,CAAC;QACJ,OAAO;YACL,IAAI;YACJ,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SAC5B,CAAC;IACJ,CAAC;CACF;AA1BD,kDA0BC","sourcesContent":["import type { IActionRdfParse, IActorRdfParseFixedMediaTypesArgs, IActorRdfParseOutput } from '@comunica/bus-rdf-parse';\nimport { ActorRdfParseFixedMediaTypes } from '@comunica/bus-rdf-parse';\nimport { KeysInitQuery } from '@comunica/context-entries';\nimport type { ComunicaDataFactory } from '@comunica/types';\nimport { RdfXmlParser } from 'rdfxml-streaming-parser';\nimport type { Readable } from 'readable-stream';\n\n/**\n * A comunica RDF/XML RDF Parse Actor.\n */\nexport class ActorRdfParseRdfXml extends ActorRdfParseFixedMediaTypes {\n /**\n * @param args -\n * \\ @defaultNested {{\n * \"application/rdf+xml\": 1.0\n * }} mediaTypePriorities\n * \\ @defaultNested {{\n * \"application/rdf+xml\": \"http://www.w3.org/ns/formats/RDF_XML\"\n * }} mediaTypeFormats\n */\n public constructor(args: IActorRdfParseFixedMediaTypesArgs) {\n super(args);\n }\n\n public async runHandle(action: IActionRdfParse): Promise<IActorRdfParseOutput> {\n const dataFactory: ComunicaDataFactory = action.context.getSafe(KeysInitQuery.dataFactory);\n action.data.on('error', error => data.emit('error', error));\n const data = <Readable> <any> action.data.pipe(new RdfXmlParser({\n dataFactory,\n baseIRI: action.metadata?.baseIRI,\n }));\n return {\n data,\n metadata: { triples: true },\n };\n }\n}\n"]}
1
+ {"version":3,"file":"ActorRdfParseRdfXml.js","sourceRoot":"","sources":["ActorRdfParseRdfXml.ts"],"names":[],"mappings":";;;AACA,2DAAuE;AACvE,+DAA0D;AAE1D,qEAAuD;AAGvD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,4CAA4B;IACnE;;;;;;;;OAQG;IACH,YAAmB,IAAuC;QACxD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,MAAuB;QAC5C,MAAM,WAAW,GAAwB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,+BAAa,CAAC,WAAW,CAAC,CAAC;QAC3F,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;QAC5D,MAAM,IAAI,GAAoB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,sCAAY,CAAC;YAC9D,WAAW;YACX,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO;YACjC,wBAAwB,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,wBAAwB,CAAC,CAAC;YAC7F,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO;SAClC,CAAC,CAAC,CAAC;QACJ,OAAO;YACL,IAAI;YACJ,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SAC5B,CAAC;IACJ,CAAC;CACF;AA5BD,kDA4BC","sourcesContent":["import type { IActionRdfParse, IActorRdfParseFixedMediaTypesArgs, IActorRdfParseOutput } from '@comunica/bus-rdf-parse';\nimport { ActorRdfParseFixedMediaTypes } from '@comunica/bus-rdf-parse';\nimport { KeysInitQuery } from '@comunica/context-entries';\nimport type { ComunicaDataFactory } from '@comunica/types';\nimport { RdfXmlParser } from 'rdfxml-streaming-parser';\nimport type { Readable } from 'readable-stream';\n\n/**\n * A comunica RDF/XML RDF Parse Actor.\n */\nexport class ActorRdfParseRdfXml extends ActorRdfParseFixedMediaTypes {\n /**\n * @param args -\n * \\ @defaultNested {{\n * \"application/rdf+xml\": 1.0\n * }} mediaTypePriorities\n * \\ @defaultNested {{\n * \"application/rdf+xml\": \"http://www.w3.org/ns/formats/RDF_XML\"\n * }} mediaTypeFormats\n */\n public constructor(args: IActorRdfParseFixedMediaTypesArgs) {\n super(args);\n }\n\n public async runHandle(action: IActionRdfParse): Promise<IActorRdfParseOutput> {\n const dataFactory: ComunicaDataFactory = action.context.getSafe(KeysInitQuery.dataFactory);\n action.data.on('error', error => data.emit('error', error));\n const data = <Readable> <any> action.data.pipe(new RdfXmlParser({\n dataFactory,\n baseIRI: action.metadata?.baseIRI,\n parseUnsupportedVersions: Boolean(action.context.get(KeysInitQuery.parseUnsupportedVersions)),\n version: action.metadata?.version,\n }));\n return {\n data,\n metadata: { triples: true },\n };\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-rdf-parse-rdfxml",
3
- "version": "4.4.2-alpha.49.0",
3
+ "version": "5.0.0",
4
4
  "description": "A rdfxml rdf-parse actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -41,9 +41,9 @@
41
41
  "build:components": "componentsjs-generator"
42
42
  },
43
43
  "dependencies": {
44
- "@comunica/bus-rdf-parse": "4.4.2-alpha.49.0",
45
- "@comunica/context-entries": "4.4.2-alpha.49.0",
46
- "rdfxml-streaming-parser": "^3.1.0"
44
+ "@comunica/bus-rdf-parse": "^5.0.0",
45
+ "@comunica/context-entries": "^5.0.0",
46
+ "rdfxml-streaming-parser": "^3.2.0"
47
47
  },
48
- "gitHead": "ef6f96cfd8faf7c37955bb7e0fe9f6fc6a994bdf"
48
+ "gitHead": "0b1756fdb9bef014133432489627c1bd71779bd0"
49
49
  }