I want to upload jena-fuseki’s dataset in a linux shell script before running unit test set.
I’ve tried the following commands:
-
~/jena_for_unit_testing/apache-jena-fuseki-3.13.1> ./fuseki-server --update --file ds_2024-04-25_13-58-06.nq.gz --port 3031 /test
-
~/jena_for_unit_testing/apache-jena-fuseki-3.13.1> ./fuseki-server --config run/config.ttl --update --file ds_2024-04-25_13-58-06.nq.gz --port 3031
-
~/jena_for_unit_testing/apache-jena-fuseki-3.13.1> ./fuseki-server --config run/config.ttl --update --port 3031
config.ttl:
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
## Fuseki Server 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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
<#service1> rdf:type fuseki:Service ;
fuseki:name "ds" ;
fuseki:endpoint [ fuseki:operation fuseki:query ;];
fuseki:endpoint [ fuseki:operation fuseki:query ; fuseki:name "sparql" ];
fuseki:endpoint [ fuseki:operation fuseki:query ; fuseki:name "query" ];
fuseki:endpoint [ fuseki:operation fuseki:update ; ];
fuseki:endpoint [ fuseki:operation fuseki:update ; fuseki:name "update" ];
fuseki:endpoint [ fuseki:operation fuseki:gsp-r ; fuseki:name "get" ];
fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; ] ;
fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; fuseki:name "data" ];
fuseki:endpoint [ fuseki:operation fuseki:upload ; fuseki:name "upload" ] ;
fuseki:dataset <#test>
.
<#test> rdf:type ja:RDFDataset .
In 1) I cannot update my dataset (Error 404: No endpoint: /test/update)
In 2) I get the error: Dataset specified on the command line but a configuration file also given.
In 3) I can update my dataset, but I don’t know how to upload ds_2024-04-25_13-58-06.nq.gz from command line before starting unit tests.