Having worked on this some more, I think this is not something @solid/query-ldflex
can do. Thus, I’ve resorted to using rdflib. Documentation is somewhat sparse, especially when it comes to inserting data, but this other forum post helped somewhat, for those coming across this in the future: RDFLIB documentation