module.exports = function(a, b) {
return [
{id: a, claims: {P1889: b}},
{id: b, claims: {P1889: a}}
];
}
However wd ee --batch template.js < list.txt does not seem to like it.
How can I use wikidata-cli to quickly add statements which require editing multiple items?
I have prepared a list of items I want to connect with different from (P1889):
I have this template in mind:
However
wd ee --batch template.js < list.txt
does not seem to like it. How can I usewikidata-cli
to quickly add statements which require editing multiple items?