ropensci / RNeXML

Implementing semantically rich NeXML I/O in R
https://docs.ropensci.org/RNeXML
Other
13 stars 9 forks source link

simmap vocabulary issues: char and stateChange #108

Open hlapp opened 9 years ago

hlapp commented 9 years ago

The following is the simmap example in the current manuscript draft:

 m <- meta("simmap:reconstructions", children = c(
        meta("simmap:reconstruction", children = c(

          meta("simmap:char", "cr1"),
          meta("simmap:stateChange", children = c(
            meta("simmap:order", 1),
            meta("simmap:length", "0.2030"),
            meta("simmap:state", "s2"))),

          meta("simmap:char", "cr1"),
          meta("simmap:stateChange", children = c(
            meta("simmap:order", 2),
            meta("simmap:length", "0.0022"),
            meta("simmap:state", "s1")))
          ))))

Questions:

  1. Why do we need to have two simmap:char properties? Is it really possible that a branch can change state from one state of one character to a state of a different character? And even if that were possible, shouldn't the simmap:char then instead be a property of simmap:stateChange?
  2. I am assuming that the reason we have to have a simmap:char to start with is because a NeXML state object may (in theory) be reused between different characters, and so which character we are talking about needs to be stated explicitly rather than letting it be determined implicitly?
  3. Is there a reason the simmap:stateChange element is named that way? It sounds odd that a state change has a length (the status of being in a certain state may have a length, but the change to a state?), and if indeed what is being described is a state change, I would expect to see something like fromState and toState as properties. Is stateChange perhaps a misnomer?
hlapp commented 9 years ago

I don't think we've addressed this for the manuscript (and it's more a general modeling improvement issue, I would say), and so I'm de-coupling this from the manuscript milestone again.

cboettig commented 9 years ago

:+1:

cboettig commented 9 years ago

All good points here. Just for the record, here's how we originally decided on what we have here

https://github.com/ropensci/RNeXML/issues/48