-
Notifications
You must be signed in to change notification settings - Fork 581
fix: SPARQL LOAD ... INTO GRAPH handling
#2554
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
fix: SPARQL LOAD ... INTO GRAPH handling
#2554
Conversation
797e7bb to
0444fd7
Compare
|
@rdfguy I think this should fix your problem https://twitter.com/oralassila/status/1695913300423225687 |
|
A consequence of this change is also that relative IRI lookup for graphs I will add a test for this also tomorrow to confirm. |
|
Also seems like windows does not like file URIs, I will look into that tomorrow also. |
0444fd7 to
6d14617
Compare
Okay nevermind, tests pass on windows now, I just forgot to use URIs. |
|
Reading the commits the changes make sense, and in line with what I observed yesterday when my |
`LOAD ... INTO GRAPH` stopped working correctly after the change to handling of the `publicID` `Graph.parse` parameter in RDFLib 7.0.0 (<RDFLib#2406>). This is because `LOAD` evaluation relied on `publicID` to select the graph name. So after <RDFLib#2406> data would be loaded into the default graph even if a named graph is specified. This change adds tests for `LOAD ... INTO GRAPH` and fixes the load evaluation. A consequence of this change is also that relative IRI lookup for graphs loaded with `LOAD ... INTO GRAPH` is now relative to the source document URI instead of the base URI of the graph being loaded into, which is more correct.
6d14617 to
bb2ff6b
Compare
The PR has changes to the publicID that is used, which affects relative URI resolution, so that should also be tested.
Done now. |
|
I will merge this tomorrow if there is no futher feedback. |
Summary of changes
LOAD ... INTO GRAPHstopped working correctly after the change to handling of thepublicIDGraph.parseparameter in RDFLib 7.0.0 (#2406).This is because
LOADevaluation relied onpublicIDto select the graph name. So after #2406 data would be loaded into the default graph even if a named graph is specified.This change adds tests for
LOAD ... INTO GRAPHand fixes the load evaluation.Checklist
the same change.
so maintainers can fix minor issues and keep your PR up to date.