Hi Steven,

can't you use envsubst or sed to inject the var values and pre-process
the file before passing it to Fuseki?


Martynas

On Mon, Apr 14, 2025 at 11:49 AM Steven Blanchard
<steven.blanchard@microbiome.studio> wrote:
>
> Dear,
>
> I'd like to know if it's possible to configure the folder where the
> tdb2 dataset is created when data is inserted via a fuseki server
>
> I use a curl request to insert this data.
>
> We've found the config-tdb2 files in the templates directory which
> manage this output directory, but we can't add an extra argument like
> FUSEKI_BASE or NAME.
>
> example of expected template :
>
> ```bash
>
> # Licensed under the terms of
> http://www.apache.org/licenses/LICENSE-2.0
>
> 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 tdb2:    <http://jena.apache.org/2016/tdb#>
>
> PREFIX ja:      <http://jena.hpl.hp.com/2005/11/Assembler#>
>
> ## ---------------------------------------------------------------
>
> ## Updatable TDB dataset with all services enabled.
>
> <#service_tdb_all> rdf:type fuseki:Service ;
>
>     rdfs:label      "TDB2 {NAME}" ;
>
>     fuseki:name     "{NAME}" ;
>
>     fuseki:dataset  <#tdb_dataset_readwrite> ;
>
>     fuseki:endpoint [ fuseki:operation fuseki:query ] ;
>
>     fuseki:endpoint [ fuseki:operation fuseki:update ] ;
>
>     fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ] ;
>
>     fuseki:endpoint [ fuseki:name "sparql" ;
>
>                       fuseki:operation
> fuseki:query ] ;
>
>     fuseki:endpoint [ fuseki:name "query" ;
>
>                       fuseki:operation
> fuseki:query ] ;
>
>     fuseki:endpoint [ fuseki:name "update" ;
>
>                       fuseki:operation
> fuseki:update ] ;
>
>     fuseki:endpoint [ fuseki:name "data" ;
>
>                       fuseki:operation
> fuseki:gsp-rw ] ;
>
>     fuseki:endpoint [ fuseki:name "get" ;
>
>                       fuseki:operation
> fuseki:gsp-r ] ;
>
>
>
>     .
>
> <#tdb_dataset_readwrite> rdf:type      tdb2:DatasetTDB2 ;
>
>     tdb2:location "{FUSEKI_BASE}/databases/{DATABASE}/{NAME}" ;
>
>     ##ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue
> "3000" ] ;
>
>     ##tdb2:unionDefaultGraph true ;
>
> ```
>
> Thanks,
>
> Steven
>
>                 [Logo Microbiome Studio]
>
>
>
> __
>
>                 MICROBIOME STUDIO BY ABOLIS BIOTECHNOLOGIES
>  28 Rue Château des Rentiers
> 75013 Paris, France
> _https://abolis.fr/ [https://microbiomestudio.com/]_
>  _ https://microbiomestudio.com/ [https://microbiomestudio.com/]_
>
>                 _Ce message ainsi que les pièces jointes sont établis à
> l'intention exclusive de ses destinataires et sont confidentiels. Si
> vous recevez ce message par erreur, merci de le détruire et d'en
> avertir immédiatement l'expéditeur
>
> This message and any attachments may contain privileged and
> confidential information. It is intended solely for the addressees and
> is confidential. If you receive this message in error, please delete
> it and immediately notify the sender._
>

Reply via email to