-
Notifications
You must be signed in to change notification settings - Fork 29
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
Replace owltools --expand-macros
with robot expand
#2597
Conversation
This works fine (once CL terms have been corrected), but I wonder about the expansion of The comment associated with the
Do we really want those automatically generated classes in the released artefacts of Uberon? |
Why not create anonymous classes? It may still be a good idea not to
release these expanded though
…On Thu, Aug 11, 2022 at 7:01 AM Damien Goutte-Gattat < ***@***.***> wrote:
This works fine (once CL terms have been corrected), but I wonder about
the expansion of present in taxon. It results in the creation of several
distinct classes (with labels of the form
http://purl.obolibrary.org/obo/UBERON_XXXXXXX in taxon
http://purl.obolibrary.org/obo/NCBITaxon_YYYYY).
The comment associated with the present_in_taxon annotation in RO says:
The SPARQL expansion for this relation introduces new named classes into
the ontology. For this reason it is likely that the expansion should only
be performed during a QC pipeline; the expanded output should usually not
be included in a published version of the ontology.
Do we really want those automatically generated classes in the released
artefacts of Uberon?
—
Reply to this email directly, view it on GitHub
<#2597 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMOM7P6SXJKMFDFEYUC3VYUBU3ANCNFSM56HYLQSQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@cmungall No opinion about anonymous classes, but in any case if we want that it needs to be fixed in RO. Here we can only expand (or not) to whatever the SPARQL query defined in RO:0002175 does. @anitacaron Can you update the call to |
But then the |
Do we have any step in our current QC that depends on those classes being present? I understand that the idea behind those classes is to perform some QC checks on them, but I don’t think we are currently doing that, are we? I guess in the future, when we do add QC checks on the expanded “present-in-taxon” classes, we will have two options:
Not sure what is better… Both options seems bad to me, actually… |
I guess I meant anon individuals, but that makes debugging harder
(inconsistency not unsat). So scratch my comment
On Thu, Aug 11, 2022 at 7:09 AM Chris Mungall ***@***.***>
wrote:
… Why not create anonymous classes? It may still be a good idea not to
release these expanded though
On Thu, Aug 11, 2022 at 7:01 AM Damien Goutte-Gattat <
***@***.***> wrote:
> This works fine (once CL terms have been corrected), but I wonder about
> the expansion of present in taxon. It results in the creation of several
> distinct classes (with labels of the form
> http://purl.obolibrary.org/obo/UBERON_XXXXXXX in taxon
> http://purl.obolibrary.org/obo/NCBITaxon_YYYYY).
>
> The comment associated with the present_in_taxon annotation in RO says:
>
> The SPARQL expansion for this relation introduces new named classes into
> the ontology. For this reason it is likely that the expansion should only
> be performed during a QC pipeline; the expanded output should usually not
> be included in a published version of the ontology.
>
> Do we really want those automatically generated classes in the released
> artefacts of Uberon?
>
> —
> Reply to this email directly, view it on GitHub
> <
#2597 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAAMMOM7P6SXJKMFDFEYUC3VYUBU3ANCNFSM56HYLQSQ
>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#2597 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGZRCE6RTG45D3HLASZYKTVYUCTFANCNFSM56HYLQSQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The QC check is just checking the ontology for coherency when those classes are present. Generating them as anonymous classes is not an option; anonymous classes wouldn't provide any coherency violations if the expression was unsatisfiable (but I would love to change the expansion if someone can point out a way to make this happen). I would have a coherency check in the pipeline that runs all expansions. But I would disable 'present in taxon' expansions in targets leading to the release file. |
Agree about harder debugging. Also, for reasons I don't know, anonymous individuals are excluded from OWL EL. |
@balhoff My bad, I had not understood that the mere presence of these classes was enough. In this case I agree that we should have somewhere a build target in which I’d suggest to leave that to another PR, though, and to merge this one for now. What do you think @matentzn ? |
Oh I just thought of a way! We use all these generated 'in taxon' expressions as fillers for existential restrictions using some dummy property, and make the restrictions superclasses of a single dummy class. Not sure if folks want this in their ontology any more than all those generated classes. |
@balhoff Sorry I am not sure I understand correctly. What I understand is that, for example: if
instead of being expanded, as it currently is, into a Is that remotely correct? |
@gouttegd it would be something like this:
The same dummy class can be used for every present-in-taxon statement. This would create only one named class instead of one for every assertion. It might be a bit more obscure though. |
@balhoff you just want to blow up all ontology browsers don't you :-) remember this: geneontology/amigo#428 |
So I'll merge this PR to be in the next UBERON release and create another issue to address the |
After adding
robot expand
, it detected the misuse of thepresent_in_taxon
annotation, which expects a resource but was passed a string. The cases are inCL_import.owl
.The 15 cases are:
This needs to be solved to have the QC passed here. I'll create an issue in the CL repo.
Fixes #2382