following this post Convert String in manchester syntax to OWLAxiom object using owlapi 3 in Java
I would like to parse the following which contains object property as follows:
String input1 = "Prefix: pr: <www.somewhere.net/>\n" +
"Class: pr:Arm\n"+
"Class: pr:Hand\n"+
"ObjectProperty: pr:has-part\n"+
"Class: pr:Arm\n"+
" SubClassOf: (pr:has-part some pr:Hand)\n"+
"";
This string doesn't get parsed using the same method as in the above post. I'm not sure how the object property should be written to be parsed correctly. Also I would prefer if you can suggest a way to just parse a simple String into a valid owl axiom rather than parsing it as a small ontology.
Now it works without Domain or range. the reason why I did not include the exception is because it is exactly the same even if anything is missing from the format such as a parenthesis or a colon. The OWL reference https://www.w3.org/TR/owl2-manchester-syntax/ of Manchester syntax is not complete.