Giter Site home page Giter Site logo

fgxue / d3-gremlin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnhunsley/d3-gremlin

0.0 1.0 0.0 66 KB

A Spring Boot REST API which executes queries in gremlin, using the Tinkerpop Java API, and returns data, nodes, links and options, in a format acceptable to the vue-d3-network component.

License: MIT License

Java 100.00%

d3-gremlin's Introduction

d3-gremlin

A Java (Spring Boot) REST API which executes queries using gremlin on graph data resources to produce data, nodes, links and options, in a format acceptable to the vue-d3-network component

Execution

This is a Spring Boot app which can be executed with the included spring-boot maven plugin like so

<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <jvmArguments> -Dspring.profiles.active=localGraph -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 </jvmArguments> </configuration> </plugin>

Or by executing the package .jar file from from the terminal and specifying a complete set of production configurations

java -jar d3-gramlin-<version> --spring.config.name=/path/to/app/properties Or just the profile which defines the connection type to the underlying graphDB

java -jar d3-gramlin-<version> --spring.profiles.active=localGraph

There are various built in profiles which will provide a connection to a graphDB and return a traversal source via the GraphTraversalSourceProvider stereotype

  • localGraph
  • remoteGraph

localGraph uses the GraphTraversalSourceProviderTinkerGraphImpl class which will load a TinkerGraph from a graphML file at the location specified by the tinkergraph.graphml.file.path property remoteGraph uses the GraphTraversalSourceProviderRemoteImpl class which will provide a connection to a remote graph at the end point and port specified in the following properties

  • gremlin.cluster.end-point
  • gremlin.cluster.port

Note: the integrationTest profile will run a local TinkerGraph at a fixed location specified in test-resources

For EC2 UserData - execution on start up, use nohup in the following script #!/bin/bash nohup /usr/bin/java -jar /home/ec2-user/returns-1.0.jar --spring.config.name=/home/ec2-user/lymm.application.properties & > /home/ec2-user/nohup.out

d3-gremlin's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.