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

Loading obo with terms from other ontology #163

Closed
cybersiddhu opened this issue Dec 4, 2015 · 3 comments
Closed

Loading obo with terms from other ontology #163

cybersiddhu opened this issue Dec 4, 2015 · 3 comments

Comments

@cybersiddhu
Copy link
Member

And obo file may contain terms imported from other ontologies. Those imported terms will conflict/break the loader when those ontologies are going to be loaded separately. They cannot co-exist in chado.
The possible solution is to identify those imported terms and filter them during the load. However, the question is how to identify them ?
#162

@cybersiddhu
Copy link
Member Author

Ideas

  • Run owltools for owl2obo conversion and selectively do not import the ontologies.
  • During the loading, skip any terms from imported ontology.

@cybersiddhu
Copy link
Member Author

A SPARQL command to list imported term.

PREFIX obo-term: <http://purl.obolibrary.org/obo/>
SELECT ?s ?subclass ?label
FROM <http://purl.obolibrary.org/obo/merged/RO>
{
?s a owl:Class .
?s rdfs:subClassOf ?subclass .
?s rdfs:label ?label .
 FILTER regex(?s, "(PATO|GO|CARO|ENVO|CL)")
}

Executed in ontobee

@cybersiddhu
Copy link
Member Author

There is nothing much that needed to be done with the Modware-loader itself. It can be fixed by running owltools with correct set of options. For the fix with RO the commit is here

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

No branches or pull requests

1 participant