Fuseki2 should be compatible in configuration with Fuseki1 - that's
the intent anyway so if it isn't then please let us know.
I used the following configuration file:
@prefix : <#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#service_test>
) .
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
<#service_test> rdf:type fuseki:Service ;
rdfs:label "TDB Service (RW)" ;
fuseki:name "verdata" ;
fuseki:serviceQuery "query" ;
fuseki:serviceQuery "sparql" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#test> ;
.
<#test> rdf:type tdb:DatasetTDB ;
tdb:location "../db/test" ;
.
Then I load the server with:
$ ./fuseki-server --config=../config.ttl
15:53:55 Server INFO Fuseki 2.0.0-beta-1-SNAPSHOT
2014-12-03T23:51:22+0000
15:53:56 Config INFO
FUSEKI_HOME=/home/daniel/jena-test/jena-fuseki-2.0.0-beta-1-46
15:53:56 Config INFO
FUSEKI_BASE=/home/daniel/jena-test/jena-fuseki-2.0.0-beta-1-46/run
15:53:56 Servlet INFO Initializing Shiro environment
15:53:56 Config INFO Shiro file:
file:///home/daniel/jena-test/jena-fuseki-2.0.0-beta-1-46/run/shiro.ini
15:53:57 Config INFO Configuration file: ../config.ttl
15:53:58 Builder INFO Service: TDB Service (RW)
15:54:00 Config INFO Register: /verdata
15:54:00 Server INFO Started 2014/12/05 15:54:00 CLST on port 3030
The "../db/test" directory that I specify in as the tdb:location
property of <#test> in the configuration was created. But I do not
see it in the web interface in the "manage dataset".
The "manage datasets" (cogs) should have "add new dataset".
Yes it has it, but is empty.
The current functionality for "add dataset" does not include
uploading assembler files and there are only two choice - memory and
persistent (TDB) with fixed service names. (These are actually
templates - you can look at the assemblers in the distribution.)
Do you see that functionality? If not, what sort of system are you
running on? (OS, browser).
I don't see it, bot cogs are empty. I'm working with: debian wheezy
and I check it with the browsers: Iceweasel 31.2.0, Opera 12.16 and
Konqueror 4.8.4.
If you are running Fuseki as a service, then the configuration file
approach may well be better - you can deploy with a script (chef,
puppet, sh) and run it. The UI is good for development and control of
a single server.
I also run Fuseki without a config file:
$ ./fuseki-server --update
16:54:47 Server INFO Fuseki 2.0.0-beta-1-SNAPSHOT
2014-12-03T23:51:22+0000
16:54:48 Config INFO
FUSEKI_HOME=/home/daniel/jena-test/jena-fuseki-2.0.0-beta-1-46
16:54:48 Config INFO
FUSEKI_BASE=/home/daniel/jena-test/jena-fuseki-2.0.0-beta-1-46/run
16:54:48 Servlet INFO Initializing Shiro environment
16:54:48 Config INFO Shiro file:
file:///home/daniel/jena-test/jena-fuseki-2.0.0-beta-1-46/run/shiro.ini
16:54:49 Server INFO Started 2014/12/05 16:54:49 CLST on port 3030
but I don't see the fields in the "add new dataset".
Thanks,
Daniel