You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The translateAlgebra function supports serializing a parsed SPARQL query as text. However, it does not include the DatasetClause of the parsed query.
For example:
fromrdflib.plugins.sparql.algebraimporttranslateAlgebrafromrdflib.plugins.sparql.processorimportprepareQueryquery_obj=prepareQuery("SELECT ?s FROM <http://example.org/G1> { ?s ?p ?o .}")
print(translateAlgebra(query_obj))