query-4403058ff468ad5dd6dbb153ea7a8e6b

rq turtle/ttl

Cyrillic merges 03:33, 19 September 2015 (UTC) Jura). Maybe it's possible to find similar items merely based on labels in these languages and merge them. --- Q12171178 / Q15061198 included pairs of items with articles at ruwiki and ukwiki each (Sample: This16:33, 3 November 2015 (UTC) JuraThe ones on that list are identified based on dates of birth/death and we regularly go through them. The occasional findings there (also with ru/be) suggest that there are more (without dates). A query would need to be done to find them. --- 16:27, 3 November 2015 (UTC)) talk (InfovariusI cannot find any ru-uk pairs. Are they all done? --16:43, 2 December 2015 (UTC) Jura includes quite a few, thanks to new dates of birth/death being added. --- the listToday 11:44, 6 December 2015 (UTC) Jura. --- sample be/ru: (Q21640602)Add Names as labels A step could involve reviewing suggestions for missing labels in one language based on labels in another languages with 10:17, 15 December 2015 (UTC) Jura, merged since). --- sampleI came across a few items that had interwikis in ukwiki to ruwiki, but as they were on separate items, these weren't used to link the articles to existing items (

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 DISTINCT ?item ?Spanishlabel ?item2 ?Italianlabel
WHERE 
{
    VALUES ?item { wd:Q19909894 }
    ?item wdt:P31 wd:Q5 .

    VALUES ?item2 { wd:Q16704775 }
    ?item2 wdt:P31 wd:Q5 .

    ?item rdfs:label ?Spanishlabel . FILTER(lang(?Spanishlabel)="ru")
    BIND(REPLACE(?Spanishlabel, ",", "") as ?Spanishlabel2)

    ?item2 rdfs:label ?Italianlabel . FILTER(lang(?Italianlabel)="uk")

    FILTER(str(?Spanishlabel2) = str(?Italianlabel))
    FILTER(str(?Spanishlabel) != str(?Italianlabel))
}
LIMIT 1

#added by Jura1

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Italianlabel"):::projected v1("?Spanishlabel"):::projected v6("?Spanishlabel2") v4("?item"):::projected v5("?item2"):::projected c4(["wd:Q5"]):::iri f0[["str(?Spanishlabel) != str(?Italianlabel)"]] f0 --> v1 f0 --> v2 f1[["str(?Spanishlabel2) = str(?Italianlabel)"]] f1 --> v6 f1 --> v2 f2[["?Italianlabel = 'uk'"]] f2 --> v2 f3[["?Spanishlabel = 'ru'"]] f3 --> v1 bind4[/VALUES ?item/] bind4-->v4 bind40(["wd:Q19909894"]) bind40 --> bind4 v4 --"wdt:P31"--> c4 bind5[/VALUES ?item2/] bind5-->v5 bind50(["wd:Q16704775"]) bind50 --> bind5 v5 --"wdt:P31"--> c4 v4 --"rdfs:label"--> v1 bind6[/"replace(?Spanishlabel,',','')"/] v1 --o bind6 bind6 --as--o v6 v5 --"rdfs:label"--> v2