[Developers] Descriptions
Christopher R. Maden
crism at metaweb.com
Mon Sep 10 05:15:14 UTC 2007
Kirrily Robert <skud at infotrope.net> wrote:
> How does one access the description of an object via MQL?
Hey, Kirrily,
The description is attached via the article property:
{
"query":{
"/common/topic/article":[{}],
"name":"Influence Walker",
"type":"/freebase/metaweb_application"
}
}
> {
> "query":{
> "*":null,
> "name":"Influence Walker",
> "type":"/freebase/metaweb_application"
> }
> }
When you specify the type in a query, the "*" wildcard only picks up properties of /type/object and the specified type; since the article is a property of /common/topic, it doesn’t show up there.
You won’t actually see the text of the description in that query response, since articles are accessed via the document service, but the query response points to the relevant document.
~Chris
--
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >
More information about the Developers
mailing list