GitHub user fpservant opened a pull request: https://github.com/apache/jena/pull/211
writing jsonld: preserve id of blanknodes if they are valid jsonld identifiers current process to output jsonld computes identifiers for the blanknodes: _:b0, _:b1, etc. Ids of blanknodes defined by the user (using AnonId.create()) are not used, even when they are valid jsonld blanknode identifiers. Of course, this is just a cosmetic question - but if one took care to define valid bn identifiers, why wouldn't they be used in the output ? This PR allows just that - with a limit: user defined identifiers beginning with "_:b" are not preserved (this, to avoid clash with those generated by jena) You can merge this pull request into a Git repository by running: $ git pull https://github.com/fpservant/jena master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/jena/pull/211.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #211 ---- commit 216111f1031482a68dcc1b6068c37adc84a7ee8b Author: François-Paul Servant <f...@semanlink.net> Date: 2017-01-31T09:06:25Z writing jsonld: preserve id of blanknodes if they are valid jsonld blanknode identifiers commit 767bf5b261782b87f489a2f509fa743f7dea3541 Author: François-Paul Servant <f...@semanlink.net> Date: 2017-01-31T09:18:19Z cleaning commit 849e070ad1122ad28bc080d295c8d174aa87af95 Author: François-Paul Servant <f...@semanlink.net> Date: 2017-01-31T09:28:24Z improved test ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---