Put Freebase-Suggest on your own website

The code for Freebase-Suggest was recently released as an open-source jQuery plugin on Google Code.

Freebase Suggest demo
Freebase Suggest demo

So as a website developer, you can now add auto-complete with preview to any text input box on your own web page. This gets really exciting when you consider that:

  • You can now do text auto-complete based on the millions of topics already in Freebase. Your users will no longer misspell names like “Knattspyrnufélag Akureyrar” when asked to enter their favorite Icelandic sports club.
  • You can narrow searches by type. For example showing only the UK Politicians or music artists on Freebase
  • The topic summaries show a preview of each item in the menu to help the user decide which item to choose.
  • The jQuery plugin can return Freebase Topic IDs, so you can distinguish between the text strings “Kennedy High School” and “Kennedy High School“.

If you’re a website developer, then check out the Live Demos and let us know what you think.

3 Responses to “Put Freebase-Suggest on your own website”

  1. Hjalmar Gislason Says:

    Kudos for the Iceland joke :)

  2. Akku Says:

    Question: Which event do I need to create when I loaded a string into the input via javascript and want the list to pop up without user interference?

  3. dae Says:

    Try this:

    var input = $(”input:first”).val(”Bob Dylan”).focus();
    function timeout() {
    input.trigger(”keyup”);
    };
    window.setTimeout(timeout, 200);

About

Freebase is a free database of the world's information. This is the official Freebase blog.