freebase

Import Freebase to Triplestore

梦想的初衷 提交于 2019-12-03 03:10:41
I'm currently planning a big project containing big data. I already used the search and all results tell me that it's not possible to import Freebase into any triplestore without usage of 3rd Party Tools like BaseKB or Freebase to RDF As I can see, the dump is already available as RDF, so where is the problem if I want to import the dump into my 4store triplestore and access the data via SPARQL? For everybody having Problems importing the Freebase Dump: 1) Keep your RDF/Turtle Parser updated. (Latest Version of raptor 2 can recognize the '.', e.g. at ns:common.topic.notable_for.example 2) The

Google Freebase API How To Get URL Of Image?

懵懂的女人 提交于 2019-12-02 19:36:40
So, I am trying to figure out how to get URL to an image in Freebase database. I want an image of San Francisco. This is how I get the San Francisco topic: https://www.googleapis.com/freebase/v1sandbox/topic/%2Fen%2Fsan_francisco?key=MY_API_KEY The response contains images, for example: { text: "San Francisco Skyline", lang: "en", id: "/m/04j74yh", creator: "/user/carmenmfenn1", timestamp: "2008-09-01T13:37:22.000Z" } So I then call the GET API again to get the image: https://www.googleapis.com/freebase/v1sandbox/topic/%2Fm%2F04j74yh?key=MY_API_KEY This returns lots of information about the

How to store data like Freebase does?

若如初见. 提交于 2019-12-02 17:21:21
I admit that this is basically a duplicate question of Use freebase data on local server? but I need more detailed answers than have already been given there I've fallen absolutely in love with Freebase. What I want now is to essentially create a very simple Freebase clone for storing content that may not belong on Freebase itself but can be described using the Freebase schema. Essentially what I want is a simple and elegant way to store data like Freebase itself does and be able to easily use that data in a Python (CherryPy) web application. Chapter 2 of the MQL reference guide states: The

freebase api error on deployment to appengine: DownloadError: ApplicationError: 2

末鹿安然 提交于 2019-12-02 11:14:55
I'm using google.appengine.api urlfetch to preform the following freebase MQL query: https://api.freebase.com/api/service/mqlread?queries={"q1": {"query": [{"subjects": [{"name|=": ["doubt","trust"]}], "type": "/media_common/quotation", "name": null, "author": []}]}} This works as expected on my local setup. Once I deploy to Google AppEngine I get the following error: File "/base/python_runtime/python_lib/versions/1/google/appengine/api/urlfetch.py", line 263, in fetch return rpc.get_result() File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 604,

Google Api FreeBase data dumps parsing using c#

别等时光非礼了梦想. 提交于 2019-12-02 08:07:52
I want to search the google Api freebase. I want to get general amount of data. For example all Ids of songs, or films. I downloaded the data dumps gz file. I wonder what will be the best solution of parsing the file and getting the data I need. I am using .net c#. There are a couple .NET libraries that can read the RDF format of the dumps: SemWeb.NET dotNetRdf The data dumps are also formatted as tab separated values so you should be able to use any CSV parser to parse each line as a triple. Make sure that you read through the developer docs on how the data dumps are formatted. Basically,

Can jQuery.getJSON put a domain's cookies in the header of the request it makes?

家住魔仙堡 提交于 2019-12-01 20:43:38
(Note: See also the related question Can browsers react to Set-Cookie specified in headers in an XSS jquery.getJSON() request? ) I can't seem to set a cookie (whose name is mwLastWriteTime ) in the request header of a JSON operation. The request itself is a simple one from the Freebase MQL tutorials, and it is working fine otherwise: // Invoke mqlread and call the function below when it is done. // Adding callback=? to the URL makes jQuery do JSONP instead of XHR. jQuery.getJSON("http://api.sandbox-freebase.com/api/service/mqlread?callback=?", {query: JSON.stringify(envelope)}, // URL

how to increase freebase API result limit

独自空忆成欢 提交于 2019-12-01 18:30:10
问题 I can't find anything in freebase's docs about it but it seems they limit the number of results to 100. For example: [{ "type":"/base/popstra/celebrity", "name":null }] Returns only 100 results whereas [{ "type":"/base/popstra/celebrity", return:"count" }] Says there are 6244 results. Does anyone know how to get the rest of them? I know I can limit the queries by some parameter like country and then aggregate the results but I'd prefer something less hacky. 回答1: You can use the limit property

how to increase freebase API result limit

不问归期 提交于 2019-12-01 18:17:50
I can't find anything in freebase's docs about it but it seems they limit the number of results to 100. For example: [{ "type":"/base/popstra/celebrity", "name":null }] Returns only 100 results whereas [{ "type":"/base/popstra/celebrity", return:"count" }] Says there are 6244 results. Does anyone know how to get the rest of them? I know I can limit the queries by some parameter like country and then aggregate the results but I'd prefer something less hacky. You can use the limit property to request more results. However, fetching large numbers can give you a query timeout. A more reliable way

How to get cursor from mqlread() when using Freebase API?

我的未来我决定 提交于 2019-12-01 13:42:28
I'm using the Python-Freebase module's mqlread() . Using the following query: query = [{ "cursor": True, "id": None, "type": "/games/game", "mid": None, }] That returns 100 entries, but the result does not include "cursor". If you run the query manually you get something like: { "code": "/api/status/ok", "cursor": "eNqFj8FqwzAQRD-mF4sisrtaaaWlhP6H8MHYNTUEW8hpKP36KjgU2kvnMoeZ4THjR923qhKS07wpAvR5VZbYBIL9sE76FDGAs-yCA_FISprL_nWUt5tC383L59ukh9llH_TvpL7Y7rYUdZ4CN9iRITB6vTwnAhriCAwAgXGO8Etkz48dicnvy3ptTGO6OwgsBwIfwJNeHpDWowgh_URO63-M0Z7vM0neGZNL3RrihBKFU_uZS2l3sT-9cpIBaRrnOE8JhaAhQL4B9ZFRmg==",

How to get cursor from mqlread() when using Freebase API?

十年热恋 提交于 2019-12-01 12:39:30
问题 I'm using the Python-Freebase module's mqlread(). Using the following query: query = [{ "cursor": True, "id": None, "type": "/games/game", "mid": None, }] That returns 100 entries, but the result does not include "cursor". If you run the query manually you get something like: { "code": "/api/status/ok", "cursor": "eNqFj8FqwzAQRD-mF4sisrtaaaWlhP6H8MHYNTUEW8hpKP36KjgU2kvnMoeZ4THjR923qhKS07wpAvR5VZbYBIL9sE76FDGAs-yCA_FISprL_nWUt5tC383L59ukh9llH