I have using Owlready2 to parse and augment to the ICD10CM ontology available on Bioportal (
https://bioportal.bioontology.org/ontologies/ICD10CM). Unfortunately, the class names in their ontology include '.'s in the names, e.g. "H90.2". I can load this ontology into Owlready2, but I am not able to use some of the class building functions due to syntax errors:
>>> class H90.6(Phe10_H906):
File "<stdin>", line 1
class H90.6(Phe10_H906):
^
SyntaxError: invalid syntax
I have tried the following, but each provides some form of syntax error:
1. putting single and double quotes: class "H90\.6"(Phe10_H906):
2. escaping the period: class H90\.6(Phe10_H906):
3. adding the onto in front: "class onto["H90.6"](Phe10_H906):
4. a few other things
Is there a way to handle class names with periods in the name?
Thanks,
Jeff