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

Include a generic structure that captures all untranslatable axioms #94

Open
cmungall opened this issue Feb 22, 2023 · 1 comment
Open

Comments

@cmungall
Copy link
Member

cmungall commented Feb 22, 2023

the goal for obographs has always been to make the common 99% cases easy but to have a way to do the last 1%

for any untranslatable axiom, we should have a json representation. this should be generic. It can follow the functional syntax spec or it can follow a s-expression style.

See this thread:

https://lists.w3.org/Archives/Public/public-owl-dev/2016OctDec/0000.html

A generic s-expression style might be:

["SubClassOf", <SubClass>, <SuperClass> [<Annotation1>, ...]]`

(obviously this wouldn't be used in the simple case where both are NCs but the idea is to fall back to the generic when a specific pattern is not captured)

Or more like functional syntax:

["SubClassOf", [<Annotation1>, ...] <SubClass>, <SuperClass>]`

But I prefer named arguments and specific types, e.g

type: SubClassOf
subClass: <SubClass>
superClass: <SuperClass>
annotations:
 - ...

Could be coordinated with:

@ddooley
Copy link

ddooley commented Jul 12, 2023

On this note, is there a way to get more debug information right now? At moment to answer FoodOntology/foodon#277 I'm trying to convert https://github.com/FoodOntology/foodon/blob/master/foodon.owl into obograph using robot 1.9.4 via "robot convert --input ../../foodon.owl --output foodon.json -vvv" but error is cryptic:

OBO GRAPH ERROR Could not convert ontology to OBO Graph (see https://github.com/geneontology/obographs)
For details see: http://robot.obolibrary.org/errors#obo-graph-error
java.io.IOException: errors#OBO GRAPH ERROR Could not convert ontology to OBO Graph (see https://github.com/geneontology/obographs)

I suspect its because there might be two IAO definitions or two rdfs:comments somewhere on a FoodOn entity which technically OWL allows but which the obo format itself forbids? (We'll bring FoodOn into obo format conformance within guidelines of new language tag stuff).

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