Hjfocs created this task. Hjfocs added projects: Wikibase-Quality-Constraints, Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION **Feature summary**: It would be great to get the item QID with the same property value without parsing HTML in the `message-html` JSON key of a `distinct-values constraint` object returned by the `wbcheckconstraints` API endpoint <https://www.wikidata.org/w/api.php?action=help&modules=wbcheckconstraints>. **Steps to reproduce**: - input = API call JSON response example { "wbcheckconstraints": { "Q13406268": { "claims": { "P1902": [ { "id": "Q13406268$951c8adf-49b5-657d-2274-22321c2a7394", "mainsnak": { "hash": "5618f45d44bfb77940d17bafc5abbe861f595bb6", "results": [ { "status": "warning", "property": "P1902", "constraint": { "id": "P1902$04BEC41B-0079-4193-97A7-7930C272E74F", "type": "Q21502410", "typeLabel": "distinct-values constraint", "link": "//www.wikidata.org/wiki/Property:P1902#P1902$04BEC41B-0079-4193-97A7-7930C272E74F", "discussLink": "//www.wikidata.org/wiki/Property_talk:P1902" }, "message-html": "This property's value should not be present on any other item, but is also present on <span class=\"wbqc-role wbqc-role-subject\"><a title=\"Q2084022\" href=\"/wiki/Q2084022\">State Philharmonic Ko\u0161ice</a></span>.", ... } - get the `message-html` value - parse HTML - output = `Q2084022` **Use case(s)**: Detect potential duplicate records of a third-party catalog (see https://github.com/Wikidata/soweego/issues/400) or errors of the #soweego <https://phabricator.wikimedia.org/tag/soweego/> Wikidata bot (see https://github.com/Wikidata/soweego/issues/266) TASK DETAIL https://phabricator.wikimedia.org/T289710 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Hjfocs Cc: Aklapper, Hjfocs, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, Esc3300, LawExplorer, _jensen, rosalieper, Agabi10, Scott_WUaS, abian, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org