title: DELETE fails using Fuseki 0.2.6 and Pellet 2.3.1
body: <p>I am forced to include the external reasoner Pellet with my Fuseki server. So far everything works nice, despite the fact, that I am not able to delete triples containing a literal such as a String or an Integer.
  My setup: Fuseki 0.2.6 configured with Pellet 2.3.1 as reasoner.<br>
  Minimal example config: </p>
  
  <pre><code>@prefix :        &lt;#&gt; .
  @prefix fuseki:  &lt;http://jena.apache.org/fuseki#&gt; .
  @prefix rdf:     &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
  
  @prefix rdfs:    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
  @prefix tdb:     &lt;http://jena.hpl.hp.com/2008/tdb#&gt; .
  @prefix ja:      &lt;http://jena.hpl.hp.com/2005/11/Assembler#&gt; .
  
  [] rdf:type fuseki:Server ;
     fuseki:services (
       &lt;#mem&gt;
     ) .  
  
  ## ---------------------------------------------------------------
  ## Updatable in-memory dataset.
  
  &lt;#mem&gt; rdf:type fuseki:Service ;
      # URI of the dataset -- http://host:port/mem
      fuseki:name                        "mem" ; 
      fuseki:serviceQuery                "sparql" ;
      fuseki:serviceQuery                "query" ;
      fuseki:serviceUpdate               "update" ;
      fuseki:serviceUpload               "upload" ;
      fuseki:serviceReadWriteGraphStore  "data" ;     
      fuseki:serviceReadGraphStore       "get" ;
      fuseki:dataset                     &lt;#emptyDataset&gt; ;
      .
  
  ## In-memory, initially empty.
  &lt;#emptyDataset&gt; rdf:type ja:RDFDataset ;
                  ja:defaultGraph       &lt;#model_inf1&gt; ;
   .
  
  &lt;#model_inf1&gt; rdfs:label "Inf-model" ;
   ja:reasoner
   [ ja:reasonerClass 
   "org.mindswap.pellet.jena.PelletReasonerFactory";]
   . 
  </code></pre>
  
  <p>Minimal owl file loaded in memory:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  
  &lt;!DOCTYPE rdf:RDF [
      &lt;!ENTITY owl "http://www.w3.org/2002/07/owl#" &gt;
      &lt;!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" &gt;
      &lt;!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" &gt;
      &lt;!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" &gt;
      &lt;!ENTITY test "http://www.semanticweb.org/ontologies/2014/9/test.owl#" &gt;
  ]&gt;
  
  
  &lt;rdf:RDF xmlns="http://www.semanticweb.org/ontologies/2014/9/test.owl#"
       xml:base="http://www.semanticweb.org/ontologies/2014/9/test.owl"
       xmlns:test="http://www.semanticweb.org/ontologies/2014/9/test.owl#"
       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:owl="http://www.w3.org/2002/07/owl#"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
       xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"&gt;
      &lt;owl:Ontology rdf:about="http://www.semanticweb.org/ontologies/2014/9/test.owl"/&gt;
  
  
  
      &lt;!-- 
      ///////////////////////////////////////////////////////////////////////////////////////
      //
      // Data properties
      //
      ///////////////////////////////////////////////////////////////////////////////////////
       --&gt;
  
  
  
  
      &lt;!-- http://www.semanticweb.org/ontologies/2014/9/test.owl#hasAge --&gt;
  
      &lt;owl:DatatypeProperty rdf:about="&amp;test;hasAge"&gt;
          &lt;rdfs:domain rdf:resource="&amp;test;human"/&gt;
          &lt;rdfs:range rdf:resource="&amp;xsd;integer"/&gt;
      &lt;/owl:DatatypeProperty&gt;
  
  
  
      &lt;!-- http://www.semanticweb.org/ontologies/2014/9/test.owl#hasName --&gt;
  
      &lt;owl:DatatypeProperty rdf:about="&amp;test;hasName"&gt;
          &lt;rdfs:domain rdf:resource="&amp;test;human"/&gt;
          &lt;rdfs:range rdf:resource="&amp;xsd;string"/&gt;
      &lt;/owl:DatatypeProperty&gt;
  
  
  
      &lt;!-- 
      ///////////////////////////////////////////////////////////////////////////////////////
      //
      // Classes
      //
      ///////////////////////////////////////////////////////////////////////////////////////
       --&gt;
  
  
  
  
      &lt;!-- http://www.semanticweb.org/ontologies/2014/9/test.owl#human --&gt;
  
      &lt;owl:Class rdf:about="&amp;test;human"/&gt;
  
  
  
      &lt;!-- 
      ///////////////////////////////////////////////////////////////////////////////////////
      //
      // Individuals
      //
      ///////////////////////////////////////////////////////////////////////////////////////
       --&gt;
  
  
  
  
      &lt;!-- http://www.semanticweb.org/ontologies/2014/9/test.owl#Alfred --&gt;
  
      &lt;owl:NamedIndividual rdf:about="&amp;test;Alfred"&gt;
          &lt;rdf:type rdf:resource="&amp;test;human"/&gt;
      &lt;/owl:NamedIndividual&gt;
  &lt;/rdf:RDF&gt;
  </code></pre>
  
  <p>I am running the server with "--update" flag on localhost, load above "test.owl" into default graph and then I insert two literals:</p>
  
  <pre><code>insert data {test:Alfred test:hasName "Alfred"^^xsd:string;
                           test:hasAge "43"^^xsd:integer .}
  </code></pre>
  
  <p>Querying all triples linked with "Alfred" shows, that inserting succeeded:</p>
  
  <pre><code>PREFIX test: &lt;http://www.semanticweb.org/ontologies/2014/9/test.owl#&gt;
  PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
  PREFIX rdfs: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
  
  Select *
  Where{test:Alfred ?p ?o}
  
  --------------------------------------------------------------------------------------------
  | p                                      | o                                               |
  ============================================================================================
  | rdfs:type                              | test:human                                      |
  | rdfs:type                              | &lt;http://www.w3.org/2002/07/owl#Thing&gt;           |
  | &lt;http://www.w3.org/2002/07/owl#sameAs&gt; | test:Alfred                                     |
  | test:hasAge                            | 43                                              |
  | test:hasName                           | "Alfred"^^xsd:string                            |
  | rdfs:type                              | &lt;http://www.w3.org/2002/07/owl#NamedIndividual&gt; |
  -------------------------------------------------------------------------------------------
  </code></pre>
  
  <p>Then I try to delete Alfred's age and name:</p>
  
  <pre><code>delete data {test:Alfred test:hasAge "43"^^xsd:integer}
  delete data {test:Alfred test:hasName "Alfred"^^xsd:string}
  </code></pre>
  
  <p>But no matter which delete pattern I try, literals cannot be removed. I checked SPARQL Update syntax without errors. Triples not containing any literals can be inserted and deleted without problems. I think this behavior could be raised by the pellet plugin as all delete operations work with fuseki server using its default jena reasoner. Upgrading to Fuseki 1.1.1 is not an option, as this seems to arise compatibility/visibility problems with pellet showing the error:</p>
  
  <pre><code>Error 500: tried to access field com.hp.hpl.jena.reasoner.BaseInfGraph.isPrepared from class org.mindswap.pellet.jena.PelletInfGraph
  Fuseki - version 1.1.1 (Build date: 2014-10-02T16:36:17+0100)
  </code></pre>
  
  <p>I also tried this with TDB database ending up with the same result that I could not delete any triples with literals. Can anybody reproduce this behavior? Does anybody know a solution or a workaround? Am I missing something? I would appreciate any hints. Thank you for your support and effort - Michael</p>