query-56f708a39140e5c54281fed5c4d2aaf2
(P245)Union List of Artist Names ID (P248)stated in
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?entity ?entityLabel ?prop ?ref ?link WHERE {
?entity ?prop ?statement.
?statement prov:wasDerivedFrom ?ref.
?ref pr:P245 [].
MINUS { ?ref pr:P248 wd:Q2494649. }
BIND(URI(CONCAT(STR(?entity), "#", SUBSTR(STR(?prop), 30))) AS ?link)
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("?entity"):::projected
v5("?link"):::projected
v2("?prop"):::projected
v4("?ref"):::projected
v3("?statement")
a1((" "))
c6(["bd:serviceParam"]):::iri
c4(["wd:Q2494649"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 -->v2--> v3
v3 --"prov:wasDerivedFrom"--> v4
v4 --"pr:P245"--> a1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"pr:P248"--> c4
end
bind1[/"concat(str(?entity),'#',substring(str(?prop),'30^^xsd:integer'))"/]
v1 --o bind1
v2 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end