@graphistry/js-upload-api
Version:
Graphistry upload client for reuse by node and browser clients
74 lines (72 loc) • 67.9 kB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Dataset | @graphistry/node-api - v5.1.3</title><meta name="description" content="Documentation for @graphistry/node-api - v5.1.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@graphistry/node-api - v5.1.3</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@graphistry/node-api - v5.1.3</a></li><li><a href="Dataset.html">Dataset</a></li></ul><h1>Class Dataset </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
<a href="#dataset-examples" id="dataset-examples" style="color: inherit; text-decoration: none;">
<h1>Dataset examples</h1>
</a>
</div><div><p>Datasets are how to combine files into a single visualizable graph.
Powerfully, you can also specify visualization settings and
data-driven visual encodings as part of your dataset's bindings.</p>
<p>For the many options, see the <a href="https://hub.graphistry.com/docs/api/">JSON documentation</a>.</p>
<br>
<hr>
<br>
</div><dl class="tsd-comment-tags"><dt>example</dt><dd><p><strong>Create a dataset from edges and upload using async/await</strong></p>
<pre><code class="language-javascript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">Dataset</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@graphistry/node-api'</span><span class="hl-0">;</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">dataset</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-7">Dataset</span><span class="hl-0">(</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">node_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { } },</span><br/><span class="hl-0"> </span><span class="hl-3">edge_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { </span><span class="hl-3">source:</span><span class="hl-0"> </span><span class="hl-1">'s'</span><span class="hl-0">, </span><span class="hl-3">destination:</span><span class="hl-0"> </span><span class="hl-1">'d'</span><span class="hl-0"> } },</span><br/><span class="hl-0"> </span><span class="hl-3">metadata:</span><span class="hl-0"> {},</span><br/><span class="hl-0"> </span><span class="hl-3">name:</span><span class="hl-0"> </span><span class="hl-1">'testdata'</span><span class="hl-0">,</span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-3">edgesFile</span><br/><span class="hl-0">);</span><br/><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">upload</span><span class="hl-0">(</span><span class="hl-3">client</span><span class="hl-0">);</span><br/><span class="hl-3">console</span><span class="hl-0">.</span><span class="hl-7">log</span><span class="hl-0">(</span><span class="hl-1">`Dataset </span><span class="hl-5">${</span><span class="hl-3">dataset</span><span class="hl-8">.</span><span class="hl-3">datasetID</span><span class="hl-5">}</span><span class="hl-1"> uploaded to </span><span class="hl-5">${</span><span class="hl-3">dataset</span><span class="hl-8">.</span><span class="hl-3">datasetURL</span><span class="hl-5">}</span><span class="hl-1">`</span><span class="hl-0">);</span>
</code></pre>
<br>
</dd><dt>example</dt><dd><p><strong>Create a dataset from nodes + edges and upload using promises</strong></p>
<pre><code class="language-javascript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">Dataset</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@graphistry/node-api'</span><span class="hl-0">;</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">dataset</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-7">Dataset</span><span class="hl-0">(</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">node_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { </span><span class="hl-1">'node'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'n'</span><span class="hl-0"> } },</span><br/><span class="hl-0"> </span><span class="hl-3">edge_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { </span><span class="hl-1">'source'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'s'</span><span class="hl-0">, </span><span class="hl-1">'destination'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'d'</span><span class="hl-0"> } },</span><br/><span class="hl-0"> </span><span class="hl-3">metadata:</span><span class="hl-0"> {},</span><br/><span class="hl-0"> </span><span class="hl-3">name:</span><span class="hl-0"> </span><span class="hl-1">'testdata'</span><span class="hl-0">,</span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-3">edgesFile</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">nodesFile</span><br/><span class="hl-0">);</span><br/><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">upload</span><span class="hl-0">(</span><span class="hl-3">client</span><span class="hl-0">).</span><span class="hl-7">then</span><span class="hl-0">(</span><br/><span class="hl-0"> () </span><span class="hl-5">=></span><span class="hl-0"> </span><span class="hl-3">console</span><span class="hl-0">.</span><span class="hl-7">log</span><span class="hl-0">(</span><span class="hl-1">`Dataset </span><span class="hl-5">${</span><span class="hl-3">dataset</span><span class="hl-8">.</span><span class="hl-3">datasetID</span><span class="hl-5">}</span><span class="hl-1"> uploaded to </span><span class="hl-5">${</span><span class="hl-3">dataset</span><span class="hl-8">.</span><span class="hl-3">datasetURL</span><span class="hl-5">}</span><span class="hl-1">`</span><span class="hl-0">)</span><br/><span class="hl-0">).</span><span class="hl-7">catch</span><span class="hl-0">(</span><span class="hl-3">err</span><span class="hl-0"> </span><span class="hl-5">=></span><span class="hl-0"> </span><span class="hl-3">console</span><span class="hl-0">.</span><span class="hl-7">error</span><span class="hl-0">(</span><span class="hl-1">'oops'</span><span class="hl-0">, </span><span class="hl-3">err</span><span class="hl-0">));</span>
</code></pre>
<br>
</dd><dt>example</dt><dd><p><strong>Create a dataset using Arrow</strong></p>
<pre><code class="language-javascript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">tableFromArrays</span><span class="hl-0">, </span><span class="hl-3">tableToIPC</span><span class="hl-0">, </span><span class="hl-3">Table</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'apache-arrow'</span><span class="hl-0">;</span><br/><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">EdgeFile</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@graphistry/node-api'</span><span class="hl-0">;</span><br/><br/><span class="hl-4">//columnar data is fastest; column per attribute; reuse across datasets</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">edgesJSON</span><span class="hl-0"> = {</span><span class="hl-1">'s'</span><span class="hl-3">:</span><span class="hl-0"> [</span><span class="hl-1">'a1'</span><span class="hl-0">, </span><span class="hl-1">'b2'</span><span class="hl-0">], </span><span class="hl-1">'d'</span><span class="hl-3">:</span><span class="hl-0"> [</span><span class="hl-1">'b2'</span><span class="hl-0">, </span><span class="hl-1">'c3'</span><span class="hl-0">]};</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">edgesTable</span><span class="hl-0">: </span><span class="hl-9">Table</span><span class="hl-0"> = </span><span class="hl-7">tableFromArrays</span><span class="hl-0">(</span><span class="hl-3">edgesJSON</span><span class="hl-0">);</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">edgesUint8</span><span class="hl-0">: </span><span class="hl-9">Uint8Array</span><span class="hl-0"> = </span><span class="hl-7">tableToIPC</span><span class="hl-0">(</span><span class="hl-3">edgesArr</span><span class="hl-0">, </span><span class="hl-1">'file'</span><span class="hl-0">);</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">edgesFile</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-7">EdgeFile</span><span class="hl-0">(</span><span class="hl-3">edgesUint8</span><span class="hl-0">, </span><span class="hl-1">'arrow'</span><span class="hl-0">);</span>
</code></pre>
<br>
</dd><dt>example</dt><dd><p><strong>Add files after the Dataset is instantiated but before it has been uploaded</strong></p>
<pre><code class="language-javascript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">Dataset</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@graphistry/node-api'</span><span class="hl-0">;</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">dataset</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-7">Dataset</span><span class="hl-0">(</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">node_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { </span><span class="hl-1">'node'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'n'</span><span class="hl-0"> } },</span><br/><span class="hl-0"> </span><span class="hl-3">edge_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { </span><span class="hl-1">'source'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'s'</span><span class="hl-0">, </span><span class="hl-1">'destination'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'d'</span><span class="hl-0"> } },</span><br/><span class="hl-0"> </span><span class="hl-3">metadata:</span><span class="hl-0"> {},</span><br/><span class="hl-0"> </span><span class="hl-3">name:</span><span class="hl-0"> </span><span class="hl-1">'testdata'</span><span class="hl-0">,</span><br/><span class="hl-0"> }</span><br/><span class="hl-0">);</span><br/><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">addFile</span><span class="hl-0">(</span><span class="hl-3">nodesFile</span><span class="hl-0">);</span><br/><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">addFile</span><span class="hl-0">(</span><span class="hl-3">edgesFile</span><span class="hl-0">);</span><br/><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">upload</span><span class="hl-0">(</span><span class="hl-3">client</span><span class="hl-0">);</span><br/><span class="hl-3">console</span><span class="hl-0">.</span><span class="hl-7">log</span><span class="hl-0">(</span><span class="hl-1">`Dataset </span><span class="hl-5">${</span><span class="hl-3">dataset</span><span class="hl-8">.</span><span class="hl-3">datasetID</span><span class="hl-5">}</span><span class="hl-1"> uploaded to </span><span class="hl-5">${</span><span class="hl-3">dataset</span><span class="hl-8">.</span><span class="hl-3">datasetURL</span><span class="hl-5">}</span><span class="hl-1">`</span><span class="hl-0">);</span>
</code></pre>
<br>
</dd><dt>example</dt><dd><p><strong>Set privacy on uploaded dataset</strong></p>
<pre><code class="language-javascript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">Dataset</span><span class="hl-0">, </span><span class="hl-3">Privacy</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@graphistry/node-api'</span><span class="hl-0">;</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">dataset</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-7">Dataset</span><span class="hl-0">(</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">node_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { } },</span><br/><span class="hl-0"> </span><span class="hl-3">edge_encodings:</span><span class="hl-0"> { </span><span class="hl-3">bindings:</span><span class="hl-0"> { </span><span class="hl-1">'source'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'s'</span><span class="hl-0">, </span><span class="hl-1">'destination'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'d'</span><span class="hl-0"> } },</span><br/><span class="hl-0"> </span><span class="hl-3">metadata:</span><span class="hl-0"> {},</span><br/><span class="hl-0"> </span><span class="hl-3">name:</span><span class="hl-0"> </span><span class="hl-1">'testdata'</span><span class="hl-0">,</span><br/><span class="hl-0"> }</span><br/><span class="hl-0">);</span><br/><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">addFile</span><span class="hl-0">(</span><span class="hl-3">edgesFile</span><span class="hl-0">);</span><br/><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">upload</span><span class="hl-0">(</span><span class="hl-3">client</span><span class="hl-0">);</span><br/><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">setPrivacy</span><span class="hl-0">(</span><span class="hl-3">client</span><span class="hl-0">); </span><span class="hl-4">// see additional options below</span>
</code></pre>
<br>
</dd><dt>example</dt><dd><p><strong>Set simple data-driven bindings for titles, colors, icons, and labels</strong></p>
<pre><code class="language-javascript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">Dataset</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@graphistry/node-api'</span><span class="hl-0">;</span><br/><span class="hl-5">const</span><span class="hl-0"> </span><span class="hl-6">dataset</span><span class="hl-0"> = </span><span class="hl-5">new</span><span class="hl-0"> </span><span class="hl-7">Dataset</span><span class="hl-0">(</span><br/><span class="hl-0"> {</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// See also simple title, color, ... and complex color, size, icon, badge, ...</span><br/><span class="hl-0"> </span><span class="hl-4">// https://hub.graphistry.com/docs/api/2/rest/upload/colors</span><br/><span class="hl-0"> </span><span class="hl-4">// https://hub.graphistry.com/docs/api/2/rest/upload/complex/</span><br/><span class="hl-0"> </span><span class="hl-3">node_encodings:</span><span class="hl-0"> {</span><br/><br/><span class="hl-0"> </span><span class="hl-3">bindings:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-1">'node'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'n'</span><span class="hl-0">, </span><span class="hl-4">//id </span><br/><span class="hl-0"> </span><span class="hl-1">'node_title'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'some_title_column'</span><span class="hl-0"> </span><span class="hl-4">//optional</span><br/><span class="hl-0"> },</span><br/><br/><span class="hl-0"> </span><span class="hl-3">complex:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">default:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">pointSizeEncoding:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">graphType:</span><span class="hl-0"> </span><span class="hl-1">'point'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">encodingType:</span><span class="hl-0"> </span><span class="hl-1">'size'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">attribute:</span><span class="hl-0"> </span><span class="hl-1">'payment'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">variation:</span><span class="hl-0"> </span><span class="hl-1">'categorical'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">mapping:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">fixed:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">big:</span><span class="hl-0"> </span><span class="hl-10">500</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">normal:</span><span class="hl-0"> </span><span class="hl-10">200</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">tiny:</span><span class="hl-0"> </span><span class="hl-10">10</span><span class="hl-0"> </span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-3">other:</span><span class="hl-0"> </span><span class="hl-10">100</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> },</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// See also simple title, color, ... and complex color, size, icon, badge, ...</span><br/><span class="hl-0"> </span><span class="hl-4">// https://hub.graphistry.com/docs/api/2/rest/upload/colors</span><br/><span class="hl-0"> </span><span class="hl-4">// https://hub.graphistry.com/docs/api/2/rest/upload/complex/</span><br/><span class="hl-0"> </span><span class="hl-3">edge_encodings:</span><span class="hl-0"> {</span><br/><br/><span class="hl-0"> </span><span class="hl-3">bindings:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-1">'source'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'s'</span><span class="hl-0">, </span><span class="hl-1">'destination'</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-1">'d'</span><br/><span class="hl-0"> },</span><br/><br/><span class="hl-0"> </span><span class="hl-3">complex:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">default:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">edgeColorEncoding:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">graphType:</span><span class="hl-0"> </span><span class="hl-1">'point'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">encodingType:</span><span class="hl-0"> </span><span class="hl-1">'color'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">attribute:</span><span class="hl-0"> </span><span class="hl-1">'time'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">variation:</span><span class="hl-0"> </span><span class="hl-1">'continuous'</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">colors:</span><span class="hl-0"> [</span><span class="hl-1">'blue'</span><span class="hl-0">, </span><span class="hl-1">'yellow'</span><span class="hl-0">, </span><span class="hl-1">'red'</span><span class="hl-0">]</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> },</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// Set brand & theme: Background, foreground, logo, page metadata</span><br/><span class="hl-0"> </span><span class="hl-4">// https://hub.graphistry.com/docs/api/2/rest/upload/metadata/</span><br/><span class="hl-0"> </span><span class="hl-3">metadata:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">bg:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">color:</span><span class="hl-0"> </span><span class="hl-1">'silver'</span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-1">"logo"</span><span class="hl-3">:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">url:</span><span class="hl-0"> </span><span class="hl-1">"http://a.com/logo.png"</span><span class="hl-0">,</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-3">name:</span><span class="hl-0"> </span><span class="hl-1">'testdata'</span><span class="hl-0">,</span><br/><span class="hl-0"> },</span><br/><br/><span class="hl-0"> </span><span class="hl-3">nodesFile</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">edgesFile</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// Visual and layout settings</span><br/><span class="hl-0"> </span><span class="hl-4">// https://hub.graphistry.com/docs/api/1/rest/url/#urloptions</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">strongGravity:</span><span class="hl-0"> </span><span class="hl-5">true</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">edgeCurvature:</span><span class="hl-0"> </span><span class="hl-10">0.5</span><br/><span class="hl-0"> }</span><br/><br/><span class="hl-0">);</span><br/><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-3">dataset</span><span class="hl-0">.</span><span class="hl-7">upload</span><span class="hl-0">();</span>
</code></pre>
</dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Dataset</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="Dataset.html#addFile" class="tsd-kind-icon">add<wbr/>File</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Dataset.html#getCreateDatasetResponse" class="tsd-kind-icon">get<wbr/>Create<wbr/>Dataset<wbr/>Response</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Dataset.html#privacy" class="tsd-kind-icon">privacy</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Dataset.html#updateBindings" class="tsd-kind-icon">update<wbr/>Bindings</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Dataset.html#upload" class="tsd-kind-icon">upload</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="Dataset.html#createDataset" class="tsd-kind-icon">create<wbr/>Dataset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="Dataset.html#fillMetadata" class="tsd-kind-icon">fill<wbr/>Metadata</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="Dataset.html#bindings" class="tsd-kind-icon">bindings</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Dataset.html#edgeFiles" class="tsd-kind-icon">edge<wbr/>Files</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Dataset.html#nodeFiles" class="tsd-kind-icon">node<wbr/>Files</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Dataset.html#urlOpts" class="tsd-kind-icon">url<wbr/>Opts</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="Dataset.html#_createDatasetResponse" class="tsd-kind-icon">_create<wbr/>Dataset<wbr/>Response</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="Dataset.html#_datasetID" class="tsd-kind-icon">_datasetID</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="Dataset.html#_usedClientProtocolHostname" class="tsd-kind-icon">_used<wbr/>Client<wbr/>Protocol<wbr/>Hostname</a></li></ul></section><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Dataset.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Accessors</h3><ul class="tsd-index-list"><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Dataset.html#datasetID" class="tsd-kind-icon">datasetID</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Dataset.html#datasetURL" class="tsd-kind-icon">datasetURL</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addFile" class="tsd-anchor"></a><h3 class="tsd-anchor-link">add<wbr/>File<a href="#addFile" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><a href="File.html" class="tsd-signature-type" data-tsd-kind="Class">File</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L379">Dataset.ts:379</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>See examples at top of file</p>
</div><div><p>Add an additional node or edge file to the existing ones.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>file: <a href="File.html" class="tsd-signature-type" data-tsd-kind="Class">File</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>File object. Does not need to be uploaded yet.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getCreateDatasetResponse" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Create<wbr/>Dataset<wbr/>Response<a href="#getCreateDatasetResponse" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Create<wbr/>Dataset<wbr/>Response<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L211">Dataset.ts:211</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="privacy" class="tsd-anchor"></a><h3 class="tsd-anchor-link">privacy<a href="#privacy" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">privacy<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a>, mode<span class="tsd-signature-symbol">?: </span><a href="../modules.html#Mode" class="tsd-signature-type" data-tsd-kind="Type alias">Mode</a>, modeAction<span class="tsd-signature-symbol">?: </span><a href="../modules.html#ModeAction" class="tsd-signature-type" data-tsd-kind="Type alias">ModeAction</a>, invitedUsers<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span>, notify<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, message<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Privacy.html" class="tsd-signature-type" data-tsd-kind="Class">Privacy</a><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L434">Dataset.ts:434</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>See examples at top of file</p>
</div><div><p>Set the privacy mode of the dataset. All but the client are optional.</p>
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p>Error if the dataset has not been uploaded yet</p>
</dd><dt>throws</dt><dd><p>Error if server call fails</p>
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Client object</p>
</div></div></li><li><h5>mode: <a href="../modules.html#Mode" class="tsd-signature-type" data-tsd-kind="Type alias">Mode</a><span class="tsd-signature-symbol"> = 'private'</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Privacy mode. One of 'private', 'public', 'organization'</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> modeAction: <a href="../modules.html#ModeAction" class="tsd-signature-type" data-tsd-kind="Type alias">ModeAction</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Capability allowed when shared</p>
</div></div></li><li><h5>invitedUsers: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>List of user IDs to share with</p>
</div></div></li><li><h5>notify: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Whether to notify users of the share</p>
</div></div></li><li><h5>message: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ''</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Message to include in the notification</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Privacy.html" class="tsd-signature-type" data-tsd-kind="Class">Privacy</a><span class="tsd-signature-symbol">></span></h4><div><p>Promise that resolves when the privacy is set</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="updateBindings" class="tsd-anchor"></a><h3 class="tsd-anchor-link">update<wbr/>Bindings<a href="#updateBindings" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">update<wbr/>Bindings<span class="tsd-signature-symbol">(</span>bindings<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L364">Dataset.ts:364</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Add one or more bindings to the existing ones. In case of conflicts, override the existing ones.</p>
</div><div><p>For more information about each, see <a href="https://hub.graphistry.com/docs/api/2/rest/upload/">https://hub.graphistry.com/docs/api/2/rest/upload/</a></p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bindings: <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>JSON dictionary of bindings to be added to the existing ones</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="upload" class="tsd-anchor"></a><h3 class="tsd-anchor-link">upload<a href="#upload" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">upload<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Dataset.html" class="tsd-signature-type" data-tsd-kind="Class">Dataset</a><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L300">Dataset.ts:300</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>See examples at top of file</p>
</div><div><p>Upload the dataset to the Graphistry server.</p>
<p>If files have not been uploaded yet, this method will upload them for you.</p>
<p>Upon completion, attributes datasetID and datasetURL will be set, as well as
createDatasetResponse and uploadResponse.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Client object</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Dataset.html" class="tsd-signature-type" data-tsd-kind="Class">Dataset</a><span class="tsd-signature-symbol">></span></h4><div><p>Promise that resolves when the dataset is uploaded</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="createDataset" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagPrivate">Private</span> create<wbr/>Dataset<a href="#createDataset" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private"><li class="tsd-signature tsd-kind-icon">create<wbr/>Dataset<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a>, bindings<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L344">Dataset.ts:344</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a></h5></li><li><h5>bindings: <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="fillMetadata" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagPrivate">Private</span> fill<wbr/>Metadata<a href="#fillMetadata" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private"><li class="tsd-signature tsd-kind-icon">fill<wbr/>Metadata<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, client<span class="tsd-signature-symbol">: </span><a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L392">Dataset.ts:392</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>data: <span class="tsd-signature-type">any</span></h5></li><li><h5>client: <a href="../modules.html#ClientType" class="tsd-signature-type" data-tsd-kind="Type alias">ClientType</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="bindings" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> bindings<a href="#bindings" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">bindings<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L203">Dataset.ts:203</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="edgeFiles" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> edge<wbr/>Files<a href="#edgeFiles" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">edge<wbr/>Files<span class="tsd-signature-symbol">:</span> <a href="EdgeFile.html" class="tsd-signature-type" data-tsd-kind="Class">EdgeFile</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L201">Dataset.ts:201</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="nodeFiles" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> node<wbr/>Files<a href="#nodeFiles" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">node<wbr/>Files<span class="tsd-signature-symbol">:</span> <a href="NodeFile.html" class="tsd-signature-type" data-tsd-kind="Class">NodeFile</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/graphistry/graphistry-js/blob/master/projects/node-api/src/Dataset.ts#L202">Dataset.ts:202</a></li></ul></aside></section><section class="tsd-panel tsd-memb