query-50af5d02cc7a3e64c164fc4cc1f791ad

rq turtle/ttl

Remove wrong /doc at template descriptions Steak: Request date: 25 May 2017, byLink to discussions justifying the requestTask description 11:39, 25 May 2017 (UTC)) talk (Steak, it reads for the bulgarian label "Шаблон:Worldcat id/doc" instead of "Шаблон:Worldcat id". A bot-run would be useful to remove these wrong /doc strings in such cases. (Q11247300)Template:WorldCat id items contain in the label the string "/doc". Because /doc-subpages are not notable, these labels were probably originally imported wrongly. For example, in 2000About A WDQ query for this:

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item 
    (GROUP_CONCAT(distinct(?itemLabel); separator=", ") as ?itemLabels)
WHERE
{
  ?item wdt:P31 wd:Q11266439 ;
        rdfs:label ?itemLabel .
  FILTER(strEnds(?itemLabel, "/doc")) .
}
GROUP BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemLabel"):::projected v3("?itemLabels") c3(["wd:Q11266439"]):::iri f0[["ends-with(?itemLabel,'/doc')"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"rdfs:label"--> v1 bind2[/"?itemLabel"/] v1 --o bind2 bind2 --as--o v3