query-2648d5707f3289ecc1998b34f0cc8593

rq turtle/ttl

A Wikifajokban lapokkal rendelkezőkre szűrve biztosan eltüntetjük az összes hamis pozitívot, igaz, gyakorlatilag az összes találatot is:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?gender ?genderLabel
WHERE {
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P27 wd:Q28 .
  MINUS { ?item wdt:P21 wd:Q6581097 } .
  OPTIONAL { ?item wdt:P21 ?gender } .
  FILTER NOT EXISTS { [] schema:about ?item; schema:isPartOf <https://hu.wikipedia.org/> } .
  FILTER EXISTS { [] schema:about ?item; schema:isPartOf <https://species.wikimedia.org/> } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu,en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?gender"):::projected v1("?item"):::projected a2((" ")) a1((" ")) c10(["wd:Q6581097"]):::iri c14(["#91;AUTO_LANGUAGE#93;,hu,en"]):::literal c3([https://species.wikimedia.org/]):::iri c8(["wd:Q28"]):::iri c4([https://hu.wikipedia.org/]):::iri c12(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri f0[[" "]] subgraph f0e0["Exists Clause"] e0a1 --"schema:about"--> e0v1 e0a1 --"schema:isPartOf"--> e0c3 e0v1("?item"):::projected e0a1((" ")):::projected e0c3([https://species.wikimedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> a1 f0 --> c1 f0 --> v1 f0 --> c2 f0 --> c3 a1 --"schema:about"--> v1 a1 --"schema:isPartOf"--> c3 f1[["not "]] subgraph f1e1["Exists Clause"] e1a1 --"schema:about"--> e1v1 e1a1 --"schema:isPartOf"--> e1c3 e1v1("?item"):::projected e1a1((" ")):::projected e1c3([https://hu.wikipedia.org/]):::iri end f1--EXISTS--> f1e1 f1 --> a2 f1 --> c1 f1 --> v1 f1 --> c2 f1 --> c4 a2 --"schema:about"--> v1 a2 --"schema:isPartOf"--> c4 v1 --"wdt:P31"--> c6 v1 --"wdt:P27"--> c8 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P21"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end