| Hjfocs added a comment. |
- via SPARQL, as per https://www.w3.org/TR/2013/REC-sparql11-update-20130321/#deleteInsert;
This solution seems to work, but is expensive for the data provider, since it requires to build full SPARQL update queries.
For instance, the following request just updates Chuck Berry's image URL in the http://chuck-berry dataset graph:
curl --data-urlencode "update=WITH <http://chuck-berry> delete { ?s ps:P18 <http://commons.wikimedia.org/wiki/Special:FilePath/Chuck-berry-2007-07-18.jpg> } INSERT { ?s ps:P18 <https://commons.wikimedia.org/wiki/Special:FilePath/Chuck_Berry_1957.jpg> } WHERE { ?s ps:P18 <http://commons.wikimedia.org/wiki/Special:FilePath/Chuck-berry-2007-07-18.jpg> }" ${HOST}/bigdata/sparqlTASK DETAIL
EMAIL PREFERENCES
To: Hjfocs
Cc: Aklapper, Hjfocs, Kiailandi, dachary, Wikidata-bugs, Ricordisamoa, Sjoerddebruin, Mbch331
Cc: Aklapper, Hjfocs, Kiailandi, dachary, Wikidata-bugs, Ricordisamoa, Sjoerddebruin, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
