query-bde6810617aa99e632f9c3c72ff72e56
TODO
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#>
SELECT ?song ?songLabel ?main_subject ?main_subjectLabel ?family ?familyLabel {
BIND(wd:Q200989 AS ?family)
?song wdt:P31/wdt:P279* wd:Q7366 . # also subclasses of song included
?song wdt:P921 ?main_subject .
?main_subject wdt:P171* ?family .
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("?family"):::projected
v3("?main_subject"):::projected
v2("?song"):::projected
a1((" "))
c3(["wd:Q7366"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/"'wd:Q200989'"/]
bind0 --as--o v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P921"--> v3
v3 --"wdt:P171"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end