mqlreaddeprecated

Run read-only Metaweb Query Language (MQL) queries on Freebase

Usage no npm install needed!

<script type="module">
  import mqlread from 'https://cdn.skypack.dev/mqlread';
</script>

README

Build Status

freebase-mqlread

Microlibrary to execute read-only Metaweb Query Language (MQL) queries on Freebase

Installation

npm install --save mqlread

Usage

var freebase = require('mqlread');

var callback = function (err, data) {
    console.log(data);
};
var query = '{"type":"/people/person","id":"/en/madonna","children":[]}';
var options = {key: 'YOUR_API_KEY', as_of_time: '2009-01'};

freebase.mqlread(query, options, callback);

The above code (once you fill in your own API key) will result in output similar to this:

{ result: 
   { type: '/people/person',
     children: 
      [ 'Lourdes Maria Ciccone Leon',
        'Rocco Ritchie',
        'David Banda Mwale Ciccone Ritchie' ],
     id: '/en/madonna' } }