rdflib icon indicating copy to clipboard operation
rdflib copied to clipboard

Add a container type that is not coupled to a graph

Open aucampia opened this issue 1 year ago • 1 comments

Currently, RDFLib has a container for lists that is coupled to a graph, but this makes it less versatile. If, for example, we want to write tests for lists, the graph has to be defined at the same time as the list, so writing parameterized tests is quite challenging.

Having a container type that is entirely decoupled from a graph would make it easier to write tests that involve lists.

aucampia avatar Aug 10 '23 19:08 aucampia

This PR has some test code which could be much simpler if RDFLib provided better ways for dealing with lists:

  • https://github.com/RDFLib/rdflib/pull/2517

aucampia avatar Aug 10 '23 20:08 aucampia