public class Mindmaps extends Object
Main entry point to connect to a Mindmaps knowledge graph. To connect to a knowledge graph, first make sure you have a Mindmaps Engine server running. You can also instantiate an in-memory knowledge graph for testing or experimentation purposes.
To establish a connection, you first need to obtain a MindmapsGraphFactory by calling
the factory(String, String) method. A MindmapsGraphFactory to a given physical
location and specific database instance within that location. Once you've instantiated a factory,
you can obtain as many concurrent graph connection, represented by the MindmapsGraph
interface as you would like.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_URI |
static String |
IN_MEMORY |
| Constructor and Description |
|---|
Mindmaps() |
| Modifier and Type | Method and Description |
|---|---|
static MindmapsGraphFactory |
factory(String location,
String keyspace)
Obtain the
MindmapsGraphFactory for a given location and keyspace. |
public static final String DEFAULT_URI
public static final String IN_MEMORY
public static MindmapsGraphFactory factory(String location, String keyspace)
Obtain the MindmapsGraphFactory for a given location and keyspace.
location - The location from which to create the graph. For an in memory graph,
use the IN_MEMORY constant defined in this class. For the default, localhost
Mindmaps Engine location, use the DEFAULT_URI constant provided in this class.keyspace - THe keyspace, or database name, where the knowledge graph is stored. A given
database server will support multiple database instances. You need to explicitly name
the instance to be used. In general, if one doesn't exist, it will be created for you.Copyright © 2016. All rights reserved.