Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON conversion failure #260

Closed
dosumis opened this issue Feb 28, 2018 · 3 comments
Closed

JSON conversion failure #260

dosumis opened this issue Feb 28, 2018 · 3 comments

Comments

@dosumis
Copy link

dosumis commented Feb 28, 2018

I'd like to generate a JSON version of http://purl.obolibrary.org/obo/geno.owl (there doesn't appear to be a release with this conversion). JSON conversion works fine for the various OBO ontologies I've tried but geno.owl =>

~/bin/robot convert --input geno.owl -f json --output geno.json
java.lang.ClassCastException: uk.ac.manchester.cs.owl.owlapi.OWLAnonymousIndividualImpl cannot be cast to org.semanticweb.owlapi.model.OWLLiteral
at org.geneontology.obographs.owlapi.FromOwl.generateGraph(FromOwl.java:477)
at org.geneontology.obographs.owlapi.FromOwl.generateGraphDocument(FromOwl.java:110)
at org.obolibrary.robot.IOHelper.saveOntology(IOHelper.java:441)
at org.obolibrary.robot.IOHelper.saveOntology(IOHelper.java:414)
at org.obolibrary.robot.ConvertCommand.execute(ConvertCommand.java:130)
at org.obolibrary.robot.CommandManager.executeCommand(CommandManager.java:219)
at org.obolibrary.robot.CommandManager.execute(CommandManager.java:161)
at org.obolibrary.robot.CommandManager.main(CommandManager.java:121)
at org.obolibrary.robot.CommandLineInterface.main(CommandLineInterface.java:53)
usage: robot [command] [options]

Perhaps issue with punning in GENO ?

CC @mbrush

@beckyjackson
Copy link
Contributor

I'm seeing the same issue, but from the stack trace it looks like this is an obographs issue: https://github.com/geneontology/obographs

@cmungall do you have any ideas about what's going on here?

@cmungall
Copy link
Contributor

correct bad code in obographs

@beckyjackson
Copy link
Contributor

Migrated to geneontology/obographs#41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants