Help Center
»
Developing Applications
»
The MQL Cookbook
»
Retrieve the Wikipedia URL for an object with a GUID
Wikipedia URLs are created automatically by substituting the /wikipedia/en_id key of the topic into the following URL:
http://en.wikipedia.org/wiki/index.html?curid=8980330
where 8980330 is the /wikipedia/en_id key.
You can retrieve the /wikipedia/en_id (aka the "wpid") from Freebase using any variant of the following MQL:
[
{
"id" : "/en/barack_obama",
"key" : {
"namespace" : "/wikipedia/en_id",
"value" : null
}
}
]
See also the related topic on how to retrieve Wikipedia article text.
Search Help Center
Discussions
There are no conversations on this topic. Would you like to start one?
Start the Discussion »- Building Bases
- Creating Schemas
-
Developing Applications
- An Introduction to Freebase Application Development
- Playing in the Sandbox
- Freebase Programming Libraries and Tools
- Data Dump FAQ
- Using the Query Editor
- The Complete Metaweb Query Language (MQL) Reference Guide
- MQL Cheatsheet
-
The MQL Cookbook
- Get data as of a specific time
- Read properties of a type
- values vs name/id
- Incoming links
- Any topics with a specific date
- Wikipedia article text
- Retrieve the Wikipedia URL for an object with a GUID
- Find distinct co-types
- Creating relationships with the connect directive
- Mark for deletion
- Sort by index and timestamp
- Traversing Through Non-Reversed Properties
- Combine queries
- Perform transitive queries
- Freebase API Reference
- Application Developer Tips
- The Acre Hosted Development Environment
- Introduction to the Metaweb Javascript Template Language (MJT)
- Freebase Community