Lucas_Werkmeister_WMDE added a comment.

Hm… how about a query that also showcases T172380: Query constraint violations with WDQS? :)

Some mandatory constraint violations:

SELECT ?constraintTypeLabel ?statementLink WHERE {
  ?statement wikibase:hasViolationForConstraint ?constraint.
  ?constraint ps:P2302 ?constraintType;
              pq:P2316 wd:Q21502408.
  BIND(IRI(REPLACE(STR(?statement), "http://www.wikidata.org/entity/statement/(.*)-([^-]*-[^-]*-[^-]*-[^-]*-[^-]*)", "https://www.wikidata.org/wiki/Special:EntityPage/$1#$1\\$$2")) AS ?statementLink)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 10

The BIND(… AS ?statementLink) is the ugly part – ideally, the statement IRI would directly redirect you to the link including anchor, so that you end up at the right statement, but that’s not implemented yet.


TASK DETAIL
https://phabricator.wikimedia.org/T169224

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lea_Lacroix_WMDE, Marsupium, Jonas, Lydia_Pintscher, gerritbot, Lucas_Werkmeister_WMDE, Aklapper, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to