Skip to content

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

Description

@dnkennedy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions