query-e8993ba7671582fd5e0bf465c5df5ac4
RedirectsI have a list of 250 Item ID which I suspect ob being redirects. What would be the easiest way to check if they are and to what page they are redirecting. For example for no label (Q817614) I would like to get Benjamin Marshall (Q15123417). --Jarekt (A) (talk) 11:57, 6 April 2018 (UTC) Tracking redirects 11:57, 6 April 2018 (UTC)) talk (Jarekt. --(Q15123417)Benjamin Marshall I would like to get (Q817614)Benjamin Marshall I have a list of 250 Item ID which I suspect ob being redirects. What would be the easiest way to check if they are and to what page they are redirecting. For example for
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?source ?target WHERE {
VALUES ?source { wd:Q817614 }
?source owl:sameAs ?target .
}
Query found at
- https://www.wikidata.org/wiki/User:Jarekt/queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2018/04
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?source"):::projected
v2("?target"):::projected
bind0[/VALUES ?source/]
bind0-->v1
bind00(["wd:Q817614"])
bind00 --> bind0
v1 --"owl:sameAs"--> v2