shmarql icon indicating copy to clipboard operation
shmarql copied to clipboard

Add the union-default-graph option to make SPARQL queries use the union of all graphs as the default graph

Open ch-sander opened this issue 1 year ago • 1 comments

see https://github.com/oxigraph/oxigraph/pull/975 and https://github.com/oxigraph/oxigraph/issues/973 This is currently a feature of the CLI, not sure about pyoxigraph supporting it in the same way.

ch-sander avatar Aug 23 '24 13:08 ch-sander

would be an easy fix, thanks to use_default_graph_as_union:

query = """
SELECT ?s ?p ?o ?a
WHERE {
    ?s ?p ?o .
}
LIMIT 10
"""
results = store.query(query=query,use_default_graph_as_union=True)

ch-sander avatar Aug 23 '24 14:08 ch-sander