@comunica/actor-rdf-parse-xml-rdfa 2.3.1-alpha.31.0 → 2.4.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.
|
@@ -26,7 +26,11 @@ class ActorRdfParseXmlRdfa extends bus_rdf_parse_1.ActorRdfParseFixedMediaTypes
|
|
|
26
26
|
async runHandle(action, mediaType, context) {
|
|
27
27
|
const language = (action.headers && action.headers.get('content-language')) ?? undefined;
|
|
28
28
|
action.data.on('error', error => data.emit('error', error));
|
|
29
|
-
const data = action.data.pipe(new rdfa_streaming_parser_1.RdfaParser({
|
|
29
|
+
const data = action.data.pipe(new rdfa_streaming_parser_1.RdfaParser({
|
|
30
|
+
baseIRI: action.metadata?.baseIRI,
|
|
31
|
+
profile: 'xml',
|
|
32
|
+
language,
|
|
33
|
+
}));
|
|
30
34
|
return { data, metadata: { triples: true } };
|
|
31
35
|
}
|
|
32
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-rdf-parse-xml-rdfa",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "A xml-rdfa rdf-parse actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"lib/**/*.js"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@comunica/bus-rdf-parse": "2.
|
|
35
|
-
"@comunica/types": "2.
|
|
36
|
-
"rdfa-streaming-parser": "^
|
|
34
|
+
"@comunica/bus-rdf-parse": "^2.4.0",
|
|
35
|
+
"@comunica/types": "^2.4.0",
|
|
36
|
+
"rdfa-streaming-parser": "^2.0.0"
|
|
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": "
|
|
43
|
+
"gitHead": "cb5a1560c9ab9ebaf3335888a1411a7e1654de1e"
|
|
44
44
|
}
|