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

choose unique identifyer for models #6

Closed
2 tasks done
BradleyScrim opened this issue Sep 14, 2020 · 1 comment
Closed
2 tasks done

choose unique identifyer for models #6

BradleyScrim opened this issue Sep 14, 2020 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@BradleyScrim
Copy link
Member

BradleyScrim commented Sep 14, 2020

Overview

SEEK json

  • example
  • data.id
    • points to the model, ignoring the version (model id)
    • i.e. 24
  • data.meta.uuid
    • points to the model, ignoring the version (model uuid)
    • i.e. 67bb3ce0-caa7-0138-f7f7-0242ac120004
  • data.links.self
    • points to the model + version without domain dependency (model relative link)
    • i.e. /models/24?version=3
  • data.attributes.version
    • provides the current version number (model version)
    • i.e. 3
  • data.attributes.versions.#.url (# is version number)
    • provides the model + version with domain dependency (model absolute link)
    • i.e. https://sandbox2.fairdomhub.org/models/24.json?version=3

possible uses

  • full absolute URL to model, i.e. https://sandbox2.fairdomhub.org/models/24
    • implies: masymos-database needs a reset on domain change
    • benefits:
      • no configuration of seek domain needed
      • no stored metadata needed on masymos side
      • human-readable unique identifier
  • data.id OR data.meta.uuid
    • requires: MaSeMiWa must have the SEEK-domain configured
    • implies: MaSeMiWa could identify, if model version is newer by saving data.attributes.version in graph meta data
  • data.links.self
    • requires: MaSeMiWa must have the SEEK-domain configured
    • possible benefits:
      • MaSeMiWa could only use the ID on masymos-side
      • is domain independent

ToDo

  • decide what UID to use → full URL
  • documentation
@BradleyScrim BradleyScrim added documentation Improvements or additions to documentation question Further information is requested labels Sep 14, 2020
@BradleyScrim BradleyScrim added this to To do in on our way to integrate with seek via automation Sep 14, 2020
@MaSyMoS MaSyMoS deleted a comment from mscholzj Sep 14, 2020
@BradleyScrim
Copy link
Member Author

Decision: use the full absolute URL to model, i.e. https://sandbox2.fairdomhub.org/models/24 (SO, BW)

on our way to integrate with seek automation moved this from To do to Done Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Development

No branches or pull requests

2 participants