How do I start a Fuseki server from Jena API Eclipse project?

做~自己de王妃 提交于 2019-12-20 05:58:13

问题


Hi I am new to the Semantic Web domain and Apache Jena enviroments too, which is why I am posting this question.

I have a project that makes use of Jena API. And when I run it, it shows output in the console.

I did run Fuseki server from cmd line and it ran as a local server and I could do some playing around with queries and all that.

My question is, is it possible to run the project on the server through my project that makes use of the API, and if so, why it should be done? I am confused as to the reason why we have a Fuseki server but aren't starting it through the API.


回答1:


Like any java program with command line execution, you can call main directly:

org.apache.jena.fuseki.FusekiCmd.main("--loc=DB", "--update", "/ds") ;

This can be in a forked thread if you want.



来源:https://stackoverflow.com/questions/24971291/how-do-i-start-a-fuseki-server-from-jena-api-eclipse-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!