query-19db955ac0e71593a8758530e7007844

rq turtle/ttl

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

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) 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?instance"):::projected v2("?item"):::projected v5("?new_ru_description"):::projected v1("?nl"):::projected v3("?ws"):::projected c3([sженское личное имя^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal c8(["wd:Q11879590"]):::iri c5(["wd:Q8229"]):::iri f0[["regex(?nl,'^#91;A-Z#93;.+$')"]] f0 --> v1 v2 --"schema:description"--> c3 v2 --"wdt:P282"--> c5 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; f2[["?ws != 'wd:Q8229'"]] f2 --> v3 v2 --"wdt:P282"--> v3 end v2 --"wdt:P1705"--> v1 v2 --"wdt:P31"--> c8 subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; f4[["?instance != 'wd:Q11879590'"]] f4 --> v4 v2 --"wdt:P31"--> v4 end bind5[/"concat('женское личное имя - ',str(?nl))"/] v1 --o bind5 bind5 --as--o v5