linikujp / owltools

Automatically exported from code.google.com/p/owltools
0 stars 0 forks source link

Print class axioms using manchester syntax #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add an option similar to --list-class-axioms that prints out the class axioms 
in manchester syntax. 

For example for the class http://purl.obolibrary.org/obo/UBERON_0002102 
('forelimb') generate the following output:

'forelimb' subClassOf 'develops_from' some 'forelimb bud'

as opposed to --list-class-axioms current output:
SubClassOf(UBERON:0002102 'forelimb' ObjectSomeValuesFrom(develops_from 
'develops_from' UBERON:0005417 'forelimb bud'))

Original issue reported on code.google.com by josemigu...@gmail.com on 17 May 2013 at 3:04

GoogleCodeExporter commented 9 years ago
This is an enhancement, not a defect

Original comment by josemigu...@gmail.com on 17 May 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Hello,
I have added a new option to configure the print-out (a.k.a. OwlPrettyPrinter).
There is now a CommandRunner option to set the format for the printer. By 
default the current format is used. To set a different format, i.e. 
manchester-like syntax use:
--pretty-printer-settings -m
You can also add '--hide-ids' to hide the double identifiers.
Please set this before the call of the methods, such as --list-class-axioms 

Original comment by HDie...@lbl.gov on 17 May 2013 at 11:35