query-8110afeab0c7db281bfad0badae5411f

rq turtle/ttl

title:Voci di thesaurus SELECT ?item ?itemLabel ?id ?ind ?relLabel WHERE { ?item p:P9868 ?st . ?st ps:P9868 ?id . OPTIONAL { ?st pq:P1810 ?ind } . OPTIONAL { ?st pq:P4390 ?rel } . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Voci di thesaurus
SELECT ?item ?itemLabel ?id ?ind ?relLabel
WHERE {
  ?item p:P9868 ?st . ?st ps:P9868 ?id . 
  OPTIONAL { ?st pq:P1810 ?ind } .
  OPTIONAL { ?st pq:P4390 ?rel } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?id"):::projected v5("?ind"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v6("?rel") v3("?st") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"p:P9868"--> v3 v3 --"p:statement/P9868"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P1810".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P4390".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end