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

ASK with property path produces wrong result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Duplicate
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Wikidata Query Service
    • Labels:
      None

      Description

      This query:

      ASK {
        wd:Q618123 wdt:P279+ wd:Q5 .
      }
      

      Produces "true". However, there's actually no property path like this between those two entities. It is easy to see from this query:

      PREFIX gas: <http://www.bigdata.com/rdf/gas#>
      SELECT * {
        SERVICE gas:service {
          gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ;
                      gas:in wd:Q618123 ;
                      gas:traversalDirection "Forward" ;
                      gas:out ?item ;
                      gas:out1 ?depth ;
                      gas:maxIterations 10 ;
                      gas:linkType wdt:P279 .
        }
      }
      

      Which produces only four items, none of which is Q5. Also, this:

      SELECT * WHERE {
        wd:Q618123 wdt:P279+ ?item .
      }
      

      produces correct result (3 items, none of which Q5). So it seems to be a problem with specifically ASK.

        Attachments

          Activity

            People

            Assignee:
            michaelschmidt michaelschmidt
            Reporter:
            stasmalyshev stasmalyshev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: