How does one query for the aliases and descriptions on topics?
What's the connection between names (ie values of the name property) and Wikipedia topics?
Why is there a distinction between names and aliases?
How does one query for the aliases and descriptions on topics?
What's the connection between names (ie values of the name property) and Wikipedia topics?
Why is there a distinction between names and aliases?
The type /common/topic has the properties alias and article that you can query for. To fetch the description, you will need also query CDB for the content.
Unless an user has modified the display name, the FB topics that were loaded from WP should have identical names. However, I would not rely on being able to reconcile the WP topic name vs. the FB topic name. A much easier method is to query against a topic for WP keys.
An alias is not the same as a name - it can be an assumed or common name or an AKA that is not the official name of a topic. Take a look at San Francisco, for example.
Thanks.
Would you mind showing me how to get the aliases and descriptions for San Francisco ... for example, how would I modify this query?
{ "id" : "/guid/9202a8c04000641f8000000000061a55", "name" : [], "type" : "/location/citytown"}
to add alias and article info?
(Sorry, really didn't need that type pair).
{ "id" : "/guid/9202a8c04000641f8000000000061a55", "name" : []}
The alias and article are properties of the type /common/topic, and you will want to write your query as such:
{
"alias" : [],
"article" : {
"id" : null
},
"id" : "/guid/9202a8c04000641f8000000000061a55",
"type" : "/common/topic"
}
As mentioned in my previous post, to retrieve the description content, you will need to also query CDB for that.