SmartDataAnalytics/Sparqlify

Sample code for integration into Java program

william-vw opened this issue · 0 comments

I couldn't find examples on how to integrate Sparqlify directly into a Java program, i.e., directly use it as one would use the Apache Jena or JDBC APIs. (I'm hoping that this is one of the targeted use cases of Sparqlify, beyond using it as a server or from cli). Apologies if I overlooked them. It seems that

https://github.com/SmartDataAnalytics/Sparqlify/blob/master/sparqlify-cli/src/main/java/org/aksw/sparqlify/web/Main.java

Contains some useful code in this regard but it's difficult to separate the CLI-related code from the other (useful) code, such as (?)

QueryExecutionFactoryEx qef = SparqlifyUtils.createDefaultSparqlifyEngine(dataSource, config, typeSerializer, sqlEscaper, mrs, maxQueryExecutionTime);

Any help would be appreciated.