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

caro.owl is not xml/rdf #14

Open
vjcitn opened this issue Sep 19, 2017 · 3 comments
Open

caro.owl is not xml/rdf #14

vjcitn opened this issue Sep 19, 2017 · 3 comments

Comments

@vjcitn
Copy link

vjcitn commented Sep 19, 2017

how can it be translated to a more familiar form of owl?

@cmungall
Copy link
Member

See also: OBOFoundry/OBOFoundry.github.io#360

You can use robot convert -i caro.owl -o caro-fixed.owl for now https://github.com/ontodev/robot

@vjcitn
Copy link
Author

vjcitn commented Sep 20, 2017

Thanks for checking this.

robot is not completely happy, and then when python pronto conversion to obo is attempted, we have no success. here is the robot complaint

%vjcair> robot convert -i caro.owl -o caro-fixed.owl
ERROR Illegal redeclarations of entities: reuse of entity http://purl.obolibrary.org/obo/RO_0002215 in punning not allowed [Declaration(AnnotationProperty(http://purl.obolibrary.org/obo/RO_0002215)), Declaration(ObjectProperty(http://purl.obolibrary.org/obo/RO_0002215))]
ERROR Ontology IRIs must be absolute; IRI /imports/pato_import.owl is relative and will be made absolute by prefixing urn:absolute: to it
ERROR Illegal redeclarations of entities: reuse of entity http://purl.obolibrary.org/obo/RO_0002215 in punning not allowed [Declaration(AnnotationProperty(http://purl.obolibrary.org/obo/RO_0002215)), Declaration(ObjectProperty(http://purl.obolibrary.org/obo/RO_0002215))]

when pronto is used to import the resulting owl

import pronto
cc = pronto.Ontology("caro-fixed.owl")
/Users/stvjc/anaconda2/lib/python2.7/site-packages/pronto/ontology.py:319: ProntoWarning: XMLSyntaxError occured during import of http://purl.obolibrary.org/obo/caro/imports/ro_import.owl
ProntoWarning)
/Users/stvjc/anaconda2/lib/python2.7/site-packages/pronto/ontology.py:319: ProntoWarning: XMLSyntaxError occured during import of http://purl.obolibrary.org/obo/caro/imports/go_import.owl
ProntoWarning)
/Users/stvjc/anaconda2/lib/python2.7/site-packages/pronto/ontology.py:319: ProntoWarning: XMLSyntaxError occured during import of http://purl.obolibrary.org/obo/caro/imports/pato_import.owl
...

@cmungall
Copy link
Member

cmungall commented Sep 20, 2017 via email

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

2 participants