Skip to content

bad behaviour in RDF::List #417

@doriantaylor

Description

@doriantaylor

I recently noticed while working on a project that initializing an RDF::List tends to write to the graph, and with the current set of parameters to the constructor, it appears to be very difficult to get it to not do that.

Ideally I would like a constructor to which I could pass what I suspect to be the head of an existing list and it reads the graph and slurps up the rest of it in a way that I can guarantee will not modify the existing graph. The current constructor appears to have a bias toward modifying, so I'm proposing either adding something like a :no_mutate flag to the current constructor, or creating a new constructor (I sketched one out elsewhere), or both. I have some time now so I can look into it; just registering the issue here.

Metadata

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