Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get distinct graphs runs out of memory #1694

Open
ktk opened this issue Dec 20, 2024 · 1 comment
Open

Get distinct graphs runs out of memory #1694

ktk opened this issue Dec 20, 2024 · 1 comment

Comments

@ktk
Copy link

ktk commented Dec 20, 2024

While many statistical queries are really fast in QLever, selecting distinct graphs does not seem to be one of them at the moment. The official SPARQL spec would require

SELECT DISTINCT ?g WHERE {
  GRAPH ?g { ?s ?p ?o}
} 

which runs out of memory pretty much immediately.

Stardog also allows this short form, which I like:

SELECT * WHERE {
  GRAPH ?g {}
} 
@ktk
Copy link
Author

ktk commented Dec 20, 2024

Turns out the short hand is actually in SPARQL: w3c/sparql-dev#205 (comment)

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

No branches or pull requests

1 participant