-
Notifications
You must be signed in to change notification settings - Fork 124
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
Convert SPARQLWrapper.SmartWrapper to pandas dataframe #205
Comments
@appliedgraphs have you seen this existing script: https://github.com/RDFLib/sparqlwrapper/blob/master/SPARQLWrapper/sparql_dataframe.py |
I hadn't, but it's nice and easy to follow. It also works wonderfully! What can be done to make this easier to find or otherwise more integrated with rdflib? |
Yes, I think PANDAS is well known enough to be supported as a standard output option. The only hitch is that we want to ensure basic installation of SPARQLWrapper doesn't require PANDAS, since it's large, so it can be included but a pip install optional will need to be made to enable it. Something like Would love to see a PR for this... |
@nicholascar Already: Lines 53 to 54 in 2a6e2d3
|
Great, thanks @eggplants, so the installation tasks are already done. So, I suppose, a deeper integration of PANDAS could be made, as long as appropriate warnings are thrown if users try and call PANDAS exports without the necessary installation. |
this is what pyLodStorage was motivated by https://github.com/WolfgangFahl/pyLoDStorage where you get list of dicts that you can immediately use in pandas see #160 |
I want to convert a SmartWrapper to a pandas DF. We have two relevant issues:
My goal is to execute a SPARQL query, get a result, and then transform to a dataframe. I am certain that I am missing something because this must be a very common need.
The text was updated successfully, but these errors were encountered: