Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Variable Named Graphs not working #5

Open
pbonte opened this issue Feb 6, 2017 · 0 comments
Open

Variable Named Graphs not working #5

pbonte opened this issue Feb 6, 2017 · 0 comments
Assignees

Comments

@pbonte
Copy link
Collaborator

pbonte commented Feb 6, 2017

When querying named graphs with a variable name, no results are given.
Example query:

SELECT * 
FROM NAMED :tmp
WHERE
  { GRAPH ?g
      { ?s  ?p  ?o }
  }

Solution: Create a Dataset with a empty default graph:
Dataset dataset = DatasetFactory.create(ModelFactory.createDefaultModel());

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants