<commit_before>@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:    <http://www.w3.org/2001/XMLSchema#> .

@prefix module: <http://joseki.org/2003/06/module#> .
@prefix joseki: <http://joseki.org/2005/06/configuration#> .
@prefix ja:     <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix sdb:      <http://jena.hpl.hp.com/2007/sdb#> .

<> rdfs:label "Joseki Configuration File - SDB example" .
# Stripped down to support one service that exposes an
# SDB store as a SPARQL endpoint for query and one for 
# one of the graphs in an SDB store.

[]  rdf:type joseki:Server .

## --------------------------------------------------------------
## Services

# Service publishes the whole of the SDB store - this is the usual way to use SDB.
<#service1>
    rdf:type            joseki:Service ;
    rdfs:label          "SPARQL-SDB" ;
    joseki:serviceRef   "sparql" ;      # web.xml must route this name to Joseki
    joseki:dataset      <#sdb> ;
    joseki:processor    joseki:ProcessorSPARQL_FixedDS ;
    .

# Service that publishes part of an SDB store.
## <#service2>
##     rdf:type            joseki:Service ;
##     rdfs:label          "SPARQL-SDB (alt)" ;
##     joseki:serviceRef   "sparql/graph" ;   # web.xml must route this name to Joseki
##     joseki:dataset      <#sdb-part> ;
##     joseki:processor    joseki:ProcessorSPARQL_FixedDS ;
##     .

## SPARQL/Update.
## Creation of named graph from web requests is not supported.

<#serviceUpdate>
    rdf:type            joseki:Service ;
    rdfs:label          "SPARQL/Update" ;
    joseki:serviceRef   "update/service" ;
    # dataset part
    joseki:dataset      <#sdb>;     # Same as service1
    joseki:processor    joseki:ProcessorSPARQLUpdate
    .

## --------------------------------------------------------------
## Datasets

## See also SDB documentation -- http://jena.hpl.hp.com/wiki/SDB
## Special declarations to cause SDB to be used.

## Initialize SDB.
## Tell the system that sdb:DatasetStore is an implementation of ja:RDFDataset .
## Tell the system that sdb:Model is an implementation of ja:RDFDataset .

[] ja:loadClass "com.hp.hpl.jena.sdb.SDB" .
sdb:DatasetStore  rdfs:subClassOf  ja:RDFDataset .
sdb:Model rdfs:subClassOf  ja:Model .

<#sdb> rdf:type sdb:DatasetStore ;
    ## Number of concurrent connections allowed to this dataset.
    joseki:poolSize     2 ;         
    sdb:store <#store> .

<#store> rdf:type sdb:Store  ;
    rdfs:label "SDB" ;
    sdb:layout         "layout2" ;
    sdb:connection 
    [ rdf:type sdb:SDBConnection ;
##       sdb:sdbType        "postgresql" ;
##       sdb:sdbHost        "localhost" ;
##       sdb:sdbName        "SDB" ;

     # Using Apache Derby
     sdb:sdbHost        "localhost" ;
     sdb:sdbType        "derby" ;
     sdb:sdbName        "Derby/SDB" ;
    ]
    .

# Pick one graph out of the SDB store.
# Do not assemble the whole of the store this way - it is less efficient for that.
<#sdb-part> rdf:type ja:RDFDataset ;
    # If ja:namedGraph is used here, there is no correspondence
    # with the name in the SDB store.
    ja:defaultGraph <#sdb-one-graph> ;
    .

<#sdb-one-graph> a sdb:Model ; <commit_msg>*** empty log message ***<commit_after>@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:    <http://www.w3.org/2001/XMLSchema#> .

@prefix module: <http://joseki.org/2003/06/module#> .
@prefix joseki: <http://joseki.org/2005/06/configuration#> .
@prefix ja:     <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix sdb:      <http://jena.hpl.hp.com/2007/sdb#> .

<> rdfs:label "Joseki Configuration File - SDB example" .
# Stripped down to support one service that exposes an
# SDB store as a SPARQL endpoint for query and one for 
# one of the graphs in an SDB store.

[]  rdf:type joseki:Server .

## --------------------------------------------------------------
## Services

# Service publishes the whole of the SDB store - this is the usual way to use SDB.
<#service1>
    rdf:type            joseki:Service ;
    rdfs:label          "SPARQL-SDB" ;
    joseki:serviceRef   "sparql" ;      # web.xml must route this name to Joseki
    joseki:dataset      <#sdb> ;
    joseki:processor    joseki:ProcessorSPARQL_FixedDS ;
    .

# Service that publishes part of an SDB store.
## <#service2>
##     rdf:type            joseki:Service ;
##     rdfs:label          "SPARQL-SDB (alt)" ;
##     joseki:serviceRef   "sparql/graph" ;   # web.xml must route this name to Joseki
##     joseki:dataset      <#sdb-part> ;
##     joseki:processor    joseki:ProcessorSPARQL_FixedDS ;
##     .

## SPARQL/Update.
## Creation of named graph from web requests is not supported.

<#serviceUpdate>
    rdf:type            joseki:Service ;
    rdfs:label          "SPARQL/Update" ;
    joseki:serviceRef   "update/service" ;
    # dataset part
    joseki:dataset      <#sdb>;     # Same as service1
    joseki:processor    joseki:ProcessorSPARQLUpdate
    .

## --------------------------------------------------------------
## Datasets

## See also SDB documentation -- http://jena.hpl.hp.com/wiki/SDB
## Special declarations to cause SDB to be used.

## Initialize SDB.
## Tell the system that sdb:DatasetStore is an implementation of ja:RDFDataset .
## Tell the system that sdb:Model is an implementation of ja:RDFDataset .

[] ja:loadClass "com.hp.hpl.jena.sdb.SDB" .
sdb:DatasetStore  rdfs:subClassOf  ja:RDFDataset .
sdb:Model rdfs:subClassOf  ja:Model .

<#sdb> rdf:type sdb:DatasetStore ;
    ## Number of concurrent connections allowed to this dataset.
    joseki:poolSize     2 ;         
    sdb:store <#store> .

<#store> rdf:type sdb:Store  ;
    rdfs:label "SDB" ;
    sdb:layout         "layout2" ;
    sdb:connection 
    [ rdf:type sdb:SDBConnection ;
##       sdb:sdbType        "postgresql" ;
##       sdb:sdbHost        "localhost" ;
##       sdb:sdbName        "SDB" ;

     # Using Apache Derby
     sdb:sdbHost        "localhost" ;
     sdb:sdbType        "derby" ;
     sdb:sdbName        "DB/Derby" ;
    ]
    .

# Pick one graph out of the SDB store.
# Do not assemble the whole of the store this way - it is less efficient for that.
<#sdb-part> rdf:type ja:RDFDataset ;
    # If ja:namedGraph is used here, there is no correspondence
    # with the name in the SDB store.
    ja:defaultGraph <#sdb-one-graph> ;
    .

<#sdb-one-graph> a sdb:Model ; 
{'fraction_non_alphanumeric': 0.15733456732993983, 'fraction_numerical': 0.014807959278111986, 'mean_word_length': 2.293042153377349, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '880820', 'n_tokens_mistral': 2339, 'n_tokens_neox': 2260, 'n_words': 560}