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#>

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

:dataset a tdb:DatasetTDB ;
    rdfs:label    "DOKK graph" ;
    tdb:location "/opt/fuseki/run/databases/graph/" ;
    # ja:defaultGraph <> ;
    # tdb:unionDefaultGraph true ;
    .

############################################################
# Lucene index example
############################################################
# :dokk-service a fuseki:Service ;
#     rdfs:label                          "dokk" ;
#     fuseki:name                         "dokk" ;
#     fuseki:serviceQuery                 "query", "sparql" ;
#     # fuseki:serviceReadGraphStore      "get" ;
#     # fuseki:serviceReadWriteGraphStore "data" ;
#     # fuseki:serviceUpdate              "update" ;
#     # fuseki:serviceUpload              "upload" ;
#     fuseki:dataset                      [ a            text:TextDataset ;
#                                           text:dataset :dataset ;
#                                           text:index   :dataset_index ]
#     .
# 
# Define the dataset for this endpoint.
# https://www.w3.org/TR/rdf-sparql-query/#rdfDataset
# :dataset a ja:RDFDataset ;
#     rdfs:label        "DOKK dataset" ;
#     # ja:defaultGraph <#graph1> ;
#     .
# 
# The Lucene index for the dataset.
# :dataset_index a text:TextIndexLucene ;
#     # text:directory "mem" ;
#     text:directory <file:lucene_index> ;
#     text:entityMap :index_map ;
#     .
# 
# Map of properties to index.
# More docoumentation at https://jena.apache.org/documentation/query/text-query.html
# :index_map a text:EntityMap ;
#     text:graphField   "graph" ;
#     text:entityField  "iri" ;
#     text:defaultField "rdfs_label" ;
#     text:map
#     (
#         [
#             text:field     "rdfs_label" ;
#             text:predicate rdfs:label
#         ]
#     )
#     .
# 
# EOF
