-
Notifications
You must be signed in to change notification settings - Fork 572
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 return of the context of a given identifier #845
base: 8.x
Are you sure you want to change the base?
Conversation
This is re: #167 |
It's been a while, but I prefer this: #409 - I think 🤔 |
@gromgull Wow, 4 years ago 🤦♂️ I personally agree with your solution, two levels of APIs, one for But I really confuse of current If I create
I printed out The output:
Triple stored in But if I change the code to add quad to it:
The output:
Now if I concatenate above snippets (changed a little bit in URIs but same graph URI):
The output:
:-( I think that's why If store handles graph store (by graph id), graph handles triples and dataset handles multiple graphs (default graph can store in |
Hi @GreatYYX, are you still interested in solving this issue? We area just about to release 5.0.0 which won't include any changes like this or PR #409 however we will then move to working on 6.0.0, due in perhaps a couple of months, and that release will include a fix to graph ID issues in rdflib, hopefully comprehensively (i.e. for Graph, ConjunctiveGraph, Store & Dataset). |
Hi @nicholascar , it's been a while, but I'm happy to hear that this project is still being pushed forward. LMK if there is anything i can help. |
Do we want to close this in favor of #409 or do we want to accept it for now? |
Close/Open Travis |
This issue is all about what type of object is needed to refer to a graph. The object in the example is a string but you need to use a URIRef. Proposed solution for 6.0.0: use type hints (since Python 3.6 will be the minimum supported version) indicating that a |
The query with
GRAPH
doesn't work properly if graph is added fromrdflib.graph.Dataset.add_graph()
. See the following example:Nothing returns.
But if you replace query (replace named graph
subgraph
to a variable) toyou can get correct results:
This issue is caused by the implementation of
rdflib.graph.ConjunctiveGraph.get_context()
.