Programming with GraphDB

GraphDB is built on top of RDF4J, a powerful Java framework for processing and handling RDF data. This includes creating, parsing, storing, inferencing and querying over such data. It offers an easy-to-use API. GraphDB comes with a set of example programs and utilities that illustrate the basics of accessing GraphDB through the RDF4J API.

Installing Maven dependencies

All GraphDB programming examples are provided as a single Maven project. Since GraphDB is not available from Maven Central (the public Maven repository), you have to install the GraphDB runtime jar into your local Maven repository.

To do that, go to the examples/maven-installer subdirectory of the distribution and run:

mvn install

Note that the Maven executable, mvn, must be in your path.


The three examples below can be found under examples/developer-getting-started of the GraphDB distribution.

We also recommend the online book Programming with RDF4J provided by the RDF4J project. It provides detailed explanations on the RDF4J API and its core concepts.