-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rdflib.collections issues #223
Comments
Also, no type rdf:List statement is added ... |
Correction, the list is ALWAYS closed (nil is always the rest of the last element), there is no way to leave the list open though. |
This one just bit me |
@wwaites if you find a fix in the next weeks we can get it into 4.2.2! |
Near as I can tell, it is safe to remove this assertion. Graph.items checks for recursion on the list structure itself . This check is simply incorrect for rdf:List that is quite unrestricted. There is no type that I know of with set semantics so I can't see where the assertion can ever be correct even for containers. |
Adding the same element twice to a collection triggers an exception when serializing the graph, but this shouldn't be a problem:
There is also no way to close the list, appending RDF.nil adds another bnode with first->nil and rest->nil.
The text was updated successfully, but these errors were encountered: