Step 1: Add Inrupt Java Client Libraries
If you have not already, open your Spring Boot project in your IDE.
For Java, this tutorial assumes an initialized Spring Boot Web Maven Project.
For Kotlin, this tutorial assumes an initialized Spring Boot Web Gradle Project.
1. Add inrupt-client-bom
For Java, this tutorial assumes an initialized Spring Boot Web Maven Project.
To your project’s pom.xml :
Add the
inrupt-client-bomdependency in the project’s<dependencyManagement>section.Replace
SUBSTITUTE_VERSIONwith the version to use.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-bom</artifactId>
<version>SUBSTITUTE_VERSION</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>For the latest version of inrupt-client-bom ,
Go to Maven Central .
Search for
inrupt-client-bom. Get the version for the package withcom.inrupt.clientnamespace.
For Kotlin, this tutorial assumes an initialized Spring Boot Web Gradle Project.
To your project’s build script build.gradle.kts :
Add the
inrupt-client-bomplatform dependency.Replace
SUBSTITUTE_VERSIONwith the version to use.
dependencies {
//... additional dependencies
implementation(platform("com.inrupt.client:inrupt-client-bom:SUBSTITUTE_VERSION"))
}For the latest version of inrupt-client-bom ,
Go to Maven Central .
Search for
inrupt-client-bom. Get the version for the package withcom.inrupt.clientnamespace.
2. Add Specific Module Dependencies
To your project’s pom.xml file, you can either:
Add the
inrupt-client-runtimeto include all recommended Java Client Libraries runtime modules; orAdd specific Java Client Libraries modules.
To include all recommended runtime modules from the Java Client Libraries, add the following dependency to the <dependencies> section in your project’s pom.xml file.
The recommended modules include those modules used to:
Access your WebID,
Perform read and write operations (both RDF and non-RDF resources) on your Pod,
For the read of RDF resources, return the RDF resources in Turtle and JSON, and
Use access requests and access grants.
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-runtime</artifactId>
</dependency>To your project’s pom.xml file, add the specific library modules in your project <dependencies> section. The following example includes the modules used to:
Access your WebID,
Perform read and write operations (both RDF and non-RDF resources) on your Pod, and
For the read of RDF resources, return the RDF resources in Turtle and JSON, and
Use access requests and access grants.
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-api</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-solid</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-core</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-okhttp</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-jackson</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-jena</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-openid</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-accessgrant</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-uma</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-vocabulary</artifactId>
</dependency>
<dependency>
<groupId>com.inrupt.client</groupId>
<artifactId>inrupt-client-webid</artifactId>
</dependency>Inrupt’s Java Client Libraries are composed of different modules . See Library Modules for the list of available modules and their description.
Once you have modified your pom.xml , reload your Maven dependencies if your IDE has not automatically done so.
To your project’s build script build.gradle.kts , add the specific library modules as module dependencies. The following example includes the modules used to:
Add the
inrupt-client-runtimeto include all recommended Java Client Libraries runtime modules; orAdd specific Java Client Libraries modules.
To include all recommended runtime modules from the Java Client Libraries, add the following inrupt-client-runtime dependency. The recommended modules include those modules used to:
Access your WebID,
Perform read and write operations (both RDF and non-RDF resources) on your Pod,
For the read of RDF resources, return the RDF resources in Turtle and JSON, and
Use Access Requests and Access Grants.
dependencies {
//... additional dependencies
implementation(platform("com.inrupt.client:inrupt-client-bom:SUBSTITUTE_VERSION"))
implementation("com.inrupt.client:inrupt-client-runtime")
}You can add specific library modules. The following example includes the modules used to:
Access your WebID,
Perform read and write operations (both RDF and non-RDF resources) on your Pod,
For the read of RDF resources, return the RDF resources in Turtle and JSON, and
Use Access Requests and Access Grants.
dependencies {
//... additional dependencies
implementation(platform("com.inrupt.client:inrupt-client-bom:SUBSTITUTE_VERSION"))
implementation("com.inrupt.client:inrupt-client-api")
implementation("com.inrupt.client:inrupt-client-solid")
implementation("com.inrupt.client:inrupt-client-core")
implementation("com.inrupt.client:inrupt-client-okhttp")
implementation("com.inrupt.client:inrupt-client-jackson")
implementation("com.inrupt.client:inrupt-client-jena")
implementation("com.inrupt.client:inrupt-client-accessgrant")
implementation("com.inrupt.client:inrupt-client-openid")
implementation("com.inrupt.client:inrupt-client-uma")
implementation("com.inrupt.client:inrupt-client-vocabulary")
implementation("com.inrupt.client:inrupt-client-webid")
}Inrupt’s Java Client Libraries are composed of different modules . See Library Modules for the list of available modules and their description.
Once you have modified your build script (e.g., build.gradle or build.gradle.kts ), reload your dependencies if your IDE has not automatically done so.
Last updated