[redland-dev] [Rasqal RDF Query Library 0000434]: OPTIONAL and named graphs don't mix

Mantis Bug Tracker mantis-bug-sender at librdf.org
Wed Mar 23 10:48:06 CET 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=434 
====================================================================== 
Reported By:                dbrnz
Assigned To:                
====================================================================== 
Project:                    Rasqal RDF Query Library
Issue ID:                   434
Category:                   query engine
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Query Language:             SPARQL 
====================================================================== 
Date Submitted:             2011-03-23 09:48
Last Modified:              2011-03-23 09:48
====================================================================== 
Summary:                    OPTIONAL and named graphs don't mix
Description: 
The query:

SELECT * WHERE {
  graph ?g {
    ?s a <http://example.org/Class> .
    optional { ?s <http://example.org/property> ?o }
    }
  }

returns no results even though the query:

SELECT * WHERE {
  graph ?g {
    ?s a <http://example.org/Class> .
    ?s <http://example.org/property> ?o
    }
  }

does.

Steps to Reproduce: 
Run the attached script with the attached RDF.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-23 09:48 dbrnz          New Issue                                    
2011-03-23 09:48 dbrnz          File Added: test                             
======================================================================



More information about the redland-dev mailing list