Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-964

GRAPH ignored by FILTER NOT EXISTS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed - Won't Fix
    • Resolution: Duplicate
    • Affects Version/s: BIGDATA_RELEASE_1_3_0
    • Fix Version/s: None
    • Component/s: Query Plan Generator
    • Labels:
      None

      Description

      Given the following data:

      @prefix  :     <http://sample.com/> .
      
      <http://graph.com/test> {
      :I :am   "a" .
      :I :live "a_live" .
      :I :work "a_work" .
      }
      
      <http://graph.com/test_1> {
      :I :am   "a" .
      :I :am   "b" .
      :I :work "a_work" .
      :I :work "b_work" .
      }
      
      

      Now when I write this query , Since <http://sample.com/I> <http://sample.com/live> "a_live" does not exist in test_1 graph , it should write the new triples. But it does not write anything to test_1 graph, presumably because the same triple exists in graph test.

      INSERT {
        GRAPH <http://graph.com/test_1> {
          <http://sample.com/I> <http://sample.com/test>  "a_test_value".
        }
      }
      WHERE {
        GRAPH  <http://graph.com/test_1> {
          FILTER NOT EXISTS { <http://sample.com/I> <http://sample.com/live>  "a_live". }
        }
      }
      

      When I try executing the same SPARQL request with a triple that DOES NOT EXIST in both graphs, then it updates test_1 graph.

      INSERT {
        GRAPH <http://graph.com/test_1> {
          <http://sample.com/I> <http://sample.com/test>  "a_test_value".
        }
      }
      WHERE {
        GRAPH  <http://graph.com/test_1> {
          FILTER NOT EXISTS {<http://sample.com/I> <http://sample.com/live>  "a_a_live".}
        }
      }
      

      On first glance, this ticket appears to be a problem where the graph variable is not being respected by the FILTER NOT EXISTS clause. Therefore, this ticket might be a duplicate of BLZG-874

      See BLZG-874 (GRAPH ?g { FILTER NOT EXISTS { ?s ?p ?o } } not respecting ?g)

        Attachments

          Activity

            People

            Assignee:
            michaelschmidt michaelschmidt
            Reporter:
            bryanthompson bryanthompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: