{"action":"opened","issue":{"url":"https://api.github.com/repos/mgskjaeveland/sgvizler/issues/74","repository_url":"https://api.github.com/repos/mgskjaeveland/sgvizler","labels_url":"https://api.github.com/repos/mgskjaeveland/sgvizler/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/mgskjaeveland/sgvizler/issues/74/comments","events_url":"https://api.github.com/repos/mgskjaeveland/sgvizler/issues/74/events","html_url":"https://github.com/mgskjaeveland/sgvizler/issues/74","id":315115023,"number":74,"title":"Get query results - undefined","user":{"login":"freaksN","id":12518915,"avatar_url":"https://avatars2.githubusercontent.com/u/12518915?v=4","gravatar_id":"","url":"https://api.github.com/users/freaksN","html_url":"https://github.com/freaksN","followers_url":"https://api.github.com/users/freaksN/followers","following_url":"https://api.github.com/users/freaksN/following{/other_user}","gists_url":"https://api.github.com/users/freaksN/gists{/gist_id}","starred_url":"https://api.github.com/users/freaksN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freaksN/subscriptions","organizations_url":"https://api.github.com/users/freaksN/orgs","repos_url":"https://api.github.com/users/freaksN/repos","events_url":"https://api.github.com/users/freaksN/events{/privacy}","received_events_url":"https://api.github.com/users/freaksN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-17T15:33:51Z","updated_at":"2018-04-17T15:33:51Z","closed_at":null,"author_association":"NONE","body":"Whenever I try to get query results before displaying them I either get errors or undefined values.\r\n\r\n\r\nMy code\r\n     var A = new sgvizler.Query();\r\n\r\n     A.query(\" PREFIX dc: <http://purl.org/dc/terms/> PREFIX am: \r\n      <http://data.linkedmdb.org/resource/movie/actor_name> SELECT ?actorName ?actorLink  WHERE { ? \r\n       actorLink am: 'Christian Bale' . ?actorLink am: ?actorName . } \")\r\n     .endpointURL(\"http://data.linkedmdb.org/sparql\")\r\n     .endpointOutputFormat(\"jsonp\")\r\n     .chartFunction(\"sgvizler.visualization.Table\")\r\n     .draw(\"searchResults\");\r\n     console.log(A);\r\n\r\nChecking the console the first thing that pops out is `noOfResults: undefined`. Is there way to get the actual value of this `noOfResults` ?\r\n\r\nI've also tried to set up dataTable with `success` and `fail` functions but I can't access the value of `dataTable.getNumberOfRows` outside of the `success` function.\r\n\r\nSo I was wondering if someone has encountered the same problem and has found some fix ?"}}
{"actor":{"display_login":"freaksN"}}