Menu

#192 Unit definition namespace rules are unclear

closed
8
2014-05-27
2011-04-27
No

I've been dealing with namespace issues in writing the comp spec, and I came across a potential issue. It is unclear (to me, at least) from sections 3.1.10 and 3.3.1 whether you are allowed to define a UnitDefinition with the same id as one of the predefined units from table 2 (ampere, avogadro, becquerel, etc.)

3.1.10 reads:
Type UnitSIdRef is used for all attributes that refer to identifiers of type UnitSId, which are the identifiers of units in SBML objects. This type is derived from UnitSId, but with the restriction that the value of an attribute having type UnitSIdRef must match either the value of a UnitSId attribute in the model, or one of the base units in Table 2.

3.3.1 reads (in part):
The identifier of every UnitDefinition must be unique across the set of all such identifiers in the model.

If this is illegal, I think we should change 3.3.1 to read something like, "The identifier of every UnitDefinition must be unique across the set of all such identifiers in the model plus the set of base unit definitions in Table 2".

If this is legal, I think we should change section 3.1.10 to say that (presumably) the model-defined unit takes precedence when there is a conflict.

If we have not decided whether this is legal or illegal, I vote 'illegal' (and that we change 3.3.1).

Discussion

  • Michael Hucka

    Michael Hucka - 2011-05-01
    • milestone: --> 678078
    • assigned_to: nobody --> luciansmith
     
  • Michael Hucka

    Michael Hucka - 2011-05-01

    I am accepting this issue as valid.

     
  • Michael Hucka

    Michael Hucka - 2011-05-01

    This was always meant to be illegal.

     
  • Chris Myers

    Chris Myers - 2011-05-01

    I vote illegal and accept as valid.

     
  • Sarah Keating

    Sarah Keating - 2011-05-02

    I am accepting this issue as valid.

     
  • Sarah Keating

    Sarah Keating - 2011-05-02

    Definitely illegal :-)

     
  • Chris Myers

    Chris Myers - 2011-05-02

    I am accepting this issue as valid.

     
  • Lucian Smith

    Lucian Smith - 2011-05-10

    (this also affects validation rule 10302)

     
  • Lucian Smith

    Lucian Smith - 2012-05-25
    • milestone: 678078 --> Accepted:_Changes_with_conformance_implications
    • priority: 5 --> 8
     
  • Michael Hucka

    Michael Hucka - 2012-06-19
    • status: open --> pending
     
  • Michael Hucka

    Michael Hucka - 2013-12-09
    • status: pending --> accepted
    • Group: Accept-conformanc-implication --> Accept-conformance-implications
     
  • Lucian Smith

    Lucian Smith - 2014-04-23

    Adding L2v4 to this item, as the same text exists there.

     
  • Lucian Smith

    Lucian Smith - 2014-04-23
    • labels: Level 3 Version 1 Core --> Level 3 Version 1 Core, Level 2 Version 4
     
  • Lucian Smith

    Lucian Smith - 2014-05-27
    • status: accepted --> closed
     
  • Lucian Smith

    Lucian Smith - 2014-05-27

    Fixed in SVN for L2v5 and L3v2, and will be part of the forthcoming release of those specifications.

     

Log in to post a comment.

MongoDB Logo MongoDB