How to write a java code to connect to virtuoso?

I want to write a java code to connect to virtuoso and insert RDF triples . Preferably I’ll be using Spring Framework . How can I write a java code to connect to virtuoso ?

There are a number of means to connect to Virtuoso from a Java client, the most basic being using Virtuoso’s JDBC Driver which can be used for performing both SPARQL and SQL queries against the database.

Virtuoso also supports the Java based Jena and RDF4J/Sesame frameworks for storing and querying RDF databases.

2 Likes