@comunica/actor-rdf-parse-xml-rdfa 2.4.0 → 2.5.1
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorRdfParseXmlRdfa.js","sourceRoot":"","sources":["ActorRdfParseXmlRdfa.ts"],"names":[],"mappings":";;;AAEA,2DAAuE;AAEvE,iEAAmD;AAGnD;;GAEG;AACH,MAAa,oBAAqB,SAAQ,4CAA4B;IACpE;;;;;;;;;;;;OAYG;IACH,YAAmB,IAAuC;QACxD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,MAAuB,EAAE,SAAiB,EAAE,OAAuB;QAExF,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,SAAS,CAAC;QACzF,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,GAAkB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,kCAAU,CAAC;YAC1D,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO;YACjC,OAAO,EAAE,KAAK;YACd,QAAQ;SACT,CAAC,CAAC,CAAC;QACJ,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,CAAC;IAC9C,CAAC;CACF;AA7BD,oDA6BC","sourcesContent":["import type { IActionRdfParse, IActorRdfParseFixedMediaTypesArgs,\n IActorRdfParseOutput } from '@comunica/bus-rdf-parse';\nimport { ActorRdfParseFixedMediaTypes } from '@comunica/bus-rdf-parse';\nimport type { IActionContext } from '@comunica/types';\nimport { RdfaParser } from 'rdfa-streaming-parser';\nimport type { Readable } from 'readable-stream';\n\n/**\n * A comunica XML RDFa RDF Parse Actor.\n */\nexport class ActorRdfParseXmlRdfa extends ActorRdfParseFixedMediaTypes {\n /**\n * @param args -\n * \\ @defaultNested {{\n * \"application/xml\": 1.0,\n * \"text/xml\": 1.0,\n * \"image/svg+xml\": 1.0\n * }} mediaTypePriorities\n * \\ @defaultNested {{\n * \"application/xml\": \"http://www.w3.org/ns/formats/RDFa\",\n * \"text/xml\": \"http://www.w3.org/ns/formats/RDFa\",\n * \"image/svg+xml\": \"http://www.w3.org/ns/formats/RDFa\"\n * }} mediaTypeFormats\n */\n public constructor(args: IActorRdfParseFixedMediaTypesArgs) {\n super(args);\n }\n\n public async runHandle(action: IActionRdfParse, mediaType: string, context: IActionContext):\n Promise<IActorRdfParseOutput> {\n const language = (action.headers && action.headers.get('content-language')) ?? undefined;\n action.data.on('error', error => data.emit('error', error));\n const data = <Readable><any>action.data.pipe(new RdfaParser({\n baseIRI: action.metadata?.baseIRI,\n profile: 'xml',\n language,\n }));\n return { data, metadata: { triples: true }};\n }\n}\n"]}
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC","sourcesContent":["export * from './ActorRdfParseXmlRdfa';\n"]}
|
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.5.1",
|
|
4
4
|
"description": "A xml-rdfa rdf-parse actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -28,17 +28,18 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"components",
|
|
30
30
|
"lib/**/*.d.ts",
|
|
31
|
-
"lib/**/*.js"
|
|
31
|
+
"lib/**/*.js",
|
|
32
|
+
"lib/**/*.js.map"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@comunica/bus-rdf-parse": "^2.
|
|
35
|
-
"@comunica/types": "^2.
|
|
36
|
-
"rdfa-streaming-parser": "^2.0.
|
|
35
|
+
"@comunica/bus-rdf-parse": "^2.5.1",
|
|
36
|
+
"@comunica/types": "^2.5.1",
|
|
37
|
+
"rdfa-streaming-parser": "^2.0.1"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"build": "npm run build:ts && npm run build:components",
|
|
40
41
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
41
42
|
"build:components": "componentsjs-generator"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d64e87fad4a616224c210c2d22b38f6f9b00e1ea"
|
|
44
45
|
}
|