Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
var stardog = require("stardog");
var i, conn = new stardog.Connection();
conn.setEndpoint("http://localhost:5820/");
conn.setCredentials("admin", "admin");
conn.query({database: "sample",
query: "select distinct * where { ?s ?p ?o }",
limit: 10,
offset: 0},
function (data) {
//console.log(data.results.bindings);
for (i=0; i
function connection() {
"use strict";
var sdconn = new stardog.Connection();
sdconn.setEndpoint("http://localhost:5820");
sdconn.setCredentials(dbuser, dbpass);
return sdconn;
}