-
Notifications
You must be signed in to change notification settings - Fork 555
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
trig export of multiple graphs assigns wrong prefixes to prefixedNames #679
Comments
I wanted to add that I see this behavior even in the case of parsing a dataset with a single graph in |
I've fixed the broken trig output, but it remains ugly. The underlying issue is #698 - since you do:
you end up with a Graph instance with it's own namespace manager. So each subgraph generates it's own independent space of prefix mappings during trig serialisation. It's actually much worse than this - these graphs do not share a store. So if you tried to persist the dataset, nothing would work. It's our fault, passing a graph instance to Change the code to :
and all is good. |
It seems, that trig export does not handle prefixes and named graphs very well (or at all). Trying to export a dataset with multiple graphs overwrites already assigned prefixes, produces different prefix assignments, wrong graph prefixes or prefixNames on different runs.
Testcase:
Can produce the following
or
both are created with the same function
The text was updated successfully, but these errors were encountered: