Skip to content

Missing default_graph in sparql_protocol writer #15

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

Closed
jurrian opened this issue Oct 13, 2017 · 1 comment
Closed

Missing default_graph in sparql_protocol writer #15

jurrian opened this issue Oct 13, 2017 · 1 comment

Comments

@jurrian
Copy link
Contributor

jurrian commented Oct 13, 2017

When writing to Openlink Virtuoso (07.20.3217) with the current sparql_protocol writer, a 400 bad request is returned with the following error:

Virtuoso 37000 Error SP031: SPARQL compiler: No plain default graph specified in the preamble, but it is needed for triple constructor in DELETE {...} without GRAPH {...}

Examples of the sparql_protocol feature a default_graph attribute:

store = surf.Store(reader = 'sparql_protocol',
                   endpoint = 'http://dbpedia.org/sparql',
                   default_graph = 'http://dbpedia.org')

However, in the code there seems no sign of usage of this attribute, which is needed for triple stores like Virtuoso.

I will create a pull request for the fix.

@jurrian
Copy link
Contributor Author

jurrian commented Oct 17, 2017

Pull request merged, closing this issue

@jurrian jurrian closed this as completed Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant