PREFIX :        <undefined:>
PREFIX fuseki:  <http://jena.apache.org/fuseki#>
PREFIX hdt:     <http://www.rdfhdt.org/fuseki#>
PREFIX ja:      <http://jena.hpl.hp.com/2005/11/Assembler#>
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 tdb2:    <http://jena.apache.org/2016/tdb#>
PREFIX text:    <http://jena.apache.org/text#>

:public a fuseki:Service ;
    rdfs:label                        "public" ;
    fuseki:name                       "public" ;
    fuseki:serviceQuery               "query" ;
    # fuseki:serviceReadGraphStore      "get" ;
    # fuseki:serviceReadWriteGraphStore "data" ;
    # fuseki:serviceUpdate              "update" ;
    # fuseki:serviceUpload              "upload" ;
    fuseki:dataset                    :dataset ;
    .

# We build a RDFDataset of named graphs extracted by several datasets. To query
# the union of all imported graphs, use "SELECT FROM <urn:x-arq:UnionGraph>" or
# append "?default-graph-uri=urn:x-arq:UnionGraph" to the request.
:dataset a ja:RDFDataset ;
    # ja:defaultGraph :union ;
    
    ja:namedGraph [
        ja:graphName :dokk ;
        ja:graph [
            a tdb:GraphTDB ;
            # tdb:graphName ... ; use default graph from dataset
            tdb:dataset [
                a tdb:DatasetTDB ;
                tdb:location "/opt/fuseki/run/databases/graph/" ;
            ]
        ]
    ] ;
    
    .

# UNUSED
# :inference_dataset a ja:InfModel ;
#     ja:baseModel :union ;
#     ja:reasoner [
#         ja:reasonerURL <http://jena.hpl.hp.com/2003/GenericRuleReasoner> ;
#         ja:rulesFrom <file:///opt/fuseki/run/inference/test> ;
#     ] .

# UNUSED
# :union a ja:UnionModel ;
#     ja:subModel :dokk_graph ;
#     
#     # Add more:
#     # ja:subModel ...
#     .
