You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the 3rd last line is needed, otherwise setting the eludation raises an error.
from ontopy import get_ontology
onto = get_ontology().load()
from ontopy.utils import english
with onto:
class IntrinsicMagneticMaterialProperty(onto.Property):
"""Intrinsic magnetic material Properties."""
prefLabel = english("IntrinsicMagneticMaterialProperty")
EMMO_967080e5_2f42_4eb2_a3a9_c58143e835f9 = english("Intrinsic properties of a magnetic material.")
with onto:
class IntrinsicMagneticMaterialProperty2(onto.Property):
"""Intrinsic magnetic material Properties. 2"""
prefLabel = english("IntrinsicMagneticMaterialProperty2")
IntrinsicMagneticMaterialProperty2.elucidation
IntrinsicMagneticMaterialProperty2.elucidation = english("Intrinsic properties of a magnetic material 2.")
onto.save('test.ttl')
The text was updated successfully, but these errors were encountered:
Example below:
For some reason, the 3rd last line is needed, otherwise setting the eludation raises an error.
The text was updated successfully, but these errors were encountered: