query-fa25ab8a8a9d264b44a22cfa246b440f

rq turtle/ttl

Scrittori di un genere con SHARE Cat ID e senza SHARE-VDE ID SELECT ?item ?itemLabel ?shareID WHERE { ?item wdt:P3987 ?shareID; wdt:P106 wd:Q36180; wdt:P136 wd:Q24925. OPTIONAL {?item wdt:P6329 ?shareVDE.} FILTER(!bound(?shareVDE)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?item

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#>
#Scrittori di un genere con SHARE Cat ID e senza SHARE-VDE ID
SELECT ?item ?itemLabel ?shareID
WHERE
{
  ?item wdt:P3987 ?shareID; 
        wdt:P106 wd:Q36180;
        wdt:P136 wd:Q24925.
  OPTIONAL {?item wdt:P6329 ?shareVDE.}
  FILTER(!bound(?shareVDE))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
ORDER BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v3("?shareID"):::projected v2("?shareVDE") c8(["bd:serviceParam"]):::iri c5(["wd:Q24925"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q36180"]):::iri f0[["not bound(?shareVDE)"]] f0 --> v2 v1 --"wdt:P3987"--> v3 v1 --"wdt:P106"--> c3 v1 --"wdt:P136"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P6329".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end