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

Role of the roles #45

Open
lmichel opened this issue Apr 28, 2021 · 7 comments
Open

Role of the roles #45

lmichel opened this issue Apr 28, 2021 · 7 comments

Comments

@lmichel
Copy link
Collaborator

lmichel commented Apr 28, 2021

This issue is related to the @msdemlei proposal.
In ts.vot, I'm wondering how a client can get the role of a mapped object (or does it wish to?).

Lets take an easy example line 79:

      <INSTANCE ID="ndwibspodost" dmtype="ndcube:Cube">
      ...
      </INSTANCE>

The client can read the dmtype and guess that this mapping bock contains a cube. But what happens if the data set contains 2 ndcube:Cube. (contains 2 positions is more realistic I admit)

  • How to distinguish them?
  • Are you sure you can always get ride of dmroles on top level instances?

Let's take another example more confusing to me, line 53

<TEMPLATES>
      <INSTANCE ID="ndwibspapabt" dmtype="stc2:Coords">
      ...
      </INSTANCE>

This object is typed as a stc2:Coords which looks like an abstract class. No way to know which role does this instance play. If I enter it, I can see 2 un-typed attributes (time and space) but this does not tell me more about what to do with it.

  • Do you assume that the client has not to be informed on the role?
  • Did I miss some key point?
@lmichel lmichel changed the title Roles of the roles Role of the roles Apr 28, 2021
@msdemlei
Copy link
Contributor

msdemlei commented Apr 29, 2021 via email

@lmichel
Copy link
Collaborator Author

lmichel commented Apr 29, 2021

Can I post a meta-issue on this somewhere?

Please open a new issue

@lmichel
Copy link
Collaborator Author

lmichel commented Apr 29, 2021

What we'd need for that is a string-valued "label" attribute on many
of our classes (really, any that a user might need to choose from,
and probably any that may profit from having a few words of
explanation).

This is the role of the semantic field on Mango parameters

@lmichel
Copy link
Collaborator Author

lmichel commented Apr 29, 2021

This instance could be a target position in a
dataset1 instance, also target position in a dataset2 instance, a
center of mass in a hypothetical extra DM ...

Ok but if both (target and CoM) are present in my dataset, how can I know which Coords relates either target or CoM?

@lmichel
Copy link
Collaborator Author

lmichel commented Apr 29, 2021

The DM docs is where the
client writers go at implementation time to figure out how to map
incoming data to their data structures.

If I understand well, your annotation does not match the structure of the model elements and we need a documentation telling to the developers how to bind annotation elements with model classes.
I allow myself to notice that writing such a documentation looks like (meta/cross?) modeling.

  • What is the rationale for this?
  • Why do your annotations not match the structure of the (un-entangled) model classes.

@msdemlei
Copy link
Contributor

msdemlei commented Apr 30, 2021 via email

@msdemlei
Copy link
Contributor

msdemlei commented Apr 30, 2021 via email

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

2 participants