query-2fc803e92c8693fcacf4e6039fa360ef

rq turtle/ttl

12:47, 10 February 2018 (UTC) pagetalk / TomT0m author so either there is a bug with the label service if you require labels for properties, or there is a big performance issue at the moment. 08:35, 12 February 2018 (UTC)) talk (Lea Lacroix (WMDE): Do you know anything about this? Smalyshev (WMF)@I would recommend using a subquery here: 17:12, 12 February 2018 (UTC) Jura--- Isn't this the same as usual? SPARQL (vers. 2)Elenco ministri e presidenti del consiglio Elenco ministri e presidenti del consiglio User:ValterVB/SPARQLTo check TV series: Find category item with label different than sitelink A beginner-friendly course for SPARQL )Optimization for labels LinkSubquery to try to avoid time out fot service label ( useful to have a description in a specific language?item schema:description ?descriptionEn FILTER (LANG (?descriptionEn) = "en") .

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select distinct ?prop ?propLabel {
  { SELECT DISTINCT ?prop {
   ?item (p:P1766|p:P41|p:P4004) [?qual []] .
   ?prop wikibase:qualifier ?qual .
  } LIMIT 1 }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item") v3("?prop"):::projected v1("?qual") a2((" ")) a1((" ")) c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal a1 -->v1--> a2 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; v2 --"p:P4004"--> a1 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P41"--> a1 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P1766"--> a1 end union0r <== or ==> union0l end v3 --"wikibase:qualifier"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end