Giter Club home page Giter Club logo

freebase-suggest's Introduction

--------------------------------
Freebase input controls

suggest:
	for autocompleting on a Freebase topic

select:
	for an enumeration of Freebase topics of a certain type
	
	
http://www.freebase.com
--------------------------------

What you need to build:
 - access to common UNIX commands (like 'make', 'mkdir', 'rm', 'cat', and 'echo')

How to build:

In the main directory of the distribution (the one that this file is in), type
the following to make all versions of Freebase input controls.
  make

make
  Contains all Freebase input controls like suggest and select
  Makes: ./dist/freebase.controls.js

make suggest
  Freebsae suggest control (autocomplete on a Freebase topic)
  Makes: ./dist/freebase.suggest.js

make select
  Freebsae select control (enumeration of Freebase topics of a certain type)
  Makes: ./dist/freebase.select.js

Finally, you can remove all the built files using the command:
  make clean

If you have any questions, please feel free to ask them on the Freebase dev
mailing list, which can be found here:
	http://lists.freebase.com/mailman/listinfo/developers

freebase-suggest's People

Watchers

 avatar

freebase-suggest's Issues

Better support for 'soft' suggest

In 'soft' mode

* There's no notification when the user enters free-text. How about 
triggering 'fb-select' with data=null ?

(I need notification so I can wipe any previously selected Freebase topic)

* And if you type a string that's not in freebase you still get the message:
"No suggested matches. Tips on getting better suggestions [snip]"

Since the developer is allowing free-text, perhaps the default message 
should just be "No suggested matches. Press enter to use this text".



Original issue reported on code.google.com by will.moffat on 2 Dec 2009 at 8:06

Use CORS instead of JSONP

To avoid using JSONP, it would be good to have an "Access-Control-Allow-Origin: 
*" header on the response, and for the script to load the JSON response data 
directly.

Original issue reported on code.google.com by [email protected] on 29 Jul 2013 at 7:45

Setup a Google Group for notifications

Please setup a Google Group that will notify all members of svn checkins or
issues (bugs).

Original issue reported on code.google.com by will.moffat on 26 Feb 2008 at 11:02

Add hooks for customising the way results are ordered and displayed

I want to use Freebase Suggest as a topic picker for my own site. As part of 
this, I want to alter 
its behaviour slightly - when showing a list of results, I would like to move 
items that have 
previously been used on my site to the top of the suggestions list and visually 
highlight them 
(with an asterisk).

My ideal way of doing this would be to include a JavaScript array of items that 
have already been 
used on my site (which will normally be somewhere between 1 and 100 items long) 
on the page, 
and then customise Freebase Suggest, intercepting the incoming list of 
suggestions and 
bumping any that match my hard-coded list of IDs up to the top.

To do this, I need customisation hooks that allow me to:

1. Intercept the results returned by freebase before they are rendered by the 
widget
2. Modify the DOM elements used by Freebase Suggest to populate the suggestion 
list, as they 
are being created.

These hooks would be useful for much more than just my example here.

Original issue reported on code.google.com by simon%[email protected] on 15 Aug 2009 at 10:02

Looks like the minitopic example does not work with internet explorer 7

What steps will reproduce the problem?
1. they the example "Shows a MiniTopic (infobox type summary) for the
selected item" in internet explorer 7
2.
3.

What is the expected output? What do you see instead?
the mini topic should show up like in firefox

Which web-browsers exhibit the problem?
only internet explorer 7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 30 Nov 2008 at 2:37

li[o] has no properties

There seems to be an issue with the fbs.create_list_item function.
It throws a li[o] has no properties error and is due to the following line:
li[0].fb_data = data;

If I may suggest:
Replace:
var frag = document.createDocumentFragment();
$(frag).append('<li class="fbs-li"></li>');
var li = $("> li", frag);

With:
var li = $('<li class="fbs-li"></li>');

shorter, achieves the same & works.

David Decraene
http://ontologyonline.org


Original issue reported on code.google.com by [email protected] on 5 Jan 2008 at 8:37

link to API on project home is broken

What steps will reproduce the problem?
1. click on the link for 'open api'
2. receive page not found error

What is the expected output? What do you see instead?
1. page should be displayed
2. perhaps you should link here instead:
http://www.freebase.com/view/freebase/api

What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 16 Oct 2007 at 8:51

Sorry

Guys,

Apologies, but I came across freebase today, and having looked at some 
examples, I cant seem to find what to use when i want to look at NHS 
Prescription services (ie: what chemists are available in certain areas)
I am talking about the ID to use in coding

Can someone point me in the right direction?

Apologies once again for hijacking this group, cant seem to find a forum to 
discuss freebase with other people/.

Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 7:52

Unbind suggest feature method in API

I didn't find a method in the API documentation to unbind the suggest feature 
already applied to an input text.

The only way I found is that given an html input with id "suggest" that has the 
suggest feature applied to, to call :
$("#suggest")
                .unbind(".suggest")
                .unbind("fb-select")
                .removeData("suggest");

could there be a method in the API to do something similar? 

Thanks and very nice plugin ! 

