Closed GoogleCodeExporter closed 9 years ago
Hello,
thank you for reporting the issue. You have stumbled over the difference
between the OWL-API parser and the recommended oboformat.org parser. It seems
the parser and conversion to OWL in the OWL-API does not implement subsets.
While using the OWLGraphWrapper, we strongly recommend to use the
org.obolibrary.oboformat.parser.OBOFormatParser to directly load the OBO file
and convert it using obo2owl.
Even better, we have a wrapper which can load OWL and OBO using the intended
parser: owltools.io.ParserWrapper
For you it would read:
ParserWrapper parserWrapper = new ParserWrapper();
String iriString =
"http://obo.svn.sourceforge.net/viewvc/obo/uberon/trunk/composite-metazoan-basic
.obo";
OWLGraphWrapper graph = parserWrapper.parseToOWLGraph(iriString);
This will give you the intended non zero counts for subsets.
I hope this helps.
Original comment by HDie...@lbl.gov
on 18 Jan 2013 at 6:35
This works fine, thank you.
Original comment by TheITGuy...@gmail.com
on 19 Jan 2013 at 1:13
Original comment by HDie...@lbl.gov
on 7 Feb 2013 at 5:51
Original issue reported on code.google.com by
TheITGuy...@gmail.com
on 18 Jan 2013 at 3:14