query-a1b73641d44e200bfe12f7f9ce6f6ef0
Articles that have volume set as a qualifier of the published in statement SELECT DISTINCT ?article ?articleLabel ?publishedinLabel ?volume WHERE {
?work p:P1433 ?publishedin . # check for an "published in" (P1433) statement hint:Prior hint:runFirst true. # ?publishedin ps:P1433 ?publication . # get value of the "published in" statement, i.e. the publication ?publishedin pq:P478 ?volume . # get qualifier "volume" (P478) ?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
- https://query.wikidata.org/sparql
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 {
?work p:P1433 ?publishedin . # check for an "published in" (P1433) statement
# ?publishedin ps:P1433 ?publication . # get value of the "published in" statement, i.e. the publication
?publishedin pq:P478 ?volume . # get qualifier "volume" (P478)
?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;
v4("?article"):::projected
v2("?publishedin")
v3("?volume"):::projected
v1("?work")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q191067"]):::iri
v1 --"p:P1433"--> v2
v2 --"p:qualifier/P478"--> v3
v4 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end