[03:55:06] [Q] Is it possible to get properties (P1705, P1813) of the results returned by "wbsearchentities" (API)? [10:51:34] Hi. Is there any doc on querying by aliases ("Also known as") somewhere? [10:53:13] they use the predicate skos:altLabel if that helps at all [11:00:56] Lucas_WMDE: I seem to get timeouts when using that [11:03:23] can you share a link to your query? [11:06:11] Lucas_WMDE: It's buried in code. Is there a query interface somewhere? [11:06:41] yes, https://query.wikidata.org/ has a built-in URL shortener [11:06:48] (the chain icon on the left) [11:10:09] Lucas_WMDE: https://query.wikidata.org/#SELECT%20%2a%0AWHERE%20%7B%0A%20%20%3Fsubject%20wdt%3AP31%20wd%3AQ5%20.%0A%20%20%3Fsubject%20skos%3AaltLabel%20%3FaltLabel%20.%0A%20%20FILTER%20%28contains%28%3FaltLabel%2C%20%22biggie%22%40en%29%29%0A%7D [11:10:31] yeah, that kind of query isn’t going to work (it wouldn’t work for ordinary labels either) [11:10:36] SPARQL isn’t great as a full-text search [11:11:33] (also, I think you’d need a separate FILTER(LANG(?altLabel) = "en"), I don’t think language-tagging the CONTAINS() argument does anything) [11:11:56] how about exact matches only? [11:12:00] https://query.wikidata.org/#SELECT%20%2a%0AWHERE%20%7B%0A%20%20%3Fsubject%20wdt%3AP31%20wd%3AQ5%20.%0A%20%20%3Fsubject%20skos%3AaltLabel%20%22biggie%22%20.%0A%7D [11:12:15] that should be efficient, but in that case you need the string to be language-tagged again [11:12:19] This was my first approach, but it doesn't seem to return anything [11:12:30] ah yes [11:12:44] https://w.wiki/4k6f finds one result (uppercase B) [11:12:51] otherwise you can use regular search https://www.wikidata.org/w/index.php?search=inlabel%3Abiggie%40en+haswbstatement%3AP31%3DQ5&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns120=1 [11:12:51] https://query.wikidata.org/#SELECT%20%2a%0AWHERE%20%7B%0A%20%20%3Fsubject%20wdt%3AP31%20wd%3AQ5%20.%0A%20%20%3Fsubject%20skos%3AaltLabel%20%22biggie%22%40en%20.%0A%7D [11:12:56] Still nothing though [11:13:11] in the normal search, `inlabel:` searches both labels and aliases [11:13:35] (you could then post-process the results to get only proper alias results – but the normal search is definitely better for full-text search) [11:14:43] `inlabel:` as in `?person rdfs:label 'Biggie'@en`? [11:14:52] no, as in the search link I pasted [11:15:07] https://www.wikidata.org/w/index.php?search=inlabel%3Abiggie%40en+haswbstatement%3AP31%3DQ5&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns120=1 [11:16:01] (to use that from code, use the action API with action=query, list=search, srsearch=[search], https://www.wikidata.org/wiki/Special:ApiSandbox#action=query&format=json&list=search&srsearch=inlabel%3Abiggie%40en%20haswbstatement%3AP31%3DQ5) [11:16:45] Lucas_WMDE: Right, I see [11:24:55] Lucas_WMDE: I'll run with that. Thanks for the help! [11:25:00] ok! [15:33:47] Lucas_WMDE: do you know if T199787 is still valid? It's been opened for so long that I suspect this isn't a major issue, but I'm missing context [15:33:47] T199787: WikibaseQualityConstraints gets Too Many Requests errors from query service - https://phabricator.wikimedia.org/T199787 [15:34:29] hm, I think it’s at least outdated [15:34:38] “But if we get HTTP 429 from WDQS, perhaps we should temporarily disable SPARQL for all requests (act as if it had not been configured), to avoid a hard ban?” IIRC this was actually implemented [15:34:41] let me see [15:35:02] yup, T204469 [15:35:03] T204469: WikibaseQualityConstraints should respect query service 429 header response. - https://phabricator.wikimedia.org/T204469 [15:38:03] gehel: I closed the task [15:38:15] Lucas_WMDE: thanks a lot! [15:38:20] thanks for the poke :) [15:44:08] we're trying to do some cleanup :/ [18:40:34] hello a page i recently created was deleted, I filled in all the links and added references. can anyone tell me why?