|
Download platform/dbops/binaries/janusgraph/examples/example-common/README.md from LevelUp2x/adaptai: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/main/platform/dbops/binaries/janusgraph/examples/example-common/README.md
- Command line
-
hf download hf://datasets/LevelUp2x/adaptai/platform/dbops/binaries/janusgraph/examples/example-common/README.md
-
curl -L -o README.md https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/main/platform/dbops/binaries/janusgraph/examples/example-common/README.md
1.32 kB
Common Example
About the common example
GraphApp is an abstract
class that defines a basic structure for a graph application. It contains
methods for configuring a graph instance, defining a graph schema, creating
a graph structure, and querying a graph.
JanusGraphApp is
a subclass of GraphApp using JanusGraph-specific methods to create the schema.
In-Memory configuration
jgex-inmemory.properties contains the
settings for the JanusGraph in-memory storage backend.
This backend is primarily for testing purposes.
Dependencies
The required Maven dependency for in-memory JanusGraph:
<dependency>
<groupId>org.janusgraph</groupId>
<artifactId>janusgraph-core</artifactId>
<version>${janusgraph.version}</version>
</dependency>
Run the example
This command can be run from the examples or the project's directory.
mvn exec:java -pl :example-common
Drop the graph
The in-memory JanusGraph does not store anything into a persistent location, so the graph will disappear when the application finishes.