[Developers] how to add 'articles'
Christopher R. Maden
crism at metaweb.com
Wed Oct 22 15:29:41 UTC 2008
Edward Kawas <edward.kawas at gmail.com> wrote:
> I am wondering how I should go about adding articles to some topics that I
> have created using mql. I know that I need to use the upload service. And
> when I use the upload service, I send it my 'file' and it will return an
> guid/id. My question is how do I associate this id with an article?
Explore view, explore view, explore view! (There ought to be a FAQL for this list...)
If you don’t see the blue developers tool bar at the bottom of a Freebase page, hit F8. Then, for some topic that *has* an article, click on “Explore” in that toolbar.
If, for some reason, F8 doesn’t work for you, you can change /view/ in any URL to /tools/explore/, for example
http://www.freebase.com/view/en/publicly_listed_company
becomes
http://www.freebase.com/tools/explore/en/publicly_listed_company
There, you can see, in the outgoing links, that it has a /common/topic/article property with value /guid/9202a8c04000641f800000000074a993.
If you wanted to add an article to that topic, then, the write query would be:
{
"id" : "/en/publicly_listed_company",
"/common/topic/article" : {
"id" : "/guid/12345",
"connect" : "insert"
}
}
~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