kdejaeger opened a new issue, #1432:
URL: https://github.com/apache/jena/issues/1432

   ### Version
   
   4.5.0
   
   ### What happened?
   
   We have been tirelessly trying to figure out why we couldn't find data 
anymore through text:query. Now it turns out everything works fine but as soon 
as you call /$/compact new or updated data doesn't get indexed anymore.
   
   We run the compact like this
   `
           String[] compactCMD = {
               "curl", "-u", "admin:" + 
appProperties.getFuseki().getAdminPassword(), "-XPOST",
               appProperties.getFuseki().getUrl() + 
"/$/compact/fedora?deleteOld=true"
           };
           var compactProcess = Runtime.getRuntime().exec(compactCMD);
   `
   
   ### Relevant output and stacktrace
   
   ```shell
   @prefix :       <http://base/#> .
   @prefix fuseki: <http://jena.apache.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 tdb2:   <http://jena.apache.org/2016/tdb#> .
   @prefix text:   <http://jena.apache.org/text#> .
   @prefix dc:     <http://purl.org/dc/elements/1.1/> .
   @prefix ibron:  <http://surf.nl/ibron/item/2020/07/> .
   
   tdb2:GraphTDB  rdfs:subClassOf  ja:Model .
   
   ja:ModelRDFS  rdfs:subClassOf  ja:Model .
   
   ja:RDFDatasetSink  rdfs:subClassOf  ja:RDFDataset .
   
   <http://jena.hpl.hp.com/2008/tdb#DatasetTDB>
           rdfs:subClassOf  ja:RDFDataset .
   
   tdb2:GraphTDB2  rdfs:subClassOf  ja:Model .
   
   <http://jena.apache.org/text#TextDataset>
           rdfs:subClassOf  ja:RDFDataset .
   
   ja:RDFDatasetZero  rdfs:subClassOf  ja:RDFDataset .
   
   :service_tdb_all  rdf:type            fuseki:Service ;
           rdfs:label                    "TDB2 fedora" ;
           fuseki:dataset                :text_dataset ;
           fuseki:name                   "fedora" ;
           fuseki:serviceQuery           "query" , "" , "sparql" ;
           fuseki:serviceReadGraphStore  "get" ;
           fuseki:serviceReadWriteGraphStore
                   "data" ;
           fuseki:serviceUpdate          "" , "update" ;
           fuseki:serviceUpload          "upload" .
   
   ja:ViewGraph  rdfs:subClassOf  ja:Model .
   
   ja:GraphRDFS  rdfs:subClassOf  ja:Model .
   
   tdb2:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
   
   <http://jena.hpl.hp.com/2008/tdb#GraphTDB>
           rdfs:subClassOf  ja:Model .
   
   ja:DatasetTxnMem  rdfs:subClassOf  ja:RDFDataset .
   
   tdb2:DatasetTDB2  rdfs:subClassOf  ja:RDFDataset .
   
   ja:RDFDatasetOne  rdfs:subClassOf  ja:RDFDataset .
   
   ja:MemoryDataset  rdfs:subClassOf  ja:RDFDataset .
   
   :text_dataset rdf:type text:TextDataset ;
     text:dataset :tdb_dataset_readwrite ;
     text:index <#lucene> ;
     .
   
   :tdb_dataset_readwrite rdf:type       tdb2:DatasetTDB2 ;
           tdb2:location  "/fuseki-base/databases/fedora" .
   
   ja:DatasetRDFS  rdfs:subClassOf  ja:RDFDataset .
   
   <#lucene> a text:TextIndexLucene ;
       text:directory <file:/fuseki-base/databases/lucene-fedora> ;
       text:storeValues true ;
       text:entityMap <#entity-map> ;
       .
   
   <#entity-map> a text:EntityMap ;
       text:entityField "uri" ;
       # text:graphField "graph" ; ## enable graph-specific indexing
       text:defaultField "text" ; ## Must be defined in the text:map
       text:uidField "uid" ;
       # text:langField "lang" ;
       text:map (
            [ text:field "text" ; text:predicate dc:title ]
            [ text:field "text" ; text:predicate ibron:subTitle ]
            )
   ```
   
   
   ### Are you interested in making a pull request?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to