Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async runHandle(action: IActionRdfParse, mediaType: string, context: ActionContext)
: Promise {
action.input.on('error', (e) => quads.emit('error', e));
const quads = action.input.pipe(new RdfXmlParser({ baseIRI: action.baseIRI }));
return {
quads,
triples: true,
};
}
}