Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

titan-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

titan-node

Wrapper project around gremlin-node to provide out of the box support for the Titan graph database.

  • 0.1.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

titan-node

Wrapper around gremlin-node to provide out of the box support for Titan graph database.

gremlin-node does not include the jar files for Titan, nor does it make any assumptions based on using Titan as a backend. This project customizes gremlin-node to make it easier to get up and running:

  • includes the appropriate Java jar files for Titan 0.4.1 in the classpath
  • adds Titan-specific enums and data types to the gremlin object (e.g. Geo and Geoshape)
  • adds loglevel option to the gremlin constructor to control Titan verbosity. see logback's documentation for all available levels
  • passes the recommended runtime flags to the JVM instance instantiated by gremlin-node

Installation

$ npm install titan-node

Quick start

var Titan = require('titan-node');
var gremlin = new Titan.Gremlin({ loglevel: 'OFF' });

var GraphOfTheGodsFactory = gremlin.java.import('com.thinkaurelius.titan.example.GraphOfTheGodsFactory');

var graph = GraphOfTheGodsFactory.createSync('testdirectory');
var g = gremlin.wrap(graph);

g.V('name', 'saturn').next(function (err, saturn) {
  g.start(saturn).in('father').in('father').next(function (err, grandchild) {
    var name = grandchild.getPropertySync('name');
    console.log(name);
  });
});

Keywords

FAQs

Package last updated on 05 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc