Closed balhoff closed 4 years ago
Will make a list of types of ontologies it works with!
Also the reason your own created ontology doesn't work is because your "hasExactSynonym" is not following the rdfs schema, it should be defined as "rdfs:hasExactSynonym" - I can include this is the documentation
I have included supported ontology formats in the README: owl
including owl/xml and rdf/xml - I hope this helps @balhoff :-)
Edit: I also included information about RDF schema in the README
Update: turns out I was wrong about "rdfs:synonym" annotations - my apologies! Your example is correct, I just need to fix it :-) I will look into making it user specified. Thanks!
@balhoff I have now fixed the annotations issue, your ontology will work now if you include <Prefix name="oboInOWL" IRI="http://www.geneontology.org/formats/oboInOWL#"/>
and ensure the Owl
is all caps.
Excellent, thanks!
Can you say which ontology formats are meant to work? I see that the pocket monsters example is in OWL/XML. I tried some other formats with
catch
(RDF/XML, TTL, OFN) and they all gave the same output. I was kind of surprised, but I guess it's using only the terms inlistofwords.txt
and not finding synonyms in the ontology? When I run with the OFN format file, I don't see any synonyms inontology_dict_class_synonyms.json
. I think it would be good to document supported ontology formats, especially since OWL/XML is a fairly uncommon format.Related question: I made my own OWL/XML file with a single term 'eye' and used the annotation property
http://www.geneontology.org/formats/oboInOwl#hasExactSynonym
to add synonym 'visual organ'. I don't see this being found and added toontology_dict_class_synonyms.json
.Here is the ontology I used:
(this is part of JOSS review openjournals/joss-reviews#2168)