query-cb95fd5bcc589be91c0cd7b115cf9697

rq turtle/ttl

Search with P27:Q17 except person/characotr

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?i ?iLabel WHERE {
  ?i wdt:P27 wd:Q17.
  MINUS{?i wdt:P31 wd:Q5}
  MINUS{?i wdt:P31/wdt:P279* wd:Q14897293}
 SERVICE wikibase:label { bd:serviceParam wikibase:language "ja"}
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?i"):::projected a1((" ")) c2(["wd:Q17"]):::iri c6(["wd:Q14897293"]):::iri c8(["bd:serviceParam"]):::iri c10(["ja"]):::literal c4(["wd:Q5"]):::iri v1 --"wdt:P27"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> c4 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end