rdflib-endpoint: easily register custom functions and deploy SPARQL endpoints with RDFLib #1613
vemonet
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi the RDFLib community, I developed a wrapper to easily expose RDFLib graph publicly with custom SPARQL functions:
Checkout the package repository: https://github.com/vemonet/rdflib-endpoint
I found this existing project: rdflib-web
But it was not usable to me:
Features
Here are a few features of the
rdflib-endpoint
package:Example code
Example of code to register a function and start the SPARQL endpoint:
What still needs to be improved
Properly handles all possible format via a clean content negociation depending on the query verb. Currently working well with CSV/JSON/XML for Select queries.
But it works only for turtle when doing a Construct query: for some reason when serializing the exact same graph as
format='xml'
RDFLib returns a empty XML file, but when asking for turtle the RDF is as expected.I did not take the time to improve this part because all I am interested in is proper support for federated queries. And those issues are more related to RDFLib serialization problem (and to be honest, the least I use XML, the happiest I am!)
Anyone interested?
I was wondering if anyone was interested in reusing this package in the RDFLib community? I am already using it for 2 small services:
I was also considering publishing the package as
rdflib-endpoint
on PyPI, is this something that the RDFLib Team would be interested in? (I don't want to mess with naming of packages and confuse the users)Beta Was this translation helpful? Give feedback.
All reactions