query-63d827f6d24990940076fa85e5a52ffa
TODO
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 ?item ?itemLabel ?statement ?autre_statement (year(?when) as ?year) ?winnerLabel ?score ?ref_url ?retrieved
WHERE
{
?item ?ppp ?statement .
?statement prov:wasDerivedFrom ?autre_statement. #d'après la source ...
?autre_statement pr:P248 wd:Q100443909 .
OPTIONAL {?autre_statement pr:P854 ?ref_url .} #à l'URL ...
OPTIONAL {?autre_statement pr:P813 ?retrieved.} #à la date ...
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?autre_statement"):::projected
v2("?item"):::projected
v3("?ppp")
v6("?ref_url"):::projected
v7("?retrieved"):::projected
v4("?statement"):::projected
v8("?year")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q100443909"]):::iri
v2 -->v3--> v4
v4 --"prov:wasDerivedFrom"--> v5
v5 --"pr:P248"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."pr:P854".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."pr:P813".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind0[/"year-from-dateTime(?when)"/]
null --o bind0
bind0 --as--o v8