query-d8d18ffca93c45ac3992e3e21a0ff39c
Find references with quotes, list with statement value, source, etc.
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?valueLabel ?statementLabel ?quote ?url ?publishedLabel ?published
WHERE
{
?ref pr:P1683 ?quote.
OPTIONAL { ?ref pr:P1433|pr:P248 ?published. }
OPTIONAL { ?ref pr:P854 ?url. }
# ?item ?stament ?value.
?item ?property [
?prop ?value;
prov:wasDerivedFrom ?ref
].
?item wdt:P31 wd:Q5.
?item ?pro ?value.
# ?item wdt:P1142|wdt:P1387|wdt:P21 ?value.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} LIMIT 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?item"):::projected
v9("?pro")
v5("?prop")
v8("?property")
v3("?published"):::projected
v2("?quote"):::projected
v1("?ref")
v4("?url"):::projected
v6("?value")
a1((" "))
c9(["bd:serviceParam"]):::iri
c7(["wd:Q5"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"pr:P1683"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 -."pr:P248".-> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"pr:P1433"--> v3
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."pr:P854".-> v4
end
a1 -->v5--> v6
a1 --"prov:wasDerivedFrom"--> v1
v7 -->v8--> a1
v7 --"wdt:P31"--> c7
v7 -->v9--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end