Skip to content
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

Local (ReproHub) python handling of my_nidm.ttl #9

Open
dnkennedy opened this issue May 25, 2022 · 1 comment
Open

Local (ReproHub) python handling of my_nidm.ttl #9

dnkennedy opened this issue May 25, 2022 · 1 comment

Comments

@dnkennedy
Copy link
Contributor

Would love to be able to have the students load their my_nidm.ttl into the python notebook on the ReproHub, so that can do some additional things over the pynidm 'linear-regression'.

@satra suggested trying:

import rdflib as rl
g = rl.ConjunctiveGraph()
g.parse("path/to/ttl", format="turtle")
res = g.query(query)
res.bindings --> should be convertable to a dataframe fairly easily
@dnkennedy
Copy link
Contributor Author

I'm trying to work out what the 'syntax' of the 'query' above would be... @dbkeator pointed me to some that I've yet to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant