I am looking for a way in which the query can be prepared and be fired on the remote server. I know that is is feasible in Stardog and GraphDB using rdf4j in Java. But how can that be done using python for Blazegraph? I have tried looking at Sparqlwrapper and rdflib. rdflib supports prepared statement but it can only be used for file parsing and I havent find much documentation of the same as a driver as is the case of rdf4j. SparqlWrapper enables the use of remote repository querying but doesnt have examples of prepared statements and I am in need of both.
I have looked at this SPARQL query on the remote remote endpoint RDFLib / Redland but this seems to be outdated (8 years old)
Requirement is to build a microservice over blazegraph to execute user specific input at run time. In case prepared statements are not being used, string concatenation will make it vulnerable to security threats and boilerplate codes.