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

Using a bound variable to refer to a graph

    XMLWordPrintable

    Details

      Description

      When I try to use a variable that is crafted from a BIND(URI(CONCAT(< some literals >)) AS ?graph) function as a graph, I experience BigData not returning any result.
      I tried the query with the 1.3.0 release and I got a Java concurrent.ExecutionException. The same query works just fine on Jena's Fuseki store, so the issue must be a bug with BigData.
      Here's the full query I use:

      PREFIX : <http://www.interition.net/ref/>
      
      SELECT ?s ?p ?o WHERE
             { 
              GRAPH <http://www.interition.net/g1>
                { 
                  <s1> :aProperty ?literal .
      
                  BIND ( URI(CONCAT("http://www.interition.net/graphs/", ?literal )) AS ?graph) .
                }
      
                GRAPH ?graph { 
                        ?s ?p ?o .
                    }
          }
      

      for the following N-quads:

      <s1> <http://www.interition.net/ref/aProperty> "g2" <http://www.interition.net/g1> .
      <s2> <http://www.interition.net/ref/aState> "happy"   <http://www.interition.net/graphs/g2> .
      

        Attachments

          Activity

            People

            Assignee:
            michaelschmidt michaelschmidt
            Reporter:
            adamnogradi adamnogradi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: