我该如何开始从耶拿API的Eclipse项目中的定式服务器? [英] How do I start a Fuseki server from Jena API Eclipse project?
问题描述
您好我是新来的语义Web域和Apache耶拿enviroments过,这就是为什么我张贴了这个问题。
Hi I am new to the Semantic Web domain and Apache Jena enviroments too, which is why I am posting this question.
我有一个项目,利用耶拿的API。当我运行它,它显示在控制台输出。
I have a project that makes use of Jena API. And when I run it, it shows output in the console.
我也从CMD线运行的定式服务器,它跑了作为一个本地服务器,我可以做一些与查询和所有玩耍。
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.
我的问题是,是否有可能贯穿我的项目,使得使用的API,如果是这样,为什么它应该做的服务器上的项目?我很困惑,为什么我们有一个定式服务器,但不是通过API启动它的原因。
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.
推荐答案
用类似命令行执行任何Java程序,你可以调用主
直接
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.
这篇关于我该如何开始从耶拿API的Eclipse项目中的定式服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!