query-e01b2429317b116b79f285740d246041
Find city name and given names that overlap 19:35, 20 March 2017 (UTC)) talk (Tobias1984 (or one of the other items for similar names). I tried around for a while but not sure how to write a filter function for that. --(Q18201520)Sofia and (Q472)Sofia in one language to find overlaps. One item for example that should appear in the results is (Q515)city with the labels that are subclasses of (Q202444)given name I would like to compare the labels of items that are subclasses of
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Map
SELECT *
{
?given_name_item wdt:P31/wdt:P279* wd:Q202444 .
?given_name_item rdfs:label ?name .
?place wdt:P625 ?coor .
?place rdfs:label ?name .
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coor"):::projected
v1("?given_name_item"):::projected
v2("?name"):::projected
v3("?place"):::projected
a1((" "))
c3(["wd:Q202444"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"rdfs:label"--> v2
v3 --"wdt:P625"--> v4
v3 --"rdfs:label"--> v2