query-9bd5920c499e7cee90f9310c6326e8bc

rq turtle/ttl

added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .

# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))

# humans only
?item wdt:P31 wd:Q5 .

}

Listeria can only handle up to 5000

LIMIT 1000

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
#added before 2016-10
 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru
SELECT ?item
WHERE
{
    # gender = female
    ?item wdt:P21 wd:Q6581072 .

    # place of birth = Wales (Q25)
    { ?item wdt:P19 wd:Q25 }
    # OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
    UNION  { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }

    # look for articles (sitelinks) in Welsh ("cy")
    OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
    # but select items with no such article
    FILTER (!BOUND(?sitelink))

    # humans only
    ?item wdt:P31 wd:Q5 .
}
#Listeria can only handle up to 5000
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?pob") v1("?sitelink") c8(["cy"]):::literal c10(["wd:Q5"]):::iri c2(["wd:Q6581072"]):::iri c4(["wd:Q25"]):::iri f0[["not bound(?sitelink)"]] f0 --> v1 v2 --"wdt:P21"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P19"--> v3 v3 --"wdt:P131"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P19"--> c4 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."schema:about".-> v2 v1 --"schema:inLanguage"--> c8 end v2 --"wdt:P31"--> c10