Hi all,
I have a problem with getting Fuseki server working with unit tests.
What I do is the following:
1- Create and start Fuseki server via the following piece of code:
*fusekiServer = FusekiServer.create().add("/sparql",
DatasetFactory.create(ModelFactory.createDefaultModel())).port(9090).build();fusekiServer.start();*
2- Load data as follows:
*try (RDFConnection conn =
RDFConnectionFactory.connect("http://localhost:9090/sparql
<http://localhost:9090/sparql>")) {*
*conn.load(dataModel);**}*
3- I can then send SPARQL queries to that endpoint.
This works fine in runtime. However, in unit tests mode I get
"org.apache.jena.atlas.web.HttpException" exception with message "500 -
Server Error" when loading the data.
Further, if I try to send a query I get
"org.apache.jena.sparql.engine.http.QueryExceptionHTTP" exception." with
message "HTTP 500 error making the query: Server Error".
Can you please help me out with this?
Thank you!
kind regards,
Mohamed Morsey