Freebase contains many articles mined from the Wikipedia. For example, this page about Edinburgh.
You might want to show the Wikipedia page in your own web application. Given the Freebase topic ID, in this case /en/edinburgh
This MQL query will return the Wikipedia ‘curid’
[{
"id" : "/en/edinburgh",
"key" : [{
"namespace" : "/wikipedia/en_id",
"value" : null
}]
}]
Result:
{
"code":"/api/status/ok",
"result":[{
"id":"/en/edinburgh",
"key":[{
"namespace":"/wikipedia/en_id",
"value":"9602"
}]
}]
}
The Wikipedia URL is then:
http://en.wikipedia.org/wiki/index.html?curid=9602
Update: You can find the Wikipedia article name + all the redirect names with this query but as far as I know there’s no way to distinguish between redirects and the current article name.