query-19f645ad42be21d5667024d4c2f6723d
List pairs of creative works / bookseries linked by the property P179 (series) SELECT ?item ?itemLabel ?bookseries ?bookseriesLabel WHERE { ?bookseries wdt:P31/wdt:P279 wd:Q277759. ?item wdt:P179 ?bookseries. ?item wdt:P31/wdt:P279 wd:Q17537576.
SERVICE wikibase:label { bd:serviceParam wikibase: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#>
# List pairs of creative works / bookseries linked by the property P179 (series)
SELECT ?item ?itemLabel ?bookseries ?bookseriesLabel
WHERE
{
?bookseries wdt:P31/wdt:P279* wd:Q277759.
?item wdt:P179 ?bookseries.
?item wdt:P31/wdt:P279* wd:Q17537576.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD-Atelier_2018
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD_Intro_Swiss_National_Library_2018
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?bookseries"):::projected
v2("?item"):::projected
a1((" "))
a2((" "))
c3(["wd:Q277759"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c5(["wd:Q17537576"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P179"--> v1
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end