query-1a079c3dc741980199166fb5f6117167
Volumes of a periodical with a publication date set SELECT ?item ?itemLabel ?pubdate ?parentLabel WHERE { ?item (wdt:P31/wdt:P279) wd:Q1238720 . # item is a volume of some sort ?item wdt:P577 ?pubdate . # item has a publication date ?item wdt:P179 ?parent . ?parent (wdt:P31/wdt:P279) wd:Q1002697 . # parent is a periodical 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 bd: <http://www.bigdata.com/rdf#>
# Volumes of a periodical with a publication date set
SELECT ?item ?itemLabel ?pubdate ?parentLabel
WHERE
{
?item (wdt:P31/wdt:P279*) wd:Q1238720 . # item is a volume of some sort
?item wdt:P577 ?pubdate . # item has a publication date
?item wdt:P179 ?parent .
?parent (wdt:P31/wdt:P279*) wd:Q1002697 . # parent is a periodical
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("?item"):::projected
v3("?parent")
v2("?pubdate"):::projected
a1((" "))
a2((" "))
c6(["wd:Q1002697"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q1238720"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P577"--> v2
v1 --"wdt:P179"--> v3
v3 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end