query-cfaaa3f0ca0e5b1aba2c4ec7cf5041be

rq turtle/ttl

Carregar referĂȘnciaa

SELECT ?itemLabel ?item ?rank WHERE { ?item wdt:P166 ?rank . { ?rank wdt:P361 wd:Q93932 . } UNION { ?rank wdt:P361 wd:Q11696769 . } UNION { ?rank wdt:P361 wd:Q23657078 . } UNION { ?rank wdt:P361 wd:Q1515829 . } UNION { ?rank wdt:P361 wd:Q2083850 . } UNION { ?rank wdt:P361 wd:Q743230 . } UNION { ?rank wdt:P361 wd:Q93488 . } UNION { ?rank wdt:P361 wd:Q639335 . } UNION { ?rank wdt:P361 wd:Q495686 . }

MINUS { ?item wdt:P17 wd:Q45 . } MINUS { ?item wdt:P31 wd:Q5 . }

 SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],pt,en". }

}

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#>
#Carregar referĂȘnciaa

SELECT  ?itemLabel ?item ?rank
WHERE  {
  ?item  wdt:P166 ?rank  .
{ ?rank  wdt:P361  wd:Q93932  .  }  UNION
{ ?rank  wdt:P361  wd:Q11696769  .  }  UNION
{ ?rank  wdt:P361  wd:Q23657078  .  }  UNION
{ ?rank  wdt:P361  wd:Q1515829  .  }  UNION
{ ?rank  wdt:P361  wd:Q2083850  .  }  UNION
{ ?rank  wdt:P361  wd:Q743230  .  }  UNION
{ ?rank  wdt:P361  wd:Q93488  .  }  UNION
{ ?rank  wdt:P361  wd:Q639335  .  }  UNION
{ ?rank  wdt:P361  wd:Q495686  .  } 

 MINUS {    ?item  wdt:P17  wd:Q45 .  } 
 MINUS {   ?item  wdt:P31   wd:Q5  .  }

     SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],pt,en". }
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?rank"):::projected c5(["wd:Q23657078"]):::iri c8(["wd:Q743230"]):::iri c10(["wd:Q639335"]):::iri c11(["wd:Q495686"]):::iri c9(["wd:Q93488"]):::iri c19(["#91;AUTO_LANGUAGE#93;,pt,en"]):::literal c7(["wd:Q2083850"]):::iri c13(["wd:Q45"]):::iri c6(["wd:Q1515829"]):::iri c17(["bd:serviceParam"]):::iri c15(["wd:Q5"]):::iri c4(["wd:Q11696769"]):::iri c3(["wd:Q93932"]):::iri v1 --"wdt:P166"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; subgraph union5[" Union "] subgraph union5l[" "] style union5l fill:#abf,stroke-dasharray: 3 3; subgraph union6[" Union "] subgraph union6l[" "] style union6l fill:#abf,stroke-dasharray: 3 3; subgraph union7[" Union "] subgraph union7l[" "] style union7l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c11 end subgraph union7r[" "] style union7r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c10 end union7r <== or ==> union7l end end subgraph union6r[" "] style union6r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c9 end union6r <== or ==> union6l end end subgraph union5r[" "] style union5r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c8 end union5r <== or ==> union5l end end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c7 end union4r <== or ==> union4l end end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c6 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c5 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> c3 end union0r <== or ==> union0l end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P17"--> c13 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> c15 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c17 --"wikibase:language"--> c19 end