api - freebase getting plain names of types and sorting by commonality -


i'd able list of types common name freebase id

{   "id":    "/m/02mjmr", #obama   "type":[] }​ 

how can return names of types instead of ids? above returns

0: "/common/topic"xp 1: "/people/person"xp 2: "/user/robert/default_domain/presidential_candidate"xp 3: "/book/author"xp 4: "/award/award_winner"xp 5: "/book/book_subject"xp 6: "/user/robert/x2008_presidential_election/candidate"xp 7: "/government/politician"xp 8: "/organization/organization_member"xp 9: "/user/robert/default_domain/my_favorite_things"xp 

and lastly, how sort them count? or notability possibly?

ie,

president nobel prize winner author person 

etc?

possibly similar notable types api, looks it's going away?

http://wiki.freebase.com/wiki/notable_types_api

you can names , instance counts

{   "id": "/m/02mjmr",   "type": [{     "name":          null,     "id":null,     "/type/type/domain":{"key":[{"namespace":"/","limit":0}],"id":null}     "/freebase/type_profile/instance_count": null,     "sort":"/freebase/type_profile/instance_count"   }] }​ 

one definition of "notable" low frequency, invert instance count sort notability. limiting types in freebase "commons" exclude noisy user types. 1 way identify commons types /type/type/domain property values in root namespace (ie single path segment /government)

for example, lowest frequency commons types are:

 43 /government/us_president     president    /government   51 /people/appointer    appointer   /people    73 /architecture/building_occupant  building occupant   /architecture  204 /government/political_appointer  political appointer     /government 230 /book/poem_character     poem character  /book   254 /event/public_speaker    public speaker  /event 

you refine filtering further blacklisting types think not notable application. there 2134 commons types , bunch of primitive data types or things system usage, wouldn't take long go through , hand curate entire list.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -