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

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