query-0f990f94935e2a49d08a58289ef5f5bb

rq turtle/ttl

Get items&labels for people w/o defined genderI'm trying run this:

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 ?item ?itemLabel { 
  ?item wdt:P31 wd:Q5; rdfs:label ?itemLabel. FILTER(lang(?itemLabel) = "ru")
  OPTIONAL { ?item wdt:P21 ?dummy } FILTER(!bound(?dummy) ) 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dummy") v3("?item"):::projected v2("?itemLabel"):::projected c3(["wd:Q5"]):::iri f0[["not bound(?dummy)"]] f0 --> v1 f1[["?itemLabel = 'ru'"]] f1 --> v2 v3 --"wdt:P31"--> c3 v3 --"rdfs:label"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P21".-> v1 end