Skip to content

rdflib_hdt.optimize_sparql() produces incorrect results #14

Description

@chiarcos

Describe the bug

When querying in SPARQL mode, a query statement for which no variable binding can be found will bind to all triples in the graph. It should bind to none. This behavior appears after calling rdflib_hdt.optimize_sparql()

To Reproduce
Steps to reproduce the behavior:

  1. Unzip all.hdt.zip
  2. Run python3 hdt-test.py

Expected behavior
The last query should not return any results

System:

  • OS: Ubuntu 20.4L
  • Python 3.8.10
  • hdt 2.3
  • rdflib 6.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions