query-3e9de80391090e41ba177363205189af

rq turtle/ttl

Titles of articles about Ukrainian villages on Romanian Wikipedia, plus English and Ukrainian labels in Wikidata items SELECT DISTINCT ?item ?LabelEN ?LabelUK ?page_titleRO WHERE { ?item wdt:P31 wd:Q532 . ?item wdt:P17 wd:Q212 . ?article schema:about ?item ; schema:isPartOf https://ro.wikipedia.org/ ; schema:name ?page_titleRO . ?item rdfs:label ?LabelEN filter (lang(?LabelEN) = "en") . ?item rdfs:label ?LabelUK filter (lang(?LabelUK) = "uk") . } LIMIT 300

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#Titles of articles about Ukrainian villages on Romanian Wikipedia, plus English and Ukrainian labels in Wikidata items
SELECT DISTINCT ?item ?LabelEN ?LabelUK ?page_titleRO WHERE {
?item wdt:P31 wd:Q532 .
?item wdt:P17 wd:Q212 .
?article schema:about ?item ; schema:isPartOf <https://ro.wikipedia.org/> ; schema:name ?page_titleRO .
?item rdfs:label ?LabelEN filter (lang(?LabelEN) = "en") .
?item rdfs:label ?LabelUK filter (lang(?LabelUK) = "uk") .
}
LIMIT 300

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?LabelEN"):::projected v1("?LabelUK"):::projected v4("?article") v3("?item"):::projected v5("?page_titleRO"):::projected c4(["wd:Q532"]):::iri c6(["wd:Q212"]):::iri c9([https://ro.wikipedia.org/]):::iri f0[["?LabelUK = 'uk'"]] f0 --> v1 f1[["?LabelEN = 'en'"]] f1 --> v2 v3 --"wdt:P31"--> c4 v3 --"wdt:P17"--> c6 v4 --"schema:about"--> v3 v4 --"schema:isPartOf"--> c9 v4 --"schema:name"--> v5 v3 --"rdfs:label"--> v2 v3 --"rdfs:label"--> v1