How to use the stardog.Connection function in stardog

To help you get started, we’ve selected a few stardog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mark-watson / javascript_intelligent_systems / src / stardog_semantic_web.js View on Github external
// @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
github stardog-union / stardog.js / examples / express-app / index.js View on Github external
function connection() {
  "use strict";

  var sdconn = new stardog.Connection();
  sdconn.setEndpoint("http://localhost:5820");
  sdconn.setCredentials(dbuser, dbpass);

  return sdconn;
}

stardog

Stardog JavaScript Framework for node.js and the browser - Develop apps using the Stardog RDF Database & JS.

Apache-2.0
Latest version published 8 months ago

Package Health Score

62 / 100
Full package analysis

Popular stardog functions