Personally, do Fuseki development/debug inside Eclipse.
There are two ways:
1/ Run full Fuseki with UI, doing the setup in Java and calling
FusekiCmd.main
2/ Run the embedded server (Fuseki, no UI).
1/ Full Fuseki
To run in Eclipse, you can do all the setup and directly call the "main"
from Java.
See
https://gist.github.com/afs/3f450ce7198a1e52f67d98e920e30dcb
and copied below
Summary:
Set "FUSEKI_HOME", "FUSEKI_BASE" as system properties.
Point FUSEKI_HOME to the development code area for jena-fuseki-core
Call FusekiCmd.main
2/ Embedded
For the next release: if youy have the code, it's in
jena-fuseki-embedded.
Draft documentation with examples of use:
http://jena.staging.apache.org/documentation/fuseki2/fuseki-embedded.html
Andy
public class RunFuseki2
{
public static void main(String[] args) throws Exception {
String BASE = "/home/afs/tmp" ;
String fusekiHome = "/home/afs/Jena/jena-fuseki2/jena-fuseki-core" ;
String fusekiBase = BASE+"/run" ;
System.setProperty("FUSEKI_HOME", fusekiHome) ;
System.setProperty("FUSEKI_BASE", fusekiBase) ;
String runArea = Paths.get(fusekiBase).toAbsolutePath().toString() ;
FileOps.ensureDir(runArea) ;
FileOps.clearAll(runArea); // *************
FusekiCmd.main(
"--conf="+BASE+"/config.ttl"
//"--conf=/home/afs/tmp/conf.ttl"
) ;
System.exit(0) ;
}
}
On 03/10/16 21:21, Jason Koh wrote:
Hi all,
I am trying to embed some function (SPIN as talked in another thread) to
jena-arq so that Fuseki can use it smoothly. I was able to import the
entire project into eclipse (Neon) but cannot run Fuseki there. What I am
doing is i) editing and ii) run mvn in the command line (I cannot find
maven build in Eclipse.), iii) unzip target archive in Fuseki and then iv)
run the server using ./fuseki-server
I would like to build and run the server as a debug mode in Eclipse so that
I don't have to go through all the above steps.
This is probably due to my lack of knowledge on Eclipse framework, but I
would appreciate if I could learn how to do it. Either direct enlightenment
or pointers to documents will be appreciated.
Thanks a lot.
With regards,
Jason Koh
cseweb.ucsd.edu/~jbkoh