You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
g=Dataset()
g.parse(file=Path('fixed_config.n3').open('rt'), format='n3')
g.parse(file=Path('ui_selections.n3').open('rt'), format='n3')
g.parse(source='http://10.43.160.4/graph/currentEvents', format='trig')
foreving.quads((cal, EV['event'], None, None)):
log.info(f' found an event1 {ev}')
foreving.objects((cal, EV['event'], None, None)):
log.info(f' found an event2 {ev}')
The first log prints once but the second does not. I expected the queries to match the same statements (returning a quad in log1 or a the quad's object node in log2).
The text was updated successfully, but these errors were encountered:
I just spent some hours being confused by this. Indeed, enabling default_union fixes the problem.
Without that setting, dataset.triples((s, p, o)) only iterates over the default graph, unlike .quads((s, p, o, None)).
That may be intentional, but the documentation for Dataset explicitly says that "querying triples return them all regardless of the graph" which as far as I can tell is not true.
The first log prints once but the second does not. I expected the queries to match the same statements (returning a quad in log1 or a the quad's object node in log2).
The text was updated successfully, but these errors were encountered: