Jena Fuseki Service setup for learning SPARQL, Development and Testing purposes.
The binary distribution of Fuseki v3.17.0 is used to provide the service.
is used to start Fuseki as a permanent background service.
npm install https://github.com/dgwnu/fuseki-service.git --save
You can use the service from the command line like this:
npx fuseki-service run
or in a NPM-script:
"scripts": {
...
"cli:run": "fuseki-service run",
...
Command | Function |
---|---|
run (args) | Run Fuseki Service in a terminal session (stops after closing terminal session) |
start (args) | Start Fuseki as PM2 Service (permanent in the background) |
stop | Stop Fuseki as PM2 Service |
restart | Restart Fuseki as PM2 Service |
The Jena Fuseki Server server will execute with default arg(ument)s for the run and start commands:
- -- localhost
- --mem /dgwnu
You can replace the default args with all possible args that are available. See options by running the following at the command line:
npx fuseki-service run --help
It is possible to import the commands and use these for Node-based TypeScript applications:
import { startServer } from '@dgwnu/fuseki-service';
...
startServer(serverArgs).subscribe({
next: () => console.log('Server Started!'),
error: (err) => console.error(err)
});
...
The Fuseki Service CLI source provides all examples you need.