[Developers] Getting back an article !!
Christopher R. Maden
crism at metaweb.com
Sat Nov 1 00:16:22 UTC 2008
Tejas Lagvankar wrote:
> So, I interpret that 'article' is a "property" of the object named by
> title here (TestObject3 in my case). Assuming this, if I query back for
> the article, it gives me 'null' :
>
> QUERY:
> {
> "article" : [],
> "name" : "TestObject3",
> "type" : "/common/topic"
> }
> RESPONSE:
> {
> "article" : [
> null
> ],
> "name" : "TestObject3",
> "type" : "/common/topic"
> }
>
> while I can view the article when i see through browser !! So either my
> understanding is wrong OR there seems to be some problem (which is
> highly unlikely) !!
> Anyways, can anyone point me to some link/document where the various
> elements and their relationships are clearly mentioned !! (By
> relationship I mean to understand like which elements contains which
> one, which can be a property of other.. and so on... )... I'm already
> very confused about all this !!
The article is named “null” — that is, it has no name. When you don’t
ask for specific information about an object, usually you will get its name.
Try instead:
{
"article" : [
{
"id" : null
}
],
"name" : "TestObject3",
"type" : "/common/topic"
}
~Chris
--
Christopher R. Maden
Data Architect
Freebase.com: <URL: http://www.freebase.com/ >
Metaweb Technologes, Inc. <URL: http://www.metaweb.com/ >
More information about the Developers
mailing list