Original issue reported on code.google.com by [email protected] on 4 Aug 2012 at 7:02

Add i18n support

a good thing would be to be able to choose the language of the
suggestion. It would use all /lang/ of the topic.

Original issue reported on code.google.com by [email protected] on 9 Jun 2009 at 8:49

Clarify source control, hosting, bug reporting, email lists, etc

The home page of the Google code project (ie this project) implies that the
project has moved, but the new "home" has no source control, no bug
reporting system, and this site (Google Code) appears to still be (semi-)live.

Can someone clarify the real location of the source control, bug reporting,
project web page, etc and update the old resources to point to the correct
place?

I actually think Google Code has a pretty good set of features for project
hosting, but if you're moving somewhere else, let's move everything (or be
clear about what's staying here)


Original issue reported on code.google.com by tfmorris on 2 Sep 2009 at 10:57

Incompatibility with jQuery 1.9

What steps will reproduce the problem?

Combine Freebase Suggest 4.1 with jQuery 1.9.0:

<html>
<form><input id="myinput"></form>
<script 
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.js"></script>
<script src="https://www.gstatic.com/freebase/suggest/4_1/suggest.js"></script>
<script>$(function() { $("#myinput").suggest({filter:'(all 
type:/film/director)'}); });</script>
</html>

What do you see?

"Uncaught TypeError: Cannot read property 'msie' of undefined"
at line 245: ".bind($.browser.msie ? "paste.suggest" : "input.suggest", 
function(e) {"

Original issue reported on code.google.com by [email protected] on 19 Jan 2013 at 8:40

Would be nice to be able to filter the data before it is sent to the API

Hi, there doesn't seem to be an easy way to intercept the form input before
it is sent to the public API. It would be great if I could, for example,
return false from the "fb-textchange" event handler in order to prevent the
autocompletion event from occurring. For example, if the form input is a
URL or URN I probably don't want to submit it to FreeBase since I'm
virtually guaranteed an empty result set.

I'd prefer not to "destroy" the instance since that would also require
unbinding multiple event handlers, and then recreating the instance and
rebinding them when the field changes again.

Thanks

Original issue reported on code.google.com by [email protected] on 18 Mar 2010 at 11:20

music/album/track property hosed?

Looks like all sample queries from the MQL main online docs that involves the 
music track property fail. Is this a known issue? 

Example: 

http://www.freebase.com/queryeditor?q={%22type%22:%22/music/artist%22,%22name%22
:%22The%20Police%22,%22album%22:{%22name%22:%22Synchronicity%22,%22track%22:[]}}

Query (from the sample code in the documentation):
{
  "type" : "/music/artist",
  "name" : "The Police",
  "album" : {
    "name" : "Synchronicity",
    "track" : []
  }
}
โ€‹
Response:

code: "/api/status/error"
messages: [
0: {
code: "/api/status/error/mql/type"
info: {
expected_type: "/music/album"
property: "track"
message: "Type /music/album does not have property track"
path: "album"
query: {
album: {
error_inside: "."
name: "Synchronicity"
track: []
name: "The Police"
type: "/music/artist"xp
status: "200 OK"
transaction_id: "cache;cache03.p01.sjc1:8101;2011-02-12T16:21:58Z;0022"

Original issue reported on code.google.com by [email protected] on 12 Feb 2011 at 4:28

Allow relevance filters for ordering results

Not a bug but a enhancement request.
From the point of view in the health care industry or any other vertical the 
suggest component 
would be more useful if filters where allowed to return results ordered by 
relevance.
For example we ant no type constrains but would like to get health care related 
topics first as 
suggestion instead of more generic terms.

For example, when I type 'card' in as a topic suggestion, I'd think cardiology 
would come up. 
Instead I get things like magic card, secure digital card, yellowcard, and 
orson scott card on the 
first page. 'Cardi' brings up 'cardigan welsh corgi'. And 'Cardio' brings up 
running & cycling.

I would like to hint the suggest box that certains types are more relevant to 
me and have those 
be on top of the list.

In any case still provide other topics as suggestions after the relevant ones 
first.

Original issue reported on code.google.com by [email protected] on 15 Apr 2010 at 10:34

suggest will not load in xhtml documents

What steps will reproduce the problem?
1. Add suggest to a document served as application/xhtml+xml

What is the expected output? What do you see instead?

Loading fails with the error INVALID_STATE_ERR: DOM Exception 11

Which web-browsers exhibit the problem?

Chrome

Please provide any additional information below.

The use of unterminated empty tags (<div> instead of <div/>) is the problem.

Original issue reported on code.google.com by wholcomb on 23 Jan 2011 at 4:52

Attachments:

Freebase uri's with suffixes are not recognised.

What steps will reproduce the problem?
1. Paste a Freebase uri with a suffix into autosuggest
2. Nothing is found

What is the expected output? What do you see instead?
I'd expect the uri http://www.freebase.com/view/en/africa/-/location
to work the same in freebase-suggest as pasting in 
http://www.freebase.com/view/en/africa


Original issue reported on code.google.com by iainsproat on 26 Jul 2010 at 1:59

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.