Hi everyone,

I'm trying to execute a SPARQL update on fuseki 3.14.0
I have a output success, but the triples are not updated. It means, they remain 
with the previous value.

Find here the example I'm using in the update:

DELETE 
 { <http://demo.test#d6e3af2f-8686-46eb-9145-81669fdcfae6>      
<http://demo.test#hasSimilarityProcessStatus> ?o . } 
INSERT 
 { <http://demo.test#d6e3af2f-8686-46eb-9145-81669fdcfae6>      
<http://demo.test#hasSimilarityProcessStatus>  "closed" . } 
WHERE 
 { <http://demo.test#d6e3af2f-8686-46eb-9145-81669fdcfae6>      
<http://demo.test#hasSimilarityProcessStatus> ?o . } 

Later you can select the value by running:


SELECT *
WHERE {
  <http://demo.test#d6e3af2f-8686-46eb-9145-81669fdcfae6> 
<http://demo.test#hasSimilarityProcessStatus> ?object
}
LIMIT 25

So, I also have tested different combinations using DELETE/INSERT DATA:

DELETE DATA {  <http://demo.test#d6e3af2f-8686-46eb-9145-81669fdcfae6>  
<http://demo.test#hasSimilarityProcessStatus> "undefined" };
INSERT DATA {  <http://demo.test#d6e3af2f-8686-46eb-9145-81669fdcfae6>  
<http://demo.test#hasSimilarityProcessStatus> "running" }

Moreover, I'm using TDB2 with lucene index

@prefix :      <http://base/#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix tdb2:  <http://jena.apache.org/2016/tdb#> .
@prefix ja:    <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
@prefix text:  <http://jena.apache.org/text#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .

ja:DatasetTxnMem  rdfs:subClassOf  ja:RDFDataset .
ja:MemoryDataset  rdfs:subClassOf  ja:RDFDataset .
ja:RDFDatasetOne  rdfs:subClassOf  ja:RDFDataset .
ja:RDFDatasetSink  rdfs:subClassOf  ja:RDFDataset .
ja:RDFDatasetZero  rdfs:subClassOf  ja:RDFDataset .

tdb2:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb2:DatasetTDB2  rdfs:subClassOf  ja:RDFDataset .

tdb2:GraphTDB  rdfs:subClassOf  ja:Model .
tdb2:GraphTDB2  rdfs:subClassOf  ja:Model .

<http://jena.hpl.hp.com/2008/tdb#DatasetTDB>
    rdfs:subClassOf  ja:RDFDataset .

<http://jena.hpl.hp.com/2008/tdb#GraphTDB>
    rdfs:subClassOf  ja:Model .

text:TextDataset
    rdfs:subClassOf  ja:RDFDataset .

:service_tdb_all  a               fuseki:Service ;
    rdfs:label                    "TDB2+text permissions" ;
    fuseki:dataset                :text_dataset ;
    fuseki:name                   "permissions" ;
    fuseki:serviceQuery           "query" , "" , "sparql" ;
    fuseki:serviceReadGraphStore  "get" ;
    fuseki:serviceReadQuads       "" ;
    fuseki:serviceReadWriteGraphStore "data" ;
    fuseki:serviceReadWriteQuads  "" ;
    fuseki:serviceUpdate          "" , "update" ;
    fuseki:serviceUpload          "upload" .

:text_dataset a text:TextDataset ;
    text:dataset :tdb_dataset_readwrite ;
    text:index :index_lucene . 

:tdb_dataset_readwrite
    a tdb2:DatasetTDB2 ;
    tdb2:unionDefaultGraph true ;
    tdb2:location  "/tmp/fuseki/databases/permissions" .

:index_lucene a text:TextIndexLucene ;
    text:directory <file:/tmp/fuseki/databases/permissions/text> ;
    text:entityMap :entity_map ;
    text:analyzer [ a text:StandardAnalyzer ] ;
    text:queryAnalyzer [ a text:StandardAnalyzer ] ;
    text:multilingualSupport true ;
    text:storeValues true .
       

# Text index configuration 
:entity_map a text:EntityMap ;
    text:entityField      "uri" ;
    text:graphField       "graph" ;
    text:defaultField     "pref" ;
    text:uidField         "uid" ;
    text:langField        "lang" ;
    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 ;
         ]
     ) . 
Any help is very appreciated, 

Best Regards,
Silvio

Reply via email to