owlcollab / owltools

OWLTools
BSD 3-Clause "New" or "Revised" License
106 stars 32 forks source link

Print class axioms using manchester syntax #63

Open ShahimEssaid opened 9 years ago

ShahimEssaid commented 9 years ago

From josemigu...@gmail.com on May 17, 2013 08:04:32

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: http://code.google.com/p/owltools/issues/detail?id=63

ShahimEssaid commented 9 years ago

From josemigu...@gmail.com on May 17, 2013 08:05:25

This is an enhancement, not a defect

ShahimEssaid commented 9 years ago

From HDie...@lbl.gov on May 17, 2013 16:35:17

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

Status: Started
Owner: HDie...@lbl.gov
Labels: -Type-Defect Type-Enhancement