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

Does the DocumentUri and CreationInformation need to be updated when upgrading document? #28

Open
goneall opened this issue Dec 13, 2021 · 1 comment

Comments

@goneall
Copy link
Member

goneall commented Dec 13, 2021

Currently, deprecated properties are "upgraded" to relationships when deserializing RDF documents. This is technically changing the model which should require a new, unique URI.

We may also want to update the creation information.

This issue came up in a discussion on the SPDX tech email list.

@goneall
Copy link
Member Author

goneall commented Dec 13, 2021

One possible solution is to add a couple optional parameters to the deserialize method:

  • upgrade (default false)
  • newDocumentUri (default null) New URI to use on upgrade

If upgrade is false and any deprecated properties are found, the deserialization will fail as unimplemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant