GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — janusgraph/janusgraph-examples at master · nsnmurthyk/janusgraph

Expand file tree

/

janusgraph-examples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

janusgraph-examples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
example-berkeleyje
example-berkeleyje
 
 
example-cassandra
example-cassandra
 
 
example-common
example-common
 
 
example-cql
example-cql
 
 
example-hbase
example-hbase
 
 
example-remotegraph
example-remotegraph
 
 
example-tinkergraph
example-tinkergraph
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

JanusGraph Examples

The JanusGraph examples show the basics of how to configure and construct a graph application. It uses Apache Maven to manage the numerous dependencies required to build the application. The common application will:

  • Open and initialize the graph
  • Define the schema
  • Build the graph
  • Run traversal queries to get data from the graph
  • Make updates to the graph
  • Close the graph

By using different graph configurations, the same example code can run against the various supported storage and indexing backends.

Prerequisites

  • Java 8 Development Kit, update 40 or higher. Oracle Java and OpenJDK have been tested successfully.
  • Apache Maven, version 3.3 or higher

JanusGraph distribution

Download the latest JanusGraph release distribution zip file and unzip it.

Build the examples

The examples are packaged with the JanusGraph distribution zip file in the examples directory. Run the Maven build command from the examples directory.

mvn clean install

Run the examples

These commands can be run from the examples or project's directory. Please refer to the specific directions for each project as there may be additional setup and configuration required.

Common and In-Memory

mvn exec:java -pl :example-common

BerkeleyJE and Lucene

mvn exec:java -pl :example-berkeleyje

Cassandra Thrift and Elasticsearch

mvn exec:java -pl :example-cassandra

Cassandra CQL and Elasticsearch

mvn exec:java -pl :example-cql

HBase and SolrCloud

mvn exec:java -pl :example-hbase

HBase and Solr Standalone (HTTP)

mvn exec:java -pl :example-hbase -Dexample.config="\${project.basedir}/conf/jgex-hbase-solr-http.properties"

Remote Graph

mvn exec:java -pl :example-remotegraph

TinkerGraph

mvn exec:java -pl :example-tinkergraph

Drop the graph

After running an example, you may want to drop the graph from storage. Make sure to stop the application before dropping the graph. These commands can be run from the examples or the project's directory, but please refer to the specific directions for each project as there may be additional steps for clean up.

BerkeleyJE and Lucene

mvn exec:java -pl :example-berkeleyje -Dcmd=drop

Cassandra Thrift and Elasticsearch

mvn exec:java -pl :example-cassandra -Dcmd=drop

Cassandra CQL and Elasticsearch

mvn exec:java -pl :example-cql -Dcmd=drop

HBase and SolrCloud

mvn exec:java -pl :example-hbase -Dcmd=drop

HBase and Solr Standalone (HTTP)

mvn exec:java -pl :example-hbase -Dexample.config="\${project.basedir}/conf/jgex-hbase-solr-http.properties" -Dcmd=drop
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.