spencermountain / Freebase.js

inference and inspection on freebase data
107 stars 14 forks source link

Set a few topic filters #17

Closed freearhey closed 9 years ago

freearhey commented 9 years ago

Can you help? How set a few topic filters in options?

spencermountain commented 9 years ago

hey Aleksandr, happy to help but I need a more detailed question. Freebase is closing its API in 6 months.

freearhey commented 9 years ago

Hi, I mean - is it possible to add the filter list to request for receive only certain properties. For example: freebase.topic('tom cruise', {filter: "/common/topic/description", filter: "/people/person/gender"}, function(data) {...});

About the closing Freebase API I had not know, thanks for the info. Fortunately they say it will be replaced on API Wikidata.

spencermountain commented 9 years ago

hey, use the search api instead of the topic api

freebase.search("tom cruise", {output:"(/people/person/gender description)"}, function(data){
  console.log(JSON.stringify(data, null, 2));
})

cheers https://developers.google.com/freebase/v1/search-overview