linked-data-reactor
Version:
Linked Data Reactor provides a framework to view, browse and edit Linked Data in a flexible way.
11 lines (10 loc) • 401 B
JavaScript
export default function countTotalResourcesWithProp(context, payload, done) {
context.service.read('dataset.countTotalResourcesWithProp', payload, {}, function (err, res) {
if (err) {
context.dispatch('UPDATE_ANNOTATION_STAT_TOTAL__FAILURE', err);
} else {
context.dispatch('UPDATE_ANNOTATION_STAT_TOTAL', res);
}
done(null, res);
});
}