You can do something like this:

// find our Fuseki instance
final String fusekiUrl = "http://localhost:"; + PORT + "/jena-fuseki-war/";
// build a dataset to work with
final String datasetName = "testNormalOperation";
final Params params = new Params();
// we’re using an in-memory dataset here, but you could use a TDB-backed 
dataset instead
params.addParam("dbType", "mem");
params.addParam("dbName", datasetName);
execHttpPostForm(fusekiUrl + "$/datasets", params);

That’s Java, but it should be pretty easy to translate. The important point is 
to realize that the administrative forms are at the “{your-fuseki-instance}/$” 
url. In your case you want the  “{your-fuseki-instance}/$/datasets” section, to 
which you can POST your request for a new dataset.

---
A. Soroka
The University of Virginia Library

> On Nov 10, 2015, at 2:33 PM, Adrian Gschwend <[email protected]> wrote:
> 
> Hi,
> 
> I can't seem to figure out how I can create a new (persistent) database
> via scripts in Fuseki 2.3, documentation didn't help.
> 
> I need this for Travis so everything I do needs to be fully automated.
> Any hints on what I would have to execute towards the Fuseki endpoint?
> 
> regards
> 
> Adrian

Reply via email to