view rdfdb/web/syncedgraph.js @ 80:22c9679dbf67

reformat
author drewp@bigasterisk.com
date Mon, 04 Apr 2022 11:01:59 -0700
parents d487d597ad33
children
line wrap: on
line source

function SyncedGraph(label) {
    /*
      like python SyncedGraph but talks over a websocket to
      rdfdb. This one has an API more conducive to reading and
      querying.

      light9/web/graph.coffee is the newer attempt
    */
    var self = this;



    self.patch = function (p) {
        throw;
    }
    self.nodesWithSubstring = function (subString) {

    }
    self.quads = function (s, p, o, c) {
        // any args can be null for wildcard
    }


    function onMessage(d) {
        $('#out').append($('<div>').text(JSON.stringify(d)));
    }

    reconnectingWebSocket("liveSyncedGraph", onMessage);
}