Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bergos/fuseki
Fuseki server wrapper and management API
https://github.com/bergos/fuseki
Last synced: about 2 months ago
JSON representation
Fuseki server wrapper and management API
- Host: GitHub
- URL: https://github.com/bergos/fuseki
- Owner: bergos
- Created: 2016-10-11T21:17:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T10:12:35.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T18:21:32.134Z (10 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fuseki
A Fuseki server wrapper and management API.
Java must be installed on the machine, everything else (including downloading the jar files) is done by `npm install`.## Usage
### Constructor(Object options)
`options` can have the following properties:
- home: Path to Fuseki which will set as environment variable `FUSEKI_HOME` (default: ./fuseki)
- pipeOutput: Forward the output of Fuseki to `stdout` and `stderr` (default: false)### Promise .start()
Starts the server.
### Promise .stop()
Stops the server.
### Promise .alive()
Checks if the server is alive.
This is done with a `GET` request to `/$/ping`.
The Promise is rejected if the server isn't alive.### Promise .wait(timeout=10000)
Waits for the server to show up.
If the server doesn't respond until the given `timeout` the Promise will be rejected.### Promise .datasets()
Returns the list of available datasets on the server.
### Promise .createDataset(name, type, filename, graph='default')
Creates a new datasets with the given `name`.
The `type` must be `tdb` for a persistent dataset or `mem` for in memory.
The dataset will be filled initially if `filename` is given.
The named graph given in `graph` will be used for the file upload.### Promise .uploadDataset(name, filename, graph='default')
Will upload a file with the given `filename` to the dataset `name` to the named graph `graph`.