query-19db955ac0e71593a8758530e7007844
Fix ru description for given names } )?new_ru_description as ) )?nl(str ,"мужское личное имя - "(CONCAT ( BIND # to be safe, remove items that have a second P31 defined } ) Q12308941:wd != ?instance(FILTER . ?instance P31:wdt ?item { MINUS . Q12308941:wd P31:wdt ?item # basic filter for Latin script ) )"^[A-Z].+$" ,?nl( regex ( FILTER . ?nl P1705:wdt ?item # remove some items that may have a second P282 incorrectly defined } ) Q8229:wd != ?ws(FILTER . ?ws P282:wdt ?item { MINUS . Q8229:wd P282:wdt ?item . ru@"мужское личное имя" description:schema ?item # male given names { * SELECT 10:09, 4 February 2020 (UTC) JuraPlease update the Russian descriptions per above. Something similar can be done for other name items/non-Latin script languages. It might be worth re-running the query periodically. --- 21:33, 12 February 2020 (UTC) JuraTop 1000 should be done. --- 13:08, 9 February 2020 (UTC) Jura. --- [1]I just did a few for the more frequently used ones myself 08:21, 6 February 2020 (UTC) JuraI take it you mean names written in Cyrillic. --- 20:48, 5 February 2020 (UTC)) talk (InfovariusJust don't do such job for Russian names. The other scripts are ok. -- 16:00, 4 February 2020 (UTC) Jura does something similar, but for more languages and only 1 item. --- Special:Diff/1108761128The "namescript" at . The idea is to convey to Russian readers which Latin script name the item is about.Special:Diff/1109674994Sample: ).contribs • talk (Edoderoo comment was added byunsignedThe preceding – Maybe I understand what you need, but to be sure... Can you add one or a few diffs from items that you updated manually?
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT *
{
# female given names
?item schema:description "женское личное имя"@ru .
?item wdt:P282 wd:Q8229 .
MINUS { ?item wdt:P282 ?ws . FILTER(?ws != wd:Q8229 ) } # remove some items that may have a second P282 incorrectly defined
?item wdt:P1705 ?nl .
FILTER ( regex (?nl, "^[A-Z].+$") ) # basic filter for Latin script
?item wdt:P31 wd:Q11879590 .
MINUS { ?item wdt:P31 ?instance . FILTER(?instance != wd:Q11879590 ) } # to be safe, remove items that have a second P31 defined
BIND ( CONCAT("женское личное имя - ", str(?nl) ) as ?new_ru_description)
}