freebase

how to reverse engineer Google's entity ids

爱⌒轻易说出口 提交于 2020-03-05 06:29:49
问题 Google is using entities everywhere nowadays and they are usually prefixed with /m/ and /g/ (but I have also seen some /t/ lately) I am wondering how the numbering works. For /m/ there is a schema similar to what an url shortener would do. Define an alphabet (in case of /m/ this is 32 characters "0123456789bcdfghjklmnpqrstvwxyz_" and convert a number to a "short url" e.g. /m/0 4swd <-> 156524 ("/m/0" seems to be a kind of a prefix) I am stuck with /g/ IDs though. I created a reasonable

Jena parsing issue for freebase RDF dump (Jan 2014)

末鹿安然 提交于 2020-01-11 06:07:49
问题 I am trying to parse freebase dump file freebase-rdf-2014-01-12-00-00.gz (25 GB) using Jena. There has been many issues reported by Jena regarding bad data. Example - 150.0 not valid,true and false values not valid These issues I have resolved by adding double quotes around decimal and true/false in dump file. However issues are still being reported by Jena.(current - org.apache.jena.riot.RiotException: [line: 161083, col: 110] Illegal object: [MINUS]) Is there any way to pre process this

Jena parsing issue for freebase RDF dump (Jan 2014)

我与影子孤独终老i 提交于 2020-01-11 06:07:07
问题 I am trying to parse freebase dump file freebase-rdf-2014-01-12-00-00.gz (25 GB) using Jena. There has been many issues reported by Jena regarding bad data. Example - 150.0 not valid,true and false values not valid These issues I have resolved by adding double quotes around decimal and true/false in dump file. However issues are still being reported by Jena.(current - org.apache.jena.riot.RiotException: [line: 161083, col: 110] Illegal object: [MINUS]) Is there any way to pre process this

Retrieving multiple articles & images via the new Freebase API

爷,独闯天下 提交于 2020-01-06 03:54:11
问题 I want to get the article text & images for a bunch of topics from freebase. Using the old API this was easy, via either MQL extensions or the topic API (also now deprecated?). But what is now the best way of doing this via the new API? I see from the docs I can get the text for an individual topic, like this: https://www.googleapis.com/freebase/v1/text/en/bob_dylan So I could loop through each topic one by one, but it seems slow to have to hit the API so many times, especially when I only

Freebase API : User Rate Limit Exceeded

懵懂的女人 提交于 2020-01-04 01:56:35
问题 Had an issue with my application and I exceeded the per second user rate. This is the error I'm getting. { "error": { "errors": [ { "domain": "usageLimits", "reason": "userRateLimitExceededUnreg", "message": "User Rate Limit Exceeded. Please sign up", "extendedHelp": "https://code.google.com/apis/console" } ], "code": 403, "message": "User Rate Limit Exceeded. Please sign up" } } I have fixed my code so I no longer will exceed the limit, but still getting the error even after 4 days. I really

C# parsing of Freebase RDF dump yields only 11.5 million N-Triples instead of 1.9 billion

非 Y 不嫁゛ 提交于 2020-01-04 01:50:27
问题 I'm working on building a C# program to read the RDF data in the Google Freebase data dump. To start out, I've written a simple loop to simply read the file and get a count of the Triples. However, instead of getting the 1.9 billion count as stated in the documentation page (referred above), my program is counting only about 11.5 million and then exiting. The relevant portion of the source code is given below (takes about 30 seconds to run). What am I missing here? // Simple reading through

How to represent this statement in RDF?

左心房为你撑大大i 提交于 2020-01-03 05:56:08
问题 My iPhone 6's screen size is 6 inches and red color. Vocabulary are the following: iPhone 6 screen size 6 inches color red Questions: 1) How to link 'iPhone 6' node with the 'screen' node? 2) 'screen' has two properties: 'size' & color Possible relationships: 1) [iPhone6, screen, ?] what's the object here? 2) [screen, color, red] [screen, size, 6 inches] Is this appropriate to express as Compound Value Type in KB like Freebase? Reading the Freebase's documentation, it seems CVT is intended to

Parse JSON Freebase results in PHP

为君一笑 提交于 2020-01-01 19:27:16
问题 I'm really sorry if this is too basic, but I really don't know how to do this. I'm using this jquery Autocomplete plugin: http://devthought.com/wp-content/projects/jquery/textboxlist/Demo/ EDIT: This is the jquery code i use for the autocomplete: $(function() { var t = new $.TextboxList('#form_topick_tags', {unique: true, plugins: {autocomplete: { minLength: 2, queryRemote: true, remote: {url: 'autocomplete2.php'} }}}); The plugin uses a PHP for autocomplete, this is an example, it returns

Retrieving/storing All related Actors in Freebase

淺唱寂寞╮ 提交于 2020-01-01 19:20:38
问题 I'm trying to do something that (should be) very simple. Maybe I'm missing something. I want to get a full list of people a person has worked with. My end goal is to find who he works with most often (in whatever relationship that may be) Ex: Robert De Niro has acted together with Joe Pesci 7 times, but directed him twice. I want a table with 9 entries as a result. I can use the topic API, but that only returns a list of movies. I then have to perform 10+ API queries to get the cast of every

How can I get a list of all film ids from Freebase?

陌路散爱 提交于 2020-01-01 05:30:12
问题 On a project I was working on a couple of years back, I was building a set of data about movies from Freebase. A simple shell script downloaded the "film.tsv" file (from http://download.freebase.com/datadumps/latest/browse/film/film.tsv). I then used the "id" field in that file to build the necessary MQL requests for each of the films (retrieving the other properties I was interested in e.g. actors, genres). After looking at the developer's guide today I realise that Freebase has moved on a