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

ClassCastException / crash when running --make-species-subset #262

Open
kimrutherford opened this issue Aug 6, 2018 · 7 comments
Open

Comments

@kimrutherford
Copy link

Hi.

We're having trouble with processing the latest go-plus.owl with owltools.

With this command line:

(cd /tmp/; wget http://purl.obolibrary.org/obo/go/extensions/go-plus.owl) &&
(cd go-svn/ontology/extensions; owltools /tmp/go-plus.owl --use-catalog --reasoner elk --make-species-subset -t NCBITaxon:4896 -o -f obo /tmp/go-plus-pombe-only.obo)

we get this exception:

2018-08-06 21:53:38,189 WARN  (IndexedObjectUnionOf:92) [reasoner.indexing.IndexedObjectUnionOf]ELK does not support positive occurrences of ObjectUnionOf. Reasoning might be incomplete!
2018-08-06 21:53:38,190 WARN  (ChangeIndexingProcessor:66) [reasoner.indexing.axiomIgnored]ELK does not support ObjectMinCardinality. Axiom ignored:
EquivalentClasses(<http://purl.obolibrary.org/obo/UBERON_0000037> ObjectIntersectionOf(<http://purl.obolibrary.org/obo/UBERON_0001305> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/BFO_0000051> <http://purl.obolibrary.org/obo/UBERON_0000039>) ObjectMinCardinality(2 <http://purl.obolibrary.org/obo/RO_0002180>)))
2018-08-06 21:53:38,192 WARN  (ChangeIndexingProcessor:66) [reasoner.indexing.axiomIgnored]ELK does not support InverseObjectProperties. Axiom ignored:
InverseObjectProperties(<http://purl.obolibrary.org/obo/RO_0002005> <http://purl.obolibrary.org/obo/RO_0002134>)
Exception in thread "main" java.lang.ClassCastException: uk.ac.manchester.cs.owl.owlapi.OWLLiteralImplString cannot be cast to org.semanticweb.owlapi.model.IRI
        at org.obolibrary.macro.MacroExpansionVisitor$MacroExpansions.expand(MacroExpansionVisitor.java:162)
        at org.obolibrary.macro.MacroExpansionVisitor$MacroExpansions.<init>(MacroExpansionVisitor.java:122)
        at org.obolibrary.macro.MacroExpansionVisitor.expandAll(MacroExpansionVisitor.java:95)
        at owltools.mooncat.SpeciesSubsetterUtil.<init>(SpeciesSubsetterUtil.java:139)
        at owltools.cli.CommandRunner.runSingleIteration(CommandRunner.java:768)
        at owltools.cli.CommandRunnerBase.run(CommandRunnerBase.java:76)
        at owltools.cli.CommandRunnerBase.run(CommandRunnerBase.java:68)
        at owltools.cli.CommandLineInterface.main(CommandLineInterface.java:12)

It last worked successfully on August 2nd.

Thanks in advance.

CC: @ValWood

@ValWood
Copy link

ValWood commented Sep 6, 2018

Hi was this fixed?
Val

@cmungall
Copy link
Member

cmungall commented Sep 6, 2018

@kimrutherford - does this work

@balhoff - what's the best way of preventing these typos in the ontology in future? A custom sparql query?

@balhoff
Copy link
Member

balhoff commented Sep 6, 2018

We should probably just have a SPARQL check that never_in_taxon only has IRI values. This has happened repeatedly.

@kimrutherford
Copy link
Author

@kimrutherford - does this work

It works for me now.

@wkpalan
Copy link

wkpalan commented May 8, 2019

When I run the above command I get an error catalog-v001.xml (No such file or directory) and I was wondering where to get the catalog file specific for gene ontology?

@balhoff
Copy link
Member

balhoff commented May 8, 2019

@wkpalan you don't need the catalog file; just delete that part from the command. You can just provide the ontology file directly. The catalog provides a customized map from ontology IRIs to ontology files.

@wkpalan
Copy link

wkpalan commented May 8, 2019

Thank you. I could get the command working, but wasn't sure whether not having a catalog file would change the results.

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

5 participants