Skip to content

Introduce a practical EMMO guide #141

Open

Description

@yoavnash

How to

  • add a numerical value
  • add a string value
  • specify measurement units
  • query the attributes of CUDS object

Activity

  1. yoavnash commented on May 7, 2021

    @yoavnash
    MemberAuthor

    Add a numerical value:

    from osp.core.namespaces import math, metrology, my_namespace
    
    value=5
    c = my_namespace.MyClass()
    real_number = math.Real(hasNumericalData=value)
    c.add(real_number, rel=metrology.hasQuantityValue)
  2. yoavnash commented on May 7, 2021

    @yoavnash
    MemberAuthor

    Add a string value:

    from osp.core.namespaces import math, metrology, my_namespace
    
    value='cowabunga'
    c = my_namespace.MyClass()
    symbol = perceptual.Symbol(hasSymbolData=value)
    c.add(symbol, rel=metrology.hasQuantityValue)
  3. yoavnash commented on May 11, 2021

    @yoavnash
    MemberAuthor

    @JoanaFMorgado Do you think this could fit better in the EMMO docs? (GitHub / GitLab)

  4. yoavnash commented on May 11, 2021

    @yoavnash
    MemberAuthor

    Another option: add this info as a part of an EMMO use case that builds on previous tutorials and use such tutorial to better connect it with materials science.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions