-
Notifications
You must be signed in to change notification settings - Fork 4
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
Json export: ':' in attribute names #40
Comments
I came across the same issue this morning and, yes, we should harmonise the serialisations. Can we look at this together later this week? |
just curiosity: do we know why it was there in the first place ?
…On 28 February 2017 at 03:57, Guillaume ***@***.***> wrote:
I came across the same issue this morning and, yes, we should harmonise
the serialisations. Can we look at this together later this week?
I also had to add a few calls to get_value.m and deal with bundles.
There are also differences in the way Derivations are encoded (for peaks
to find out in which clusters they belong to).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQyaIw6fW7wUZmH0aPsiHY2_QIyqmjiks5rhAuvgaJpZM4MORsf>
.
|
@gllmflndn: Yes! Working on this together this week would be great. @jbpoline: I think this is something we could update in the SPM exporter. The final |
Hi @gllmflndn. I have also encountered this issue when trying to create a json file similar to this one in which I had are a lot of MATLAB-"invalid" characters in the json keys (e.g. Do you think we have a way around this or we will definitely have to limit ourselves to json keys that are valid MATLAB keys in order to be able to read/write those files in Matlab? This seems quite a big constraint compared to the json specification... I would love to hear your thoughts on this. Thank you! |
Hello @cmaumet. To write such a JSON file, you have several options:
At the moment, the parsing of such files uses the underscore ReplacementStyle option: allowing hex is feasible but will be a bit more involved. Pull requests welcome at https://github.com/gllmflndn/JSONio |
Thank you for all this @gllmflndn! |
I tried to add the ReplacementStyle option in |
With @TomMaullin, we are looking at the json exports that SPM is generating and we were wondering if it would be possible to remove the ending ":" in the NIDM attribute names for the json export (but keep them in turtle). This would be similar to the behaviour of the Python
rdflib
.The final ':' comes from this line: https://github.com/incf-nidash/nidmresults-spm/blob/master/exporter/spm_results_nidm.m#L1379.
The text was updated successfully, but these errors were encountered: