query-37aade8edd3ea14f63b72f4f0138265f

rq turtle/ttl

Articles that have volume set as a qualifier of the published in statement SELECT DISTINCT ?article ?articleLabel ?publishedinLabel ?volume WITH { SELECT ?article WHERE { ?article p:P1433/pq:P478 ?volume . } } as %i WHERE { INCLUDE %i ?article p:P1433 ?statement . ?statement ps:P1433 ?publishedin . ?statement pq:P478 ?volume . ?article wdt:P31/wdt:P279* wd:Q191067 . # instance or subclass of article hint:Prior hint:gearing "forward". SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],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 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#>
# Articles that have volume set as a qualifier of the published in statement
SELECT DISTINCT ?article ?articleLabel ?publishedinLabel ?volume WHERE
{
   { 
  SELECT ?article WHERE {
  ?article p:P1433/pq:P478 ?volume .
} }  ?article p:P1433 ?statement .
  ?statement ps:P1433 ?publishedin .
  ?statement pq:P478 ?volume .
  ?article wdt:P31/wdt:P279* wd:Q191067 .  # instance or subclass of article

  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; v1("?article"):::projected v4("?publishedin") v3("?statement") v2("?volume"):::projected a1((" ")) a2((" ")) c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q191067"]):::iri v1 --"p:P1433"--> a1 a1 --"p:qualifier/P478"--> v2 v1 --"p:P1433"--> v3 v3 --"p:statement/P1433"--> v4 v3 --"p:qualifier/P478"--> v2 v1 --"p:direct/P31"--> a2 a2 --"p:direct/P279"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end