query-701b4fd4d2485723704bad3815731bdc

rq turtle/ttl

convert labels minuscula

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?langlabelLabel ?langlabel2Label   ?langlabel3Label ?itemDescription WHERE {

  { ?item wdt:P279/wdt:P279? wd:Q811979   . }  #sub classes
 UNION
  { ?item wdt:P31/wdt:P279? wd:Q811979    . }   #items

   MINUS { ?item wdt:P31  wd:Q4167410 . }   #disambig
   MINUS { ?item wdt:P31  wd:Q4167836 . }   #category
   MINUS { ?item wdt:P31  wd:Q13406463 . }  #list article
   MINUS { ?item wdt:P17 [].  }             #sem pais

   ?item rdfs:label ?langlabel.
   FILTER((LANG(?langlabel)) = "en")   #tem label em ingles

  ?item rdfs:label ?langlabel2.
  FILTER((LANG(?langlabel2)) = "pt")   #tem label em Portugues

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

}
LIMIT 5000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v2("?langlabel") v1("?langlabel2") a3((" ")) a1((" ")) a2((" ")) c6(["wd:Q4167410"]):::iri c4(["wd:Q811979"]):::iri c14(["en,pt"]):::literal c8(["wd:Q13406463"]):::iri c12(["bd:serviceParam"]):::iri c7(["wd:Q4167836"]):::iri f0[["?langlabel2 = 'pt'"]] f0 --> v1 f1[["?langlabel = 'en'"]] f1 --> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> a2 subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P279"--> c4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P279"--> a1 subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P279"--> c4 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; end union2r <== or ==> union2l end end union0r <== or ==> union0l end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> c6 end subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> c7 end subgraph minus4["MINUS"] style minus4 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> c8 end subgraph minus5["MINUS"] style minus5 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P17"--> a3 end v3 --"rdfs:label"--> v2 v3 --"rdfs:label"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end