Skip to content

Dataset quads and objects don't find the same data #2944

Open
@drewp

Description

    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')

            for ev in g.quads((cal, EV['event'], None, None)):
                log.info(f'    found an event1 {ev}')
            for ev in g.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).

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions