Difference between revisions of "Talk:Improving Knowledge-Based Weakly Supervised Information Extraction"

From Cohen Courses
Jump to navigationJump to search
(Created page with 'good luck.')
 
Line 1: Line 1:
good luck.
+
== Freebase ==
 +
[http://www.freebase.com/home Freebase] is a repository of structured data of almost 22 million entities. It's been used as the knowledge base for Google.
 +
=== Example ===
 +
* [http://www.freebase.com/view/en/ronaldinho Ronaldinho(soccer player)]
 +
* [http://www.freebase.com/view/en/pittsburgh Pittsburgh(city)]
 +
* [http://www.freebase.com/view/en/the_dark_knight The Dark Knight(film)]
 +
===Data Access===
 +
Freebase data is available through either '''API''' or '''data dump'''.
 +
====Dump====
 +
Follow instructions [http://wiki.freebase.com/wiki/Data_dumps here] to download the dumped dataset. Size of the data is around 3.5 Gbytes compressed (35 Gbytes uncompressed).
 +
====API====
 +
Freebase data can be accessed through [http://wiki.freebase.com/wiki/MQL Metaweb Query Language(MQL)], and open through http GET. One example is:
 +
http://api.freebase.com/api/service/mqlread?query={%22query%22:{%22type%22:%22/music/artist%22%2C%22name%22:%22The%20Police%22%2C%22album%22:%5B%5D}}
 +
Query and return values are composed in JSON format, which can be easily handled by most programming languages. For example, for the following query:
 +
{
 +
  "query": {
 +
    "type":"/music/artist",
 +
    "name":"The Police",
 +
    "album":[]
 +
  }
 +
}
 +
The return value comes:
 +
{
 +
  "code": "/api/status/ok",
 +
  "result": {
 +
    "album": [
 +
      "Outlandos d'Amour",
 +
      "Reggatta de Blanc",
 +
      "Zenyatt\u00e0 Mondatta",
 +
      "Ghost in the Machine",
 +
      "Synchronicity",
 +
      "Every Breath You Take: The Singles",
 +
      ...
 +
    ],
 +
    "name": "The Police",
 +
    "type": "/music/artist"
 +
  },
 +
  "status": "200 OK",
 +
  "transaction_id": "cache;cache03.p01.sjc1:8101;2011-10-12T03:48:44Z;0018"
 +
}
 +
Where there is a 'null' or '[]', data is returned from freebase.
 +
 
 +
Freebase provides a [http://www.freebase.com/queryeditor MQL query editor] for generating queries.
 +
=== Reference ===
 +
* [http://wiki.freebase.com/wiki/Developers Freebase for Developers]
 +
* [http://wiki.freebase.com/wiki/Data_dumps Freebase Dump]
 +
* [http://wiki.freebase.com/wiki/Libraries Libraries for different programming language]
 +
* [http://wiki.freebase.com/wiki/Read_API_Code_Snippets Code Snippets for different programming language]
 +
 
 +
--posted by [[User:Wpang|Wpang]] 03:55, 12 October 2011 (UTC)

Revision as of 23:55, 11 October 2011

Freebase

Freebase is a repository of structured data of almost 22 million entities. It's been used as the knowledge base for Google.

Example

Data Access

Freebase data is available through either API or data dump.

Dump

Follow instructions here to download the dumped dataset. Size of the data is around 3.5 Gbytes compressed (35 Gbytes uncompressed).

API

Freebase data can be accessed through Metaweb Query Language(MQL), and open through http GET. One example is:

http://api.freebase.com/api/service/mqlread?query={%22query%22:{%22type%22:%22/music/artist%22%2C%22name%22:%22The%20Police%22%2C%22album%22:%5B%5D}}

Query and return values are composed in JSON format, which can be easily handled by most programming languages. For example, for the following query:

{
 "query": {
   "type":"/music/artist",
   "name":"The Police",
   "album":[]
 }
}

The return value comes:

{
  "code": "/api/status/ok",
  "result": {
    "album": [
      "Outlandos d'Amour",
      "Reggatta de Blanc",
      "Zenyatt\u00e0 Mondatta",
      "Ghost in the Machine",
      "Synchronicity",
      "Every Breath You Take: The Singles",
      ...
    ],
    "name": "The Police",
    "type": "/music/artist"
  },
  "status": "200 OK",
  "transaction_id": "cache;cache03.p01.sjc1:8101;2011-10-12T03:48:44Z;0018"
}

Where there is a 'null' or '[]', data is returned from freebase.

Freebase provides a MQL query editor for generating queries.

Reference

--posted by Wpang 03:55, 12 October 2011 (UTC)