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

If element data has keys of type object they are exported as [object Object] instead of something meaningful #14

Open
nicky1038 opened this issue Jun 19, 2019 · 1 comment

Comments

@nicky1038
Copy link

nicky1038 commented Jun 19, 2019

This behavior is not documented :(

Complex data sholud be allowed to be exported. As XML or at least stringified JSON.

It should also be possible to import the result correctly.

It would be even better if user is allowed to pass a callback to transform data as one wishes.

@nicky1038 nicky1038 changed the title If element data is an object it is exported as [object Object] instead of something meaningful If element data has keys of type object they are exported as [object Object] instead of something meaningful Jun 20, 2019
@hasanbalci
Copy link
Contributor

From the GraphML Primer:

With the help of the extension GraphML-Attributes one can specify additional information of simple type for the elements of the graph. Simple type means that the information is restricted to scalar values, e.g. numerical values and strings. If you want to add structured content to graph elements you should use the key/data extension mechanism of GraphML.

Currently, this extension only supports GraphML-Attributes which are scalar values. Support for the key/data extension mechanism mentioned in the quote can be considered in the future. We are open to pull requests.

@hasanbalci hasanbalci removed their assignment Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants