# 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 tdb:     <http://jena.hpl.hp.com/2008/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      "TDB1 {NAME}" ;
    fuseki:name     "{NAME}" ;
    fuseki:dataset  <#tdb_dataset_readwrite> ;
    
    fuseki:endpoint [ fuseki:operation fuseki:query ] ;
    fuseki:endpoint [ fuseki:operation fuseki:gsp-r ] ;

    fuseki:endpoint [ fuseki:name "sparql" ;
                      fuseki:operation fuseki:query ] ;
    fuseki:endpoint [ fuseki:name "query" ;
                      fuseki:operation fuseki:query ] ;
    fuseki:endpoint [ fuseki:name "get" ;
                      fuseki:operation fuseki:gsp-r ] ;
    .

<#tdb_dataset_readwrite> rdf:type      tdb:DatasetTDB ;
    tdb:location "{FUSEKI_BASE}/databases/{NAME}" ;
    ##ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "3000" ] ;
    ##tdb:unionDefaultGraph true ;
    .
