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

Introduce a practical EMMO guide #141

Open
2 of 4 tasks
yoavnash opened this issue Apr 12, 2021 · 4 comments
Open
2 of 4 tasks

Introduce a practical EMMO guide #141

yoavnash opened this issue Apr 12, 2021 · 4 comments

Comments

@yoavnash
Copy link
Member

yoavnash commented Apr 12, 2021

How to

  • add a numerical value
  • add a string value
  • specify measurement units
  • query the attributes of CUDS object
@yoavnash
Copy link
Member Author

yoavnash commented May 7, 2021

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)

@yoavnash
Copy link
Member Author

yoavnash commented May 7, 2021

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)

@yoavnash
Copy link
Member Author

yoavnash commented May 11, 2021

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

@yoavnash
Copy link
Member Author

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
Projects
None yet
Development

No branches or pull requests

1 participant