-
Notifications
You must be signed in to change notification settings - Fork 558
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
SPARQLUpdateStore does not work with GraphDB endpoints #1251
Comments
I can confirm that the code above with the following lines to mystore.add((
URIRef("http://example.org/John"),
URIRef("http://example.org/livesIn"),
URIRef("http://example.org/Vienna"),
)) I'll look into |
Another follow-up: I don't get a Also, when I look in the GraphDB query log after running the original code, i.e. [INFO ] 2021-02-08 21:10:42,973 [repositories/myrepo | c.o.t.m.MonitorRepositoryConnection] Incoming update:
CREATE GRAPH <http://example.org/mygraph> So it looks to me like rdflib is passing the correct create graph message to GraphDB but GraphDB doesn't seem to be creating the graph correctly and there's no indication that the triples of the graph are being sent over. Wehn I run
|
With mystore.add(...) I get the exact same 415 error. In GraphDB's log it shows the following (for both add and add_graph): [INFO ] 2021-02-08 13:36:27,926 [repositories/myrepo | c.o.f.s.GraphDBProtocolExceptionResolver] Client sent bad request ( 415) What versions did you use to run add() successfully? My setup is: GraphDB 9.4.1 |
GraphDB 8.10 Definitely something odd there as I'm really not getting 415 errors. I might have to look into the SPARQLUpdateStore code to see what headers are emitted. |
I think I'm seeing the same behavior with Jena/Fuseki too. |
I suspect I'm seeing a flavor of this problem with I'm seeing this when calling |
I'm regularly using GraphDB with RDF libraries from a variety of languages, but could never make it with rdflib and hoped this will be solved in the major update that is 5.0.0. From what I was able to gather this is an issue of its SPARQLUpdateStore (which also happens to be weakly documented). The following is a piece of Python that attempts to write a graph into a GraphDB store.
Not sure if I'm doing something wrong or if there's a problem with rdflib, but what I get is:
requests.exceptions.HTTPError: 415 Client Error: for url: http://localhost:7200/repositories/myrepo/statements
The text was updated successfully, but these errors were encountered: