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

Allow storing extra information not handled by the python domain model #119

Open
koenedaele opened this issue Oct 3, 2022 · 0 comments
Open

Comments

@koenedaele
Copy link
Member

The https://skosprovider.readthedocs.io/en/latest/api.html#module-skosprovider.skos SKOS domain model in Python maps input to an interface and throws away the rest. This means that anything not adhering to that interface is lost. However, it would be useful to hang on to that information and be able to pass it out again, even if a typical Python programmer won't do much with it.

  • Create attributes for extra data on concept, collection and conceptscheme classes. Pick a good name.
  • Decide on a format for those attributes. JSON-LD seems like the best fit since pyld is already a requirement for skosprovider and it feels very friendly to most developers
  • Decide on the interaction between the regular domain attributes and what's in the extra data attribute. Having data be present in both place will probably create weird stuff.

Since this is an addition to the domain model, all skosprovider implementations will need to be updated. Worst case scenario this attrivute returns an empty JSON-LD doc. If it can be made backwards compatible with a good default value, it can go in a 1.3 release, otherwise a 2.0 release

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

1 participant