SHARE
TWEET

Untitled

a guest Jul 24th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var rp= require('request-promise');
  2.   var wdk = require('wikidata-sdk');
  3.   sparql='SELECT ?author ?authorLabel ?authorDescription ?authorAltLabel ?birth WHERE {
  4.         wd:Q1451094 wdt:P50 ?author .
  5.         ?author wdt:P569 ?birth .
  6.         SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }}'
  7.  url = wdk.sparqlQuery(sparql);
  8.  rp(url).then(wdk.simplify.sparqlResults).then(function(simplifiedResults) {
  9.  if(!_.isEmpty(simplifiedResults)){
  10.     console.log(simplifiedResults,'-----simplifiedResults');
  11.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top