Search Mailing List Archives
[bioontology-support] concept definitions in API?
ray.fergerson at stanford.edu
Mon Mar 23 14:34:52 PDT 2015
This behavior is a bit confusing. The short answer to your question is
that if you use the "also_seach_properties=true" parameter you will get
the behavior you want.
Before going into the long answer, you state below that you explicitly
included definitions in the search. I don't think that this is possible.
We do have a "require definitions" property but this just requires that
the class have a definition. It does not require that the search find a
match in the definition. You should get matches on definitions by default
(however, see below).
And now for the longer answer, if you care. BioPortal uses as a default
the skos:definition property as the property containing a definition. If
you do not use skos:definition in your ontology, when you submit the
ontology you need to specify which property contains the definition. The
private D1-CARBON-FLUX ontology does not do this so BioPortal finds no
definition. The fact that this ontology has another property named
"definition" is irrelevant (for BioPortal).
Having said all this, it would be more user friendly if we could "guess"
the definition property. This question has come up before. I will look
into doing this. Also you could edit the submission to define the
definition property properly. (Say that three times fast.) The system
should the reparse the ontology and create a BioPortal definition which
will be searched automatically.
[mailto:bioontology-support-bounces at lists.stanford.edu] On Behalf Of Ben
Sent: Monday, March 23, 2015 12:58 PM
To: support at bioontology.org
Subject: [bioontology-support] concept definitions in API?
I'm looking into some unexpected results when querying classes with the
Take this class in the D1_CARBON_FLUX ontology:
This query for "plankton" returns the concept...
.but does not include the "definition" field even when explicitly
requested in the query string. I only get these:
But I can see the definition in the BioPortal web interface and, of
course, in the OWL file directly.
What's odd, is that I can retrieve definition for some other classes
Am I doing something wrong with the API?
bioontology-support mailing list
bioontology-support at lists.stanford.edu
More information about the bioontology-support