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
{{ message }}
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
I am extending Sophia to use [TriplesFormatter], and I find the above very inconvenient. Everytime I want to create a Subject or Term "view" of my internal terms, if that term is a quoted triple, I need to allocate a Rio Triplesomewhere that I can then reference. And I have to do this recursively, which is a pain. (I was unable to achieve that without some unsafe code...)
Did you run into a similar problem with Oxigraph? Did you find an elegant way to solve it?
I would suggest to change the variant in Subject and Term
Triple(Box<Triple<'a>>)
I think that the code of the parser would be minimally impacted by that change, and it would make it much easier to use the formatters.
If you agree with the general idea, I can propose a PR.
SubjectandTermboth have a variant that goes:I am extending Sophia to use [
TriplesFormatter], and I find the above very inconvenient. Everytime I want to create aSubjectorTerm"view" of my internal terms, if that term is a quoted triple, I need to allocate a RioTriplesomewhere that I can then reference. And I have to do this recursively, which is a pain. (I was unable to achieve that without some unsafe code...)Did you run into a similar problem with Oxigraph? Did you find an elegant way to solve it?
I would suggest to change the variant in
SubjectandTermI think that the code of the parser would be minimally impacted by that change, and it would make it much easier to use the formatters.
If you agree with the general idea, I can propose a PR.