Open yoavnash opened 3 years ago
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)
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)
@JoanaFMorgado Do you think this could fit better in the EMMO docs? (GitHub / GitLab)
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.
How to