SPARQL-Anything / PySPARQL-Anything

The SPARQL Anything Python library
Apache License 2.0
10 stars 0 forks source link

RDFLib integration #4

Closed mielvds closed 1 year ago

mielvds commented 1 year ago

It would be useful if you could directly get an RDFlib Graph object from it. We've been using SA in that way, so we have some code lying around that we could contribute.

MarcoR1791 commented 1 year ago

Hi Miel,

Might the following method (in class pysparql_anything.sparql_anything.SparqlAnything) be what you are looking for?

construct(**kwargs)
"""Executes a CONSTRUCT query and returns a rdflib graph object."""
mielvds commented 1 year ago

Ow I missed that. Perfect, thanks!