Github user kinow commented on the issue:

    https://github.com/apache/jena/pull/395
  
    Example configuration used for testing:
    
    ```
    @prefix :        <#> .
    @prefix fuseki:  <http://jena.apache.org/fuseki#> .
    @prefix dc:      <http://purl.org/dc/elements/1.1/> .
    @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#> .
    @prefix text:    <http://jena.apache.org/text#> .
    @prefix skos:    <http://www.w3.org/2004/02/skos/core#> .
    
    [] ja:loadClass "org.apache.jena.tdb.TDB" .
    tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
    tdb:GraphTDB    rdfs:subClassOf  ja:Model .
    
    [] ja:loadClass "org.apache.jena.query.text.TextQuery" .
    text:TextDataset      rdfs:subClassOf   ja:RDFDataset .
    text:TextIndexLucene  rdfs:subClassOf   text:TextIndex .
    
    [] rdf:type fuseki:Server ;
       fuseki:services (
         <#service_text_tdb>
       ) .
    
    <#service_text_tdb> rdf:type fuseki:Service ;
        rdfs:label                      "TDB/text service" ;
        fuseki:name                     "ds" ;
        fuseki:serviceQuery             "query" ;
        fuseki:serviceQuery             "sparql" ;
        fuseki:serviceUpdate            "update" ;
        fuseki:serviceUpload            "upload" ;
        fuseki:serviceReadGraphStore    "get" ;
        fuseki:serviceReadWriteGraphStore    "data" ;
        fuseki:dataset                  :text_dataset ;
    .
    
    :text_dataset rdf:type     text:TextDataset ;
        text:dataset   <#dataset> ;
        text:index     <#indexLucene> ;
        .
    
    <#dataset> rdf:type      tdb:DatasetTDB ;
        tdb:location "/tmp/db" ;
        tdb:unionDefaultGraph true ; # Optional
        .
    
    <#indexLucene> a text:TextIndexLucene ;
        text:directory <file:/tmp/lucene> ;
        text:entityMap <#entMap> ;
        text:storeValues true ;
        text:defineAnalyzers (
          [ 
            text:defineAnalyzer <#configuredAnalyzer> ;
            text:analyzer [
              a text:ConfigurableAnalyzer ;
              text:tokenizer <#tokenizer> ;
              text:filters ( :selectiveFoldingFilter text:LowerCaseFilter )
            ]
          ]
          [
            text:defineTokenizer <#tokenizer> ;
            text:tokenizer [
              a text:GenericTokenizer ;
              text:class "org.apache.lucene.analysis.core.LowerCaseTokenizer" 
            ]
          ]
          [
            text:defineFilter :selectiveFoldingFilter ;
            text:filter [
              a text:GenericFilter ;
              text:class 
"org.apache.jena.query.text.filter.SelectiveFoldingFilter" ;
              text:params (
                [ 
                  text:paramName "whitelisted" ;
                  text:paramType text:TypeSet ;
                  text:paramValue ("ç" "ä")
                ]
              )
            ]
          ]
        ) ;
        text:analyzer [
          a text:DefinedAnalyzer ;
          text:useAnalyzer <#configuredAnalyzer> 
        ] ;
        text:queryAnalyzer [ 
          a text:DefinedAnalyzer ;
          text:useAnalyzer <#configuredAnalyzer> 
        ] ;
        text:queryParser text:AnalyzingQueryParser ;
        text:multilingualSupport true ;
     .
    
    <#entMap> a text:EntityMap ;
        text:defaultField     "pref" ;
        text:entityField      "uri" ;
        text:uidField         "uid" ;
        text:langField        "lang" ;
        text:graphField       "graph" ;
        text:map (
             # skos:prefLabel
             [ text:field "pref" ;
               text:predicate skos:prefLabel
             ]
             # skos:altLabel
             [ text:field "alt" ;
               text:predicate skos:altLabel
             ]
             # skos:hiddenLabel
             [ text:field "hidden" ;
               text:predicate skos:hiddenLabel 
             ]
         ) 
     .
    ```


---

Reply via email to