To learn about the mechanism that a Grakn Client uses to set up communication with keyspaces running on the Grakn Server, refer to Grakn > Client API > Overview.
To learn about the methods available for executing queries and retrieving their answers using Client Java, refer to Grakn > Client API > Java > API Reference.
To learn about the methods available on the concepts retrieved as the answers to Graql queries, refer to Grakn > Concept API > Overview
<repositories>
<repository>
<id>repo.grakn.ai</id>
<url>https://repo.grakn.ai/repository/maven/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.grakn.client</groupId>
<artifactId>api</artifactId>
<version>1.5.0</version>
</dependency>
</dependencies>
Further documentation: https://dev.grakn.ai/docs/client-api/java
Note: You don't need to compile Grakn Client from source if you just want to use it in your code. See the "Import Grakn Client for Java" section above.
-
Make sure you have the following dependencies installed on your machine:
- Java 8
- Bazel
-
Build the JAR:
a) to build the native/raw JAR:
bazel build //:client-java
The Java library JAR will be produced at:
bazel-bin/libclient-java.jar
b) to build the JAR for a Maven application:
bazel build //:assembl-maven
The Maven JAR and POM will be produced at:
bazel-bin/io.grakn.client:api.jar bazel-bin/pom.xml