query-51d0fd35b0117f9e71ee8a378c755d8d

rq turtle/ttl

Stop mul ]reply[04:05, 28 September 2024 (UTC)) talk (Madamebiblio Do you make massive changes, without having requested bot permission? Please, you do NOT need to delete the labels that were already there. Thank you. IamcarbonHi @If you delete the 'Label' value from the names, there are gadgets that do not work. For this reason, I have now returned the values of a few hundred family names to thousands of Labels., hundreds of tags can be restored with a click of a button.User:Harmonia_Amanda/namescript.jsWith For those looking to recover the deletion for family names in a language, here's a query: it lists family names that have P407 set but are missing a tag for the same language.Example German:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P31 wd:Q101352;
  wdt:P407 wd:Q188.  
  MINUS { ?item rdfs:label ?hulabel FILTER ( lang(?hulabel) = "de" ) }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?hulabel") v1("?item"):::projected c6(["wd:Q101352"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c8(["wd:Q188"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> c6 v1 --"wdt:P407"--> c8 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; f1[["?hulabel = 'de'"]] f1 --> v2 v1 --"rdfs:label"--> v2 end