UNPKG

linked-data-reactor

Version:

Linked Data Reactor provides a framework to view, browse and edit Linked Data in a flexible way.

13 lines (11 loc) 378 B
export default function createJSONLD(context, payload, done) { context.service.create('import.jsonld', payload, {timeout: 120 * 1000}, function (err, res) { if (err) { context.dispatch('CREATE_JSONLD_FAILURE', err); done(); } else { context.dispatch('CREATE_JSONLD_SUCCESS', res); done(); } }); }