Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample code for integration into Java program #74

Open
william-vw opened this issue Apr 9, 2019 · 0 comments
Open

Sample code for integration into Java program #74

william-vw opened this issue Apr 9, 2019 · 0 comments

Comments

@william-vw
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant