query-c6d0f5b4451b2258dcde2dd268aedeac
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
SELECT DISTINCT ?narrativeLabel ?charactersLabel ?roleLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?narrative p:P674 ?characterStatement.
?characterStatement ps:P674 ?characters; pq:P3831 ?role.
}
ORDER BY ?narrativeLabel ?charactersLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?characterStatement")
v5("?characters")
v2("?charactersLabel"):::projected
v3("?narrative")
v1("?narrativeLabel"):::projected
v6("?role")
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v3 --"p:P674"--> v4
v4 --"p:statement/P674"--> v5
v4 --"p:qualifier/P3831"--> v6