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

optional / filter ! bound interaction malfunction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: BLAZEGRAPH_RELEASE_1_5_2
    • Component/s: None
    • Labels:
      None

      Description

      With the following data:

      prefix skos: <http://www.w3.org/2004/02/skos/core#>
      INSERT {
        graph <eg:g> {
          <eg:p> <eg:special> <eg:q> .
          <eg:a> <eg:p> <eg:c> .
          <eg:b> <eg:p> <eg:d>
                 .
          <eg:a> <eg:q> "c" .
          <eg:b> <eg:q> "d" .
          <eg:c> skos:prefLabel "c"
          }
      }
      WHERE {}
      

      The following query returns one result (correctly)

      prefix skos: <http://www.w3.org/2004/02/skos/core#>
      prefix syapse: <http://localhost:8000/graph/syapse#>
      
      
      
      select * 
      where {
          ?vocabProp <eg:special> ?literalProp .
          ?s ?literalProp ?term .
          OPTIONAL {
             ?s ?vocabProp ?concept .
          }
          FILTER NOT EXISTS {
             ?concept skos:prefLabel 
                      ?term
         }
        #  FILTER (!bound(?concept))
      }
      

      Uncomment the last line, and a second result is also returned. Oops.

        Attachments

          Activity

            People

            Assignee:
            michaelschmidt michaelschmidt
            Reporter:
            jjc Jeremy Carroll
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: