{"_id":"@cosmograph/cosmos-tigergraph","_rev":"2-d2ae5f56232b727f58a2cb3e247fbf01","name":"@cosmograph/cosmos-tigergraph","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1-beta.0":{"name":"@cosmograph/cosmos-tigergraph","version":"0.0.1-beta.0","license":"MIT","_id":"@cosmograph/cosmos-tigergraph@0.0.1-beta.0","maintainers":[{"name":"rokotyan","email":"nikita@rokotyan.com"}],"dist":{"shasum":"076f88188ff5d2dfe72624bc479f3859d48345b2","tarball":"https://registry.npmjs.org/@cosmograph/cosmos-tigergraph/-/cosmos-tigergraph-0.0.1-beta.0.tgz","fileCount":6,"integrity":"sha512-m4Iq8jLijJ49hpVWwzuu6G+8aSFLk6Y1lnsh7jOgiDfI1i02pZpqIghoBFbMwquz5KRO/ul/2HgR0q4DkgutQQ==","signatures":[{"sig":"MEQCIHES3qpfnqeOIQCixmNd2vYbHDSfBzrZ5h2zV6Kc6gP1AiBflf1Lhe+g3/q7Dbt4heLs2JzUzkmJLRlKkCBGawp6Og==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyae1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIkA/+NvptquCMrQff5dAqi+bhV/4FHJtbiG8g7aYoNbLNycpwtvi0\r\nrmxdDKNicGvRuDMCMfDReLCPXOp8sIabshmzTumkpI2vDs6gxbU9M+USgNov\r\nQLYU377eKpxD+cn232wBN1IqWm/WAX6M4Fxvm51Jxs0UL4tQeY2OmmBtmaDB\r\n3NvuYivH4uX6RR62bl4AiqB9UITsIdeIULcsq6+YFisMZnuUvTym7hBjbX9V\r\n8YIqVnR5x2nZL1wlkoIUCKLjCbrF9Vt6VNKCnsxI+eRYVie179lPjcbbotuN\r\nNj2TkhQP4+Nme+4c+FE+zY5xPExJENxeY4aYQuvlTjzpMyGJSEQmsSJMV/uW\r\nx+b1hRPckyJMXuQzZan0Vh0TGN5qZ7bt6zQl99PBfSE2yhq4wajvmQKUDp43\r\nuCx/mkq7bX3v2ugU00qDGG+yDZ8fc4ZBBvFaZqVqfebt8s6hMCOV1X7S91lj\r\nHNryuFpN6Ox0Y35HdXH1iIimtWPLcaxuNao+C6OtYlv4Qy5ME8ikitQS5pOR\r\neB96Qa8wPNZQBMU8S4kisuAT3zuLq79uz8zQXgdapCI9VImUazaG2vXKVqxG\r\nXyJzSwZUZQ+OuzZvvt3o8TM78GLcPWKkfcBTJRlZj+VAYI9Xg3A8/9PpLpkV\r\nCq71lzuR6gVzuqh4ibfJeuwFXBQAQ9FOpFM=\r\n=ZHSt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","module":"./dist/index.js","gitHead":"83eff4e6b9e951d6c1702e2faaba5c2720fbd480","scripts":{"build":"tsc"},"typings":"./dist/index.d.ts","_npmUser":{"name":"rokotyan","email":"nikita@rokotyan.com"},"_npmVersion":"7.24.2","description":"Use Cosmos to visualize data from your TigerGraph graph database.","directories":{},"_nodeVersion":"16.13.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4"},"peerDependencies":{"@cosmograph/cosmos":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cosmos-tigergraph_0.0.1-beta.0_1657382837618_0.7587753139282507","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"@cosmograph/cosmos-tigergraph","version":"0.0.1","license":"MIT","_id":"@cosmograph/cosmos-tigergraph@0.0.1","maintainers":[{"name":"rokotyan","email":"nikita@rokotyan.com"}],"dist":{"shasum":"31b000a49978f6925390749200e79668e675699e","tarball":"https://registry.npmjs.org/@cosmograph/cosmos-tigergraph/-/cosmos-tigergraph-0.0.1.tgz","fileCount":6,"integrity":"sha512-W+oeE5LvO8N7CB+ntSqjGdR4uQPcmaJoCidpLM7kLOV9upMYwCWGvkfi7gzAxPflsk1pC4dR4mmJ8mdNvx5TOw==","signatures":[{"sig":"MEQCIGLZldeK1DfGaOW+7gXFVDBnZkOJ6yRaG6ULncH59mncAiA2J3c76lOcmRMWI09IKYszsI2SR7JRbXpmHik3b2aObw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnINGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoukhAAjuMGTNSRFUrr/ulDY77mNy9wWZPmDbiyvPhP8WHknVl2dh9d\r\nDUTV+dZzAsvze4omeD7HVn1NSL6J1lfpqMks5t9UnKN0l3Cu45JLFXPvVjGC\r\nkhqBji/Huku52NGIsUptsA4SaV9fotKHzryKUf+L1a4Csh15XZwpifXi3AKd\r\nzMBFaT5J7SXTge+ekMi2bj0xgJ703VXUrpimcT3WY4CPEBASMsRF3qNHsAEU\r\nVNJwv1jEqA+vXKDhTDlIV+JXG509EsJpbGH5dExfjHdbu/StolzEYDnPyN6m\r\nZODWmizRWc8bi5WRQxBLTECPPA1VQ3kMEsDykS/MMVD4fl4/cW7JDFR4/9hm\r\nGDmK851ZF+U3kw6g/bcHrWt3JuKk4yU0BKMZyKpzZLE4H1g6nS12+Na8Parp\r\n/GBCthV98nWG0IAnBWSWECOMviQC0O30E3pA1Vt0cpHGtsB13pzxJDmCh9PP\r\ncpDh9guVKJ4iiBuYbrBNa+VYK0lmUhnQXTkoB+qkG1Ap0dnSEVSwGGg2acb1\r\nbV0IWBjD6vPF/PZcZM0qrzLZ+f5HkdfLY5OuFh4jRDoEuQv1VOZcQIqfCQDX\r\nMmwwJpurPiOrq+CHLTH0GszJk3OPdX4l7Po/T7Vc/xyl7VWBpDTGdG1OFf6Y\r\nRuwfRSWyliAaKJZFocO/SPvsScLnrhJ432s=\r\n=vZ7m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","module":"./dist/index.js","gitHead":"12eec32fdd37778d4d90db57d1960861d53ab850","scripts":{"build":"tsc"},"typings":"./dist/index.d.ts","_npmUser":{"name":"rokotyan","email":"nikita@rokotyan.com"},"_npmVersion":"7.24.2","description":"Use Cosmos to visualize data from your TigerGraph graph database.","directories":{},"_nodeVersion":"16.13.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4"},"peerDependencies":{"@cosmograph/cosmos":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cosmos-tigergraph_0.0.1_1671201606765_0.43284674137669477","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-07-09T16:07:17.568Z","modified":"2024-08-11T07:59:46.452Z","0.0.1-beta.0":"2022-07-09T16:07:17.785Z","0.0.1":"2022-12-16T14:40:06.918Z"},"license":"MIT","description":"Use Cosmos to visualize data from your TigerGraph graph database.","maintainers":[{"email":"dasha@interacta.io","name":"kolmakova"},{"email":"nikita@rokotyan.com","name":"rokotyan"}],"readme":"# Connecting Cosmos with TigerGraph\n\nUse Cosmos to visualize data from your TigerGraph graph database. \n\nTo begin, you will need to spin a TigerGraph on-prem solution. If you use a TigerGraph Cloud solution, be sure to enable CORS or use middleware.\n\nTo initialize the connection, run `TigerGraphConnection` with the details of the solution you just provisioned, including the host, the name of the graph, and your username and password. The final parameter of token is optional; if it is not provided, it will be generated when needed.\n\n```\nlet conn = new TigerGraphConnection(host, graphname, username, password, token);\n```\n\nRunning `getTigerGraphData` will convert data from specific vertex and edge types to Cosmos-compatible InputNode and InputLink types, and its two parameters are string arrays of vertex and edge types. \n\n```\ngetTigerGraphData(vertex_type, edge_type)\n```\n\nThis will return a Promise with InputNode and InputLink arrays with the vertices, edges, and attributes which can be used to create a graph.\n\n```\nconn.getTigerGraphData([\"VertexType1\", \"VertexType2\"], [\"edge_type_1\", \"edge_type_2\"]).then((data) => {\n    const canvas = document.querySelector(\"canvas\") as HTMLCanvasElement;\n    const graph = new Graph(canvas);\n    graph.setData(data.nodes, data.links);\n});\n```\n\nIn addition, users can run installed and interpreted queries and the results will be visualized. Currently, only vertices and edges returned in the form of lists or sets are supported. The syntax for the two are similar.\n\n```\nconn.runInterpretedQuery('interpreted_query_string').then((data) => {\n    const canvas = document.querySelector(\"canvas\") as HTMLCanvasElement;\n    const graph = new Graph(canvas);\n    graph.setData(data.nodes, data.links);\n});\n```\n\n```\nconn.runInstalledQuery('installed_query_name').then((data) => {\n    const canvas = document.querySelector(\"canvas\") as HTMLCanvasElement;\n    const graph = new Graph(canvas);\n    graph.setData(data.nodes, data.links);\n});\n```\n","readmeFilename":"README.md"}