All versions of this manual
X
 

Configuring data-sources: JanusGraph

JanusGraph is supported since version 0.1.1.

Configuration

To edit the JanusGraph data-source configuration, you can either use the Web user-interface or edit the configuration file located at linkurious/data/config/production.json.

Example configuration:

{
  "dataSources": [
    {
      "graphdb": {
        "vendor": "janusGraph",
        "url": "ws://127.0.0.1:8182/",
        "configuration": {
          "storage.backend": "cassandra",
          "storage.hostname": "127.0.0.1"
        }
      },
      "index": {
        "vendor": "janusGraphSearch",
        "create": true
      }
    }
  ]
}

Supported graphdb options for JanusGraph:

  • url (required): URL of the Gremlin server (must be a WebSocket URL, i.e. start with ws:// or wss://)
  • configuration (required): Dictionary of configuration values (for reference, see the JanusGraph documentation)
  • configurationPath (alternative to configuration): Path to the Gremlin configuration file on the Gremlin server
  • user (optional): JanusGraph user
  • password (optional): JanusGraph password
  • alternativeNodeId (optional): Name of the node property to use as reference in visualizations (see alternative IDs)
  • alternativeEdgeId (optional): Name of the edge property to use as reference in visualizations
  • latitudeProperty (optional): Name of the node property to use for latitude (used in geo mode)
  • longitudeProperty (optional): Name of the node property to use for longitude (used in geo mode)
  • allowSelfSigned (optional, default false): Whether to allow self-signed certificates

Note that exactly one option among configuration and configurationPath has to be defined.

Search with JanusGraph

In order to have full-text search, you can choose among the following options:

JanusGraph For Compose

Linkurious can connect to your JanuGraph instances deployed on Compose.

Configuration

Example configuration:

{
  "dataSources": [
    {
      "graphdb": {
        "vendor": "janusGraphForCompose",
        "url": "wss://xyz.composedb.com:16916",
        "user": "admin",
        "password": "XYZ",
        "graphName": "myGraph"
      },
      "index": {
        "vendor": "elasticSearch",
        "host": "127.0.0.1",
        "port": 9201
      }
    }
  ]
}

Supported graphdb options for JanusGraph For Compose:

  • url (required): URL of the Gremlin server provided by Compose (must be a WebSocket URL, i.e. start with ws:// or wss://)
  • user (optional): JanusGraph user
  • password (optional): JanusGraph password
  • graphName (required): Name of the graph to use
  • create (optional): true to let Linkurious create the repository if it does not exist
  • alternativeNodeId (optional): Name of the node property to use as reference in visualizations (see alternative IDs)
  • alternativeEdgeId (optional): Name of the edge property to use as reference in visualizations
  • latitudeProperty (optional): Name of the node property to use for latitude (used in geo mode)
  • longitudeProperty (optional): Name of the node property to use for longitude (used in geo mode)
  • allowSelfSigned (optional, default false): Whether to allow self-signed certificates