-
Notifications
You must be signed in to change notification settings - Fork 10
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
Search and classes endpoints return different sets of synonyms for same class #51
Comments
Would also add that in the existing UI, Currently, "synonyms" is displaying a single result, while the rest are appearing under "altLabel" |
@CloudCray - thanks for pointing that out about the altLabel property. It may be that the search endpoint looks for properties like altLabel and concatenates the values into synonym. Not sure - will need to check with @mdorf when he returns from break. In the mean time though, you can set the include parameter to "all" to see those altLabel values when using the classes endpoint. Issuing a REST call like the following: ... will return a result set that includes property value pairs: The include parameter is explained in more detail in the Common Parameters section of the API documentation. Essentially you can use it to customize the set of attributes returned. |
The plot thickens here because in trying to replicate the data that gets put into the Solr index in this case, I only get one synonym:
The only reasonable explanation here is that the data in Solr isn't current, which is also unlikely because the re-indexing process first deletes all records corresponding to a given ontology before proceeding with re-indexing. |
Looks like the list of Adding the So for my use, case-closed - however, it may be nice to have some clearer documentation. Thank you! |
Adding to this - It's just surprising that the same key - "synonym" - is used for 2 different purposes in different places. |
More detail... There is a call executed during indexing:
That call fills in properties for a class:
Once that call is made, the indexable document for this class appears with multiple synonyms instead of a single one. I'm assuming that this call is NOT made in other instances, where only a single synonym value is displayed:
|
Originally reported on the support list by an end user.
/classes endpoint
Issuing a REST call against the classes endpoint for CPT term with ID: "http://purl.bioontology.org/ontology/CPT/99213", i.e.:
http://data.bioontology.org/ontologies/CPT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FCPT%2F99213
... returns a result set with a single synonym:
/search endpoint
Issuing a REST call against the search endpoint with search query "99213", i.e.:
http://data.bioontology.org/search?q=99213
... returns a result set that contains CPT term with ID: "http://purl.bioontology.org/ontology/CPT/99213" (same class as above). In this particular result set, the term is listed with 6 synonyms instead of one:
I manually reindexed CPT and flushed the application caches to rule out a problem with indexing of the latest version. The indexing process completed successfully, but the same behavior occurs.
The text was updated successfully, but these errors were encountered: