query-e6852811be3deb25c49381ed80658fdb
Replacing object of statement has role (P3831) with narrative role (P5800). ]reply[16:50, 10 September 2018 (UTC)) talk (Shisma? --(P5800)narrative role -statements with (P3831)object of statement has role . Do you think we should just replace all of these the proposal discussionsince you have been engaged in
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 wdt:P674 ?characters.
?narrative p:P674 ?characterStatement.
?characterStatement pq:P3831 ?role.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?characterStatement")
v2("?characters")
v1("?narrative")
v4("?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
v1 --"p:direct/P674"--> v2
v1 --"p:P674"--> v3
v3 --"p:qualifier/P3831"--> v4